Path Gradients after Flow Matching
Lorenz Vaitl, Leon Klein
TL;DR
The paper addresses improving Boltzmann Generators by combining Flow Matching (FM) pre-training with Path Gradient (PG) fine-tuning, leveraging gradient information from the target energy without extra sampling. It develops a memory-efficient method (augmented adjoint) to apply PG to forward KL training and demonstrates that a short PG fine-tuning phase can substantially boost importance-sampling efficiency (ESS) and log-likelihood on Lennard-Jones systems and alanine dipeptide, without substantially altering the learned flow dynamics. The approach also shows promise for transferability, improving performance on unseen dipeptides. Overall, the work offers a practical path to higher-quality samples under the same computational budget, with careful attention to model structure preservation and potential applicability to diffusion models and distillation tasks.
Abstract
Boltzmann Generators have emerged as a promising machine learning tool for generating samples from equilibrium distributions of molecular systems using Normalizing Flows and importance weighting. Recently, Flow Matching has helped speed up Continuous Normalizing Flows (CNFs), scale them to more complex molecular systems, and minimize the length of the flow integration trajectories. We investigate the benefits of using path gradients to fine-tune CNFs initially trained by Flow Matching, in the setting where a target energy is known. Our experiments show that this hybrid approach yields up to a threefold increase in sampling efficiency for molecular systems, all while using the same model, a similar computational budget and without the need for additional sampling. Furthermore, by measuring the length of the flow trajectories during fine-tuning, we show that path gradients largely preserve the learned structure of the flow.
