Abstract
The equations of classical mechanics can be used to model the time evolution of countless physical systems, from the astrophysical to the atomic scale. Accurate numerical integration requires small time steps, which limits the computational efficiency -- especially in cases such as molecular dynamics that span wildly different time scales. Using machine-learning (ML) algorithms to predict trajectories allows one to greatly extend the integration time step, at the cost of introducing artifacts such as lack of energy conservation and loss of equipartition between different degrees of freedom of a system. We propose learning data-driven structure-preserving (symplectic and time-reversible) maps to generate long time-step classical dynamics and show that this method is equivalent to learning the mechanical action of the system of interest. These models can be learned based on short reference trajectories, and be transferred across thermodynamic conditions and chemical composition. We show that an action-derived ML integrator eliminates the pathological behavior of non-structure-preserving ML predictors, and that the method can be applied iteratively, serving as a correction to computationally cheaper direct predictors.
Introduction
Simulating the time evolution of molecular systems is a cornerstone of modern computational chemistry and physics. However, standard numerical integrators, such as the velocity Verlet algorithm, are constrained by the fastest vibrational modes of the system, typically requiring time steps on the order of 1 femtosecond ($10^{-15}$ s). To observe macroscopic phenomena, millions or billions of these steps are required, leading to immense computational costs.
Recent attempts to use machine learning (ML) to "jump" across larger time steps (e.g., 30-100 fs) have shown promise in speed but fail fundamentally in physics. These "direct" ML predictors often violate energy conservation and fail to maintain thermal equipartition, leading to unphysical artifacts where some degrees of freedom become artificially hot while others freeze.
Methodology: Learning the Action
The core innovation of this work is the shift from predicting states directly to learning a generating function that preserves the geometric structure of phase space—a property known as symplecticity.
By deriving updates for position ($q$) and momentum ($p$) from a learned generating function, the authors ensure the resulting map is perfectly symplectic and time-reversible. Mathematically, this is equivalent to learning the Hamilton-Jacobi action of the system for a specific large time step.
Because this formulation is implicit, the authors employ an iterative "corrector" scheme. A computationally cheap, non-physical "direct" ML model provides an initial guess, which is then refined through fixed-point iterations using the symplectic neural network. This ensures the final predicted state lies on a physically valid manifold, protected by a "shadow Hamiltonian" that prevents long-term energy drift.
Results and Discussion
Stability in Toy Systems
The advantages of a structure-preserving integrator are immediately apparent in simple systems. In a chaotic 3-body problem, standard direct ML predictors quickly diverge, leading to catastrophic energy loss or gain. In contrast, the symplectic integrator maintains a stable energy profile over thousands of time steps, accurately capturing the complex orbital trajectories.
Scaling to Complex Molecular Systems: Liquid Water
The method was rigorously tested on liquid water using a 2 fs time step (compared to a 0.25 fs reference). While direct ML models exhibited significant drift in energy and failed to reproduce structural properties, the symplectic model converged to the correct physics with just a few iterations.
As shown in the figure above, the radial distribution function (RDF) and mean squared displacement (MSD) predicted by the symplectic model align perfectly with the ground-truth molecular dynamics (MD) as the number of iterations ($N_{iter}$) increases. Crucially, the "conserved quantity" (energy) remains stable over long timescales, whereas the direct predictor (blue line) shows a linear, unphysical drift.
Real-World Applications and Efficiency
The framework was further applied to complex materials like GeTe glass and solid/liquid Aluminum. For GeTe, the model successfully captured the logarithmic energy relaxation of the glassy state over nanoseconds—a feat impossible for standard direct predictors at large time steps.
In terms of performance, the symplectic neural network achieved a 6x speedup for Aluminum simulations compared to standard machine-learned interatomic potentials (MLIPs). While the iterative nature of the symplectic map makes each step more expensive than a direct prediction, the ability to take much larger time steps results in a significant net gain in computational efficiency for complex potentials.
Conclusion
By framing the trajectory prediction problem as learning the mechanical action, this work provides a robust path toward long-time-step molecular dynamics that do not sacrifice physical integrity. The resulting symplectic integrators eliminate the pathological drifts common in "black-box" ML models, enabling accurate simulations of complex thermodynamic and dynamical processes at a fraction of the traditional computational cost.
Summary updated