TL;DR
AlphaFold gave us snapshots of biomolecules, but life happens in motion. Existing generative models try to simulate molecular dynamics by grading predicted 3D structures one frame at a time—causing them to miss the forest for the trees and drift into unphysical shapes over long rollouts. CoDyna introduces a training paradigm that supervises entire collections of structures simultaneously while training on its own self-generated histories, allowing a single unified model to accurately sample both static ensembles and stable, multi-thousand-frame molecular movies.
What Problem Does This Paper Address?
Proteins aren't rigid sculptures; they wiggle, breathe, and reshape themselves to bind drugs and catalyze reactions. Classical molecular dynamics (MD) simulations capture this dance via physics equations, but simulating biologically meaningful timescales can burn thousands of GPU-days for a single system.
Deep generative models have stepped in as fast surrogates to tackle two distinct tasks: conformational sampling (drawing an unordered bag of equilibrium states to map thermodynamic landscapes) and trajectory generation (producing time-ordered movies to capture kinetic transitions).
Here is the catch: in physics, an individual snapshot is rarely what matters—we care about the distributional properties of the whole collection. Yet, standard diffusion and flow-matching models rely on isolated per-sample supervision. Each generated frame is graded strictly against its paired ground-truth frame in a vacuum. Because gradients don't talk to each other across samples, models end up with biased conformational ensembles. Worse, trajectory models trained with "teacher forcing" (conditioning on clean ground-truth history) suffer from exposure bias: at test time, tiny errors in their own predictions compound rapidly, causing proteins to unravel or ligands to fly out of binding pockets.
Methods
The authors build CoDyna by inserting causal temporal-attention layers into a pretrained AlphaFold3-style backbone (Boltz2) and introducing two core innovations:
- Collective Supervision via MMD: Alongside standard per-sample regression, CoDyna adds a loss over a whole batch of $M$ generated structures. It maps structures into an $SE(3)$-invariant physical feature space $\mathcal{Z}$—specifically, local heavy-atom pairwise distances and backbone/side-chain dihedral angles (rotational invariants that ignore arbitrary 3D orientation). It then computes the Maximum Mean Discrepancy (MMD), a kernel-based distance that measures whether two clouds of points come from the same distribution. For conformational ensembles, MMD compares single frames; for trajectories, it compares time-lagged frame pairs $(\mathbf{x}^t, \mathbf{x}^{t+\tau})$, elegantly unifying thermodynamics and kinetics under one formula.
- Collective Rolling Forcing (CRF): Borrowed from streaming video generation, CRF kills exposure bias by making the model practice what it performs. During training, CoDyna rolls out trajectories autoregressively using its own past predictions stored in a two-tier KV cache (recent frames for local motion, plus initial "attention sink" frames to anchor global structure). A sliding window jointly denoises consecutive frames at staggered noise levels, and the collective MMD loss is applied directly to these self-generated rollouts.
Datasets
CoDyna is trained and evaluated across four existing all-atom MD benchmarks spanning three molecular regimes:
- ATLAS: Protein monomers (using standard splits from AlphaFlow).
- MISATO: Protein–ligand complexes (using prior splits from NeuralMD).
- DynaRepo & DynaBench: Protein–protein complexes. Since no prior generative dynamics baseline existed here, the authors combined them into a new 9:1 train/test split (829 training / 93 testing systems) clustered at 40% sequence identity.
Key Insights and Ideas
- Cross-sample gradients without force fields: Previous attempts to couple samples relied on classical force-field energy evaluations during training, which struggle to scale to complex ligands. Measuring MMD on geometric observables achieves cross-sample coupling purely from data—making it seamless to model monomers, ligands, and multi-chain complexes in one architecture.
- Unifying two worlds: By switching the MMD input from individual frames to $\tau$-lagged pairs (at lags 1, 2, 5, and 10), the exact same mathematical machinery supervises both equilibrium states and transition rates. When sampling static ensembles, temporal attention layers simply collapse into per-token MLPs.
- Self-rollout cures structural meltdown: Training on ground-truth history teaches a model short-term mimicry; supervising self-rollouts with distributional losses teaches it how to stay on the physical data manifold indefinitely.
Key Results
- Conformational Sampling (ATLAS): Without templates, CoDyna places 1st or 2nd on 7 of 11 metrics; adding a first-frame template boosts this to 10 of 11 (e.g., achieving a Pairwise RMSD Pearson $r$ of 0.88 vs. 0.62 for the energy-aligned baseline EBA).
- Trajectory Generation (ATLAS & MISATO): CoDyna outperforms specialized baselines on thermodynamic and kinetic fidelity. Notably, for protein–ligand pocket interactions on MISATO, it reaches an RMSF correlation $r$ of 0.659 (vs. 0.540 for PVB), proving it captures genuine pocket–ligand interplay rather than rigid-body jiggling. It also achieves the lowest slow-mode autocorrelation error on ATLAS (0.242 MAE).
- Protein–Protein Dynamics: Achieves a mean Interaction Map Similarity of 0.87 against reference MD (approaching the 0.94 internal consistency ceiling between two halves of the MD simulations themselves).
- Long-Horizon Extrapolation: Over 2,500-frame rollouts, baselines degrade within a few hundred frames—$\beta$-sheets dissolve, scaffolds drift, and ligands disintegrate. CoDyna's error and stereochemical validity curves remain virtually flat from frame 1 to 2,500.
Limitations and Future Work
Because CoDyna learns purely from MD repositories without external physics calculators, it inherits the accuracy limits and biases of the classical force fields used to generate those training datasets. Extending the model to out-of-distribution biomolecular systems or supervising it directly with wet-lab experimental observables remains an open frontier for future work.
Summary updated