Partial sRI-CC2: Efficient Stochastic CC2
- Partial sRI-CC2 is a selective stochastic resolution-of-identity method in CC2 that targets the most expensive electron repulsion integral contractions.
- The method combines deterministic low-rank factorization for Coulomb terms with stochastic sampling for exchange-like contributions, reducing computational scaling.
- It achieves accurate energy derivatives and gradients for excited-state and nonadiabatic dynamics while effectively managing stochastic noise.
Partial sRI-CC2 denotes a family of selective stochastic-resolution-of-identity formulations of the second-order approximate coupled-cluster singles and doubles method, CC2, in which stochastic sampling is applied only to chosen four-index electron-repulsion-integral contractions rather than to the entire two-electron sector. In the cited literature, the selection is made to target the dominant expensive contractions—most commonly exchange-like terms—while retaining deterministic RI treatment, or another low-rank factorization, for the remaining contributions. The resulting methods preserve much of the scaling reduction associated with full sRI-CC2, but with substantially lower stochastic noise, especially for energy derivatives, analytical gradients, derivative couplings, and nonadiabatic dynamics (Zhao et al., 2022, Zhao et al., 14 Mar 2025, Zhao et al., 8 Sep 2025, Zhao et al., 26 Sep 2025).
1. Origin and conceptual scope
The background to partial sRI-CC2 is the contrast between conventional RI-CC2 and full sRI-CC2. In RI-CC2, the dominant cost arises from contractions involving four-index ERIs and remains formally . Full sRI-CC2 replaces every occurrence of the ERI by a stochastic low-rank factorization, reducing the leading cost to when the number of stochastic samples is held constant (Zhao et al., 2022, Zhao et al., 2023).
Partial sRI-CC2 emerged as a compromise between these two limits. In the 2022 ground-state formulation, only the two most expensive contributions in the singles residual, commonly called and , together with the final energy contractions, are treated stochastically; all remaining terms, including , , , , the Fock build, and DIIS, remain deterministic (Zhao et al., 2022). In the 2025 work on oscillator strengths and ground-state gradients, the mixed scheme is refined further: in the CC2 gradient Lagrangian, the first “direct” two-electron term is kept fully deterministic, while the second “exchange” term alone is stochastically hypercontracted (Zhao et al., 14 Mar 2025). The excited-state gradient and derivative-coupling implementation follows the same logic, applying sRI selectively to exchange terms only and leaving Coulomb integrals deterministic (Zhao et al., 8 Sep 2025).
A further development is the hybrid THC-sRI-CC2 formulation, in which the Coulomb-like contribution is factorized by tensor hypercontraction and only the exchange-like contribution is sampled stochastically. This “noise-reduced” variant preserves overall scaling while suppressing variance from the largest-amplitude deterministic sector (Zhao et al., 26 Sep 2025). This suggests that partial sRI-CC2 is best understood not as a single fixed algorithm but as a design principle: stochastic decoupling is confined to the contractions that dominate cost but need not dominate variance.
2. Algebraic structure
The starting point is the usual RI approximation,
with the three-index tensor
0
so that
1
The sRI construction replaces the auxiliary index by random 2 vectors 3 satisfying
4
and defines
5
The ERI is then estimated by
6
These identities are common to both full and partial sRI formulations (Zhao et al., 2023, Zhao et al., 26 Sep 2025).
The defining step in partial sRI-CC2 is selective insertion of this stochastic factorization. In the exchange-only formulation of the CC2 contraction,
7
only the exchange-like term is decoupled stochastically, while the Coulomb-like term is evaluated deterministically or through another low-rank factorization. The resulting expression can be written as
8
The use of independent samples 9 for the two ERIs guarantees unbiased estimates of products of two ERIs (Zhao et al., 26 Sep 2025).
For gradient theory, the same partition appears in the two-electron derivative contribution,
0
with
1
Here the first term is the deterministic “direct” contribution, while the second is the stochastic “exchange” contribution in partial sRI-CC2 (Zhao et al., 14 Mar 2025).
3. Observable-specific variants
Several distinct implementations fall under the label partial sRI-CC2. They differ in which contractions are sampled stochastically and in whether the retained deterministic sector is conventional RI or another low-rank factorization.
| Context | Partial-sRI split | Formal scaling |
|---|---|---|
| Ground-state amplitudes and energy | Only 2, 3, and final energy contractions use sRI; 4, 5, 6, 7, Fock build, and DIIS remain deterministic | Effective 8–9 overall iteration cost (Zhao et al., 2022) |
| Ground-state gradients and oscillator strengths | Direct term deterministic; exchange term stochastically hypercontracted | 0 partial-sRI gradient algorithm (Zhao et al., 14 Mar 2025) |
| Excited-state gradients and derivative couplings | Coulomb integrals deterministic; exchange integrals sampled through 1 | Net formal 2 (Zhao et al., 8 Sep 2025) |
| Hybrid THC-sRI-CC2 | Coulomb via THC/ISDF; exchange via sRI | Net formal 3 (Zhao et al., 26 Sep 2025) |
In the ground-state formulation, the stochastic terms are inserted directly into the CC2 residual equations and the correlation energy. Schematically,
4
while the dominant residual terms 5 and 6 are also rewritten in terms of stochastic projected integrals 7 (Zhao et al., 2022).
For gradients and response properties, the orbital-energy denominators are decoupled with a Laplace transform. The 2025 implementation uses a 7-point Laplace quadrature,
8
which turns the denominator into products of one-index exponentials and permits partial stochastic decoupling of the exchange block (Zhao et al., 14 Mar 2025). The excited-state gradient and derivative-coupling formulation uses the same Laplace logic, with 9 stated as typical (Zhao et al., 8 Sep 2025).
The hybrid THC-sRI-CC2 construction modifies only the deterministic half of this partition. The Coulomb-like term is factorized by tensor hypercontraction in an interpolative separable density fitting representation,
0
where interpolation points are chosen by a QRCP procedure and 1. The exchange-like term remains under sRI (Zhao et al., 26 Sep 2025).
4. Scaling regimes and computational trade-offs
The principal motivation for partial sRI-CC2 is the redistribution of asymptotic cost. In conventional RI-based CC2, the Coulomb contribution scales as 2, whereas the exchange contribution scales as 3; the total is therefore 4. In pure sRI-CC2, both Coulomb and exchange terms become 5 if 6 is held constant. In pure THC-CC2, the Coulomb part is reduced to 7 through ISDF factorization, but the exchange part remains 8. In THC-sRI-CC2, Coulomb via THC and exchange via sRI both scale as 9, giving an overall 0 method (Zhao et al., 26 Sep 2025).
The earlier partial schemes occupy an intermediate position. For ground-state energies, partial sRI reduces the dominant exponent from 1 to 2–3, depending on the fraction of terms treated stochastically (Zhao et al., 2022). For ground-state gradients, the mixed direct/exchange partition yields an 4 implementation with a much smaller stochastic prefactor than full sRI (Zhao et al., 14 Mar 2025). For excited-state gradients and derivative couplings, the exchange-only implementation also gives net 5 scaling, because the four-index 6 tensor is replaced by two rank-two tensors 7 and 8, while the Coulomb sector remains deterministic (Zhao et al., 8 Sep 2025).
Measured timings reflect these distinctions. On hydrogen chains in STO-3G, RI-CC2 scales as 9 and partial sRI-CC2 as 0 for fixed 1 (Zhao et al., 2022). For oscillator strengths and gradients, deterministic RI-CC2 is reported as 2 measured, full sRI-CC2 as 3 for oscillator strengths and 4 for gradients, and partial sRI-CC2 as 5 measured (Zhao et al., 14 Mar 2025). In the excited-state gradient and derivative-coupling study, RI-CC2 gradient cost scales as 6, partial sRI gradient cost as 7, RI-CC2 coupling cost as 8, and partial sRI coupling cost as 9; the CPU-time crossover is extrapolated at 0 electrons (Zhao et al., 8 Sep 2025).
The THC-hybridization changes this trade-off again. In numerical timing benchmarks on all-electron olefin chains up to 1 electrons,
2
The crossover where sRI-based methods overtake RI-CC2 occurs around 3 electrons, and THC-sRI-CC2 is 4–5 faster than pure sRI-CC2 for identical stochastic sampling (Zhao et al., 26 Sep 2025).
5. Noise behavior and numerical accuracy
The defining statistical property of sRI is that the ERI is replaced by a Monte Carlo estimator,
6
Accordingly, the standard error in any CC2 observable decays as 7 (Zhao et al., 26 Sep 2025). The same scaling is stated throughout the earlier partial-sRI literature: the stochastic estimator is unbiased, and doubling 8 reduces the standard deviation by 9 (Zhao et al., 2022, Zhao et al., 8 Sep 2025).
Partial sRI-CC2 is motivated by the observation that not all contractions contribute equally to variance. In the exchange-only formulations, only the exchange block is noisy, while the Coulomb block remains exact under deterministic RI. In the THC-sRI-CC2 formulation, stochastic sampling is removed altogether from the Coulomb term, which is described as typically the largest source of variance; only the exchange part retains 0 noise, leading to overall variance reductions of 1–2 at fixed 3 (Zhao et al., 26 Sep 2025).
For gradient comparisons, the literature monitors component-wise deviations
4
In the ground-state gradient work, full sRI requires very large 5 values, for example 6, to bring the statistical error on geometry derivatives below 7 Hartree/Bohr, whereas partial sRI typically needs 8–9 for 0 Hartree/Bohr accuracy (Zhao et al., 14 Mar 2025). The same paper reports that oscillator strengths are less demanding, with 1 giving errors 2 au in 3 (Zhao et al., 14 Mar 2025).
The hybrid THC-sRI-CC2 benchmarks are more specific. For first excitation energies in cc-pVDZ at 4, H5O gives RI 6 eV, sRI-CC2 7 eV with S.D. 8 and absolute error 9, and THC-sRI-CC2 00 eV with S.D. 01 and absolute error 02. For benzene, RI 03 eV, sRI-CC2 04 eV with S.D. 05 and absolute error 06, and THC-sRI-CC2 07 eV with S.D. 08 and absolute error 09 (Zhao et al., 26 Sep 2025). For ground-state gradients at 10, H11O changes from 12, 13 in sRI-CC2 to 14, 15 in THC-sRI-CC2; benzene changes from 16, 17 to 18, 19. For the H20O excited-state gradient, the reported values are 21, 22 for sRI-CC2 and 23, 24 for THC-sRI-CC2 (Zhao et al., 26 Sep 2025).
The exchange-only excited-state derivative formulation shows the same pattern. With partial sRI-CC2 at 25, gradient S.D. is reported as 26 Hartree/Bohr and derivative-coupling S.D. as 27 a.u., whereas complete sRI-CC2 with 28 gives gradient S.D. 29 Hartree/Bohr and derivative-coupling S.D. 30 a.u. (Zhao et al., 8 Sep 2025). This directly counters the misconception that the fully cubic variant is always the practically superior option: for derivatives, lower asymptotic scaling can be offset by a prohibitively large sampling requirement.
6. Applications, implementation practice, and extensions
Partial sRI-CC2 is particularly associated with large-scale excited-state calculations and nonadiabatic dynamics. The 2025 excited-state gradient and derivative-coupling work identifies these quantities as essential ingredients for large-scale nonadiabatic dynamics and states that the partial sRI-CC2 implementation can handle systems with hundreds or even thousands of electrons (Zhao et al., 8 Sep 2025). The THC-sRI-CC2 study likewise emphasizes that the resulting 31 scaling extends the applicability of CC2 for excited-state energy calculations and nonadiabatic dynamics simulations of large molecular systems (Zhao et al., 26 Sep 2025).
Implementation practice follows directly from the selective stochastic partition. The same auxiliary basis sets as deterministic RI-CC2 are reused. Stochastic vectors have length 32 with independently drawn 33 entries. In response and derivative formulations, Laplace points 34 and stochastic vectors 35 are naturally distributed over MPI ranks or threads, while deterministic direct terms are handled through conventional RI contractions (Zhao et al., 14 Mar 2025, Zhao et al., 8 Sep 2025). For nonadiabatic dynamics, recommended practice includes choosing 36 so that fluctuations in forces and couplings are small relative to energy gaps, using the same random seed across nuclear time steps to correlate sampling, monitoring instantaneous standard deviations, and switching to deterministic RI-CC2 or increasing samples locally in critical crossing regions (Zhao et al., 8 Sep 2025).
The most general extension proposed so far is the hybrid low-rank/stochastic strategy introduced in THC-sRI-CC2. The paper states that the “partial sRI” logic extends naturally to CCSD and CCSD(T), EOM-CC and LR-CC, excited-state dynamics and non-adiabatic couplings, and can be combined with stochastic Cholesky, block RNG, control variates, and correlated sampling (Zhao et al., 26 Sep 2025). A plausible implication is that partial sRI-CC2 has become a prototype for selectively stochastic coupled-cluster algorithms more broadly: deterministic low-rank factorizations are assigned to large-amplitude sectors, and stochastic decoupling is reserved for the contractions that are asymptotically dominant but variance-manageable.
In this broader sense, partial sRI-CC2 is defined less by a single equation than by a stable methodological partition: exact or low-rank treatment where stochastic noise is most damaging, and stochastic treatment only where it most effectively removes the high-scaling bottleneck.