Accelerating Long-Term Molecular Dynamics with Physics-Informed Time-Series Forecasting

Hung Le, Sherif Abbas, Minh Hoang Nguyen, Van Dai Do, Huu Hiep Nguyen, Dung NguyenarXiv 2025

TL;DR

PhysTimeMD accelerates long-term molecular dynamics (MD) simulations by framing trajectory prediction as a deterministic, displacement-based time-series forecasting problem. By embedding DFT-parametrized Morse potential constraints into both the training loss and the inference phase, it prevents unphysical atomic overlaps and delivers stable, thousands-of-steps rollouts in minutes instead of days.

What Problem Does This Paper Address?

Molecular dynamics (MD) simulations are essential for understanding atomic-scale interactions in materials science and drug discovery. However, researchers face a harsh tradeoff: highly accurate ab initio MD (AIMD) methods like Density Functional Theory (DFT) are computationally crushing, while faster machine learning (ML) alternatives often fail over long timescales.

Existing sequential ML models typically predict absolute atomic coordinates, making them highly sensitive to spatial distribution shifts. As small errors accumulate during autoregressive rollouts, these models quickly diverge into unphysical states—such as atoms collapsing into each other or flying apart—because they lack explicit physical constraints.

Methods

The authors introduce PhysTimeMD, a framework that shifts the paradigm from predicting absolute positions to forecasting atomic displacements ($\Delta_t$). This ensures the model remains invariant to global coordinate translations and reduces error accumulation.

The core innovation lies in its dual-enforcement of physical laws using a Morse potential function (fitted to DFT data for specific atom-atom pairs):

  1. Physics-Informed Training (PIT): The loss function includes a regularization term ($\mathcal{L}_{phys}$) that penalizes atomic pairs if their predicted distance results in a potential energy exceeding a threshold observed in the training data.
  2. Physics-Informed Inference (PII): During rollout, the model acts as a real-time filter. If a predicted displacement violates the physical energy threshold (e.g., causing an impossible atomic overlap), the framework rejects the step and freezes the affected atoms' positions for that step.

This framework is architecture-agnostic and was evaluated using state-of-the-art time-series backbones like TimeMixer, iTransformer, Mamba, and TSMixer.

Figure 1: Overview of the PhysTimeMD framework. The framework takes as input a sequence of atomic positions over the past H timesteps and converts them into relative displacements for each atom (e.g., ∆i,t and ∆j,t+1 represent the movement vectors of atoms i and j between consecutive steps). Then, it uses a time-series forecaster to predict L-step future displacements. These predic- tions are then integrated to reconstruct future atomic positions (see Sec. 2.1). A physics-informed mechanism, guided by the Morse potential based on the distance between 2 atoms (e.g, di,j), re- fines the predicted configurations through a physics-based loss during training (see Sec. 2.2) and a physics-based correction during inference (see Sec. 2.3), ensuring adherence to physical constraints.

Datasets

The authors generated six distinct datasets using high-fidelity AIMD simulations via the Vienna Ab initio Simulation Package (VASP). The datasets cover diverse solid-state electrolyte and material candidates under varying thermal conditions:

  • $\text{Li}_{10}\text{GeP}_2\text{S}_{12}$ at 600K, 800K, 1000K, and 1200K
  • $\text{Li}_7\text{Ta}_1\text{O}_6$ at 800K and 1000K
  • $\text{LiGaBr}_3$ at 1000K

These datasets feature complex, noisy trajectories due to high-temperature atomic vibrations, providing a rigorous benchmark for long-term stability.

Key Insights and Ideas

  • Displacements over Positions: Modeling relative motion (displacements) rather than absolute coordinates inherently encodes local physical dynamics and protects the model against global spatial shifts.
  • The Power of Dual-Enforcement: Training-time physics losses aren't enough because autoregressive generation naturally drifts out-of-distribution. Pairing the training loss with a hard inference-time safeguard (PII) that actively rejects unphysical steps is what prevents catastrophic divergence.
  • Preserving Material Properties: Beyond standard error metrics (like MSE), PhysTimeMD successfully captures macro-level material properties like the diffusion coefficient, matching ground-truth physics where unconstrained ML models incorrectly predict crystal melting.

Key Results

  • Massive Speedup: PhysTimeMD generates 1,000 simulation steps in approximately 6 minutes on a single NVIDIA A100 GPU. In comparison, traditional DFT simulations require roughly 24 hours on a 96-CPU core node.
  • Superior Accuracy and Stability: Across all tested materials, PhysTimeMD dramatically reduced position errors ($\text{MSE}_r$ and $\text{MAE}_r$) and slashed the physical violation rate ($V_r\%$). For instance, on the 1000K $\text{Li}_{10}\text{GeP}_2\text{S}_{12}$ dataset, it achieved a 0.000% violation rate, compared to 5.41% for a standard TimeMixer and 33.75% for an LSTM baseline.
Table 2: Performance comparison between our method PhyTimeMD and conventional MD baselines. Lower values of MSEr, MAEr, and Vr indicate better performance. Best results are bolded.

Limitations and Future Work

While PhysTimeMD marks a major step forward, the authors note that small prediction errors still accumulate over very long horizons, leading to a gradual degradation of physical fidelity. The current setup demonstrates stable trajectories for up to 1,000 simulation steps. Future work will focus on improving long-range accuracy to enable robust simulations extending beyond 10,000 steps.

Summary updated

BibTeX
@misc{le2025accelerating,
  author = {Hung Le and Sherif Abbas and Minh Hoang Nguyen and Van Dai Do and Huu Hiep Nguyen and Dung Nguyen},
  title = {{Accelerating Long-Term Molecular Dynamics with Physics-Informed Time-Series Forecasting}},
  year = {2025},
  eprint = {2510.01206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.01206},
}
Figure