Random Batch Methods for classical and quantum interacting particle systems and statistical samplings

Shi Jin, Lei Li · DOI

Abstract

We review the Random Batch Methods (RBM) for interacting particle systems consisting of $N$-particles, with $N$ being large. The computational cost of such systems is of $O(N^2)$, which is prohibitively expensive. The RBM methods use small but random batches so the computational cost is reduced, per time step, to $O(N)$. In this article we discuss these methods for both classical and quantum systems, the corresponding theory, and applications from molecular dynamics, statistical samplings, to agent-based models for collective behavior, and quantum Monte-Carlo methods.

Introduction

Interacting particle systems are fundamental to modeling phenomena across physics, chemistry, and social sciences. Whether simulating the motion of atoms in a fluid, the gravitational dance of stars, or the evolution of wealth in an economy, these models often rely on pairwise interactions. Mathematically, this means every particle $i$ feels a force or influence from every other particle $j$. As the number of particles $N$ increases, the computational complexity scales as $O(N^2)$. For large-scale simulations involving millions of particles, this quadratic growth becomes a "computational bottleneck."

While methods like the Fast Multipole Method (FMM) can reduce complexity to $O(N)$, they are often complex to implement and restricted to specific interaction kernels. Random Batch Methods (RBM) offer a simpler, more universal alternative by leveraging stochastic mini-batching techniques common in machine learning.

The Random Batch Strategy

The core innovation of RBM is to replace the full $O(N^2)$ interaction with a stochastic approximation. At each time step $\Delta t$:

  1. Random Partitioning: The $N$ particles are randomly shuffled and divided into $n$ small batches of size $p$ (e.g., $p=2$).
  2. Local Interaction: Each particle only interacts with others within its assigned batch.
  3. Rescaling: To ensure the expected force remains correct, the interaction strength is scaled by a factor of $(N-1)/(p-1)$.

This approach reduces the per-step cost to $O(N)$. While the variance of the force estimator in a single step is high, the "Law of Large Numbers in Time" ensures that these errors cancel out over multiple steps. The system effectively "sees" the correct average force over a short time interval.

Numerical Validation and Convergence

A critical feature of RBM is that its error bounds are often independent of the total number of particles $N$. This allows for massive scaling without needing to decrease the time step.

Comparison of the density distribution $\rho(y)$ at $t=0$ and $t=3$, demonstrating the convergence of the Random Batch Method (circles) to the reference solution (solid line) over time.

As shown in Figure 1, even if the initial distribution is far from the target, the RBM-driven system converges accurately to the reference solution. The stochastic noise introduced by the random batching acts as a form of "numerical heating," which is naturally managed in systems with dissipation (like those using Langevin thermostats).

Applications

RBM has been successfully applied to a wide range of problems:

  • Molecular Dynamics: Simulating Lennard-Jones fluids and large-scale water systems (up to 30 million atoms) with significant speedups.
  • Statistical Sampling: The RBM-SVGD algorithm applies these principles to Stein Variational Gradient Descent, accelerating Bayesian inference on large datasets like the Covertype benchmark.
  • Quantum Systems: Extending RBM to the $N$-body Schrödinger equation and Quantum Monte Carlo methods has yielded speedups of nearly 30x compared to traditional Metropolis-Hastings approaches for systems like liquid $^4$He.
  • Agent-Based Models: Modeling social dynamics, such as wealth distribution or consensus formation, where random encounters (batches) can be more physically intuitive than global interactions.

Conclusion

Random Batch Methods provide a powerful, easy-to-implement framework for simulating large-scale interacting systems. By transforming $O(N^2)$ problems into $O(N)$ tasks, they enable the study of complex systems that were previously computationally out of reach. Future work continues to explore their application in non-equilibrium systems and the reduction of variance in highly singular potentials.

This paper is based on the review by Shi Jin and Lei Li.

Summary updated

BibTeX
@misc{jin2021random,
  author = {Shi Jin and Lei Li},
  title = {{Random Batch Methods for classical and quantum interacting particle systems and statistical samplings}},
  year = {2021},
  eprint = {2104.04337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.04337},
}
Figure