Skip to main content
QUICK REVIEW

[Paper Review] Undirected Graphical Models as Approximate Posteriors

Arash Vahdat, Evgeny Andriyash|arXiv (Cornell University)|Jan 11, 2019
Generative Adversarial Networks and Image SynthesisComputer Science45 references5 citations
TL;DR

This paper introduces a novel gradient estimation method that enables training undirected graphical models (UGMs), specifically Boltzmann machines, as approximate posteriors in variational autoencoders (VAEs). By backpropagating through Markov chain Monte Carlo (MCMC) updates, the approach achieves low-variance gradients and demonstrates that UGM-based posteriors outperform traditional directed models in discrete VAEs, improving generative performance on MNIST and OMNIGLOT datasets.

ABSTRACT

The representation of the approximate posterior is a critical aspect of effective variational autoencoders (VAEs). Poor choices for the approximate posterior have a detrimental impact on the generative performance of VAEs due to the mismatch with the true posterior. We extend the class of posterior models that may be learned by using undirected graphical models. We develop an efficient method to train undirected approximate posteriors by showing that the gradient of the training objective with respect to the parameters of the undirected posterior can be computed by backpropagation through Markov chain Monte Carlo updates. We apply these gradient estimators for training discrete VAEs with Boltzmann machines as approximate posteriors and demonstrate that undirected models outperform previous results obtained using directed graphical models. Our implementation is available at https://github.com/QuadrantAI/dvaess .

Motivation & Objective

  • To address the lack of effective gradient estimation methods for training undirected graphical models (UGMs) as approximate posteriors in variational autoencoders (VAEs).
  • To overcome the challenges of intractable partition functions and expensive sampling in UGMs when used as posteriors in large-scale VAE training.
  • To improve the expressiveness and generative quality of discrete VAEs by replacing directed posterior models with more flexible UGMs, such as Boltzmann machines.
  • To enable amortized inference with UGMs by developing a differentiable MCMC-based gradient estimator suitable for stochastic optimization.

Proposed method

  • Proposes a gradient estimator that backpropagates through a single step of Gibbs sampling in a Markov chain Monte Carlo (MCMC) process applied to the UGM posterior.
  • Uses reparameterized sampling within MCMC updates to enable gradient computation despite the intractability of the partition function and intractable normalization in UGMs.
  • Applies the method to train restricted Boltzmann machines (RBMs) as approximate posteriors in discrete VAEs (DVAE##), enabling end-to-end training via backpropagation.
  • Employs a single MCMC update per training step to balance computational cost and gradient variance, achieving stable optimization.
  • Leverages the conditional independence structure of UGMs (e.g., RBMs) to enable efficient backpropagation through Gibbs sampling steps.
  • Uses importance-weighted autoencoders (IWAE) and structured prediction benchmarks to evaluate the method under diverse settings.

Experimental results

Research questions

  • RQ1Can undirected graphical models be effectively trained as approximate posteriors in variational autoencoders using backpropagation through MCMC?
  • RQ2Does using a Boltzmann machine as an approximate posterior improve generative performance compared to directed models in discrete VAEs?
  • RQ3Can a single MCMC update provide a low-variance gradient estimator sufficient for training UGM posteriors in a VAE framework?
  • RQ4How does the performance of UGM-based posteriors compare to directed models in terms of log-likelihood and reconstruction quality on benchmark datasets?
  • RQ5Can the proposed method scale to structured prediction tasks and maintain performance gains over existing approaches?

Key findings

  • The DVAE## model with RBM posteriors achieves a test log-likelihood of -82.97 nats on MNIST, outperforming previous methods using directed posteriors.
  • On OMNIGLOT, the DVAE## model achieves a test log-likelihood of -98.34 nats, demonstrating superior generative performance over baseline DVAEs.
  • The method achieves consistent improvements in both standard VAEs and importance-weighted VAEs (IWAE), with gains of several nats on MNIST and OMNIGLOT.
  • Experiments show that UGM posteriors are more expressive than mean-field and autoregressive posteriors, capturing complex posterior structures not well-modeled by directed models.
  • The single-MCMC-update gradient estimator provides sufficient gradient quality for training, with low variance and stable convergence despite being biased.
  • Reimplementation of prior models (GumBolt, DVAE#) using the proposed framework improves their performance, indicating the method's generalizability.

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.