Neural Thermodynamic Integration: Free Energies from Energy-based Diffusion Models
Bálint Máté, François Fleuret, Tristan Bereau
TL;DR
Neural TI tackles the TI bottleneck by learning a time-dependent Hamiltonian $U_t^\theta$ that interpolates between interacting and non-interacting systems, and by employing a denoising diffusion model to sample all intermediate ensembles. It formulates TI along the diffusion time with a score-based energy function, enabling free-energy differences to be estimated from a single reference calculation via $\beta\Delta F = -\int_0^1 \mathrm{d}t\, \langle \partial_t U_t^\theta\rangle_t$. Demonstrated on Lennard-Jones fluids, Neural TI yields accurate excess chemical potentials and continuous $\mu$–density relations across gas–liquid transitions, capturing large free-energy changes up to about $200\,k_B T$. The approach offers a transferable, scalable framework for TI in molecular systems, with future extensions to more complex intramolecular and electrostatic interactions through suitable energy-function design. Overall, energy-based diffusion with TI provides a practical alternative to traditional TI and flow-based methods for estimating free energies in condensed-phase systems.
Abstract
Thermodynamic integration (TI) offers a rigorous method for estimating free-energy differences by integrating over a sequence of interpolating conformational ensembles. However, TI calculations are computationally expensive and typically limited to coupling a small number of degrees of freedom due to the need to sample numerous intermediate ensembles with sufficient conformational-space overlap. In this work, we propose to perform TI along an alchemical pathway represented by a trainable neural network, which we term Neural TI. Critically, we parametrize a time-dependent Hamiltonian interpolating between the interacting and non-interacting systems, and optimize its gradient using a score matching objective. The ability of the resulting energy-based diffusion model to sample all intermediate ensembles allows us to perform TI from a single reference calculation. We apply our method to Lennard-Jones fluids, where we report accurate calculations of the excess chemical potential, demonstrating that Neural TI reproduces the underlying changes in free energy without the need for simulations at interpolating Hamiltonians.
