Efficient Regression-Based Training of Normalizing Flows for Boltzmann Generators
Danyal Rehman, Oscar Davis, Jiarui Lu, Jian Tang, Michael Bronstein, Yoshua Bengio, Alexander Tong, Avishek Joey Bose
TL;DR
This work tackles the need for fast, exact likelihood evaluation in Boltzmann Generators by revisiting classical normalizing flows and proposing Regression Training of Normalizing Flows (RegFlow). RegFlow replaces maximum-likelihood training with a simple $\ell_2$ regression objective that aligns a learned invertible map with a fixed invertible target, drawn from either an offline optimal-transport map or a pretrained continuous normalizing flow (CNF); stability is enhanced via regularization and a forward-backward consistency term. The authors demonstrate that RegFlow enables training of NF architectures (e.g., affine coupling, neural spline flows) that were previously intractable under MLE for BGs and yields improvements in equilibrium sampling and targeted free energy perturbation across alanine dipeptide, tripeptide, and tetrapeptide—often with substantial inference-speedups over MLE-trained models. The results indicate RegFlow can deliver faithful samples and exact likelihoods in a computationally efficient framework, expanding the practical deployment of BGs in molecular systems while highlighting reliance on the quality of chosen targets. Overall, RegFlow offers a principled, scalable route to leverage classical NFs for scientific applications requiring reliable likelihoods and fast sampling.
Abstract
Simulation-free training frameworks have been at the forefront of the generative modelling revolution in continuous spaces, leading to large-scale diffusion and flow matching models. However, such modern generative models suffer from expensive inference, inhibiting their use in numerous scientific applications like Boltzmann Generators (BGs) for molecular conformations that require fast likelihood evaluation. In this paper, we revisit classical normalizing flows in the context of BGs that offer efficient sampling and likelihoods, but whose training via maximum likelihood is often unstable and computationally challenging. We propose Regression Training of Normalizing Flows (RegFlow), a novel and scalable regression-based training objective that bypasses the numerical instability and computational challenge of conventional maximum likelihood training in favour of a simple $\ell_2$-regression objective. Specifically, RegFlow maps prior samples under our flow to targets computed using optimal transport couplings or a pre-trained continuous normalizing flow (CNF). To enhance numerical stability, RegFlow employs effective regularization strategies such as a new forward-backward self-consistency loss that enjoys painless implementation. Empirically, we demonstrate that RegFlow unlocks a broader class of architectures that were previously intractable to train for BGs with maximum likelihood. We also show RegFlow exceeds the performance, computational cost, and stability of maximum likelihood training in equilibrium sampling in Cartesian coordinates of alanine dipeptide, tripeptide, and tetrapeptide, showcasing its potential in molecular systems.
