NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Canonical sampling through velocity-rescaling

Giovanni Bussi, Davide Donadio, Michele ParrinelloarXiv 2008 · DOI

Abstract: We present a new molecular dynamics algorithm for sampling the canonical distribution. In this approach the velocities of all the particles are rescaled by a properly chosen random factor. The algorithm is formally justified and it is shown that, in spite of its stochastic nature, a quantity can still be defined that remains constant during the evolution. In numerical applications this quantity can be used to measure the accuracy of the sampling. We illustrate the properties of this new method on Lennard-Jones and TIP4P water models in the solid and liquid phases. Its performance is excellent and largely independent on the thermostat parameter also with regard to the dynamic properties.

Introduction

In the world of molecular dynamics (MD), researchers often face a frustrating trade-off. Simulating a system at a constant temperature (the canonical or NVT ensemble) usually forces a choice between physical rigor and numerical stability. In their 2008 paper, "Canonical sampling through velocity-rescaling," Giovanni Bussi, Davide Donadio, and Michele Parrinello introduced a method that effectively ended this dilemma. Often referred to as the BDP thermostat (or simply the stochastic velocity-rescaling thermostat), it has since become a standard tool in major MD packages like GROMACS and CP2K.

The Problem: Rigor vs. Stability

To simulate a system at a specific temperature, a thermostat is required. Historically, researchers had three main options, each with a significant drawback:

  1. Andersen/Langevin Thermostats: Physically rigorous but introduce discontinuities in trajectories and lack a conserved quantity to check for integration errors.
  2. Nosé-Hoover Thermostat: Mathematically elegant with a conserved energy, but prone to non-ergodicity, particularly in solid systems or small molecules.
  3. Berendsen Thermostat: Highly stable and easy to use, but fundamentally incorrect as it fails to sample the true canonical distribution of energies.

The authors sought a method as easy to use as Berendsen but as rigorous as Nosé-Hoover, without the ergodicity problems.

Methods: Stochastic Velocity Rescaling

The BDP thermostat evolves simple velocity rescaling by modifying the rescaling factor through a stochastic differential equation. Instead of forcing the kinetic energy to a single value, it evolves toward a target value drawn from the correct canonical distribution. This includes a deterministic term for relaxation (similar to Berendsen) and a properly constructed random force (a Wiener process) to ensure correct statistical fluctuations.

A key theoretical contribution is the definition of an effective energy ($\tilde{H}$). By accounting for the "work" performed by the thermostat, the authors created a quantity that remains constant even in a stochastic simulation.

Comparison of NVE energy and NVT effective energy ($\tilde{H}$) as a diagnostic for integration accuracy at different time steps. At large time steps (40 fs), the drift in $\tilde{H}$ successfully flags numerical inaccuracy.

Key Results and Insights

The method was validated using Lennard-Jones (Argon) and TIP4P water models across both solid and liquid phases.

Fluctuation Accuracy and Parameter Insensitivity

Unlike many thermostats where results depend heavily on the coupling time ($\tau$), the BDP thermostat produces correct energy fluctuations regardless of the relaxation parameter. As shown in the validation against the Berendsen thermostat, BDP maintains the exact analytical square fluctuations for kinetic and potential energy across three orders of magnitude of $\tau$.

Fluctuations in kinetic ($\Delta K^2$) and potential ($\Delta U^2$) energy for Lennard-Jones Argon in solid (a,b) and liquid (c,d) phases. The BDP thermostat (solid line) maintains correct canonical values across all $\tau$, while the Berendsen thermostat (dashed) fails at strong coupling.

Dynamic Integrity and Stability

The thermostat does not "smear" the underlying physics. Vibrational spectra and diffusion coefficients for TIP4P water matched microcanonical (NVE) results almost perfectly, even with strong coupling. Furthermore, the effective energy $\tilde{H}$ serves as a robust diagnostic tool: in tests with dangerously large time-steps (e.g., 40 fs for Argon), $\tilde{H}$ showed a clear, systematic drift, successfully flagging numerical inaccuracies that standard thermostats might hide.

Conclusion

The BDP thermostat provides a rigorous yet simple solution for canonical sampling. While it rescales all particles by a global factor—which may be less efficient for systems with extreme local temperature gradients—the formalism is flexible. It has since been extended to handle subsystems and combined with barostats for constant-pressure (NPT) simulations, cementing its place as a foundational algorithm in modern computational chemistry.

Summary updated

BibTeX
@misc{bussi2008canonical,
  author = {Giovanni Bussi and Davide Donadio and Michele Parrinello},
  title = {{Canonical sampling through velocity-rescaling}},
  year = {2008},
  eprint = {0803.4060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0803.4060},
}

Loading related content...

Figure