Reversible molecular simulation for training classical and machine-learning force fields

Proc Natl Acad Sci U S A. 2025 Jun 3;122(22):e2426058122. doi: 10.1073/pnas.2426058122. Epub 2025 May 28.

Abstract

The next generation of force fields for molecular dynamics will be developed using a wealth of data. Training systematically with experimental data remains a challenge, however, especially for machine-learning potentials. Differentiable molecular simulation calculates gradients of observables with respect to parameters through molecular dynamics trajectories. Here, we improve this approach by explicitly calculating gradients using a reverse-time simulation with effectively constant memory cost and a computation count similar to the forward simulation. The method is applied to learn all-atom water and gas diffusion models with different functional forms and to train a machine-learning potential for diamond from scratch. Comparison to ensemble reweighting indicates that reversible simulation can provide more accurate gradients and train to match time-dependent observables.

Keywords: differentiable; force field; molecular dynamics; reversible.