Towards Deeper Understanding of Variational Autoencoding Models

Shengjia Zhao, Jiaming Song, Stefano ErmonarXiv 2017

Abstract

Variational Autoencoders (VAEs) are fundamental to generative modeling but are often plagued by two failure modes: the generation of blurry images and "latent variable collapse," where powerful decoders ignore learned features. This paper re-evaluates VAEs from a non-Bayesian optimization perspective, framing training as the approximation of a posterior distribution $q(x|z)$ within a parametric family. We introduce the Sequential VAE, which produces sharp images by decomposing the generation process into multiple steps, and demonstrate that an unregularized objective can prevent latent collapse by maximizing mutual information. Our results on benchmarks like MNIST and LSUN show that high-quality, sharp samples can be achieved without adversarial loss.

1. Introduction

Since their introduction, VAEs have been staples of unsupervised learning. However, they consistently struggle with complex datasets, often producing blurry samples when using standard $L_2$ reconstruction losses. Furthermore, when paired with powerful autoregressive decoders like PixelCNN, VAEs frequently suffer from latent variable collapse, where the model ignores the latent code $z$ entirely. This paper argues these are not inherent flaws of maximum likelihood estimation but are consequences of the Evidence Lower Bound (ELBO) objective and limited inference distributions.

2. Problem Statement: Blur and Information Preference

The authors identify two primary theoretical hurdles:

  1. Blur as Posterior Variance: Blurriness is formally linked to the variance of the posterior $q(x|z)$. If a latent code $z$ maps to a wide distribution of possible images $x$, the optimal $L_2$ reconstruction is the mean of that distribution—resulting in a blurry image.
  2. The Information Preference Problem: In the standard ELBO, the KL-divergence term acts as a penalty for using the latent code. If a decoder is sufficiently expressive to model the data distribution alone, the optimization path of least resistance is to set the mutual information between $x$ and $z$ to zero.

3. Methodology

3.1 Sequential VAE

To combat blurriness, the authors propose a multi-step generation process. Instead of mapping a simple $z$ to a complex $x$ in one pass, the Sequential VAE gradually augments latent information. Each step simplifies the remaining posterior $q(x|z)$, allowing a simple Gaussian conditional to capture sharp, high-frequency details.

Graphical model of the Sequential VAE architecture illustrating the multi-step latent refinement process.

3.2 Unregularized VAE

By removing standard KL-divergence regularization in scenarios where ancestral sampling is not the immediate priority, the model is mathematically incentivized to maximize the mutual information between the data and the latent code. This prevents the decoder from ignoring the latent space, even when using highly expressive architectures.

4. Experimental Results

The proposed methods were validated on several standard benchmarks, including MNIST, CIFAR-10, CelebA, and LSUN Bedrooms.

  • Sharpness without GANs: The Sequential VAE achieved sharp, high-resolution textures on LSUN and CelebA using only $L_2$ loss, challenging the assumption that Generative Adversarial Networks (GANs) are strictly necessary for high-fidelity samples.
  • Defeating Latent Collapse: Using the unregularized objective, the authors successfully trained VAEs with PixelCNN decoders that maintained high mutual information, learning meaningful feature representations.
Latent space visualization on MNIST, demonstrating how the model organizes digit identities and features within the manifold.

5. Discussion and Limitations

While the Sequential VAE improves sample quality, it introduces a trade-off in computational cost, requiring multiple passes for encoding and decoding. Additionally, the unregularized VAE, while superior for feature learning, loses the ability for simple ancestral sampling, requiring more complex methods like Gibbs sampling for image generation. Future research will focus on exploring alternative regularization techniques to balance sample quality, sampling speed, and representation learning.

Summary updated

BibTeX
@misc{zhao2017towards,
  author = {Shengjia Zhao and Jiaming Song and Stefano Ermon},
  title = {{Towards Deeper Understanding of Variational Autoencoding Models}},
  year = {2017},
  eprint = {1702.08658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.08658},
}
Figure