Nonparametric Inference for Auto-Encoding Variational Bayes

Erik Bodin, Iman Malik, Carl Henrik Ek, Neill D. F. CampbellarXiv 2017

Abstract

Variational Autoencoders (VAEs) often face a fundamental trade-off between high-fidelity reconstruction and low-dimensional interpretability. We present the Nonparametric VAE (np-VAE), which decouples generative capacity from latent organization by introducing a secondary, low-dimensional "sharing space" ($X$) that guides a high-dimensional "generative space" ($Z$). By utilizing a Gaussian Process (GP) framework to model interactions between data points in the latent space, the np-VAE achieves high-quality reconstructions while maintaining a simple, navigable 2D manifold for visualization and sampling.

Introduction

In unsupervised learning, the goal is to learn latent representations that are both high-capacity (for perfect reconstruction) and interpretable (for visualization). Standard VAEs struggle with this; a 2D latent space often leads to blurry, over-regularized outputs, while a high-dimensional space (e.g., 500D) provides crisp images but is impossible for humans to navigate. The np-VAE aims to "escape" this trade-off by drawing inspiration from Gaussian Process Latent Variable Models (GP-LVMs), which excel at finding low-dimensional structure but typically lack the scalability of VAEs.

Methodology

The core innovation of the np-VAE is a hierarchical latent structure: $Y \\leftarrow Z \\leftarrow X$.

  1. The Generative Space ($Z$): A high-dimensional space that provides the capacity for the decoder to reconstruct complex data ($Y$).
  2. The Sharing Space ($X$): A new, low-dimensional latent space (typically 2D) that models the interactions between data points.
  3. The Nonparametric Link: Instead of assuming $Z$ variables are independent, they are treated as conditionally independent given $X$. A Gaussian Process framework allows $X$ to "guide" the placement of $Z$ points.
Architectural comparison between standard VAE models and the proposed Nonparametric VAE (np-VAE) and its inference scheme.

To maintain computational efficiency and avoid the $O(N^3)$ complexity of standard GPs, the authors introduce a "moment matching" objective. Instead of standard KL-divergence, they optimize the model by matching the expected values of the VAE’s latent points with predictions generated from the $X$ space using a squared exponential kernel. This allows the model to scale to large datasets while maintaining the structured "sharing" properties of a GP.

Results and Discussion

The model was evaluated on the MNIST dataset (55,000 training examples). Key findings include:

  • Stability Across Dimensions: The authors demonstrate that while a standard VAE's latent space becomes un-visualizable as dimensions increase, the np-VAE maintains a clear, clustered 2D map of MNIST digits whether the underlying $Z$ space is 10, 100, or 1000 dimensions.
  • Meaningful Interpolation: "Walking" through the latent $X$ space produces smooth, credible morphing between digits, avoiding the "dead zones" of nonsense data often encountered in high-dimensional VAE interpolations. This results in much more "credible" intermediate states compared to standard approaches.
  • High-Fidelity Sampling: Even with a 500D generative space, the model allows for ancestral sampling from the 2D space, enabling the generation of crisp, high-quality images from a simple 2D map.

Conclusion

The np-VAE successfully decouples a model's generative capacity from its latent interpretability. By integrating GP-inspired sharing into the VAE framework via amortized inference, the authors provide a scalable solution for learning structured, high-fidelity latent representations.

Summary updated

BibTeX
@misc{bodin2017nonparametric,
  author = {Erik Bodin and Iman Malik and Carl Henrik Ek and Neill D. F. Campbell},
  title = {{Nonparametric Inference for Auto-Encoding Variational Bayes}},
  year = {2017},
  eprint = {1712.06536},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.06536},
}
Figure