BoostMD: Accelerating molecular sampling by leveraging ML force field features from previous time-steps

Lars L. Schaaf, Ilyes Batatia, Christoph Brunken, Thomas D. Barrett, Jules TillyarXiv 2024 · DOI

Introduction

Machine Learning Force Fields (MLFFs) have revolutionized computational chemistry by providing near-quantum mechanical accuracy at a fraction of the cost of traditional ab initio methods. However, they remain significantly slower than classical "ball-and-spring" force fields. In molecular dynamics (MD), simulating meaningful biological processes like protein folding requires millions or billions of femtosecond-scale steps. The primary bottleneck in modern MLFFs is the "feature generation" stage—the complex mathematics required to describe an atom's local environment. Currently, models recalculate these expensive features from scratch at every single step, even though the atomic environment usually changes very little between steps.

Methodology

The authors introduce BoostMD, a surrogate architecture designed to "boost" the speed of a heavy reference model (in this case, MACE-OFF23). The core innovation lies in the observation that internal representations (hidden features) in deep atomistic models are remarkably stable over short timescales.

Feature Reuse and Periodic Evaluation

Instead of running the full MLFF at every step, BoostMD evaluates the heavy reference model periodically (e.g., every $N=10$ steps). For the intermediate steps, a much smaller and faster surrogate model takes over. This surrogate uses the "frozen" features from the last full MLFF evaluation along with the current atomic positions to predict the change in energy and forces.

BoostMD Overview: (a) Stability of hidden features over time; (b) Periodic evaluation workflow; (c) High-level surrogate architecture.

Reference Framing

To ensure the model remains physically consistent and equivariant, BoostMD employs Reference Framing. Using the Kabsch algorithm, the model aligns the current atomic configuration with the reference configuration from the last full evaluation. This ensures that global rotations or translations of the system do not erroneously alter the predicted energy.

Detailed BoostMD architecture showing the Reference Framing process and the Message Passing Neural Network (MPNN) used for fast energy/force prediction.

Experimental Setup

BoostMD was trained and evaluated using the SPICE Dataset (drug-like molecules and peptides) and a Dipeptide MD Dataset generated via the MACE-OFF23 foundation model. To test generalization, the researchers used Alanine Dipeptide as an unseen case, evaluating the model's ability to reconstruct complex physical landscapes.

Key Results

  • 8x Speedup: BoostMD achieved an eight-fold increase in simulation speed compared to the reference MACE model.
  • High Accuracy: Energy and force errors were significantly lower than those of "fast" versions of MACE trained without feature reuse, proving that the surrogate effectively leverages the "intelligence" of the foundation model.
  • Physical Validity: In tests on alanine dipeptide, BoostMD accurately reconstructed the Free Energy Surface, confirming that the speedup does not come at the cost of sampling accuracy.
  • Stability: Simulations remained stable over long timescales (up to 10 nanoseconds or $10^7$ steps), a common failure point for surrogate models.

Discussion and Future Work

While BoostMD introduces minor energy conservation artifacts due to the abrupt feature updates every $N$ steps, this drift is typically negligible in thermostat-driven simulations. Future iterations could incorporate adaptive stepping, where the model automatically detects when features have drifted too far and triggers a reference update. Additionally, on-the-fly training—where the surrogate learns during the simulation—presents a promising path for broader applicability across diverse chemical spaces.

Summary updated

Abstract

Simulating atomic-scale processes, such as protein dynamics and catalytic reactions, is crucial for advancements in biology, chemistry, and materials science. Machine learning force fields (MLFFs) have emerged as powerful tools that achieve near quantum mechanical accuracy, with promising generalization capabilities. However, their practical use is often limited by long inference times compared to classical force fields, especially when running extensive molecular dynamics (MD) simulations required for many biological applications. In this study, we introduce BoostMD, a surrogate model architecture designed to accelerate MD simulations. BoostMD leverages node features computed at previous time steps to predict energies and forces based on positional changes. This approach reduces the complexity of the learning task, allowing BoostMD to be both smaller and significantly faster than conventional MLFFs. During simulations, the computationally intensive reference MLFF is evaluated only every $N$ steps, while the lightweight BoostMD model handles the intermediate steps at a fraction of the computational cost. Our experiments demonstrate that BoostMD achieves an eight-fold speedup compared to the reference model and generalizes to unseen dipeptides. Furthermore, we find that BoostMD accurately samples the ground-truth Boltzmann distribution when running molecular dynamics. By combining efficient feature reuse with a streamlined architecture, BoostMD offers a robust solution for conducting large-scale, long-timescale molecular simulations, making high-accuracy ML-driven modeling more accessible and practical.
BibTeX
@misc{schaaf2024boostmd,
  author = {Lars L. Schaaf and Ilyes Batatia and Christoph Brunken and Thomas D. Barrett and Jules Tilly},
  title = {{BoostMD: Accelerating molecular sampling by leveraging ML force field features from previous time-steps}},
  year = {2024},
  eprint = {2412.18633},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.18633},
}
Figure