arXiv:2611.00401physics.chem-phOct 2026

Manuscript Offprint

arXiv:2611.00401

VESPER: Online Learning of Free Energies with a Multi-Tempered Variational Objective

Jay L. Kaplan, Gustavo R. Pérez-Lemus, Mengjian Hua, Juan J. de Pablo, Eric Vanden-Eijnden

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Computing molecular free-energy landscapes over collective variables (CVs) is central to understanding molecular mechanisms across physics, chemistry, and biology, but poses a difficult learning problem without training data available a priori. The microscopic potential is known, yet samples of the marginal CV distribution must be generated by molecular dynamics (MD), whose trajectories can remain trapped in metastable states and rarely cross the free-energy barriers governing conformational changes or chemical reactions. We introduce VESPER, which couples the generation of these samples to neural-network-driven free-energy learning: MD supplies configurations for learning, while the evolving model biases the MD to accelerate exploration and generate further training data. VESPER minimizes a single variational objective that is convex in the free energy and can combine several tempering levels, each using a distinct temperature-boosting factor to flatten the effective free-energy landscape and promote barrier crossing. Every level has the same physical free energy as its minimizer, allowing data from all levels to train one shared model without reweighting. Learning is driven by the difference in mean parameter gradients between biased MD configurations and auxiliary walkers that explore the flattened model directly in CV space. Replica exchange between levels can further accelerate exploration. We prove conditional convergence of the coupled overdamped population dynamics without replica exchange under log-Sobolev and Polyak-Łojasiewicz assumptions. VESPER matches or improves on established enhanced-sampling methods on alanine dipeptide and yields self-consistent free-energy reconstructions from three to six CVs on alanine tetrapeptide. For methane dehydrogenation on Ni(511) with a machine-learned interatomic potential, it recovers two-CV Boltzmann marginals and a reactant-to-saddle free-energy difference along a three-CV path, both qualitatively consistent with the lower-dimensional reference. It also samples RMSD-defined folded and unfolded regions of chignolin while biasing seventeen CVs.

1 Introduction

Molecular dynamics (MD) is a central tool for studying the structure and dynamics of molecular systems in physics, chemistry, and biology. A recurring goal is to compute the free-energy landscape over a set of informative collective variables (CVs), defined as the negative logarithm of their marginal density under the equilibrium distribution, multiplied by the thermal energy kBTk_B T. This landscape quantifies the relative stability of metastable states and the barriers separating them.

Given samples from this marginal, learning it would be a standard estimation problem. In MD, however, the microscopic potential is known, but the relevant configurations must be generated by simulation. Brute-force MD is often computationally prohibitive: barrier-crossing transitions between metastable states can occur on microsecond-to-millisecond timescales, whereas integration requires femtosecond timesteps [23]. Free-energy learning is therefore coupled to a sampling problem, and the model must accelerate the simulation while it is itself being learned.

We introduce VESPER (Variational Extended Space Parallel Ensemble Regression), which learns a neural free energy GθG_\theta while using it to bias the simulations that produce its own training data. VESPER minimizes a single variational objective: a positively weighted sum of components, one per tempering level, each using a distinct temperature-boosting factor to flatten the effective free-energy landscape. Each component is convex in the free energy and is minimized by the physical free energy at every such level. The sum therefore has the same minimizer up to an additive constant, and every level contributes its gradient to one model without reweighting to the physical ensemble. VESPER couples biased microscopic dynamics, persistent auxiliary CV walkers, and free-energy learning through one shared model. Through the CV map s(x)s(x), the same GθG_\theta sets both the MD bias and the tempered auxiliary potential, with no separate free-energy recursion. We also establish conditional convergence of the coupled sampling and learning dynamics. These contributions build on established variational connections: individual components extend the pseudo-spherical family to negative exponents and admit Rényi variational forms [8, 20, 60], and their gradients recover the instantaneous update of well-tempered variationally enhanced sampling (VES), up to scale, when its target is held fixed during differentiation [9, 58, 59].

The gradient of each component is the difference between two averages of ∇θGθ\nabla_\theta G_\theta: one over MD configurations evolving under the microscopic potential plus a bias built from GθG_\theta, the other over persistent auxiliary walkers evolving directly in CV space under a tempered GθG_\theta. At the optimum both populations sample the same flattened distribution, and the walkers interact with the molecular system only through the shared parameters, so no adiabatic limit is needed to identify the free energy, unlike in temperature-accelerated MD and driven adiabatic free-energy dynamics [1, 40]. Replica exchange can additionally carry configurations discovered under strongly flattened biases down the ladder, facilitating barrier crossing along the CVs.

Our main contributions are:

  • A single objective with a common minimizer. We establish that the losses associated with all tempering levels are convex in the free-energy function and share the physical free energy as their minimizer, up to an additive constant. Their positively weighted sum therefore defines one objective for one model, with every level contributing its native gradient without reweighting to the physical ensemble (Proposition 1).

  • Online learning from coupled sampling populations. Biased MD and persistent auxiliary CV walkers generate the configurations needed for learning as the model evolves, without a pre-existing dataset or an adiabatic limit between microscopic and auxiliary coordinates. We prove conditional convergence of the coupled overdamped population dynamics without replica exchange under log-Sobolev and Polyak–Lojasiewicz assumptions, controlling both objective error and sampling lag (Section A.6).

  • Replica exchange on the learned free energy. The Metropolis acceptance probability for exchange between adjacent levels depends only on learned free-energy differences in lower-dimensional CV space, avoiding additional evaluations of the microscopic potential. At a fixed model, the exchange kernel preserves the product of the sampling laws across levels and therefore leaves the population gradient unchanged.

  • Controlled tests of tempering and replica exchange. On the Müller–Brown potential, the tempering ladder balances basin accuracy, measured by KL divergence, with landscape reconstruction, measured by RMSE. On four-well landscapes spanning two to one hundred dimensions, a fixed ladder remains competitive without dimension-specific selection of α\alpha, with replica exchange improving accuracy and convergence in the most challenging high-dimensional case (Section 3.1).

  • Molecular free-energy reconstruction and high-dimensional exploration. On alanine dipeptide, VESPER achieves competitive reconstruction accuracy and convergence relative to the tested enhanced-sampling baselines. On alanine tetrapeptide, agreement between Boltzmann marginals learned with three and six CVs demonstrates dimensional self-consistency. For methane dehydrogenation on Ni(511) with a machine-learned interatomic potential, VESPER learns a three-CV landscape whose two-CV Boltzmann marginals and reactant-to-saddle free-energy difference along a three-CV path are consistent with the lower-dimensional reference. On chignolin, biasing seventeen dihedral CVs produces repeated RMSD-defined unfolding and refolding transitions, demonstrating effective exploration of a high-dimensional molecular CV space (Section 3).

References (61)