EdSr: A Novel End-to-End Approach for State-Space Sampling in Molecular Dynamics Simulation

Hujun Cao, Bin LiarXiv 2024 · DOI

Abstract

The molecular dynamics (MD) simulation technique has been widely used in complex systems, but the accessible time scale is limited due to the requirement of small integration timesteps. Here, we propose a novel method, named Exploratory dynamics Sampling with recursion (EdSr), inspired by ordinary differential equation and Taylor expansion formula, which enables flexible adjustment of timestep in MD simulations. By setting up four groups of experiments including simple functions, ideal physical models, all-atom simulations and coarse-grained simulations, we demonstrate that EdSr can dynamically and flexibly adjust the simulation timestep according to the requirements during simulation period, and operate with larger timesteps than the widely used velocity-Verlet integrator. Although the method can not perform perfectly at flexible timestep across all simulation systems, we believe that it provides a promising direction for future studies.

Introduction

Molecular Dynamics (MD) simulations serve as a "high-speed camera" for the nanoworld, capturing atomic movements to understand complex biological and material processes. However, a significant bottleneck exists: to accurately capture high-frequency atomic vibrations, researchers must use extremely small integration timesteps ($\Delta t$), typically in the femtosecond ($10^{-15}$ s) range. Simulating millisecond-scale processes thus requires trillions of steps, making long-range simulations computationally prohibitive.

While machine learning (ML) approaches have emerged to bridge this gap by "skipping" steps, they often suffer from high training data requirements and a lack of flexibility, as models are typically tied to the specific timesteps used during training. This paper introduces EdSr (Exploratory dynamics Sampling with recursion), a training-free mathematical framework that leverages recursive Taylor expansions to enable significantly larger integration timesteps while maintaining accuracy and flexibility.

Methodology: Recursive Taylor Expansion

The core of EdSr is the Taylor expansion formula, which approximates a function's future state based on its current derivatives. Traditional integrators, such as the widely used velocity-Verlet (VV) method, typically utilize only the first few terms of this series. EdSr extends this by employing a recursive process to incorporate higher-order terms effectively.

Key Features of EdSr:

  • Recursive Approximation: Instead of manual calculation of high-order derivatives, EdSr uses a recursive loop to approximate the "infinite" Taylor series, mapping the current state directly to the next state.
  • End-to-End Mapping: The method operates without intermediate force-field fitting or external training data.
  • Time Reversibility: EdSr preserves time-reversal symmetry, a critical property for physical consistency in MD simulations.

Experimental Evaluation

The authors validated EdSr across four benchmarks of increasing complexity:

  1. Mathematical Functions: Testing reconstruction of $\sin x$, $e^{0.1x}$, and polynomials.
  2. Ideal Physical Models: Evaluating performance on the ideal spring, pendulum, and two-body gravitational models.
  3. All-Atom (AA) Simulations: Simulating indole molecule diffusion in beta zeolite using LAMMPS.
  4. Coarse-Grained (CG) Simulations: Modeling ubiquitin protein in water using the Martini force field.
Performance of EdSr on an ideal spring model compared to the velocity-Verlet (VV) integrator and ground truth (GT).

Key Results and Discussion

EdSr demonstrated the ability to handle much larger timesteps than classical integrators. In AA simulations, it remained accurate at 3.0 fs, outperforming VV. In CG protein simulations, it operated successfully at 20.0 fs to 30.0 fs, scales where standard integrators often become unstable or wildly inaccurate.

The "Forward Effect" and Energy Conservation

In two-body gravitational models, the authors observed a "forward effect" where EdSr appears slightly faster than the ground truth as $\Delta t$ increases. While the method excels in simple oscillators, complex systems like protein-water environments present challenges for energy conservation at very large timesteps.

Trajectory and energy conservation analysis of EdSr in a two-body gravitational model.

Efficiency and Parallelism

For simple systems, accuracy plateaus around 30 recursive iterations, while the two-body model converges in just 4 iterations. Although each EdSr step is computationally heavier than a VV step, the ability to take larger leaps through time offers a net gain in efficiency and potential for parallel trajectory calculation frameworks.

Conclusion and Future Work

EdSr provides a promising, training-free alternative for accelerating MD simulations. While challenges remain in energy conservation for high-dimensional systems and reducing per-step computational overhead, its flexibility and accuracy at large timesteps mark a significant step forward. Future research will focus on integrating EdSr into standard software like LAMMPS and exploring its application in chemical reaction dynamics.

Summary updated

BibTeX
@misc{cao2024edsr,
  author = {Hujun Cao and Bin Li},
  title = {{EdSr: A Novel End-to-End Approach for State-Space Sampling in Molecular Dynamics Simulation}},
  year = {2024},
  eprint = {2412.20978},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20978},
}
Figure