Enhanced Diffusion Sampling: Efficient Rare Event Sampling and Free Energy Calculation with Diffusion Models

Yu Xie, Ludwig Winkler, Lixin Sun, Sarah Lewis, Adam Foster, Jose Jimenez-Luna, Tim Hempel, Michael Gastegger, Yaoyi Chen, Iryna Zaporozhets, Cecilia Clementi, Christopher M. Bishop, Frank Noe

TL;DR

This paper introduces "enhanced diffusion sampling," a novel framework that combines the power of diffusion models for efficient sampling with traditional enhanced sampling techniques. This approach dramatically accelerates the calculation of free energies and other properties for rare events in molecular simulations, a long-standing bottleneck in fields like biomolecular modeling.

What Problem Does This Paper Address?

Molecular dynamics (MD) simulations are crucial for understanding molecular behavior, but they face a "sampling problem." This problem has two main components:

  1. Slow Mixing: MD trajectories can get stuck in long-lived states, making it slow to explore the entire configuration space and converge to accurate results.
  2. Rare State Problem: Even if you can generate independent samples (addressing slow mixing), it's computationally prohibitive to sample states with very low equilibrium probabilities. This is critical for calculating properties like protein folding free energies, where the difference between folded and unfolded states can be enormous, meaning unfolded states are incredibly rare.

While recent diffusion models (like BioEmu) have excelled at solving the "slow mixing" problem by generating independent samples, they still struggle with the "rare state" problem. This paper aims to bridge this gap by enabling diffusion models to efficiently sample these rare states and accurately compute associated thermodynamic properties.

Methods

The core innovation is "enhanced diffusion sampling," which integrates traditional enhanced sampling methods into the diffusion model framework. The key idea is to:

  1. Steer Diffusion Models: Instead of just sampling from the equilibrium distribution, the authors modify the diffusion model's sampling process at inference time. This "steering" allows the model to generate samples from biased distributions, effectively guiding it towards rare regions of interest. This is achieved using techniques inspired by score guidance and path-integral reweighting.
  2. Exact Reweighting: After generating biased samples, the authors use established reweighting techniques (like the multistate Bennett acceptance ratio, MBAR) to recover the unbiased equilibrium statistics. This is crucial for obtaining accurate thermodynamic properties.

The paper instantiates this framework into three specific algorithms:

  • UmbrellaDiff: Adapts classical umbrella sampling to diffusion models, allowing for efficient free energy profile calculations along a chosen reaction coordinate.
  • MetaDiff: A batchwise analogue of metadynamics, where bias is progressively added in discrete steps, enabling online diagnostics and early stopping.
  • $\Delta$G-Diff: Uses tilted ensembles to efficiently compute free energy differences between two states, particularly useful for problems like protein folding.

Datasets

The paper uses several types of data for evaluation:

  • Toy Systems: Simple double-well potentials are used to demonstrate the fundamental principles of enhanced diffusion sampling and compare it against unbiased sampling.
  • Protein Folding Landscapes: The authors leverage the BioEmu model, trained on a dataset of proteins from the ProThermDB database, to evaluate their methods on realistic biomolecular systems. They specifically focus on proteins with varying predicted stabilities.

Key Insights and Ideas

  • Bridging the Gap: Diffusion models are great at "mixing" (exploring configurations), but they still need help with "rare events." This work shows how to combine the strengths of diffusion models with established enhanced sampling techniques to tackle both.
  • Steering, Not Just Sampling: The key is not just to generate samples from the diffusion model, but to steer its generative process towards rare regions using biased potentials.
  • Exact Reweighting is Key: The ability to accurately reweight samples from biased distributions is essential for recovering unbiased thermodynamic properties, ensuring the results are physically meaningful.
  • UmbrellaDiff Bypasses Kinetic Traps: Unlike traditional umbrella sampling, UmbrellaDiff doesn't require dynamically connected windows, making it more robust to hidden barriers and kinetic traps.
  • MetaDiff for Online Analysis: By treating each bias update as a well-posed thermodynamic state, MetaDiff allows for continuous monitoring and analysis of free energy estimates, unlike traditional metadynamics which often requires waiting for a "filled" surface.
  • $\Delta$G-Diff for Protein Folding: This method dramatically reduces the computational cost of calculating protein folding free energies, making previously intractable problems feasible.

Key Results

  • Significant Speedup: For protein folding free energy calculations, enhanced diffusion sampling requires orders of magnitude fewer samples than unbiased sampling to achieve sub-kcal/mol accuracy.
  • Scalability: The number of samples needed for enhanced diffusion sampling scales much more favorably with increasing free energy differences compared to unbiased methods. For stable proteins, this advantage is substantial.
  • Accurate Free Energy Estimates: The methods achieve accurate estimates of free energies for toy systems and a benchmark of 18 proteins, demonstrating their practical applicability.
  • Efficiency: Calculations can be performed within GPU-minutes to hours, a significant improvement over traditional MD methods that might require months or years.

Limitations and Future Work

  • Model Dependence: The accuracy of enhanced diffusion sampling relies on the quality of the pretrained diffusion model. Any mismatch between the model and the true physical system can propagate into reweighted estimates.
  • Bias Design: While the methods are powerful, careful design of biasing potentials and overlap diagnostics are still necessary, especially for challenging systems with large RMSD ranges.
  • Dynamical Observables: The current framework focuses on equilibrium properties. Extending it to dynamical observables (like reaction rates) is a promising future direction.
  • Adaptive Schemes: The authors suggest combining their steering framework with adaptive schemes that learn reaction coordinates and optimal bias potentials on the fly, guided by MBAR diagnostics.
  • Energy-Based Models: Incorporating energy-based diffusion models that allow direct evaluation of the potential energy could lead to tighter estimator control and new biasing strategies.

Summary updated

BibTeX
@inproceedings{xie2026enhanced,
  author = {Yu Xie and Ludwig Winkler and Lixin Sun and Sarah Lewis and Adam Foster and Jose Jimenez-Luna and Tim Hempel and Michael Gastegger and Yaoyi Chen and Iryna Zaporozhets and Cecilia Clementi and Christopher M. Bishop and Frank Noe},
  title = {{Enhanced Diffusion Sampling: Efficient Rare Event Sampling and Free Energy Calculation with Diffusion Models}},
  booktitle = {SPIGM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=sEFCI9J8lG},
}
Figure