[Paper Review] Approximate Inference with Amortised MCMC
This paper introduces amortized MCMC, a novel framework that trains a neural network to generate approximate posterior samples by leveraging MCMC dynamics as a teacher. By iteratively refining samples through MCMC and updating the network using feedback, the method enables flexible, high-quality posterior approximations even for complex, intractable distributions—demonstrated by state-of-the-art image generation and robust missing data imputation in deep generative models.
We propose a novel approximate inference algorithm that approximates a target distribution by amortising the dynamics of a user-selected MCMC sampler. The idea is to initialise MCMC using samples from an approximation network, apply the MCMC operator to improve these samples, and finally use the samples to update the approximation network thereby improving its quality. This provides a new generic framework for approximate inference, allowing us to deploy highly complex, or implicitly defined approximation families with intractable densities, including approximations produced by warping a source of randomness through a deep neural network. Experiments consider image modelling with deep generative models as a challenging test for the method. Deep models trained using amortised MCMC are shown to generate realistic looking samples as well as producing diverse imputations for images with regions of missing pixels.
Motivation & Objective
- To develop a generic, scalable framework for approximate Bayesian inference that bypasses the need for tractable density functions in variational inference.
- To enable the use of complex, implicitly defined approximate distributions (e.g., deep normalizing flows) in amortized inference by avoiding explicit density computation.
- To improve posterior approximation quality in deep generative models and Bayesian neural networks through MCMC refinement and iterative network adaptation.
- To address the limitation of standard variational inference in capturing multi-modal posteriors by leveraging MCMC's ability to explore complex target distributions.
Proposed method
- The method uses a student-teacher framework: a neural network (student) generates initial samples, which are refined by an MCMC sampler (teacher).
- The MCMC sampler applies a user-defined transition kernel to improve the initial samples, producing higher-quality posterior approximations.
- The student network is updated using adversarially estimated divergences and energy matching to minimize the discrepancy between its output and the MCMC-refined samples.
- The framework is generic and works with any MCMC kernel and any approximate sampler family, including those with intractable densities.
- The training process amortizes the cost of MCMC by learning a parametric proposal network that improves over time through feedback from MCMC transitions.
- The method supports both posterior sampling and likelihood estimation, with applications to Bayesian neural networks and deep generative models.
Experimental results
Research questions
- RQ1Can MCMC dynamics be effectively amortized to train flexible, high-capacity posterior approximators without requiring tractable density functions?
- RQ2How does amortized MCMC compare to standard variational inference in terms of posterior quality and likelihood estimation accuracy?
- RQ3Can amortized MCMC capture multi-modal posteriors in image generation and missing data imputation tasks more effectively than uni-modal variational approximations?
- RQ4To what extent does the method improve sample diversity and reconstruction fidelity in deep generative models?
Key findings
- The proposed amortized MCMC method achieved test log-likelihood of -85.6 nats on MNIST, significantly outperforming standard VAE and matching the best variational baselines.
- Using Hamiltonian annealed importance sampling (HAIS), the method demonstrated that IWAE-based likelihood estimates were substantially biased, while AMC models showed superior true likelihood estimation.
- On missing data imputation, AMC-trained models generated diverse, high-quality reconstructions that explored multiple valid completions, unlike VAEs which were trapped in local modes.
- The entropy of label distributions over nearest neighbors in the training set was higher for AMC models (e.g., 1.8 for CNN-B), indicating greater diversity in imputed images compared to VAEs (entropy ~1.0).
- The best AMC model with T=50 MCMC steps achieved a 0.6 nat improvement in test log-likelihood over a persistent MCMC baseline, confirming the benefit of amortized refinement.
- The method produced realistic, diverse samples in deep generative modeling and enabled effective posterior approximation in Bayesian neural network classification, even under limited computational budgets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.