Manuscript Offprint
arXiv:2611.00401VESPER: Online Learning of Free Energies with a Multi-Tempered Variational Objective
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 . 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 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 , the same 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 : one over MD configurations evolving under the microscopic potential plus a bias built from , the other over persistent auxiliary walkers evolving directly in CV space under a tempered . 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 , 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).
2.1 Collective variables and free energy
Let denote a molecular configuration, its microscopic potential energy, and its equilibrium density at inverse temperature . A collective-variable map reduces the -dimensional configuration space to a -dimensional CV domain, typically with . The equilibrium CV density and its associated free energy are
The microscopic potential supplies the forces for simulation, whereas the marginal must be inferred from configurations generated by the simulation. VESPER represents by a differentiable model and uses it to bias the molecular dynamics that generate its training configurations.
2.2 The variational objective
Fix an auxiliary inverse temperature and set . We define the functional
The two terms are the log-partition functions of a tempered version of the model on and of the equilibrium density tilted by the model. They define the auxiliary CV law
and the biased microscopic law together with its CV marginal,

Figure 1: VESPER couples sampling and learning. Each tempering level carries two walker populations, and all levels share one model . Left: physical walkers evolve in configuration space under and are mapped to CV space by . Replica exchange swaps configurations between adjacent levels. Right: auxiliary walkers evolve directly in CV space under . The two populations supply the averages in equation 10, whose -weighted difference updates . The updated model then sets the forces on both populations. At convergence, both populations at level sample the same flattened landscape . During learning, the instantaneous target for the physical CVs is .
The first variation of equation 2 in a direction is , so is stationary exactly when the two CV laws coincide:
The tempering exponent cancels: for every , the stationary point is the physical free energy. The second variation, , is nonnegative, so is convex and its minimizer set is (Proposition S1). At the minimizer,
so both populations explore the same flattened landscape, with barriers reduced by the factor . Near the minimizer, : does not change the target, only where errors are weighted, with smaller giving more weight to high free-energy regions.
For a parametric model , the chain rule gives
Neither expectation requires knowing . The first is over configurations sampled by MD biased with , and the second over walkers sampling the tempered model in CV space (Section 2.4).
2.3 The combined objective
Choose , set , and write for the laws of level . The component is given by equation 2 for . At and, on compact , at , define the endpoint objectives directly under the endpoint conditions in Section A.2:
Here is the uniform law on , and is taken after subtracting the constant from equation 2. The first is the maximum-likelihood objective, up to a constant with : its physical walkers are unbiased. The second is the fully flattened level, whose auxiliary target is . These definitions agree with the corresponding interior limits, renormalized at zero, under the additional moment conditions in the proof of Proposition S2.
Proposition 1 (VESPER objective and minimizer). Let with , and define
with components given by equation 2, or by equation 8 if or . Under the integrability assumptions of Section A.4, is convex in , invariant under addition of a constant, and has minimizer set . In a realizable model family, every minimizer therefore represents up to a constant. For a differentiable model ,
Every level, including strongly flattened ones, thus trains the same model directly, without reweighting between levels. The weights and exponents leave the target unchanged but set how errors are weighted: near the minimizer, .
2.4 Coupled sampling and optimization
We estimate the expectations in equation 10 with two populations at each level, all sharing (Fig. 1). At level , physical walkers evolve under the biased potential , and auxiliary walkers evolve directly in CV space under the tempered potential :
(11)
where are masses, friction coefficients, and independent white noises. The bias force on the molecular system is , with . For fixed , these dynamics have configurational invariant laws and (Section A.3), so their walker averages estimate the two expectations in equation 10. The parameters follow the corresponding gradient flow with the learning rate,
Three features of this construction matter in practice.
- Timescales. Since moves, the walkers track moving targets, and the averages in equation 12 approximate the gradient when evolves more slowly than the walkers relax. Section A.6 makes
this quantitative for the overdamped dynamics: objective error and sampling lag decay together when the learning rate is below a threshold set by the log-Sobolev constants of the sampling laws and a bound on the parameter gradients, so no adiabatic limit is needed.
-
Cost. Auxiliary walkers live in the -dimensional CV space and need one network evaluation per step, so can be large (- in the molecular runs) with cost dominated by the biased MD.
-
Persistence. Auxiliary walkers persist between parameter updates, as in persistent contrastive divergence [56], staying close to equilibrium in the slowly changing tempered model.
Section A.6 derives a conditional convergence bound for the coupled overdamped population dynamics without replica exchange. For , define , where and is the weighted KL sampling lag defined in equation 35. Under assumptions (C1)–(C4), for ,
Thus objective error and sampling lag decay together. Under (C1)–(C3), the same learning-rate restriction gives the time-averaged stationarity bound
In the implementation, equation 12 is discretized: sampling epochs alternate with optimizer steps, and batches may be reused across several steps with within-batch importance weights (Algorithm 1, Section B.7). When equilibrium configurations from are available, the physical average can instead be computed from them with self-normalized weights (Section A.9).
2.5 Replica exchange across tempering levels
The common-minimizer property does not require the levels to communicate. Sampling, however, benefits from it: strongly flattened levels cross barriers readily, while weakly flattened ones, including the physical level, may remain trapped. We therefore couple adjacent levels by replica exchange [2, 18, 55], performed between parameter updates with held fixed. For a symmetric swap proposal between levels and , the Metropolis acceptance probability for physical walkers is
and is identical with , replaced by , . Each swap preserves the fixed-model target product law or , and hence the population-gradient identity (Section A.5). All physical replicas share the same potential and thermostat temperature, so the microscopic energy and Maxwell factors cancel from the exchange ratio. Both acceptance ratios therefore depend only on the learned free-energy differences in CV space. Given the CV values, their evaluation requires only two model values and no additional microscopic-energy evaluation. The tempering-level spacing is controlled by fluctuations of , which can depend on the system and choice of CVs. Physical and auxiliary swaps are proposed independently.
2.6 Related work
Adaptive-bias enhanced sampling. Umbrella sampling, adaptive biasing force, metadynamics and its well-tempered variant, and on-the-fly probability enhanced sampling accelerate MD with restraining or adaptively built CV-dependent biases during the simulation [6, 13, 14, 29, 36, 57]. Neural representations of the free energy or bias have been trained from mean forces, histograms, or both [22, 50, 51, 53, 63]. Reinforced dynamics couples such training to an uncertainty-gated bias [61]. VESPER couples biased MD and persistent auxiliary CV walkers through one physical free-energy model, with all tempering levels contributing to an objective with a common minimizer (Proposition 1). Its closest variational connection is to variationally enhanced sampling (VES) [58], in its well-tempered [59] and neural [9] forms. With bias and target held fixed during differentiation, the VES gradient equals (Section D.1). VESPER gives this instantaneous update an explicit objective in the physical free energy, with the current model directly determining both the molecular bias and the auxiliary target, without a separate recursive free-energy estimate. Neural VES also evaluates target averages by numerical integration or Monte Carlo. Here, persistent auxiliary dynamics form part of the coupled learning system (Section A.6).
Replica ladders with CV biases. Replica exchange improves exploration by swapping configurations between replicas with different temperatures or Hamiltonians [2, 18, 55]. Bias-exchange metadynamics assigns different CVs to different replicas [46]. Replica exchange with collective-variable tempering uses a ladder of well-tempered biases of increasing strength, which is the closest analogue of VESPER's physical population [21]. VESPER uses the ladder for joint free-energy learning as well as configuration exchange: every level supplies its native gradient to one shared model, and the common-minimizer property allows these contributions to be combined without reweighting between levels (Proposition 1).
Extended-variable methods. Temperature-accelerated MD, driven adiabatic free-energy dynamics, and related schemes couple the CVs to hot auxiliary variables through a stiff spring. They recover the free energy in the limit of adiabatic separation between auxiliary and molecular motion [1, 4, 11, 40, 48], possibly followed by mean-force reconstruction [41]. VESPER identifies the physical free energy through its variational minimizer, without requiring an adiabatic limit between auxiliary and molecular coordinates. Its auxiliary walkers explore the tempered model and communicate with the molecular system through shared parameters, without a spring coupling between the two populations.
Energy-based models and tempered objectives. VESPER connects tempered energy-based learning to molecular simulation through the prescribed CV map . Biased microscopic dynamics generate the tilted CV law, while persistent auxiliary walkers sample the tempered model directly in CV space [24, 56]. Both populations train the same physical free-energy model without a pre-existing equilibrium dataset (Section A.3). With and , the single-level objective takes the form of the pseudo-spherical contrastive divergence (PS-CD) objective [60], built on the -cross-entropy [20], continued to negative , and admits a Rényi variational representation [8]. At it reduces to maximum likelihood. For , VESPER uses the negative branch . The factor relatively upweights observations in regions of low model density and high model free energy. At the physical solution, both populations have CV densities proportional to , scaling CV free-energy barriers by and increasing the relative weight of rare regions (Section D). PS-CD estimates its positive term from a fixed dataset and its tempered model term by importance weighting model samples [60]. VESPER realizes both tilted laws through coupled dynamics, extending this variational principle to simultaneous molecular sampling and free-energy reconstruction (Section D). Parallel tempering has also been used to train restricted Boltzmann machines [12, 15], with only the untempered chain entering the gradient. In VESPER every level contributes.
Learned samplers. Boltzmann generators and non-equilibrium transport samplers learn maps or flows that sample a known energy [3, 16, 30, 45], and annealed importance sampling and Jarzynski-type estimators weight paths between distributions [10, 32, 44]. These methods target the full configurational distribution. VESPER instead targets a CV free energy through directly simulated tilted populations.
3 Numerical results
We evaluate VESPER on analytic landscapes and molecular systems to test free-energy reconstruction accuracy, convergence as the number of CVs increases, and exploration of conformational and chemical changes in complex MD systems. The analytic benchmarks provide exact references and controlled comparisons of tempering and replica exchange, while the molecular applications test the method in realistic MD. Complete simulation settings and numerical comparisons are given in the appendices. Molecular simulation times are per replica. Aggregate MD and population budgets are specified in Table 2 and Section C.2.
3.1 Analytic landscapes: tempering and increasing dimension
The Müller–Brown benchmark [42] tests how tempering balances accuracy in low-energy basins with reconstruction over a broader region of the landscape, including high-free-energy regions of low probability mass (Fig. 2A–C). Moderate tempering gives the lowest basin-sensitive KL divergence, while stronger tempering gives the lowest full-domain RMSE. The fixed exchange ladder balances these objectives, reaching a KL divergence of while keeping its mean RMSE within 1% of the lowest tested value. Here the RMSE includes extrapolation beyond the simulation box into a high-energy rim, so it measures broad-domain reconstruction rather than barrier accuracy alone (Section C.1).
We then increase the dimension of a rotated four-well landscape from two to one hundred, keeping the hidden width, walker budget and update schedule fixed (Fig. 2D–F). The same tempering ladder remains competitive across the tested dimensions without selecting a different tempering strength for each problem. At one hundred dimensions, the exchange ladder gives the lowest mean normalized RMSE among the primary comparisons: , compared with for the best tested single level. These results support using a shared ladder across dimensions, with its strongest advantages appearing in the more demanding exploration problem. The landscape, averaging conventions and larger-population controls are specified in Section C.2.
3.2 Alanine dipeptide: comparison with established methods
Alanine dipeptide (ADP) in explicit water tests whether VESPER can reconstruct a molecular free-energy surface with accuracy and convergence comparable to established enhanced-sampling methods. With the two backbone dihedrals as CVs, tempered VESPER explores the periodic landscape and recovers the reference surface [63], while the unbiased control remains concentrated in its initial basin (Fig. 3). At 10 ns per replica, the exchange ladder reaches an RMSE of kJ mol ,
A

B
C
D
E
F
Figure 2: Analytic landscapes. (A) Full-evaluation-domain RMSE in and (B) dimensionless against reduced time on Müller-Brown. Curves show means for single levels and a five-level ladder with (L-RE) and without (L-NRE) exchange, with 1,000 walkers per population. (C) Reference and learned surfaces at on a common 0–20 scale. Red and blue dots are physical and auxiliary walkers. (D–F) Four-well landscape in coordinates, with fixed hidden width and primary walker budget: (D) final SWA full-coordinate NRMSE, (E) , and (F) reduced time to sustained EMA NRMSE below 0.25. Points and error bars show means and sample SDs. Open circles in (D,E) mark values above the plotted range or non-finite divergences. Open markers in (F) indicate at least one run without a sustained crossing.
comparable to kJ mol for SIREN-based combined force-frequency sampling (S-CFF), the strongest tested baseline at that horizon. A single tempered level also performs well. The ladders make only a small change to the endpoint error on this relatively simple low-dimensional landscape.
The VESPER mean error curves first fall below 1 kcal mol and remain there through 10 ns at approximately 2.0 ns for a single level and 1.8–1.9 ns for the ladders. Metadynamics and S-CFF reach this threshold earlier, at 1.3–1.4 ns. VESPER therefore combines comparable late-time accuracy with rapid practical convergence, within about 2 ns, on this benchmark. Full baseline comparisons and scoring conventions are given in Sections B.1 and B.9 and Table 3.
3.3 Alanine tetrapeptide: consistency as the number of CVs increases
Alanine tetrapeptide (ATP) tests whether VESPER retains a consistent molecular description when the number of biased backbone dihedrals increases from three to six. The two models differ only in their input layer, and their two-dimensional Boltzmann marginals retain similar broad
A

B
C
D
Figure 3: Alanine dipeptide. (A) RMSE against the reference surface [63] over 0–10 ns per replica, averaged over three independent runs. VESPER curves are solid and baselines dashed. Gray shading marks errors above the chemical accuracy of 1 kcal mol (4.184 kJ mol ). L-RE, L-NRE: four-level ladders with and without exchange; OPES: on-the-fly probability enhanced sampling [29]; MetaD: metadynamics [36]; VES: neural variationally enhanced sampling [9, 58]; TAMD: temperature-accelerated MD [5, 40]; CFF: combined force-frequency sampling [51]; S-CFF: its SIREN variant [63]. (B) Reference (top left), and VESPER surfaces for (top right), a single level at (bottom left) and the exchange ladder (bottom right), on a common scale. Red and blue dots are physical and auxiliary walkers. (C) ADP with labeled [28]. (D) of the physical walkers over 1–10 ns, colored by the learned free energy.
structure (Fig. 4). Both six-CV ladder variants also produce more consistent learned shapes between 5 and 10 ns than the selected single-level model: the correlations with their own 10 ns estimates are with exchange and without, compared with for the single level. This suggests that multiple learning levels can stabilize reconstruction over the observed interval in the higher-dimensional six-CV model. Without an independent converged six-CV reference, these comparisons establish dimensional and temporal consistency.
3.4 Catalytic methane dehydrogenation on Ni(511)
We next test VESPER on a reactive free-energy landscape described by a machine-learned interatomic potential. For methane on Ni(511) at 700 K, a single tempered level learns a joint surface over the C–Ni and C–H coordination numbers and the carbon atom's lateral position. Its two-CV Boltzmann marginals recover the physisorbed and dissociated basins and the transition region of the lower-dimensional reference [33] (Fig. 5).
The differentiable neural representation also supports post hoc analysis of the joint three-CV landscape using its gradients. A string-method path calculation [17], followed by constrained
A

B
C
Figure 4: Alanine tetrapeptide: consistency across CV dimension. Two-dimensional Boltzmann marginals of (A) the three-CV and (B) the six-CV model, each from the mean surface of the four-level ladder with exchange. Columns: . (C) ATP with bonds in blue and bonds in red.
gradient-flow refinement, connects reactant and product through a fitted saddle. The bounded reactant-to-saddle free-energy difference is eV, consistent with the reference. Including the lateral position directly in the model locates the fitted saddle near the step-edge atoms. Whereas Jin et al. [33] obtained an additional spatial free-energy description through post hoc Spectral-ABF analysis of existing trajectories, VESPER learns the joint three-CV surface during sampling. The route, averaging and projection conventions are specified in Section B.5.
3.5 Chignolin: exploration with seventeen CVs
Finally, we test whether one shared neural free energy can support exploration in the high-dimensional space of chignolin's seventeen backbone dihedrals. For CLN025 in explicit water, a twelve-level ladder continuously trains the joint model during replica exchange, with every level contributing to learning (Fig. 6). The representation is not restricted to a sum of pairwise terms, and the target is not prescribed as a folded/unfolded mixture, extending earlier work on this system [52].
Starting from folded configurations, VESPER explores RMSD-defined folded and unfolded regions. Exploration broadens along the ladder while the unbiased level remains predominantly folded. Auxiliary-sample projections place the free-energy minimum in the folded region and represent a broader range of conformations also visited by MD. VESPER thus learns a joint free energy while exploring conformational changes with seventeen CVs.
4 Discussion and conclusion
We introduced VESPER, which casts free-energy learning and enhanced sampling as a single optimization problem. The free energy is parameterized by a neural network that biases the MD, drives tempered auxiliary walkers in CV space, and is trained on the difference between its mean
A

B
C
D
Figure 5: Methane on Ni(511): three-CV free energy. (A–C) Two-dimensional Boltzmann marginals in the planes (C–Ni, C–H coordination), coordination) and coordination). White line: bounded path on the mean surface obtained by a string-method calculation [17] followed by constrained gradient-flow refinement, from reactant (1) through the saddle (3) to product (5). (D) Trajectory frames corresponding to the labeled points.
A

B
C
D
Figure 6: Chignolin with seventeen dihedral CVs (four independent runs, twelve levels from to 1/18). (A) Mean number of levels holding folded ( RMSD below 0.20 nm), intermediate (labeled Partial) or unfolded (above 0.40 nm) configurations. Shading shows the minimum-to-maximum range across runs. (B) Mean folded fraction at each tempering level. In A and B, occupancies are averaged in 0.2 ns bins and across the four runs. Both panels display the first 25 ns per replica. (C) Free-energy projection at the end of the run from unbiased-level auxiliary walkers reconstructed on a fixed backbone, in radius of gyration and RMSD (dots: MD frames, red, and auxiliary walkers, blue, from all levels). (D) Dihedral marginal in from the same unbiased-level auxiliary walkers. Contours every 5 kJ mol .
parameter gradients over the auxiliary walkers and the biased MD configurations. This difference estimates the gradient of one variational objective, so the simulation generates its own training data as the model improves. Working in an extended space of molecular configurations and auxiliary walkers, VESPER minimizes an explicit objective whose minimizer is the physical free energy itself. The free energy is therefore learned directly, rather than recovered from a bias optimized toward a fixed or recursively updated target, and no adiabatic separation between auxiliary and molecular coordinates is required. Because the objective is convex and every tempering level shares the same global minimizer, all levels train one model without reweighting between them. Strongly flattened levels that cross barriers readily therefore work alongside weakly tempered levels, and when the ladder includes the physical level, , the ladder objective bounds the KL divergence of the model from the true CV distribution. Replica exchange moves configurations along the ladder using only learned free-energy differences in CV space, with no additional evaluations of the microscopic potential. The coupled sampling and learning dynamics also carry a conditional convergence guarantee.
VESPER is effective across a wide range of problems. The analytic landscapes provide exact references for controlled tests. On the Müller–Brown potential, the exchange ladder balances accuracy in the low-energy basins with reconstruction of the broader landscape. On a four-well landscape whose dimension grows from two to one hundred, one fixed ladder stays competitive without returning and shows its clearest advantage at one hundred dimensions. Alanine dipeptide is a standard molecular benchmark with a reference surface for direct comparison. Here VESPER matches or improves on the accuracy of established enhanced-sampling methods, reaching the endpoint error of the best tested baseline, and converges within 2 ns. Alanine tetrapeptide tests whether the learned description stays consistent as more CVs are biased, and the Boltzmann marginals learned with three and six CVs agree. Methane dehydrogenation on Ni(511) extends the tests from conformational to chemical change, using a machine-learned interatomic potential. VESPER learns a reactive three-CV landscape whose two-CV marginals recover the basins and transition region of the reference. Because the model is a differentiable neural network, a string-method calculation with gradient-flow refinement then maps the reaction path directly on the joint three-CV surface learned during sampling. Chignolin tests exploration in a realistic high-dimensional CV space. While biasing seventeen backbone dihedrals, one shared model drives repeated unfolding and refolding. These results connect online free-energy learning to enhanced sampling across conformational and chemical changes. Molecular comparisons retain their per-replica cost: a -level ladder uses times the aggregate MD of a single replica at the same horizon.
VESPER directly accelerates barrier crossing along the chosen CVs. Orthogonal slow motions can still limit exploration by the physical walkers. Our convergence analysis assumes overdamped dynamics and a Polyak–Łojasiewicz condition and excludes exchange, batch reuse and practical optimizers. The high-dimensional molecular results establish self-consistency and exploration without converged free-energy references. The stability controls for batch reuse (Section B.7) add per-system hyperparameters. Natural extensions are joint CV learning, adaptive level weights, and combining online sampling with existing trajectories (Section A.9).
Reproducibility statement
Proofs, protocols, scoring conventions and the algorithm are given in the appendices. VESPER is integrated into PySAGES [62], available at https://github.com/SSAGESLabs/PySAGES. All code, run configurations and analysis scripts will be released publicly at https://github.com/JayLKap/vesper. Generative AI tools assisted with code implementation, experiment execution, figure preparation, literature review, and manuscript editing under author supervision. The authors reviewed the AI-assisted work and take full responsibility for the final content.
References
[1] Jerry B. Abrams and Mark E. Tuckerman. Efficient and direct generation of multidimensional free energy surfaces via adiabatic dynamics without coordinate transformations. The Journal of Physical Chemistry B, 112(49):15742–15757, December 2008. ISSN 1520-6106. doi: 10.1021/jp805039u.
[2] Roman Affentranger, Ivano Tavernelli, and Ernesto E. Di Iorio. A novel Hamiltonian replica exchange MD protocol to enhance protein conformational space sampling. Journal of Chemical Theory and Computation, 2(2):217–228, 2006. doi: 10.1021/ct050250b.
[3] Michael S. Albergo and Eric Vanden-Eijnden. NETS: A non-equilibrium transport sampler. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 1026–1055. PMLR, 2025. URL https://proceedings.mlr.press/v267/albergo25a.html.
[4] Shalini Awasthi and Nisanth N. Nair. Exploring high dimensional free energy landscapes: Temperature accelerated sliced sampling. The Journal of Chemical Physics, 146(9):094108, 2017. doi: 10.1063/1.4977704.
[5] Shitanshu Bajpai, Brian K. Petkov, Muchen Tong, Charlles R. A. Abreu, Nisanth N. Nair, and Mark E. Tuckerman. An interoperable implementation of collective-variable based enhanced sampling methods in extended phase space within the OpenMM package. Journal of Computational Chemistry, 44(28):2166–2183, 2023. ISSN 1096-987X. doi: 10.1002/jcc.27182.
[6] Alessandro Barducci, Giovanni Bussi, and Michele Parrinello. Well-tempered metadynamics: A smoothly converging and tunable free-energy method. Physical Review Letters, 100(2):020603, January 2008. doi: 10.1103/PhysRevLett.100.020603.
[7] Simon Batzner, Albert Musaelian, Lixin Sun, Mario Geiger, Jonathan P. Mailoa, Mordechai Kornbluth, Nicola Molinari, Tess E. Smidt, and Boris Kozinsky. E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. Nature Communications, 13(1):2453, 2022. doi: 10.1038/s41467-022-29939-5.
[8] Jeremiah Birrell, Paul Dupuis, Markos A. Katsoulakis, Luc Rey-Bellet, and Jie Wang. Variational representations and neural network estimation of Rényi divergences. SIAM Journal on Mathematics of Data Science, 3(4):1093–1116, 2021. doi: 10.1137/20M1368926.
[9] Luigi Bonati, Yue-Yu Zhang, and Michele Parrinello. Neural networks-based variationally enhanced sampling. Proceedings of the National Academy of Sciences, 116(36):17641–17647, September 2019. doi: 10.1073/pnas.1907975116.
[10] Davide Carbone, Mengjian Hua, Simon Coste, and Eric Vanden-Eijnden. Efficient training of energy-based models using Jarzynski equality. In Advances in Neural Information Processing Systems, volume 36, pp. 52583–52614, 2023. doi: 10.52202/075280-2290. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/a4ddb865e0a8ca3cca43fd7387b4b0da-Abstract-Conference.html.
[11] Ming Chen, Michel A. Cuendet, and Mark E. Tuckerman. Heating and flooding: a unified approach for rapid generation of free energy surfaces. The Journal of Chemical Physics, 137(2):024102, 2012. doi: 10.1063/1.4733389.
[12] KyungHyun Cho, Tapani Raiko, and Alexander Ilin. Parallel tempering is efficient for learning restricted Boltzmann machines. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), pp. 1–8, 2010. doi: 10.1109/IJCNN.2010.5596837.
[13] Eric Darve and Andrew Pohorille. Calculating free energies using average force. The Journal of Chemical Physics, 115(20):9169–9183, November 2001. ISSN 0021-9606. doi: 10.1063/1.1410978.
[14] Eric Darve, David Rodríguez-Gómez, and Andrew Pohorille. Adaptive biasing force method for scalar and vector free energy calculations. The Journal of Chemical Physics, 128(14):144120, April 2008. ISSN 0021-9606. doi: 10.1063/1.2829861.
[15] Guillaume Desjardins, Aaron Courville, Yoshua Bengio, Pascal Vincent, and Olivier Delalleau. Tempered Markov chain Monte Carlo for training of restricted Boltzmann machines. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics (AISTATS), volume 9 of Proceedings of Machine Learning Research, pp. 145–152, 2010. URL https://proceedings.mlr.press/v9/desjardins10a.html.
[16] Manuel Dibak, Leon Klein, Andreas Krämer, and Frank Noé. Temperature steerable flows and Boltzmann generators. Physical Review Research, 4(4):L042005, 2022. doi: 10.1103/PhysRevResearch.4.L042005.
[17] Weinan E, Weiqing Ren, and Eric Vanden-Eijnden. Simplified and improved string method for computing the minimum energy paths in barrier-crossing events. The Journal of Chemical Physics, 126(16):164103, April 2007. ISSN 0021-9606. doi: 10.1063/1.2720838.
[18] David J. Earl and Michael W. Deem. Parallel tempering: Theory, applications, and new perspectives. Physical Chemistry Chemical Physics, 7(23):3910–3916, 2005. doi: 10.1039/B509983H.
[19] Peter Eastman, Jason Swails, John D. Chodera, Robert T. McGibbon, Yutong Zhao, Kyle A. Beauchamp, Lee-Ping Wang, Andrew C. Simmonett, Matthew P. Harrigan, Chaya D. Stern, Rafal P. Wiewiora, Bernard R. Brooks, and Vijay S. Pande. OpenMM 7: Rapid development of high performance algorithms for molecular dynamics. PLOS Computational Biology, 13(7): e1005659, 2017. doi: 10.1371/journal.pcbi.1005659.
[20] Hironori Fujisawa and Shinto Eguchi. Robust parameter estimation with a small bias against heavy contamination. Journal of Multivariate Analysis, 99(9):2053–2081, 2008. doi: 10.1016/j.jmva.2008.02.004.
[21] Alejandro Gil-Ley and Giovanni Bussi. Enhanced conformational sampling using replica exchange with collective-variable tempering. Journal of Chemical Theory and Computation, 11(3):1077–1085, 2015. doi: 10.1021/ct5009087. Correction: J. Chem. Theory Comput. 11, 5554 (2015), doi:10.1021/acs.jctc.5b00981.
[22] Ashley Z. Guo, Emre Sevgen, Hythem Sidky, Jonathan K. Whitmer, Jeffrey A. Hubbell, and Juan J. de Pablo. Adaptive enhanced sampling by force-biasing using neural networks. The Journal of Chemical Physics, 148(13):134108, 2018. doi: 10.1063/1.5020733.
[23] Jérôme Hénin, Tony Lelièvre, Michael R. Shirts, Omar Valsson, and Lucie Delemotte. Enhanced sampling methods for molecular dynamics simulations. Living Journal of Computational Molecular Science, 4(1):1583, 2022. doi: 10.33011/livecoms.4.1.1583.
[24] Geoffrey E. Hinton. Training products of experts by minimizing contrastive divergence. Neural Computation, 14(8):1771–1800, 2002. doi: 10.1162/089976602760128018.
[25] Richard Holley and Daniel Stroock. Logarithmic Sobolev inequalities and stochastic Ising models. Journal of Statistical Physics, 46(5-6):1159–1194, 1987. doi: 10.1007/BF01011161.
[26] Shinya Honda, Toshihiko Akiba, Yusuke S. Kato, Yoshito Sawada, Masakazu Sekijima, Miyuki Ishimura, Ayako Ooishi, Hideki Watanabe, Takayuki Odahara, and Kazuaki Harata. Crystal structure of a ten-amino acid protein. Journal of the American Chemical Society, 130(46): 15327–15331, 2008. doi: 10.1021/ja8030533.
[27] Viktor Hornak, Robert Abel, Asim Okur, Bentley Strockbine, Adrian Roitberg, and Carlos Simmerling. Comparison of multiple Amber force fields and development of improved protein backbone parameters. Proteins: Structure, Function, and Bioinformatics, 65(3):712–725, 2006. doi: 10.1002/prot.21123.
[28] William Humphrey, Andrew Dalke, and Klaus Schulten. VMD: Visual molecular dynamics. Journal of Molecular Graphics, 14(1):33–38, 1996. doi: 10.1016/0263-7855(96)00018-5.
[29] Michele Invernizzi and Michele Parrinello. Rethinking metadynamics: From bias potentials to probability distributions. The Journal of Physical Chemistry Letters, 11(7):2731–2736, 2020. doi: 10.1021/acs.jpclett.0c00497.
[30] Michele Invernizzi, Andreas Krämer, Cecilia Clementi, and Frank Noé. Skipping the replica exchange ladder with normalizing flows. The Journal of Physical Chemistry Letters, 13(50): 11643–11649, 2022. doi: 10.1021/acs.jpclett.2c03327.
[31] Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. In Proceedings of the 34th Conference on Uncertainty in Artificial Intelligence (UAI), volume R16 of Proceedings of Machine Learning Research, pp. 875–884. PMLR, 2018. URL https://proceedings.mlr.press/r16/izmailov18a.html.
[32] Christopher Jarzynski. Nonequilibrium equality for free energy differences. Physical Review Letters, 78(14):2690–2693, 1997. doi: 10.1103/PhysRevLett.78.2690.
[33] Yezhi Jin, Yinan Xu, Jireh S. García Sánchez, Gustavo R. Pérez-Lemus, Pablo F. Zubieta Rico, Massimiliano Delferro, and Juan J. de Pablo. Free-energy landscapes and surface dynamics in methane activation on Ni(511) via machine learning and enhanced sampling. ACS Catalysis, 15(11):8931–8942, June 2025. doi: 10.1021/acscatal.5c00724.
[34] William L. Jorgensen, Jayaraman Chandrasekhar, Jeffrey D. Madura, Roger W. Impey, and Michael L. Klein. Comparison of simple potential functions for simulating liquid water. The Journal of Chemical Physics, 79(2):926–935, 1983. doi: 10.1063/1.445869.
[35] Wolfgang Kabsch. A solution for the best rotation to relate two sets of vectors. Acta Crystallographica Section A, 32(5):922–923, 1976. doi: 10.1107/S0567739476001873.
[36] Alessandro Laio and Michele Parrinello. Escaping free-energy minima. Proceedings of the National Academy of Sciences, 99(20):12562–12566, October 2002. doi: 10.1073/pnas.202427399.
[37] Kaizhao Liang, Lizhang Chen, Bo Liu, and Qiang Liu. Cautious optimizers: Improving training with one line of code. In International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/ae03bdef276132fae089692445725635-Abstract-Conference.html.
[38] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bkg6RiCqY7.
[39] James A. Maier, Carmenza Martinez, Koushik Kasavajhala, Lauren Wickstrom, Kevin E. Hauser, and Carlos Simmerling. ff14SB: Improving the accuracy of protein side chain and backbone parameters from ff99SB. Journal of Chemical Theory and Computation, 11(8): 3696–3713, 2015. doi: 10.1021/acs.jctc.5b00255.
[40] Luca Maragliano and Eric Vanden-Eijnden. A temperature accelerated method for sampling free energy and determining reaction pathways in rare events simulations. Chemical Physics Letters, 426(1-3):168–175, July 2006. ISSN 0009-2614. doi: 10.1016/j.cplett.2006.05.062.
[41] Luca Maragliano and Eric Vanden-Eijnden. Single-sweep methods for free energy calculations. The Journal of Chemical Physics, 128(18):184110, 2008. doi: 10.1063/1.2907241.
[42] Klaus Müller and Leo D. Brown. Location of saddle points and minimum energy paths by a constrained simplex optimization procedure. Theoretica Chimica Acta, 53(1):75–93, 1979. doi:10.1007/BF00547608.
[43] Albert Musaelian, Simon Batzner, Anders Johansson, Lixin Sun, Cameron J. Owen, Mordechai Kornbluth, and Boris Kozinsky. Learning local equivariant representations for large-scale atomistic dynamics. Nature Communications, 14(1):579, 2023. doi: 10.1038/s41467-023-36329-y.
[44] Radford M. Neal. Annealed importance sampling. Statistics and Computing, 11(2):125–139, 2001. doi: 10.1023/A:1008923215028.
[45] Frank Noé, Simon Olsson, Jonas Köhler, and Hao Wu. Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning. Science, 365(6457):eaaw1147, 2019. doi: 10.1126/science.aaw1147.
[46] Stefano Piana and Alessandro Laio. A bias-exchange approach to protein folding. The Journal of Physical Chemistry B, 111(17):4553–4559, 2007. doi: 10.1021/jp067873l.
[47] Boris T. Polyak and Anatoli B. Juditsky. Acceleration of stochastic approximation by averaging. SIAM Journal on Control and Optimization, 30(4):838–855, 1992. doi: 10.1137/0330046.
[48] Lula Rosso, Peter Mináry, Zhongwei Zhu, and Mark E. Tuckerman. On the use of the adiabatic molecular dynamics technique in the calculation of free energy profiles. The Journal of Chemical Physics, 116(11):4389–4402, 2002. doi: 10.1063/1.1448491.
[49] David Ruppert. Efficient estimations from a slowly convergent Robbins-Monro process. Technical Report 781, School of Operations Research and Industrial Engineering, Cornell University, 1988. URL https://hdl.handle.net/1813/8664.
[50] Elia Schneider, Luke Dai, Robert Q. Topper, Christof Drechsel-Grau, and Mark E. Tuckerman. Stochastic neural network approach for learning high-dimensional free energy surfaces. Physical Review Letters, 119(15):150601, 2017. doi: 10.1103/PhysRevLett.119.150601.
[51] Emre Sevgen, Ashley Z. Guo, Hythem Sidky, Jonathan K. Whitmer, and Juan J. de Pablo. Combined force-frequency sampling for simulation of systems having rugged free energy landscapes. Journal of Chemical Theory and Computation, 16(3):1448–1455, 2020. doi: 10.1021/acs.jctc.9b00883.
[52] Patrick Shaffer, Omar Valsson, and Michele Parrinello. Enhanced, targeted sampling of high-dimensional free-energy landscapes using variationally enhanced sampling, with an application to chignolin. Proceedings of the National Academy of Sciences, 113(5):1150–1155, 2016. doi: 10.1073/pnas.1519712113.
[53] Hythem Sidky and Jonathan K. Whitmer. Learning free energy landscapes using artificial neural networks. The Journal of Chemical Physics, 148(10):104111, 2018. doi: 10.1063/1.5018708.
[54] Vincent Sitzmann, Julien N. P. Martel, Alexander W. Bergman, David B. Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. In Advances in Neural Information Processing Systems, volume 33, pp. 7462–7473, 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/hash/53c04118df112c13a8c34b38343b9c10-Abstract.html.
[55] Yuji Sugita and Yuko Okamoto. Replica-exchange molecular dynamics method for protein folding. Chemical Physics Letters, 314(1-2):141–151, 1999. ISSN 0009-2614. doi: 10.1016/S0009-2614(99)01123-9.
[56] Tijmen Tieleman. Training restricted Boltzmann machines using approximations to the likelihood gradient. In Proceedings of the 25th International Conference on Machine Learning (ICML), pp. 1064–1071, 2008. doi: 10.1145/1390156.1390290.
[57] Glenn M. Torrie and John P. Valleau. Nonphysical sampling distributions in Monte Carlo free-energy estimation: Umbrella sampling. Journal of Computational Physics, 23(2):187–199, February 1977. ISSN 0021-9991. doi: 10.1016/0021-9991(77)90121-8.
[58] Omar Valsson and Michele Parrinello. Variational approach to enhanced sampling and free energy calculations. Physical Review Letters, 113(9):090601, August 2014. ISSN 1079-7114. doi: 10.1103/PhysRevLett.113.090601.
[59] Omar Valsson and Michele Parrinello. Well-tempered variational approach to enhanced sampling. Journal of Chemical Theory and Computation, 11(5):1996–2002, 2015. doi: 10.1021/acs.jctc.5b00076.
[60] Lantao Yu, Jiaming Song, Yang Song, and Stefano Ermon. Pseudo-spherical contrastive divergence. In Advances in Neural Information Processing Systems, volume 34, pp. 22348–22362, 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/bc5fcb0018cecacba559dc512740091b-Paper.pdf.
[61] Linfeng Zhang, Han Wang, and Weinan E. Reinforced dynamics for enhanced sampling in large atomic and molecular systems. The Journal of Chemical Physics, 148(12):124113, 2018. doi: 10.1063/1.5019675.
[62] Pablo F. Zubieta Rico, Ludwig Schneider, Gustavo R. Pérez-Lemus, Riccardo Alessandri, Siva Dasetty, Trung D. Nguyen, Cintia A. Menéndez, Yiheng Wu, Yezhi Jin, Yinan Xu, Samuel Varner, John A. Parker, Andrew L. Ferguson, Jonathan K. Whitmer, and Juan J. de Pablo. PySAGES: flexible, advanced sampling methods accelerated with GPUs. npj Computational Materials, 10(1):35, February 2024. ISSN 2057-3960. doi: 10.1038/s41524-023-01189-z.
[63] Pablo F. Zubieta Rico, Gustavo R. Pérez-Lemus, and Juan J. de Pablo. Efficient sampling of free energy landscapes with functions in Sobolev spaces. The Journal of Chemical Physics, 162(8):084109, 2025. doi: 10.1063/5.0221263.
A Proofs
We retain the notation of the main text, with in energy units and . When considering a single tempering level, we write , and for , and , respectively.
A.1 Convexity and the physical free-energy minimizer
Let be the physical CV density in equation 1. We work on its support , where almost everywhere, and for the chosen assume that
We consider finite-valued measurable free energies for which the two normalizers
are finite and positive.
The auxiliary density, biased microscopic density and its CV marginal are
Proposition S1 (Convexity and the free-energy minimizer). The functional in equation 2 is convex in , invariant under addition of a constant, and has minimizer set . Its minimum is
At this minimum, .
Proof. Each term of equation 2 is convex by Hölder's inequality. Adding a constant to changes the two terms by and , so their sum is unchanged. To identify the minimizer, differentiate in a bounded direction :
The first variation vanishes for every such exactly when . Using equation 18 and equation 19, this condition becomes
To see that this candidate attains the minimum, apply Hölder's inequality once more:
Taking logarithms gives the lower bound in equation 20. Equality holds precisely when the two normalized factors coincide, hence precisely at . This candidate is admissible by equation 16, and substitution gives . Finally, applying the chain rule to equation 21 gives the parameter gradient in equation 7, provided differentiation under the integrals is justified.
A.2 KL control and endpoint limits
Proposition S2 (Loss and KL control). Let . Under the assumptions of Proposition S1 and integrability of and under ,
In particular,
At , assume , , and . With , the extension in equation 8 satisfies
At on compact , assume , , and . With , the zero-level objective satisfies
Proof. Substituting the expressions for and into the two divergences gives
Dividing by and , respectively, and adding cancels the expectations of . Since , the remaining terms are . This proves equation 23, and nonnegativity of either divergence gives equation 24.
At the physical endpoint, the definition in equation 8 gives directly
Since , subtracting the same identity at proves equation 25.
To recover this endpoint as a limit of the interior objectives, assume in addition that for some and for some . The bound then gives by dominated convergence. Writing , the difference quotient decreases to and lies between the integrable functions and . Thus , so the second term of equation 2, , tends to as required.
At the zero endpoint, direct expansion gives
Since , subtraction proves equation 26. Equality holds exactly when , or almost everywhere. For the renormalized limit , additionally assume for some . The same difference-quotient argument under gives , while dominated convergence gives . These are the two terms of the renormalized limit.
A.3 Dual formulation and coupled dynamics
For a probability density on , define its entropy relative to the CV reference measure by . Let be a probability law on configuration space. Define
Proposition S3 (Dual formulation and stationary sampling laws). For and admissible ,
The maximizing laws are and , and the pushforward of is . Suppose the potentials and CV map are smooth, the Langevin equations are well posed, and the boundaries are periodic, reflecting, or confining with sufficient decay. The fixed-model dynamics in equation 11 then preserve the configurational laws and .
Proof. The dual identity follows by expanding the relative entropies:
The two KL terms are nonnegative and vanish at and , proving equation 28. The expansion is immediate when all terms are finite, and the Gibbs variational formula gives the same supremum otherwise.
For fixed and , differentiating with respect to , under the integrals, gives . At the maximizing laws this is . Taking the negative derivative at each level, weighting by , and replacing the expectations by walker averages gives the parameter update in equation 12. Meanwhile, Wasserstein ascent in and , with mobilities and , gives
Their particle realizations are the overdamped sampling equations. Adding momenta and Langevin thermostats yields the inertial realization in equation 11 with the same configurational targets.
The CV marginal of follows from the definition of p: for any bounded test function h,
Thus . To check invariance, note that the potentials and at inverse temperature have Gibbs factors and . These make the probability currents in equation 30 and equation 31 vanish. For inertial dynamics, the corresponding phase-space laws include Maxwell momentum factors: Hamiltonian transport preserves energy and phase volume, while friction and noise preserve the Maxwell factors. Under ergodicity, time averages therefore recover the required expectations.
The sampling laws also hold at , although the dual functional in equation 27 is singular there. The auxiliary potential is then , with invariant density , and the unbiased physical dynamics preserve .
A.4 The common-minimizer ladder
Proposition S4 (Weighted excess loss and level gradients). Assume Proposition S1 at every interior level and the moment and normalizer conditions of Proposition S2 at an endpoint level. For with , the ladder functional is convex and its minimizer set is . Its parameter gradient is given by equation 10. These statements imply Proposition 1.
Proof. For each level, Propositions S1 and S2 give
This includes both endpoints by equation 25 and equation 26. The excess of the combined objective is . Since every is positive, this sum vanishes exactly when every component vanishes, proving the common-minimizer claim. Each component is convex and invariant under constant shifts, so the weighted sum has both properties as well. At either endpoint, these properties follow directly from equation 8: the log-partition term is convex, the expectation is linear, and their shifts cancel. If the model family contains , it attains the same minimum.
Finally, differentiating the finite sum gives
Substitution of equation 7 proves equation 10. At the physical endpoint, differentiating equation 8 gives , assuming differentiation under the integral is justified. This has the same form, since and . At the zero endpoint the gradient is , again assuming justified differentiation, with and . Thus each level contributes expectations under its own sampling laws, with coefficient .
A.5 Replica-exchange acceptance
Proposition S5 (Exchange preserves the level product laws). Fix for which all level distributions are normalizable, and consider replicas of the same physical system at inverse temperature , with auxiliary inverse temperatures . A symmetric proposal to swap two physical configurations, accepted with in equation 15, is reversible with respect to . The analogous auxiliary swap with acceptance is reversible with respect to .
Proof. For an auxiliary swap between levels and , the ratio of the swapped and original product densities is
For a physical swap, write and . The common physical factors and the normalizers cancel, leaving
Thus the two log ratios are
In either case, let denote the swap and the product density. Since , the Metropolis acceptance satisfies . Together with the symmetric proposal, this proves detailed balance. With equal masses and a common thermostat, the Maxwell factors also cancel if momenta are exchanged. Leaving momenta in place preserves the same independent Maxwell law. Composing pair-exchange kernels therefore preserves . A joint symmetric swap of both populations instead uses the sum as its log acceptance ratio.
A.6 Convergence of the coupled population dynamics
We now consider the overdamped population dynamics with continuous parameter descent and no replica exchange. The aim is to control the objective error together with the lag of the sampling distributions behind their changing targets.
First suppose that all levels satisfy , with and . We treat the physical endpoint below. It is convenient to use dimensionless quantities,
so the instantaneous targets are
Let and denote the evolving auxiliary and physical laws. Suppressing the time subscript inside expectations, their equations are
(34)
Here matches the normalization in equation 12. The physical drift is available directly from .
Measure the sampling lag by
These weights will cancel the tempering factors when we differentiate the relative entropies.
Let be finite and attained. We make the following assumptions on an open neighborhood of the initial sublevel :
(C1) The normalizers are finite, is differentiable in and smooth enough in space for equation 34, and . Differentiation under the integrals is justified.
(C2) The evolution is well posed from initial laws with finite relative entropy. Entropy differentiation and integration by parts are valid, with periodic or zero-flux boundaries, or sufficient decay on unbounded domains.
(C3) The instantaneous laws satisfy uniform log-Sobolev inequalities on their respective spaces:
where . With constants positive and uniform on , set .
(C4) The objective satisfies the Polyak–Lojasiewicz inequality on , for some .
In (C3), the physical inequality is required for the full microscopic law. Uniform constants follow, for example, from the Holley–Stroock perturbation lemma when the model gives a uniformly bounded tilt of a reference law satisfying a log-Sobolev inequality [25].
Theorem S6 (Convergence of the two-population ladder). Under , for , the evolution in equation 34 obeys
Thus the objective error and the weighted sampling lag decay together.
Proof. Let e denote the error in the population gradient, and write
By equation 10, the parameter equation is .
To differentiate , first note that normalization of the target densities gives
Integration by parts in equation 34 gives
Multiplying by and , respectively, and summing over levels combines the moving-target terms into . The log-Sobolev inequalities in (C3) therefore give
The gradient error is controlled by the same entropies. For a vector-valued function with , applying Pinsker's inequality to unit scalar projections gives . Applying this to both populations and then using weighted Cauchy-Schwarz yields
(40)
Now let . Combining equation 39 with the parameter equation cancels the mixed gradient terms:
The last inequality uses (C4), and Gronwall's inequality gives equation 36. This estimate also gives . Applying the argument up to a possible first exit from therefore rules out such an exit and proves the estimate for all time.
The physical endpoint. The same argument covers a ladder with , where the last physical replica has the fixed target . The gradient formula in equation 10 still holds under the endpoint moment conditions of Proposition S2, as shown in Proposition S4. To adapt the entropy , keep the terms for and replace the last pair by
Write for this modified entropy and use (C1)–(C4) on an open neighborhood of , with the physical log-Sobolev inequality at level imposed on .
Since does not depend on , its relative entropy has no moving-target term. Thus, with , the entropy estimate becomes
Pinsker's inequality and the same weighted Cauchy–Schwarz estimate give
For , the mixed terms therefore cancel as before, except for the contribution from the last physical replica:
Here we used Young's inequality in the form . For , (C4) then gives
As in the proof above, keeps the trajectory in the region where the assumptions hold. Without (C4), integrating the bound on gives the time-averaged estimate in equation 41, with on the right.
Corollary S7 (Time-averaged stationarity). Under and , for every ,
Proof. The proof above gives before invoking (C4). Integrating over and using proves the bound.
A.7 General reference measures
The same variational argument applies to a general reference measure. Let be sigma-finite and let the probability measure have density -almost everywhere. For , this is the physical CV density . Writing , define
For the physical Lebesgue reference, . When , the normalized residual model is
Proposition S8 (Reference-measure minimizer). For with , the functional in equation 42, restricted to for which both integrals are finite, is minimized exactly at . At the minimum, the two tilted laws coincide with .
Proof. As in the proof of Proposition S1, Hölder's inequality gives
Equality requires the two factors to be proportional, which is equivalent to . At this choice, both normalized densities relative to r equal .
A.8 Positive-weight effective sample size
Proposition S9 (Population normalized ESS). At the population optimum, the fixed-data weights are proportional to . If , their population normalized effective sample size is
For independent with , the empirical quantity converges to this value almost surely. At , the denominator is .
Proof. The scale of the weights cancels in the ratio, so take . Since , we have and , proving equation 44. The assumed second moment allows the strong law of large numbers to be applied to both empirical moments, giving the almost-sure limit.
A.9 Learning from existing data
When equilibrium configurations are already available, their CV values can replace the physical walkers. The physical expectation in equation 7 is then estimated using normalized importance weights
This leads to the following weighted-data consistency result.
Proposition S10 (Weighted-data gradient). Fix and let be independent samples from , with . Suppose and . Then the weights in equation 45 satisfy
Moreover, the corresponding weighted population objective has minimizer .
Proof. Using the CV marginal in equation 19, the required expectation can be written as
The assumed moments allow the strong law of large numbers to be applied to both sample averages. Their ratio converges almost surely because the limiting denominator is positive, proving equation 46.
Together with the auxiliary expectation, this yields the gradient in equation 7 of the original population objective, whose minimizer is by Proposition S1. The exponential weighting is essential: using unweighted samples from p would instead give the functional stationarity condition , equivalently .
The auxiliary walkers still sample , so the resulting update is a weighted-data version of the same learning rule. With and , the objective coincides with the PS-CD/-cross-entropy objective continued to negative [20, 60], with the Rényi variational representation described in Section D [8].
The same ratio argument also yields within-population sample-reuse weights. If a batch was generated at , then the current-to-generating density ratios are proportional to
Normalization within each pool removes the unknown partition functions:
Hence, if and are admissible, is integrable under the current law, and the batch satisfies a law of large numbers under its generating law, the corresponding self-normalized estimators are consistent. Their weight concentration is monitored by the ESS criterion described in Section E.
The single-level update also admits a scalar-objective interpretation in self-consistent well-tempered VES. For and the instantaneous target , differentiating the VES functional while holding t fixed gives
The target convention and the recursive neural VES update are detailed in Section D.1 [9, 58, 59].
B Physical systems: models and protocols
This appendix gives the model, force field, collective-variable and network settings behind Section 3, together with the trust region, readout and gauge conventions used for every number reported there.
Unless stated otherwise, reported estimates are means sample standard deviations across independent runs. Errors are computed for each run before averaging. Free-energy maps formed by averaging model predictions before marginalization are identified explicitly. Molecular times are per physical replica, and aggregate MD is summed over replicas.
B.1 Alanine dipeptide
System and CVs. Explicit-solvent alanine dipeptide, AMBER99SB [27] with TIP3P water [34] and particle-mesh Ewald electrostatics, 298.15 K, 2 fs timestep, bonds to hydrogen constrained. The CVs are the backbone dihedrals , both periodic.
Model and training. is a SIREN [54] with one hidden layer of width 32, and a periodic input embedding. Each replica carries auxiliary walkers with and . Training uses AdamW [38] at learning rate , up to 80 inner iterations per epoch, and epochs of 1000 MD steps, 50 per checkpoint (100 ps). The single replica uses . Both four-level ladders use with equal loss weights. L-RE attempts exchange of physical configurations between adjacent levels every epoch. L-NRE uses the same ladder without exchange. The single replica starts from the same configurations as the OPES runs.
Reference and analysis. The reference surface is the free energy from 100 ns of adaptive-biasing-force sampling by Zubieta Rico et al. [63], on a periodic grid. Figure 3 reports mean-aligned RMSE over this full grid. OPES and TAMD are scored only on cells where their native free-energy estimators are finite. VESPER predictions use parameter averages over the trailing eight available checkpoints, or all available checkpoints at earlier times. RMSE curves average the individual-run errors. The displayed surfaces average the mean-aligned predictions and shift the resulting minimum to zero. Physical points overlaid on the maps are drawn from the last nanosecond and auxiliary points from the final saved populations, balanced across runs and ladder levels.
B.2 Alanine tetrapeptide
System and CVs. Gas-phase Ace-(Ala)-NMe, AMBER99SB [27] without cutoff, 298.15 K, 2 fs timestep, bonds to hydrogen constrained. The three-CV model biases and the six-CV model adds and .
Model and training. is a SIREN with hidden widths (14, 4), and a periodic input embedding, so the two models differ only in the input layer (163 and 247 parameters). Each replica carries auxiliary walkers with . Training uses AdamW at , up to 80 inner iterations, and epochs of 1000 steps, 100 per checkpoint (200 ps). The single replica uses , and the ladder arms are those of ADP. Both models train at a constant step size throughout. Each model is read as the parameter-SWA10 average over checkpoints from 8.2–10.0 ns.
Readout and analysis. Temporal correlations compare trailing ten-checkpoint parameter averages ending at 5 and 10 ns, using windows of 3.2–5.0 and 8.2–10.0 ns, respectively. Pearson correlations are calculated on 262,144 evaluation points pooled from four scrambled Sobol sets spanning the full six-dimensional CV domain. Reported values are the mean and sample standard deviation across three independent runs.
Figure 4 shows physical Boltzmann marginals at 298.15 K. The full physical free-energy predictions from the three independent runs of the four-level exchange ladder are averaged before Boltzmann integration and marginalization. The retained , and planes are complete grids. Six-CV maps integrate omitted coordinates on 32-point axes and the remaining omitted on its 64-point grid, while three-CV maps integrate the omitted on a 256-point grid. Display surfaces are shifted to zero minimum and use a common 0–120 kJ mol scale with 10 kJ mol contours. The three-to-six-CV squared-Pearson correlations over all plane cells are 0.951, 0.895 and 0.890.
B.3 Chignolin
System and CVs. CLN025 [26] in explicit solvent, ff14SB [39] with TIP3P [34], 340 K, 2 fs timestep, with its seventeen backbone dihedrals as CVs. Structural deviation is measured by Cα root-mean-square deviation (RMSD) after Kabsch superposition [35].
Model and training. is a SIREN with hidden widths (48, 24), and a periodic input embedding (2,881 parameters). Twelve replicas span a geometric ladder from to , every level exchanging physical configurations with its neighbors every epoch. Each carries auxiliary walkers. Training uses AdamW at learning rate with a gradient clip of , up to 100 inner iterations and epochs of 5000 steps, 20 per checkpoint (200 ps), at constant step throughout. Four independent runs extend to 26.2 ns per replica, and the readout is the final checkpoint.
Readout and analysis. Frames are saved every 5 ps, 5,240 per level and run. Full-run occupancy fractions and exchange acceptance pool the four runs over 26.2 ns. Every reported unfolding and refolding event falls within the first 25 ns. Folded and unfolded are defined as Cα RMSD below 0.20 nm and above 0.40 nm. An unfolding or refolding event requires the new state to persist for 20 ps and is counted along each configuration's identity. This dwell criterion is not applied to the framewise occupancy estimates.
The time-resolved occupancies in Fig. 6A,B use non-overlapping 0.2 ns bins, each containing 40 saved frames per run. At each saved time, configurations are assigned to their current tempering levels before RMSD classification. For panel B, the within-bin folded fractions at each level are averaged equally across the four runs. For panel A, each run's per-level fractions are summed to give the time-averaged numbers of levels in each state. The lines show their mean and the bands their minimum-to-maximum range across runs. Both panels display bins in the first 25 ns. The reported 99.3% unbiased-level occupancy uses the full 26.2 ns trajectory.
The learned surfaces are estimated from 25,000 auxiliary walkers of the unbiased level drawn at random from each run at the readout (100,000 in all), and the MD frames shown in Fig. 6C come from the last nanosecond. For the radius-of-gyration and RMSD map, each walker's dihedrals are placed on a backbone with the bond lengths, bond angles, peptide and Pro4 of the native structure, and (), with an adaptive Gaussian kernel density estimate. The dihedral maps are product von Mises kernel density estimates, compared after mean alignment with the same estimate on the unbiased level's MD frames where the MD free energy is below 10 kJ mol. Over , and , the learned minimum lies 0.42, 0.07 and 0.19 rad from the MD minimum, at points where the MD free energy is 1.3, 0.2 and 0.5 kJ mol above its minimum, with RMS differences of 1.9, 2.2 and 2.0 kJ mol. Accepted exchanges permute configurations between levels, so every configuration keeps its identity (Section A.5).
B.4 Catalytic methane dehydrogenation
System and CVs. Methane on stepped Ni(511) at 700 K uses an Allegro machine-learned interatomic potential [43], deployed through the NequIP toolchain [7] and driven by OpenMM [19]. The CVs are the two coordination numbers of Jin et al. [33] and the periodic fractional coordinate of the carbon atom along the first surface lattice vector. The system has 85 atoms, 25 held fixed,
Table 1: Levels per molecular system: tempering exponents , number of levels , and walkers per level.
| System | Physical | Auxiliary | ||
|---|---|---|---|---|
| ADP | 0.1, 0.05, 0.02, 0.01 | 4 | 1 | |
| ATP, | 0.1, 0.05, 0.02, 0.01 | 4 | 1 | |
| Methane/Ni(511) | 0.05 | 1 | 1 | |
| Chignolin | 12 | 1 |
in a triclinic cell. A soft restraint keeps the system in the CV ranges: , CNi , and CH .
Model and training. is a SIREN with hidden widths (14,4) and . One replica at carries auxiliary walkers, using AdamW at learning rate , with up to 100 inner iterations and epochs of 5000 steps, 20 per checkpoint, at a 0.25 fs timestep, so one checkpoint is 25 ps. Training uses a gradient clip of , , , Langevin friction and a constant step. The reweighted inner step uses the full trust region of Section B.7. Three independent runs extend to checkpoint 300. Each checkpoint-300 physical free-energy prediction uses deployed parameter EMA decay 0.9.
B.5 Catalysis free-energy projections
With the periodic fractional coordinate and the C–Ni and C–H coordination numbers, the two-dimensional free energies shown in Fig. 5 are Boltzmann marginals of the equal-weight mean of the three gauge-aligned checkpoint-300 EMA predictions,
at K, with ordinary measure in the original CV coordinates and integration box , while the visible route uses . Each map is shifted to its own minimum for display. The route is initialized by a string-method calculation on the differentiable mean surface and refined by constrained gradient flow, resolving contacts with the route bounds. This yields a locally resolved route within the stated box, but global path optimality is not established. The physisorbed representative is constrained at the lower C–Ni route bound, and the fitted saddle is at , near the step-edge atoms at . The route's eV is a bounded surface difference. Its 0.25 eV uncertainty is the sample standard deviation of the individual model differences evaluated at the same reactant and saddle points on the mean-surface route.
B.6 Ladder configuration by system
Table 1 lists the levels of every molecular system. Each level is one physical trajectory. The auxiliary walkers enter only the training loss. The single-level runs of ADP and ATP use , and ADP also has a single-level run at .
B.7 Reweighted inner steps and the step-size controller
Within an epoch the walker samples generated under are frozen while several parameter steps are taken and reweighted by self-normalized importance sampling at every step (Section 2.4). A trust region bounds the log-weights: a soft threshold on their 95th percentile, a hard threshold on their maximum, and a floor of 0.2 on the effective sample size of the pool. Exceeding the hard threshold or falling below the floor ends the epoch and forces fresh trajectory data. Exceeding the soft threshold multiplies the parameter step by with . It is used on ADP, ATP and catalysis. Chignolin trains on fresh samples only.
On ADP, the inner-iteration budget and learning rate are governed by a sample-based controller rather than a predefined schedule. The controller latches a decay phase when cumulative relative parameter change across checkpoints exceeds a budget of 160%, then multiplies the learning rate by 0.95 and the inner-iteration count by 0.7 per checkpoint, flooring the count at 5. Once the count reaches its floor and the learning rate is below 5% of its initial value, a final phase continues the decay to a floor of 0.3% and deploys an exponential moving average (EMA) of parameters with decay 0.99 per epoch. ATP uses constant-step training.
B.8 Readout, optimizer settings and RMSE gauge
Models use system-specific parameter readouts. ATP predictions use a uniform average of the last ten checkpoints, and ADP uses the last eight available checkpoints. At the reported horizon these ADP parameters have already undergone EMA smoothing. These are the Polyak–Ruppert or stochastic-weight-averaging (SWA) readouts [31, 47, 49]. Catalysis uses the deployed EMA readout with decay 0.9 at checkpoint 300, and chignolin reports its final checkpoint (26.2 ns per replica). AdamW [38] uses decoupled weight decay in every run, and the peptide runs apply the cautious mask of Liang et al. [37], which zeroes coordinates whose Adam step is not descent-aligned with the current gradient and rescales the rest.
RMSE is reported after removing the additive constant. Mean alignment, used for ADP, removes the mean difference between the learned and reference surfaces on the scored region. Flat-surface baselines, where reported, use the same region and gauge. ATP dimensional-consistency comparisons use complete retained planes, squared-Pearson correlations and mean-aligned RMSEs after physical Boltzmann marginalization.
B.9 Baseline settings
The ADP and ATP comparisons in Sections 3.2 and 3.3 use the Hamiltonians and CVs specified above and a 2 fs timestep. The no-exchange control retains the ladder's architecture and population sizes. In ADP and ATP, auxiliary moves swap whole populations and were accepted in at most 0.5% of epochs over 10 ns. Most accepted exchanges transport physical configurations. ADP VESPER single-replica, OPES and TAMD runs share initial configurations. Means and sample standard deviations use the trajectories that reach the reported horizon.
OPES uses bias factor 100 and barrier parameter 40 kJ mol [29]. Metadynamics deposits 1.2 kJ mol hills every 500 steps [36], and TAMD uses UFEDMM [5]. Readouts are the OPES kernel density, the negative metadynamics hill sum, and the TAMD auxiliary-variable histogram at its own temperature. CFF [51] and its SIREN variant (S-CFF) [63] use their saved native free-energy functions. ADP errors use the full-grid convention for methods with finite estimates and the native finite-estimator-cell convention for OPES and TAMD.
Neural VES. We test this method using the released code [9]. The bias factor is 100, with 50 grid bins per periodic CV and ReLU widths 48–24–12 for ADP. Adam starts at . Parameter and target updates occur every 500 MD steps with the released system-specific learning-rate controllers. Errors use the native free-energy exports.
Table 2: Replicas , simulated time per replica at the readout, and aggregate MD per run ( times the time per replica).
| System | Method | ns/replica | aggregate ns | Runs | |
|---|---|---|---|---|---|
| ADP | VESPER, or 1 | 1 | 10 | 10 | 3 |
| ADP | VESPER ladders (L-RE, L-NRE) | 4 | 10 | 40 | 3 |
| ADP | Each baseline | 1 | 10 | 10 | 3 |
| ATP, | VESPER, | 1 | 10 | 10 | 3 |
| ATP, | VESPER ladders (L-RE, L-NRE) | 4 | 10 | 40 | 3 |
| Methane/Ni(511) | VESPER, | 1 | 7.5 | 7.5 | 3 |
| Chignolin | VESPER ladder, to 1/18 | 12 | 26.2 | 314.4 | 4 |
Table 3: Values reported in the main text for the molecular systems. ADP: 10 ns per replica, SWA8 readout, three independent runs. ATP: 10 ns, SWA10, three independent runs, mean surfaces for the plane comparisons. Methane: 7.5 ns, EMA readout, three independent runs. Its eV entry is the route value on the mean surface with the sample SD evaluated at fixed route points. Chignolin: event counts use the first 25 ns per replica and the unbiased-level occupancy uses the full 26.2 ns trajectory, four independent runs. RMSEs are mean sample SD over runs.
| System | Quantity | Value |
|---|---|---|
| ADP | RMSE, VESPER (kJ mol) | |
| ADP | RMSE, VESPER | |
| ADP | RMSE, L-RE / L-NRE | |
| ADP | RMSE, MetaD/VES/S-CFF | |
| ATP | , 3-CV vs 6-CV marginals, three planes | |
| ATP | RMSE of the same planes (kJ mol) | |
| ATP | , 6-CV, 5 vs 10 ns, L-RE/L-NRE/single | |
| ATP | vs 3-CV on , L-RE/L-NRE/single | |
| ATP | vs 3-CV on , L-RE/L-NRE/single | |
| ATP | vs 3-CV on , L-RE/L-NRE/single | |
| Methane/Ni(511) | , physisorbed to transition region (eV) | |
| Chignolin | Unfolding / refolding events | |
| Chignolin | Unbiased-level occupancy, full 26.2 ns | 99.3% |
| Chignolin | Exchange acceptance between adjacent levels | 30–93% |
| Chignolin | Unfolded levels outnumber folded from | 3.9 ns |
| Chignolin | minimum offset from unbiased MD | 0.07 rad |
B.10 Compute
Table 2 lists the simulated time per replica at the readout and the resulting aggregate MD per run. Several runs continued beyond the readout, and the table counts MD up to it. The ADP baselines are OPES, metadynamics, TAMD, neural VES, CFF and S-CFF. VESPER, CFF and S-CFF ran on NVIDIA H100, H200, L40S and RTX PRO 6000 GPUs, and the other baselines on CPUs, so wall-clock times are not comparable across methods. For scale, one chignolin run takes about 100 h on one H100 GPU, which runs all twelve replicas, and one methane run takes about 140–180 GPU-hours, mostly on L40S GPUs.
B.11 Reported molecular results
Table 3 collects the values quoted in Sections 3.2 to 3.5, with the readout behind each.
C Controlled landscapes
C.1 Müller–Brown protocol
Figure 2A–C. The ground-truth energy is 0.1 times the standard Müller–Brown potential at on the physical box , with the identity CV map. Seven arms share every setting except the tempering and, for the ladders, exchange: single levels at with 1,000 physical and 1,000 auxiliary walkers, and a five-level ladder (; 200 walkers per level and population; normalized level weights 0.2) with and without exchange of physical and auxiliary walkers (every 100 steps, 200 attempted swaps). All physical walkers start within of the deepest minimum, near , and the auxiliary walkers start uniformly over the box. Every arm of a run receives the same initial arrays and initial model. The network has width 32 and is trained with Adam at . The dynamics use reduced timesteps , unit frictions, force clips of 100 and 500, and reflecting boundaries. 40,000 steps give . Curves show the causal trailing-half parameter average: at each plotted time the raw parameters saved in are averaged, so no point uses a future state.
Errors are evaluated on a grid over , which extends beyond the simulation box so that the high-energy rim is scored. The RMSE removes the additive constant and weights every cell equally. Because the rim energies are large it is dominated by the barrier and rim regions, which is why its scale is and why the most strongly tempered level is best on it. normalizes and on the same grid and is dominated by the basins. At (mean sample SD over three independent runs) the RMSE is (), (L-NRE), (), (L-RE), (), () and (). The divergence is (), (), (L-RE), (L-NRE), (), () and (). The physical walkers of the arm remain concentrated in the starting basin (355 of the 360 overlaid positions from lie nearest the deepest minimum), so its surface is unconstrained outside it. The maps in Fig. 2C are means of the final trailing-half averages after aligning the additive constants, each shifted to its own minimum. The walker overlays pool 40 physical and 40 auxiliary positions per run from each of and 80.
Tempering and population sweeps. Separate sweeps at (160,000 steps) use four independent runs, uniform starts and a network of width 32. The tempering sweep is at 1,000 walkers per population. The population sweep changes the physical and auxiliary walker counts together through 1, 10, 100, 1000, 10000 at and fixed integration and update counts, so a larger population also means proportionally more sampling work. Errors here are Boltzmann-weighted, mean-gauge FES RMSEs of trailing parameter averages, evaluated on fixed reference samples drawn from a inverse-CDF discretization of the Müller–Brown density (Table 4). Any reaches against for a flat surface, while remains at . The error falls from with one walker to with .
C.2 Four-well dimensional scaling
Landscape. The reference landscape has four symmetric Gaussian components whose centers lie in a fixed two-dimensional plane involving all coordinates. Up to an additive constant, its
Table 4: Müller–Brown errors at : Boltzmann-weighted FES RMSE in of the parameter average, mean sample SD over four independent runs, against the tempering exponent at 1000 walkers per population and against the walker count at . A flat surface scores 1.281.
| RMSE | Walkers | RMSE | |
|---|---|---|---|
| 0.05 | 1 | ||
| 0.1 | 10 | ||
| 0.25 | 100 | ||
| 0.5 | 1000 | ||
| 1 | 10000 |
thermal-unit form is
Here , and is obtained by orthogonalizing the alternating-sign vector against and normalizing it. The remaining directions are harmonic, with dimensionless curvature . The adjacent-well barriers are approximately . The CV map is the identity, and the dynamics use reflecting boundaries on . The two-dimensional core is identical at every . The reference contains 40,000 i.i.d. draws from the analytic teacher Boltzmann distribution, and errors use all coordinates.
Protocol. . The same three-hidden-layer network of width 1024 is used at every . A separate perfect-information regression of the exact free energy into this network (i.i.d. Boltzmann samples, exact energies, 160,000 Adam updates of batch 1,000) establishes that it can represent the four-well plane at (widths 128, 256 and 512 do not learn the plane, while width 1024 reaches a plane error of against 1.29 for a flat surface at every ). The primary arms use 1,000 physical and 1,000 auxiliary walkers in total, both started in the deepest well, 160,000 overdamped steps at (reduced time 800), Adam at , a bias-corrected parameter EMA with time constant 2,000 steps for the convergence readout and a trailing-half parameter average for the endpoint. Arms: single levels at , and four-level ladders (; 250 walkers per level and population) with and without symmetric exchange of physical and auxiliary walkers. As a control on population rather than temperature, the same ladders were also run with 1,000 walkers per level and population. Three independent runs were specified per arm. The unbiased arm uses its two completed runs, and all other arms use three.
Readouts. NRMSE = RMSE/, where the RMSE is the teacher-Boltzmann-weighted full-coordinate error after removing the additive constant and is the corresponding standard deviation of the reference free energy. The endpoint NRMSE uses the trailing-half SWA readout, while threshold time uses the bias-corrected EMA readout. The reduced threshold time is when the EMA NRMSE first stays below 0.25 to the end of the run. uses the same teacher-Boltzmann reference samples. Endpoint summaries are means sample SD (Tables 5 and 6). For threshold-time summaries, a run that never reaches the sustained threshold is capped at the budget of 800.
Observations. The same exchange ladder is within a factor of 1.62 of the best tested single level on mean NRMSE across all dimensions. Its mean NRMSE ranges from 0.19 to 0.42, with lower
Table 5: Four-well dimensional scaling: mean sample SD of the full-coordinate NRMSE and at the final SWA readout. Each best single level is selected by the lowest mean of the corresponding metric among the tested levels at that dimension. All primary arms use the same total walker budget.
| NRMSE | ||||||
|---|---|---|---|---|---|---|
| L-RE | Best single () | L-NRE | L-RE | Best single () | L-NRE | |
| 2 | (0.05) | (0.05) | ||||
| 5 | (0.5) | (0.5) | ||||
| 10 | (0.25) | (0.25) | ||||
| 25 | (0.5) | (0.5) | ||||
| 50 | (0.5) | (0.5) | ||||
| 100 | (0.5) | (0.5) | ||||
Table 6: Larger-population controls for the four-well landscape: mean sample SD with 1,000 walkers per level and population, four times the primary ladder budget.
| NRMSE | ||||
|---|---|---|---|---|
| L-RE | L-NRE | L-RE | L-NRE | |
| 2 | ||||
| 5 | ||||
| 10 | ||||
| 25 | ||||
| 50 | ||||
| 100 | ||||
mean error than the best single level at and 100. At , the primary exchange and no-exchange ladders reach and , respectively, while the best single level reaches . The larger-population controls reach with exchange and without (Table 6). These descriptive comparisons support one fixed ladder across the tested dimensions. They do not establish uniform superiority or an exchange advantage at every dimension.
D Connections to VES, PS-CD, and Rényi objectives
The following identities connect the VESPER objective to well-tempered VES, pseudo-spherical contrastive divergence, and a Rényi variational principle.
D.1 Well-tempered VES and an explicit shared-energy objective
Let be the physical CV density and the VES target. The fixed-target functional of Valsson & Parrinello [58] is
Differentiating with held fixed gives
Set and , with . The biased physical law is then , and substitution yields
This proves equation 48 for every admissible model for which differentiation under the integrals is valid. The factor can be absorbed into the step size for ordinary gradient descent with the same parameterization and sample estimate.
VESPER thus gives the instantaneous self-consistent update an explicit scalar objective, convex in the free energy. This point requires holding the VES target fixed during differentiation. Taking the total derivative of also differentiates the target and adds
where we used . In contrast, differentiating directly gives the desired two-population update, with its minimum and KL control established in Propositions S1 and S2.
The distinction also appears in how the target evolves. Well-tempered VES sets [59]. In neural VES, the free-energy relation and the previous target give the recursive update [9]
At a fixed point, , so gives . During learning, VESPER instead defines the target directly from the current and represents it with persistent auxiliary walkers. One model therefore determines both the molecular bias and the auxiliary potential, without a separate recursion for the free-energy estimate. The walker laws track these changing targets through the coupled dynamics analyzed in Section A.6.
This formulation extends directly to the combined objective: every has the same physical minimizer, so all levels train one through their native gradients (Proposition 1). In VES notation, the interior-level update is reproduced by weighting the corresponding fixed-target gradients by . The rescaled gradient has the finite physical-endpoint limit
whenever the two expectations converge. VESPER includes this endpoint through equation 8.
D.2 PS-CD and direct sampling of the two tilted populations
With , the dimensionless objective is given by equation 42. Let be the model density relative to a reference measure , with . Substituting and gives
The first term contributes and the second , so the normalizer cancels. This is the PS-CD objective [60], including its negative- extension, whenever both integrals are finite. For VESPER, gives . The physical free-energy minimizer follows from Proposition S1.
For the Lebesgue reference, write . The two populations in the gradient are exactly the laws used in the main text:
(51)
Differentiating the two log integrals gives , recovering equation 7 after division by . At the physical endpoint, and , recovering the maximum-likelihood gradient.
The computational difference is how these expectations are obtained. PS-CD uses a fixed dataset for the positive term and reweights samples from to estimate the tempered model expectation [60]. VESPER directly evolves auxiliary walkers in , removing that temperature-change importance weighting from the fresh-sample gradient. In molecular applications, it also generates online through the biased microscopic law . This makes the same variational principle usable when equilibrium configurations are not available in advance: sampling supplies new configurations while their gradients update the free-energy model (Section A.3).
D.3 Rényi variational identity and its sampling realization
For a probability reference r and , set h = -g in equation 42. Then
which is the variational expression of Birrell et al. [8, Theorem 3.1]. With -almost everywhere and , Proposition S8 gives . Substituting this minimizer into the two integrals yields
The factor accounts for the divergence convention in that reference. If f vanishes on a set of positive r-measure, the infimum need not be attained by a finite free energy.
The value of this identity for VESPER is that its optimizer is also the quantity needed to drive sampling. For , up to a constant. VESPER uses to bias microscopic dynamics and to evolve the auxiliary walkers, obtaining both gradient expectations without evaluating the unknown CV density or first collecting equilibrium data (Section A.3). The KL decomposition in Proposition S2 connects the objective excess to the discrepancy of and from their common tempered target, and Proposition 1 lets several orders train the same physical free energy.
For a reference of finite mass , normalization to subtracts from and leaves its gradients unchanged. On infinite-volume CV domains we instead use the exponential integrals directly, with the integrability conditions of Sections A.1 and A.7. This preserves the same free-energy minimizer without introducing an artificial uniform probability reference.
E Algorithm and implementation details
VESPER is implemented in PySAGES [62]. We alternate molecular and auxiliary sampling with parameter updates, retaining the auxiliary population between epochs. Neural models provide both parameter derivatives for learning and spatial derivatives for biasing. When several parameter updates reuse one batch, within-population importance weights account for the change from its generating model. The pseudocode and weight formulas are given below. Model architectures, integration parameters, optimizer settings, exchange intervals, and readouts are specified for each experiment in Section B.
Algorithm 1 describes physical sampling with an energy-unit model and level ratios . Each epoch generates physical and auxiliary samples, optionally exchanges configurations (predominantly physical configurations in the reported ADP and ATP runs, Section B), and updates the shared model.
Algorithm 1 Physical VESPER ladder
1: Input: potential , CV map , inverse temperature ; levels ; weights , ; model ; sampler, optimizer, exchange, and readout settings.
2: Initialize and the physical and auxiliary populations on every level.
3: repeat
4: Set . Advance physical walkers in and auxiliary walkers in , at inverse temperature .
5: If exchange is enabled, attempt adjacent-level swaps using equation 15.
6: Save batches and , together with their generating model .
7: for each parameter update allowed by the protocol do
8: for do
9: if sample reweighting is enabled then
10: .
11: , .
12: Normalize the weights separately in each pool.
13: else
14: , .
15: end if
16: .
17: end for
18: If an enabled sample-reuse threshold is exceeded, end the inner loop and generate fresh samples.
19: Update with the configured optimizer using .
20: end for
21: Save model checkpoints and sampling diagnostics.
22: until the stopping condition or simulation budget is reached
23: Output: the checkpoint or averaged readout selected by the protocol.
Sample reuse. The weights of equation 47 supply the two density ratios for a batch generated at . Reweighted estimators also appear in Carbone et al. [10] and Invernizzi & Parrinello [29]. The molecular implementation can monitor the 95th percentile and maximum of , with soft and hard thresholds 5 and 8, and the normalized ESS , with floor 0.2. Activation, step reduction, and refresh rules are specified per system in Section B.7.
Existing-data updates. For equilibrium observations , replace physical sampling and its reuse weights by equation 45.
Checkpoint and averaged readouts. A trailing weight-space average produces a network with parameters
The checkpoint set , stride, and window are specified per experiment [31, 47]. Fixed-checkpoint and last-iterate readouts use their corresponding .