Abstract
Understanding the transition pathways between stable molecular states—such as protein folding or chemical reactions—is a fundamental challenge in computational chemistry. These "rare events" are difficult to capture using traditional molecular dynamics due to high energy barriers. This paper introduces a novel, zero-shot method for Transition Path Sampling (TPS) by repurposing pre-trained generative models (diffusion and flow matching). By minimizing the Onsager-Machlup (OM) action functional, the proposed framework identifies high-probability pathways without requiring task-specific retraining. The method demonstrates significant speedups, achieving results up to 12x faster than traditional enhanced sampling techniques while maintaining physical accuracy across diverse molecular systems.
Introduction
In the study of molecular systems, the most critical transformations often occur as rare events. A system may spend the vast majority of its time vibrating within a local energy minimum (State A) before a rare fluctuation provides enough energy to cross a barrier into a new configuration (State B). Capturing these transitions is essential for understanding biological function and chemical reactivity, yet standard Molecular Dynamics (MD) simulations are computationally prohibitive for this task.
Existing solutions, such as "enhanced sampling," often rely on the definition of Collective Variables (CVs)—low-dimensional projections of the system's coordinates. However, identifying appropriate CVs for complex systems like proteins is notoriously difficult. While machine learning has recently been applied to this problem, most models require expensive, bespoke training for every new system or transition of interest. This research explores a different path: leveraging the rich structural priors already captured by large-scale generative models to find transition paths in a zero-shot manner.
Methodology: Bridging Generative AI and Statistical Mechanics
The core innovation of this work lies in the mathematical bridge between the "score function" of generative models and the stochastic dynamics of physical systems.
1. The Score-Dynamics Connection
Generative models, particularly Denoising Diffusion models, learn a score function—the gradient of the log-probability of the data distribution. The authors demonstrate that for systems following Boltzmann distributions, this score function is physically equivalent to the drift term in a Stochastic Differential Equation (SDE). Essentially, the generative model acts as a learned physics engine, encoding the forces that govern molecular movement.
2. The Onsager-Machlup (OM) Action
To find the most likely path between two states, the researchers utilize the Onsager-Machlup functional. In physics, this functional calculates the probability density of a specific trajectory taken by a system under stochastic dynamics. By substituting the generative model's score function for the drift term, the OM action becomes a differentiable cost function. Minimizing this action identifies the "Most Probable Path" (MPP) between two endpoints.
3. Zero-Shot Optimization and Parallelization
The method operates without further training. Given two endpoints (e.g., an unfolded and a folded protein state), the process begins with an initial guess generated via interpolation in the model's latent space. This latent interpolation is crucial; unlike linear interpolation in Cartesian space, which often results in unphysical atomic overlaps, latent interpolation provides a structurally plausible starting point. The trajectory is then refined using gradient descent to minimize the OM action. Because the action is a discretized integral, the entire path can be optimized in parallel on a GPU, offering a massive throughput advantage over sequential simulation.
Experimental Evaluation
The authors tested the framework across a spectrum of complexity:
- Müller-Brown Potential: A 2D toy model used to validate the ability to find paths across complex energy landscapes.
- Alanine Dipeptide: A standard 22-atom benchmark for molecular transition sampling.
- Fast-Folding Proteins: Coarse-grained models of five proteins (including Chignolin and Villin) using D.E. Shaw reference simulations as ground truth.
- Tetrapeptides: A dataset of ~3,000 sequences used to evaluate the model's ability to generalize to unseen chemical structures.
Key Insights and Results
Efficiency and Speed
On the alanine dipeptide benchmark, the OM optimization method was 12x faster than Metadynamics and several orders of magnitude faster than traditional Markov Chain Monte Carlo (MCMC) "shooting" algorithms. This efficiency stems from the parallel nature of the optimization and the high-quality starting points provided by the generative model.
Physical Accuracy
The method successfully recovered free energy barriers and reaction rates within an order of magnitude of the true values. For larger proteins like BBA and Chignolin, the generated transition paths closely mirrored the trajectories found in expensive, millisecond-scale reference simulations, but at a fraction of the computational cost.
Robustness to Sparse Data
In a stress test, the authors removed 99% of transition data from the training set. Remarkably, the OM optimization still recovered plausible transition paths. This suggests that the model learns the underlying manifold of stable states so well that it can infer the "bridges" between them even when those bridges were rarely seen during training.
Generalization
The framework demonstrated true zero-shot capability by successfully finding transition paths for tetrapeptide sequences that were entirely excluded from the generative model's training phase. This indicates that the model learned a generalizable representation of peptide physics.
Discussion and Limitations
While highly efficient, the current approach is primarily "mode-seeking." It identifies the single most likely path (the mode) rather than sampling the full distribution of all possible paths (the posterior). Furthermore, the accuracy of the transition path is inherently tied to the quality of the pre-trained generative model; any "hallucinations" or inaccuracies in the model's learned distribution will be reflected in the resulting pathways.
Future work may involve integrating this action-minimization framework into larger foundation models, such as derivatives of AlphaFold-3, or extending the OM functional approach to other generative domains like video and audio synthesis to ensure temporal smoothness and physical consistency.
Summary updated