Skip to main content
QUICK REVIEW

[Paper Review] Flow Annealed Importance Sampling Bootstrap

Laurence Illing Midgley, Vincent Stimper|arXiv (Cornell University)|Aug 3, 2022
Machine Learning in Materials ScienceMaterials Science14 citations
TL;DR

This paper introduces Flow AIS Bootstrap (FAB), a novel method that combines normalizing flows with annealed importance sampling (AIS) to train flow models using only the unnormalized target density, avoiding expensive molecular dynamics (MD) simulations. By minimizing the mass-covering α-divergence with α=2, FAB reduces importance weight variance and enables accurate approximation of multimodal distributions, including the Boltzmann distribution of alanine dipeptide—achieving better results than maximum-likelihood training on MD samples with 100× fewer target evaluations.

ABSTRACT

Normalizing flows are tractable density models that can approximate complicated target distributions, e.g. Boltzmann distributions of physical systems. However, current methods for training flows either suffer from mode-seeking behavior, use samples from the target generated beforehand by expensive MCMC methods, or use stochastic losses that have high variance. To avoid these problems, we augment flows with annealed importance sampling (AIS) and minimize the mass-covering $α$-divergence with $α=2$, which minimizes importance weight variance. Our method, Flow AIS Bootstrap (FAB), uses AIS to generate samples in regions where the flow is a poor approximation of the target, facilitating the discovery of new modes. We apply FAB to multimodal targets and show that we can approximate them very accurately where previous methods fail. To the best of our knowledge, we are the first to learn the Boltzmann distribution of the alanine dipeptide molecule using only the unnormalized target density, without access to samples generated via Molecular Dynamics (MD) simulations: FAB produces better results than training via maximum likelihood on MD samples while using 100 times fewer target evaluations. After reweighting the samples, we obtain unbiased histograms of dihedral angles that are almost identical to the ground truth.

Motivation & Objective

  • To address the limitations of existing flow training methods that rely on expensive MD simulations or suffer from mode-seeking behavior in multimodal distributions.
  • To develop a training objective that minimizes importance weight variance while enabling accurate approximation of complex, multimodal target distributions.
  • To enable training of Boltzmann generators using only the unnormalized target density, without prior MD sampling.
  • To reduce computational cost through a prioritized replay buffer for reusing AIS samples.
  • To demonstrate state-of-the-art performance on challenging benchmarks, including the alanine dipeptide molecule.

Proposed method

  • FAB uses the α-divergence with α=2 as the training objective, which is mass-covering and minimizes variance in importance weights during inference.
  • It employs annealed importance sampling (AIS) with the flow as the initial distribution and the target as the minimum-variance distribution for estimating the α-divergence loss.
  • AIS generates high-quality samples from regions where the flow is a poor approximation, enabling discovery of new modes and improving training signal quality.
  • A prioritized replay buffer is introduced to re-use AIS samples, reducing computational cost and improving sample efficiency.
  • The method trains flows end-to-end using stochastic gradient descent on the AIS-estimated α-divergence objective with α=2.
  • At test time, importance sampling with the trained flow enables low-variance estimation of expectations under the target distribution.

Experimental results

Research questions

  • RQ1Can normalizing flows be effectively trained using only the unnormalized target density, without relying on expensive MD simulations?
  • RQ2Does minimizing the α-divergence with α=2 lead to better sample quality and lower variance in importance weights compared to standard KL divergence?
  • RQ3Can FAB discover and accurately model all modes in highly multimodal distributions, such as the Ramachandran plot of alanine dipeptide?
  • RQ4How does FAB compare in performance and sample efficiency to maximum-likelihood training on MD-generated samples?
  • RQ5Can the use of a replay buffer significantly reduce the number of target density evaluations required for training?

Key findings

  • FAB successfully learns the Boltzmann distribution of alanine dipeptide using only the unnormalized energy function, without any MD samples, achieving state-of-the-art results.
  • The method requires over 100 times fewer target evaluations than maximum-likelihood training on MD samples while producing a better approximation to the true distribution.
  • After reweighting, FAB-generated histograms of dihedral angles are almost identical to the ground truth, indicating high fidelity in mode coverage.
  • On the 32-dimensional "Many Well" problem, FAB outperforms competing methods in terms of effective sample size (ESS), log-likelihood, and KL divergence.
  • With α=2, FAB achieves the lowest KL divergence (2.51×10⁻³) and highest ESS (52.2%) on the Ramachandran plot, significantly outperforming other methods.
  • The use of a replay buffer reduces computational cost and improves training stability, enabling efficient reuse of high-quality AIS samples.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.