Skip to main content
QUICK REVIEW

[Paper Review] MetFlow: A New Efficient Method for Bridging the Gap between Markov Chain Monte Carlo and Variational Inference

Achille Thin, Nikita Kotelevskii|arXiv (Cornell University)|Feb 27, 2020
Markov Chains and Monte Carlo MethodsMathematics39 references5 citations
TL;DR

MetFlow proposes a novel method that combines Variational Inference (VI) with Markov Chain Monte Carlo (MCMC) by using Normalizing Flows to generate proposals in a new family of ergodic MCMC kernels. Unlike prior approaches, it avoids reverse kernels and enables end-to-end differentiable training via the reparameterization trick, achieving state-of-the-art sampling quality with improved computational efficiency and multimodal posterior coverage in high-dimensional problems.

ABSTRACT

In this contribution, we propose a new computationally efficient method to combine Variational Inference (VI) with Markov Chain Monte Carlo (MCMC). This approach can be used with generic MCMC kernels, but is especially well suited to extit{MetFlow}, a novel family of MCMC algorithms we introduce, in which proposals are obtained using Normalizing Flows. The marginal distribution produced by such MCMC algorithms is a mixture of flow-based distributions, thus drastically increasing the expressivity of the variational family. Unlike previous methods following this direction, our approach is amenable to the reparametrization trick and does not rely on computationally expensive reverse kernels. Extensive numerical experiments show clear computational and performance improvements over state-of-the-art methods.

Motivation & Objective

  • To address the limitations of standard VI, which relies on restrictive variational families, and MCMC, which suffers from slow mixing and high computational cost.
  • To bridge the gap between VI and MCMC by creating a differentiable, scalable framework that combines the expressivity of normalizing flows with the theoretical guarantees of MCMC.
  • To eliminate the need for computationally expensive reverse kernels in hybrid VI-MCMC methods, enabling joint optimization of initial distributions and MCMC transitions.
  • To improve posterior approximation quality in high-dimensional, multimodal distributions—especially in variational autoencoders and complex Bayesian models—by enhancing mode coverage and diversity.
  • To provide a general-purpose, reparameterizable framework compatible with standard MCMC kernels like MALA and HMC, while maintaining detailed balance and invariance to the target distribution.

Proposed method

  • Introduces a new ELBO objective that depends on the marginal distribution of a Markov chain after K steps, enabling joint optimization of the initial variational distribution and MCMC transition kernels.
  • Proposes MetFlow, a family of deterministic MCMC kernels where proposals are generated via normalizing flows, ensuring the target distribution remains invariant and improving mixing.
  • Employs the reparameterization trick to enable backpropagation through the MCMC transitions, avoiding the need for reverse kernels and enabling end-to-end training.
  • Uses a flow-based transformation sequence with invertible, trainable mappings (e.g., R-NVP blocks) to generate complex, flexible proposal distributions that enhance the expressivity of the variational family.
  • Applies stochastic gradient descent with early stopping and ADAM optimization to train the MetFlow parameters, using both fixed and random noise inputs across iterations to control diversity.
  • Supports amortized inference by fixing the encoder (mean-field approximation) and training MetFlow to approximate the posterior conditioned on each data point, enabling scalable Bayesian inference.

Experimental results

Research questions

  • RQ1Can a differentiable, reparameterizable MCMC-based variational inference framework be designed that avoids reverse kernels and enables joint optimization of initial distributions and transitions?
  • RQ2To what extent can normalizing flows as proposals in MCMC improve the expressivity and accuracy of variational approximations in high-dimensional, multimodal posteriors?
  • RQ3How does the choice of noise injection strategy (deterministic, pseudo-random, fully random) affect the diversity and quality of posterior samples in MetFlow?
  • RQ4Can MetFlow achieve better sampling quality and computational efficiency than state-of-the-art VI and hybrid VI-MCMC methods on complex benchmarks like MNIST mixture models and image inpainting?
  • RQ5Does MetFlow maintain detailed balance and invariance to the target distribution while enabling efficient, scalable training via backpropagation?

Key findings

  • MetFlow achieves superior posterior approximation quality on multimodal distributions, such as mixtures of MNIST digits, where standard Normalizing Flows collapse to a single mode, while MetFlow captures diverse, multimodal structures.
  • In image inpainting tasks, MetFlow generates diverse, plausible reconstructions across different starting digits (e.g., 0, 3, 6, 9), demonstrating effective exploration of complex latent spaces.
  • The fully random setting of MetFlow, where noise is resampled at each step, produces the highest diversity in generated samples, though it requires more training epochs to converge.
  • MetFlow outperforms both mean-field VI and NAF-based VI in capturing posterior multimodality, as evidenced by qualitative samples showing multiple plausible digit generations.
  • The method achieves state-of-the-art performance in terms of sampling quality and computational efficiency, with training stable over 150 epochs using 192 batches of size 250 on MNIST.
  • The ablation study confirms that MetFlow’s design—using flow-based proposals and avoiding reverse kernels—leads to more stable and expressive inference compared to prior hybrid VI-MCMC methods.

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.