Skip to main content
QUICK REVIEW

[Paper Review] Discrete Variational Autoencoders

Jason Tyler Rolfe|arXiv (Cornell University)|Sep 7, 2016
Generative Adversarial Networks and Image SynthesisComputer Science47 references44 citations
TL;DR

This paper introduces discrete variational autoencoders (discrete VAEs), a novel class of probabilistic models that combine undirected discrete latent variables (modeled via a restricted Boltzmann machine) with hierarchical continuous latent variables. By enabling backpropagation through discrete variables using a reparameterization trick adapted for discrete distributions, the method achieves tight evidence lower bounds and outperforms state-of-the-art models on permutation-invariant MNIST, Omniglot, and Caltech-101 Silhouettes, learning both object class and pixel-level details in an unsupervised manner.

ABSTRACT

Probabilistic models with discrete latent variables naturally capture datasets composed of discrete classes. However, they are difficult to train efficiently, since backpropagation through discrete variables is generally not possible. We present a novel method to train a class of probabilistic models with discrete latent variables using the variational autoencoder framework, including backpropagation through the discrete latent variables. The associated class of probabilistic models comprises an undirected discrete component and a directed hierarchical continuous component. The discrete component captures the distribution over the disconnected smooth manifolds induced by the continuous component. As a result, this class of models efficiently learns both the class of objects in an image, and their specific realization in pixels, from unsupervised data, and outperforms state-of-the-art methods on the permutation-invariant MNIST, Omniglot, and Caltech-101 Silhouettes datasets.

Motivation & Objective

  • To address the challenge of training probabilistic models with discrete latent variables using the variational autoencoder framework, which traditionally cannot support backpropagation through discrete variables.
  • To model datasets composed of multiple disconnected smooth manifolds—such as images of different object classes—by separating discrete class-level factors from continuous, deformable realizations.
  • To develop a method that maintains a tight evidence lower bound (ELBO) despite the intractability of posterior inference in models with discrete latent variables.
  • To enable efficient, end-to-end training of models with both discrete and continuous latent variables using a hierarchical posterior approximation.
  • To demonstrate superior performance on unsupervised representation learning benchmarks, particularly in capturing both object identity and detailed visual variation.

Proposed method

  • The model architecture consists of a bipartite restricted Boltzmann machine (RBM) as the discrete latent layer, followed by multiple layers of continuous latent variables, forming a hierarchical generative model.
  • A hierarchical posterior approximation is used to model strong correlations among discrete latent variables, ensuring a tight evidence lower bound (ELBO).
  • The reparameterization trick is adapted for discrete variables by using the inverse CDF of the conditional-marginal distribution to enable gradient estimation through discrete samples.
  • Backward gradients are computed via a differentiable transformation of uniform random variables into discrete latent states, allowing backpropagation through the discrete layer.
  • Persistent Markov chains are used to sample from the RBM prior during generation, enabling stable mode exploration and mode consistency across samples.
  • The model is trained using stochastic optimization of the ELBO, with the autoencoding term computed via reparameterized sampling and the KL term computed analytically or approximated.

Experimental results

Research questions

  • RQ1Can backpropagation be effectively applied to discrete latent variables in a variational autoencoder framework?
  • RQ2Can a hierarchical posterior approximation maintain a tight evidence lower bound in models with discrete latent variables?
  • RQ3Can a hybrid model of discrete and continuous latent variables jointly capture both object class and fine-grained visual variation in unsupervised learning?
  • RQ4How well does the model generalize to datasets with multiple disconnected manifolds, such as MNIST, Omniglot, and Caltech-101 Silhouettes?
  • RQ5Does the model learn well-separated, interpretable modes in the discrete latent space corresponding to distinct object classes without supervision?

Key findings

  • The discrete VAE achieves a negative log-likelihood of -97.0 on statically binarized MNIST using 200 binary latent variables, outperforming previous models.
  • On the Omniglot dataset, the model learns distinct, well-separated modes in the RBM prior, as evidenced by consistent digit-like generations across 100 Gibbs sampling steps.
  • On Caltech-101 Silhouettes, the model identifies distinct modes corresponding to large, convex shapes, even without class labels.
  • The model demonstrates that persistent Gibbs sampling over the RBM prior reveals stable, multimodal structure, indicating that the discrete latent space captures meaningful object classes.
  • The hierarchical posterior approximation significantly improves ELBO tightness compared to a factorial posterior, especially in modeling complex dependencies among discrete variables.
  • The method enables end-to-end training of models with discrete latent variables using backpropagation, overcoming a major limitation in variational inference for discrete distributions.

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.