Computing equilibrium free energies through a nonequilibrium quench

Kangxin Liu, Grant M. Rotskoff, Eric Vanden‐Eijnden, Glen M. Hocky

Abstract: Calculating equilibrium properties of molecular systems is often hindered by high energy barriers that trap simulations in local minima. Traditional methods like Umbrella Sampling (US) typically provide results for a single temperature and require significant computational resources. This paper presents a nonequilibrium "quench" method that computes equilibrium densities of states by sampling at high temperatures and then cooling the system via dissipative dynamics. We implement this approach in LAMMPS and demonstrate that while quenching alone accurately captures low-energy basins, it struggles with high-energy transition regions. By combining quenching with umbrella sampling (Quench+US), we achieve a highly efficient framework that maps free energy surfaces (FES) across multiple temperatures simultaneously. For alanine dipeptide, this hybrid method reaches convergence in 60 ns, compared to 400 ns for standard US.

Introduction

The "sampling problem" remains a central challenge in molecular dynamics (MD). Rare events, such as protein folding or chemical reactions, occur on timescales far exceeding typical simulation capabilities because systems remain trapped in metastable states. While enhanced sampling techniques like Umbrella Sampling or Metadynamics can overcome these barriers, they often require pre-defined collective variables (CVs) and are typically limited to a single target temperature. If researchers need to understand behavior across a range of temperatures, they must often run multiple independent, expensive simulations.

The Quench Method

The authors propose a framework based on a nonequilibrium quench. The process involves three main steps:

  1. High-Temperature Sampling: Initial configurations are drawn from an equilibrium distribution at a high temperature ($T_0$), ensuring rapid mixing and barrier crossing.
  2. Dissipative Quench: These configurations are evolved using zero-temperature Langevin dynamics, effectively "draining" energy from the system.
  3. Reweighting Estimator: A mathematical formula, incorporating a Jacobian factor to account for phase-space volume changes, maps the nonequilibrium trajectories back to equilibrium properties at a target temperature ($T$).

A custom "fix" for the LAMMPS MD engine was developed to facilitate these dynamics, making the method accessible for standard molecular simulations.

Validation and Results

The method was first validated on a system of $N$-independent harmonic springs, where it proved to be exact. This allowed for the derivation of heuristic rules for quench duration: the unitless time ($\gamma \tau$) should exceed the log of the temperature ratio ($|\ln(T_0/T)|$).

When applied to alanine dipeptide in vacuum, the limitations of pure quenching became apparent. While the method accurately identifies the most stable configurations, it deviates from reference umbrella sampling in high-free-energy regions, particularly when quenching from very high temperatures.

Free energy surface (FES) of alanine dipeptide obtained from a pure quench starting at $T_0 = 1200$ K. While low-energy basins are captured, the correlation plot (c) shows significant deviation from the reference US at higher free energies.

To address this, the authors introduced a hybrid Quench+US approach. This combination leverages the high-temperature mixing of the quench with the targeted exploration of transition regions provided by US. This hybrid scheme provides the best of both worlds: total landscape coverage and rapid convergence.

Performance of the hybrid Quench+US method. (a, b) Comparison of the FES from reference US (800 ns) and Quench+US (43.2 ns). (c) RMSD of the FES shows the hybrid method (red) converges much faster and to a higher accuracy than standard US (blue). (d) Excellent correlation between Quench+US and reference data.

The hybrid method achieved a converged FES in just 60 ns, a nearly seven-fold speedup over the 400 ns required for standard US. Furthermore, because the quench trajectories contain information across a temperature range, the FES at multiple temperatures can be reconstructed from a single simulation set at no additional cost.

Extending to Solvated Systems

For biological molecules in water, a "solute-quench" (s-quench) variant was developed. This approach quenches only the solute degrees of freedom while maintaining the solvent at a constant temperature. This prevents numerical instabilities and the "superheating" of water that would occur if the entire system were quenched from a high $T_0$. Tests on solvated alanine dipeptide showed that s-quench accurately reproduces the FES obtained via standard US, proving the method scales to realistic biological environments.

Conclusion

The nonequilibrium quench framework, especially when combined with umbrella sampling, offers a powerful tool for molecular simulation. It provides significant speedups, is robust across temperature ranges, and is CV-agnostic in its pure form. Future work may explore its application to phase equilibria and the volumes of energy basins in even more complex landscapes.

Summary updated

Abstract

Many methods to accelerate sampling of molecular configurations are based on the idea that temperature can be used to accelerate rare transitions. These methods typically compute equilibrium properties at a target temperature using reweighting or through Monte Carlo exchanges between replicas at higher temperatures. A recent paper demonstrated that accurate equilibrium densities of states can also be computed through a nonequilibrium "quench" process, where sampling is performed at a higher temperature to encourage rapid mixing and then quenched to lower energy states with dissipative dynamics. Here we provide an implementation of the quench dynamics in LAMMPS and evaluate a new formulation of nonequilibrium estimators for the computation of partition functions or free energy surfaces (FESs) of molecular systems. We show that the method is exact for a minimal model of $N$-independent harmonic springs, and use these analytical results to develop heuristics for the amount of quenching required to obtain accurate sampling.= We then test the quench approach on alanine dipeptide, where we show that it gives an FES that is accurate near the most stable configurations using the quench approach, but disagrees with a reference umbrella sampling calculation in high FE regions. We then show that combining quenching with umbrella sampling allows the efficient calculation of the free energy in all regions. Moreover, by using this combined scheme, we obtain the FES across a range of temperatures at no additional cost, making it much more efficient than standard umbrella sampling if this information is required. Finally, we discuss how this approach can be extended to solute tempering and demonstrate that it is highly accurate for the case of solvated alanine dipeptide without any additional modifications.
BibTeX
@article{liu2024computing,
  author = {Kangxin Liu and Grant M. Rotskoff and Eric Vanden‐Eijnden and Glen M. Hocky},
  title = {{Computing equilibrium free energies through a nonequilibrium quench}},
  journal = {The Journal of Chemical Physics},
  year = {2024},
  doi = {10.1063/5.0176700},
}
Figure