Skip to main content
QUICK REVIEW

[Paper Review] Monte Carlo Variational Auto-Encoders

Achille Thin, Nikita Kotelevskii|arXiv (Cornell University)|Jun 30, 2021
Generative Adversarial Networks and Image SynthesisComputer Science10 citations
TL;DR

This paper proposes Monte Carlo Variational Auto-Encoders (MCVAEs) that leverage Annealed Importance Sampling (AIS) and Sequential Importance Sampling (SIS) with undirected MCMC transitions—specifically Langevin dynamics—to tighten the Evidence Lower Bound (ELBO) in VAEs. It introduces differentiable gradient estimators for AIS and SIS-based ELBOs using non-standard representations of Metropolis-Hastings kernels and the reparameterization trick, enabling end-to-end training with lower-variance gradients and improved likelihood estimation on MNIST, CIFAR-10, and CelebA.

ABSTRACT

Variational auto-encoders (VAE) are popular deep latent variable models which are trained by maximizing an Evidence Lower Bound (ELBO). To obtain tighter ELBO and hence better variational approximations, it has been proposed to use importance sampling to get a lower variance estimate of the evidence. However, importance sampling is known to perform poorly in high dimensions. While it has been suggested many times in the literature to use more sophisticated algorithms such as Annealed Importance Sampling (AIS) and its Sequential Importance Sampling (SIS) extensions, the potential benefits brought by these advanced techniques have never been realized for VAE: the AIS estimate cannot be easily differentiated, while SIS requires the specification of carefully chosen backward Markov kernels. In this paper, we address both issues and demonstrate the performance of the resulting Monte Carlo VAEs on a variety of applications.

Motivation & Objective

  • Address the limitation of standard VAEs in approximating the true log-likelihood due to loose ELBO bounds.
  • Overcome the challenge of differentiating AIS and SIS estimators in VAE training, which has previously prevented their use in end-to-end learning.
  • Develop a method to use advanced Monte Carlo estimators like AIS and SIS within the VAE framework without requiring trainable backward Markov kernels.
  • Improve the quality of variational inference by tightening the ELBO using high-dimensional, low-variance importance sampling estimators.
  • Demonstrate that SIS-based MCVAEs with undirected Langevin transitions outperform standard VAEs and IWAE in terms of ELBO and log-likelihood on real-world datasets.

Proposed method

  • Proposes a novel SIS-based ELBO using undirected Markov transition kernels (specifically unadjusted Langevin dynamics) to avoid the need for learning backward kernels.
  • Derives an unbiased gradient estimate for the SIS-based ELBO using the reparameterization trick, enabling efficient backpropagation.
  • Introduces a non-standard representation of Metropolis-Hastings kernels that allows for differentiable sampling, enabling gradient estimation in AIS-based ELBOs.
  • Employs variance reduction techniques to stabilize training of the AIS-based ELBO, which otherwise suffers from high-variance REINFORCE-type gradients.
  • Uses a sequence of annealed bridge distributions from the prior to the joint model to define the AIS path, with $K$ steps of MCMC transitions.
  • Applies the resulting MCVAE models to image generation tasks using a standard VAE architecture with convolutional encoders and decoders, and factorized Bernoulli/Gaussian likelihoods.

Experimental results

Research questions

  • RQ1Can Annealed Importance Sampling (AIS) be used to construct a tighter ELBO in VAEs while enabling differentiable training?
  • RQ2How can Metropolis-Hastings transition kernels be made differentiable to allow gradient-based optimization in AIS-based VAEs?
  • RQ3Does using Sequential Importance Sampling with unadjusted Langevin dynamics (ULA) yield better ELBOs and log-likelihoods than standard VAEs or IWAE?
  • RQ4What is the trade-off between computational cost and performance improvement when increasing the number of MCMC steps in MCVAE training?
  • RQ5Can SIS-based MCVAEs with undirected transitions outperform both standard VAEs and AIS-based MCVAEs in terms of ELBO tightness and likelihood estimation?

Key findings

  • L-MCVAE (SIS-based with Langevin dynamics) achieves a test log-likelihood of 68.09 ± 0.10 on MNIST with K=5, outperforming IWAE (69.43 ± 0.03) and standard VAEs.
  • A-MCVAE (AIS-based) achieves a test log-likelihood of 69.97 ± 0.99 on MNIST with K=3, showing that AIS can yield tighter ELBOs than SIS in some settings.
  • Increasing the number of MCMC steps (K) in L-MCVAE improves both ELBO and held-out log-likelihood, with K=10 yielding 68.36 ± 0.04 on CIFAR-10.
  • L-MCVAE shows faster convergence and better stability during training compared to A-MCVAE, attributed to lower-variance gradient estimates.
  • The proposed method achieves state-of-the-art log-likelihood on MNIST (68.09 ± 0.10 with K=5) and CIFAR-10 (67.76 ± 0.04 with K=10), surpassing standard VAEs and IWAE.
  • Empirical results confirm that SIS-based MCVAEs with undirected transitions provide a favorable trade-off between ELBO tightness and gradient variance, making them more practical than AIS-based alternatives.

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.