Skip to main content
QUICK REVIEW

[Paper Review] Efficient Bayesian Sampling Using Normalizing Flows to Assist Markov Chain Monte Carlo Methods

Marylou Gabrié, Grant M. Rotskoff|arXiv (Cornell University)|Jul 16, 2021
Markov Chains and Monte Carlo MethodsMathematics5 citations
TL;DR

This paper proposes a novel method that uses normalizing flows to accelerate Markov Chain Monte Carlo (MCMC) sampling by training the flow on data generated by an MCMC sampler using the direct KL divergence. The approach improves mixing in multimodal posteriors and enables accurate estimation of the Bayesian evidence, outperforming standard MCMC and variational inference in complex, high-dimensional examples.

ABSTRACT

Normalizing flows can generate complex target distributions and thus show promise in many applications in Bayesian statistics as an alternative or complement to MCMC for sampling posteriors. Since no data set from the target posterior distribution is available beforehand, the flow is typically trained using the reverse Kullback-Leibler (KL) divergence that only requires samples from a base distribution. This strategy may perform poorly when the posterior is complicated and hard to sample with an untrained normalizing flow. Here we explore a distinct training strategy, using the direct KL divergence as loss, in which samples from the posterior are generated by (i) assisting a local MCMC algorithm on the posterior with a normalizing flow to accelerate its mixing rate and (ii) using the data generated this way to train the flow. The method only requires a limited amount of \ extit{a~priori} input about the posterior, and can be used to estimate the evidence required for model validation, as we illustrate on examples.

Motivation & Objective

  • Address slow mixing in MCMC when sampling multimodal posterior distributions.
  • Overcome the limitations of reverse KL training in normalizing flows when the posterior is complex and far from the base distribution.
  • Enable accurate estimation of the Bayesian evidence $ Z_* $, crucial for model comparison and validation.
  • Develop a hybrid sampling-optimization framework that leverages MCMC-generated data to train normalizing flows for improved mixing.
  • Provide a practical, data-driven method requiring minimal prior knowledge of the posterior structure.

Proposed method

  • Use a local MCMC algorithm (e.g., unadjusted Langevin dynamics) to generate posterior samples, assisted by a normalizing flow to improve mixing.
  • Train the normalizing flow using the direct Kullback-Leibler (KL) divergence between the true posterior and the flow’s pushforward distribution.
  • Leverage MCMC-generated samples as training data for the flow, avoiding reliance on prior knowledge of the posterior.
  • Employ an invertible, autoregressive flow architecture to model complex, non-Gaussian posterior densities.
  • Use the trained flow to propose new states in MCMC, achieving high acceptance rates (e.g., ~80% in high-dimensional mixtures).
  • Estimate the Bayesian evidence $ Z_* $ using the final flow and MCMC samples via Eq. (5), enabling model validation.

Experimental results

Research questions

  • RQ1Can normalizing flows trained via direct KL divergence improve MCMC mixing in multimodal posterior distributions?
  • RQ2Does using MCMC-generated data to train the flow lead to better posterior approximation than reverse KL training with prior samples?
  • RQ3Can this hybrid method estimate the Bayesian evidence $ Z_* $ accurately without additional expensive techniques?
  • RQ4How does the method perform in high-dimensional, complex posteriors compared to standard MCMC or variational inference?
  • RQ5What is the impact of initialization and prior knowledge on the method’s ability to explore all posterior modes?

Key findings

  • The method achieved an acceptance rate of ~80% for flow-based proposals in a 10-dimensional Gaussian mixture model, indicating highly efficient exploration.
  • The relative statistical weights of the two modes in the mixture model were estimated with small statistical error, converging to the exact value.
  • In the exoplanet radial velocity model, the method successfully sampled all major posterior modes, including those missed by the Joker algorithm due to its maximum-likelihood step on $ K $ and $ v_0 $.
  • The final MCMC acceptance rate reached ~60% using flow-guided proposals, significantly improving mixing over standard MCMC.
  • The Bayesian evidence $ Z_* $ was accurately estimated using the final flow and MCMC samples, enabling model validation.
  • The method required only limited prior knowledge of the posterior structure, with chains initialized in different modes successfully mixing across them.

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.