Papers
Topics
Authors
Recent
Search
2000 character limit reached

Symmetry-Preserving Random Batch Ewald (SRBE)

Updated 14 July 2026
  • SRBE is a randomized long-range electrostatics algorithm that splits Fourier modes into a deterministic low-frequency sector and a stochastic high-frequency sector.
  • The method enforces a symmetry-preserving mean-field condition to reduce charge and force fluctuations in anisotropic slab geometries by careful parameter tuning (M and P).
  • SRBE achieves O(N) scaling without global FFTs, significantly enhancing performance in simulations of electrochemical systems, such as supercapacitors and membranes.

Searching arXiv for the target paper and closely related context. Symmetry-Preserving Random Batch Ewald (SRBE) is a randomized long-range electrostatics algorithm for constant-potential molecular dynamics in electrochemical systems, introduced for quasi-2D slab geometries with periodicity in x,yx,y and a free boundary in zz (Gao et al., 29 Sep 2025). Its defining feature is a split treatment of reciprocal-space modes: low-frequency modes along the direction perpendicular to electrodes are evaluated deterministically, while the remaining Fourier components are approximated by random batch sampling. In the reported formulation, this construction is designed to reduce charge and force fluctuations, satisfy a symmetry-preserving mean field condition in anisotropic systems with large aspect ratios, and remove the FFT-centered scalability bottleneck that limits conventional constant-potential simulations (Gao et al., 29 Sep 2025).

1. Electrostatic formulation in slab geometry

The method is formulated for a slab system in which the total electrostatic energy is written as

Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.

As in classical Ewald summation, the Coulomb kernel is decomposed through

$\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$

This yields a real-space short-range contribution and a smooth Fourier-space long-range contribution. After zero-padding to a fully periodic box of volume V=LxLyLzV=L_xL_yL_z, the long-range term takes the form

UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.

Here S1(k)S_1(\mathbf k) and S2(k)S_2(\mathbf k) are the structure factors associated with ions and electrode charges. The short-range contribution is described as rapidly decaying, while the reciprocal-space part carries the smooth long-range electrostatics.

The SRBE construction acts entirely within this Fourier representation. Rather than treating all reciprocal modes uniformly, it isolates a subset of low-frequency modes that are geometrically distinguished by the slab anisotropy. This suggests that the method is tailored not merely to accelerate Ewald summation, but to preserve the physically relevant one-dimensional long-range behavior along the nonperiodic direction.

2. Deterministic low-frequency sector and stochastic high-frequency sector

The central decomposition in SRBE is applied to the Fourier sum itself. A low-frequency subset is defined by

I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},

where MM is chosen so that zz0 captures all “dangerous” low-lying zz1-modes, typically

zz2

All remaining zz3 are treated stochastically (Gao et al., 29 Sep 2025).

The deterministic part requires no FFT. Each mode in zz4 is summed directly at zz5 cost, and because zz6 for fixed aspect ratio, the total cost of this part is zz7. The complementary high-frequency remainder is

zz8

This remainder is approximated by an importance-sampling mini-batch of size zz9, with samples

Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.0

In practice, a Metropolis–Hastings sampler is used: one proposes Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.1 from a discrete Gaussian neighborhood, forms Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.2, and accepts with the probability given in Eq. (25) of the paper. The resulting estimator is

Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.3

A common misconception is that random-batch treatment of reciprocal space can ignore geometric anisotropy without qualitative consequences. In the reported slab setting, SRBE is built on the opposite premise: the low-frequency Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.4-axis modes are exceptional and must be protected deterministically.

3. Symmetry-preserving mean field condition

The method’s “symmetry-preserving” designation refers to a specific mean-field requirement in anisotropic slab systems. For the pairwise Fourier force, exact slab-averaging in Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.5 demands

Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.6

A random-batch scheme that neglects the Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.7 modes violates this condition and yields large variance in Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.8 (Gao et al., 29 Sep 2025). SRBE enforces the condition exactly by deterministically summing the subset Uc  =  12Ωρ(r)dr  R2×[0,H]ρ~(r)rrdr.U_c \;=\;\frac12\int_{\Omega}\rho(\mathbf r')\,d\mathbf r'\;\int_{\mathbb R^2\times[0,H]}\frac{\tilde\rho(\mathbf r'')}{|\mathbf r'-\mathbf r''|}\,d\mathbf r''.9 of all $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$0 modes and random-batching only on $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$1. The paper characterizes this as “screening” of low-frequency $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$2-modes, which eliminates the dominant source of variance in both charges $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$3 and forces $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$4.

The variance analysis is stated under a Debye–Hückel assumption. The reported bounds are

$\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$5

and

$\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$6

with

$\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$7

Once $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$8, these variances decay exponentially in $\frac1r \;=\;\frac{\erf(\alpha r)}r\;+\;\frac{\erfc(\alpha r)}r, \qquad \alpha>0.$9 and are V=LxLyLzV=L_xL_yL_z0 in the batch size. This suggests that the parameter V=LxLyLzV=L_xL_yL_z1 is not merely an implementation cutoff; it is the control parameter that restores the correct slab mean field.

4. Algorithmic workflow and implementation

The reported per-step data structures are the positions and velocities of ions V=LxLyLzV=L_xL_yL_z2, electrode Gaussian charges V=LxLyLzV=L_xL_yL_z3, and the structure factors V=LxLyLzV=L_xL_yL_z4 for the current configuration. The workflow given as Algorithm 1 is:

  1. Given V=LxLyLzV=L_xL_yL_z5, choose batch size V=LxLyLzV=L_xL_yL_z6 and low-frequency cutoff V=LxLyLzV=L_xL_yL_z7.
  2. Sample V=LxLyLzV=L_xL_yL_z8 on V=LxLyLzV=L_xL_yL_z9.
  3. Compute the long-range charge-vector entries

UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.0

  1. Update electrode charges UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.1.
  2. For each ion UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.2, compute the short-range force by neighbor list; compute the long-range force by splitting UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.3 deterministically and UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.4 stochastically in one batch of size UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.5.
  3. Integrate positions and velocities with a Langevin or Verlet scheme.
  4. Loop to the next timestep.

Parallelization is described as avoiding a global FFT altogether (Gao et al., 29 Sep 2025). Structure-factor sums over UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.6 are local reductions on each MPI rank. Communication is limited to all-reduce of UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.7 scalars and the small UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.8 contributions to charges and forces. Work per rank remains UF=12Vk04πk2S1(k)+S2(k)2ek2/(4α2).U_{\mathcal F} = \frac1{2V}\sum_{\mathbf k\ne\mathbf0} \frac{4\pi}{k^2} \bigl|S_1(\mathbf k)+S_2(\mathbf k)\bigr|^2 e^{-k^2/(4\alpha^2)}.9 with only S1(k)S_1(\mathbf k)0 extra communication. In that sense, SRBE is an algorithmic response to a communication pattern as much as to a floating-point cost model.

5. Complexity and measured performance

The computational comparison drawn in the paper places SRBE against conventional PPPM/FFT methods. Those methods are reported to cost S1(k)S_1(\mathbf k)1 per step and to incur S1(k)S_1(\mathbf k)2 or worse communication in 3D pencil- or slab-decompositions. By contrast, the SRBE cost decomposition is:

  • near-field neighbor list: S1(k)S_1(\mathbf k)3;
  • low-frequency modes: S1(k)S_1(\mathbf k)4 with S1(k)S_1(\mathbf k)5;
  • high-frequency batch: S1(k)S_1(\mathbf k)6 with S1(k)S_1(\mathbf k)7 for fixed density and target variance.

The resulting overall complexity is S1(k)S_1(\mathbf k)8 (Gao et al., 29 Sep 2025).

The performance measurements are summarized below.

Test SRBE result PPPM result
Weak scaling, 3776 particles per core, up to 343 cores long-range part maintains S1(k)S_1(\mathbf k)9 efficiency degrades to S2(k)S_2(\mathbf k)0
Strong scaling, fixed S2(k)S_2(\mathbf k)1 particles, up to 512 cores two orders of magnitude faster on the long-range portion drops below 1% efficiency by 512 cores
CPU time vs. S2(k)S_2(\mathbf k)2 on 64 cores S2(k)S_2(\mathbf k)3 superlinear cost due to FFT overhead

These measurements are specifically reported for the long-range part in the scaling studies. The article’s broader significance lies in showing that the removal of the global FFT is accompanied by a communication profile that remains favorable at high core counts.

6. Numerical validation, limitations, and application domain

The validation system is a coarse-grained ionic liquid S2(k)S_2(\mathbf k)4 comprising 320 molecules between graphene electrodes containing 3136 C atoms, in a box roughly S2(k)S_2(\mathbf k)5Å (Gao et al., 29 Sep 2025). The reported numerical experiments address both equilibrium and dynamical behavior.

For accuracy, Table 1 compares equilibrium negative-electrode charge mean and standard deviation for truncation parameters S2(k)S_2(\mathbf k)6 and batch sizes S2(k)S_2(\mathbf k)7. Only S2(k)S_2(\mathbf k)8 reproduces the PPPM reference, reported as S2(k)S_2(\mathbf k)9. The case I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},0, identified as classical RBE, fails entirely. Time-series data for atomic charges show that SRBE with I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},1 tracks PPPM, whereas smaller I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},2 produces wild fluctuations. Equilibrium energy per atom versus I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},3 shows that I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},4 suffices for I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},5 accuracy. Ion-density profiles under I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},6, I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},7, and I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},8 match PPPM, including electric double-layer peaks.

These results delimit both the method’s strengths and its tuning requirements. One must choose the truncation parameter

I  =  {(0,0,kz)  :  kz=2πmz/Lz,  1mzM},\mathcal I \;=\;\Bigl\{(0,0,k_z)\;:\;k_z=2\pi m_z/L_z,\;1\le|m_z|\le M\Bigr\},9

to suppress low-MM0 variance. Batch size MM1 trades variance against cost; in practice, the paper states that MM2 is enough for ionic densities MM3. A common misconception would be to attribute SRBE’s performance solely to stochastic approximation. The reported failures at small MM4, especially MM5, indicate that symmetry preservation is the decisive condition in slab geometries.

The stated application range includes large-scale constant-potential molecular dynamics of supercapacitors, batteries, and electrocatalysts, as well as a hierarchy of anisotropic Coulomb systems including nanopores, membranes, and 2D materials. The paper also identifies adaptation to polarizable models and multiscale grand-canonical charge algorithms as potential applications. A plausible implication is that SRBE is best understood as a geometry-aware reciprocal-space sampling strategy for constant-potential electrochemical simulation, rather than as a generic randomized replacement for Ewald summation.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Symmetry-Preserving Random Batch Ewald (SRBE).