Deep Generative Models with Stick-Breaking Priors

Eric Nalisnick, Padhraic Smyth

Abstract

Bayesian nonparametric models are attractive for their data-dependent capacity, but their implementation can be problematic due to computational or analytical obstacles. We make progress on this problem by extending Stochastic Gradient Variational Bayes (Kingma & Welling, 2013), a 'black box' method for approximate posterior inference, to stick-breaking priors (Ishwaran & James, 2001). This innovation allows us to define deep generative models (DGMs) with infinite dimensional latent variables. We experimentally demonstrate that DGMs with Dirichlet process priors learn highly discriminative latent representations that are well suited for semi-supervised settings and often outperform the popular Gaussian alternative.

Introduction

Standard Deep Generative Models (DGMs), such as the Variational Autoencoder (VAE), typically rely on a fixed-dimensional Gaussian distribution for their latent space. While effective, this approach presents two primary challenges: the necessity of pre-defining latent capacity and a potential lack of structure that reflects the underlying categories or sparsity of the data. Bayesian Nonparametric (BNP) models, such as the Dirichlet Process, offer a solution by allowing model complexity to grow with the data. However, integrating BNPs with deep learning has traditionally been difficult due to the requirement for complex inference techniques like Gibbs sampling, which are incompatible with gradient-based backpropagation.

Methods: The Stick-Breaking Prior and Kumaraswamy Distribution

This research bridges the gap between DGMs and BNP by introducing a "Stick-Breaking" prior for latent variables. The stick-breaking process conceptualizes latent weights as segments broken from a unit-length stick, theoretically allowing for an infinite number of dimensions.

To enable end-to-end training via Stochastic Gradient Variational Bayes (SGVB), the authors utilize the Kumaraswamy distribution as the variational posterior. Unlike the standard Beta distribution, the Kumaraswamy distribution possesses a closed-form inverse CDF, which facilitates the "reparameterization trick":

$$x = (1 - u^{1/b})^{1/a} \text{ where } u \sim \text{Uniform}(0, 1)$$

This differentiability allows the model, termed the Stick-Breaking Variational Autoencoder (SB-VAE), to be optimized using standard deep learning techniques.

Model architecture and plate diagrams for finite and infinite dimensional stick-breaking priors.

Experimental Evaluation

The SB-VAE was evaluated against standard Gaussian VAEs on several benchmarks, including Frey Faces, MNIST, and Street View House Numbers (SVHN). A key test involved "MNIST+rot," a dataset of rotated digits designed to evaluate whether the model adaptively increases its latent capacity for more complex data.

Key Results and Discussion

The stick-breaking prior encourages the model to use only as many latent dimensions as necessary, leading to sparse and interpretable representations. In unsupervised settings, the SB-VAE demonstrated significantly higher discriminative power. On MNIST, a k-Nearest Neighbor classifier trained on the SB-VAE latent space achieved an error rate of ~8.6%, vastly outperforming the ~20.9% error rate of the Gaussian VAE.

Comparative performance of SB-VAE vs. Gauss-VAE, including test log-likelihood, latent space visualization, and kNN classification accuracy.

In semi-supervised tasks on the SVHN dataset, the SB-DGM achieved a 61.37% error rate with only 1% of labels, compared to 69.58% for the Gaussian version. Furthermore, the MNIST+rot experiment confirmed that the model successfully adapts its complexity, utilizing more latent dimensions for rotated images than for standard ones.

Conclusion

By extending SGVB to stick-breaking priors via the Kumaraswamy distribution, this work provides a robust framework for combining the flexibility of Bayesian nonparametrics with the power of deep generative models. While challenges remain in handling truly discrete latent variables and managing coupled gradients, the SB-VAE represents a significant step toward models that autonomously determine their own structural complexity.

Summary updated

BibTeX
@inproceedings{nalisnick2017deep,
  author = {Eric Nalisnick and Padhraic Smyth},
  title = {{Deep Generative Models with Stick-Breaking Priors}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=S1jmAotxg},
}
Figure