Align Your Structures: Generating Trajectories with Structure Pretraining for Molecular Dynamics

Aniketh Iyengar, Jiaqi Han, Pengwei Sun, Mingjian Jiang, Jianwen Xie, Stefano Ermon

Generating molecular dynamics (MD) trajectories with AI is notoriously difficult because high-quality dynamic data is scarce and mathematically complex. To address this, researchers have introduced a clever two-stage diffusion framework that first pretrains a model on abundant static 3D molecular structures, and then uses a novel "temporal interpolator" to stitch these frames together into realistic, physically accurate MD trajectories.

The Challenge of AI-Driven Molecular Dynamics

Molecular Dynamics (MD) simulates how atoms and molecules physically move and interact over time, serving as a foundational tool in drug discovery, chemistry, and materials science. However, traditional MD relies on numerically integrating Newton's equations of motion step-by-step, which is incredibly slow and computationally expensive.

Deep generative models, such as diffusion models, have emerged as fast surrogates to generate these trajectories. Yet, they face a massive hurdle in generalization. Existing models struggle to simulate unseen molecules due to two primary factors:

  1. Data Scarcity: Running traditional MD to create massive, diverse training datasets is prohibitively expensive.
  2. Modeling Complexity: Adding the dimension of time to 3D molecular structures creates a highly complex, high-dimensional distribution that is incredibly difficult for a neural network to learn from scratch.

A Two-Stage Solution: Decoupling Space and Time

To solve this, the authors propose EGInterpolator, a framework that decomposes the problem into two manageable steps: learning space (structure), then learning time (dynamics).

The two-stage framework: structure pretraining followed by MD fine-tuning with the EGInterpolator.
  1. Structure Pretraining: First, the researchers train an SE(3)-equivariant diffusion model (called BASICES) on massive datasets of static molecular structures (conformers). This teaches the model the fundamental rules of chemistry—what valid bond lengths, angles, and geometries look like.
  2. Temporal Alignment (MD Fine-Tuning): Next, they freeze the pretrained spatial layers and insert new, trainable "temporal interpolator" blocks. These blocks are trained on the limited MD trajectory data.
  3. The Temporal Interpolator: Instead of forcing the new temporal layers to learn the entire MD distribution directly, the interpolator uses a learnable parameter ($\alpha$) to linearly blend the output of the static structure model with a new temporal attention network. This effectively anchors the dynamic generation to the physically valid static frames.

By separating structural generation from temporal alignment, the model leverages abundant static data to make up for the lack of dynamic data. The temporal network doesn't have to waste capacity learning basic chemistry; it only has to learn how atoms move. Furthermore, the linear interpolation rule strictly maintains SE(3)-equivariance, meaning the model's predictions remain consistent regardless of how the molecule is rotated or translated in 3D space.

Datasets and Evaluation

The model was pretrained on GEOM-QM9 (small molecules) and GEOM-Drugs (larger, drug-like molecules). For MD fine-tuning, the authors used subsets of QM9 and Drugs, simulated using OpenMM to generate 5 ns trajectories. The framework was also extended to the Timewarp dataset (tetrapeptides) and the ATLAS dataset (protein monomers) to test its scalability to larger biomolecules.

The model can be used for unconditional generation (creating random trajectories), forward simulation (predicting the future given a starting frame), and interpolation (finding the transition path between a start and end state).

Key Results

EGInterpolator demonstrated significant improvements over existing baselines across multiple metrics:

  • Superior Physical Accuracy: Across both QM9 and Drugs datasets, EGInterpolator consistently beat the state-of-the-art baseline (GeoTDM). For example, on the Drugs dataset, it achieved a drastically lower Jensen-Shannon Divergence (JSD) for bond lengths (0.142 vs 0.643) and torsions (0.377 vs 0.498), meaning its generated geometries closely matched ground-truth physics.
  • Energy Fidelity: The generated trajectories matched ground-truth energy profiles remarkably well. On the Drugs dataset, the Wasserstein-1 distance for energy distributions was 0.77 for EGInterpolator, compared to a massive 12.76 for GeoTDM.
Quantitative results showing the model's ability to accurately capture bond lengths, torsion angles, and autocorrelation compared to baselines.
  • Excellent Transition Path Sampling: When tasked with interpolating between two distant molecular states, the model generated valid, high-probability transition paths that matched or exceeded the quality of actual MD simulations of the same length.
  • Speed: Generating a 5.2 ns trajectory for the Drugs dataset took ~161 seconds using the full diffusion model, compared to ~584 seconds for traditional OpenMM MD.

Limitations and Future Work

While the model performs exceptionally well on short-to-medium rollouts, errors can begin to compound during very long autoregressive rollouts (e.g., beyond 8 consecutive blocks), leading to slight degradation in sample fidelity over time. Additionally, machine learning methods still lag slightly behind ground-truth MD simulations in strict thermodynamic accuracy.

Future directions include incorporating physics-based regularization (like force- or energy-based guidance) during training or inference to improve long-horizon stability. The authors also plan to extend the framework to even larger N-body systems, such as protein-ligand complexes, paving the way for faster, more scalable molecular simulations.

Summary updated

BibTeX
@inproceedings{iyengar2026align,
  author = {Aniketh Iyengar and Jiaqi Han and Pengwei Sun and Mingjian Jiang and Jianwen Xie and Stefano Ermon},
  title = {{Align Your Structures: Generating Trajectories with Structure Pretraining for Molecular Dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=OKQYMeWlGa},
}
Figure