Tackling Over-pruning in Variational Autoencoders

Serena Yeung, Anitha Kannan, Yann N. Dauphin, Li Fei-FeiarXiv 2017

TL;DR

Variational Autoencoders (VAEs) often suffer from "over-pruning," where many latent variables become inactive, limiting their ability to model data diversity. This paper introduces the Epitomic VAE (eVAE), a novel architecture that groups latent factors into "epitomes" to encourage better utilization of model capacity, leading to improved generation and generalization.

What Problem Does This Paper Address?

Generative models like Variational Autoencoders (VAEs) aim to learn the underlying structure of data to generate new samples. VAEs use a set of independent "latent variables" to represent different factors of variation in the data. However, a common issue, termed "over-pruning," arises where a significant number of these latent variables become inactive during training. This means they fail to learn anything useful and essentially become useless, severely limiting the VAE's ability to capture diverse aspects of the data and generate varied, high-quality samples. Existing methods to combat this often involve manual tuning or deviate from the core VAE principles, prompting the need for a more principled, model-based solution.

Methods

The core innovation is the Epitomic Variational Autoencoder (eVAE). Instead of treating all latent variables independently, eVAE introduces a categorical latent variable that selects an "epitome." An epitome is a group of mutually exclusive latent factors that are active for a particular data point. This structure encourages competition among epitomes to explain the data, preventing individual latent units from becoming inactive.

Key aspects of the eVAE method:

  • Epitome Structure: The latent space is partitioned into smaller, structured subspaces (epitomes). For a given input, only a subset of latent dimensions corresponding to the selected epitome are actively used.
  • Epitome Selector: A discrete latent variable y is introduced to choose which epitome is active for a given data point.
  • Generative Process: The observation x is generated based on the selected epitome and the corresponding latent variables.
  • Recognition Network: The recognition network q(z, y|x) now infers both the continuous latent variables z and the discrete epitome selector y.
  • Cost Function: The eVAE cost function includes terms for reconstruction, KL divergence of the epitome selector, and KL divergence of the selected latent variables, ensuring that only the active latent units contribute to the KL penalty.

This approach contrasts with standard VAEs and other methods like dropout VAEs, which might increase unit activity but don't necessarily lead to better representation or address the root cause of over-pruning.

Datasets

The paper uses the following standard datasets for training and evaluation:

  • MNIST: A widely used dataset of handwritten digits.
  • Toronto Faces Database (TFD): A dataset of human faces.

Key Insights and Ideas

  • Over-pruning is a fundamental limitation of standard VAEs: The paper clearly demonstrates that even with increased latent dimensions, standard VAEs struggle to utilize the capacity effectively, leading to poor generation.
  • Structured latent spaces are key: By organizing latent variables into competing "epitomes," eVAE forces latent units to contribute to explaining data, preventing them from collapsing to the prior.
  • eVAE enables better generalization: The ability to utilize more of the model's capacity leads to eVAE generalizing better and producing more diverse and higher-quality samples.
  • Parameter sharing across epitomes is beneficial: Unlike mixture models, eVAE's shared parameters allow each epitome to benefit from general features learned across the training set, leading to more robust performance.
  • Simple latent variable grouping is more effective than dropout for utilization: While dropout can increase unit activity, it doesn't necessarily lead to better representation or address the core issue of over-pruning, unlike the structured approach of eVAE.

Key Results

  • Qualitative Improvements: Figure 6 visually demonstrates that as the latent dimension D increases, VAE generation quality degrades, producing blurry or repetitive digits. In contrast, eVAE maintains and improves generation quality, showing more diverse styles of digits (e.g., different strokes for '7' and '4').
  • Quantitative Improvements:
    • Parzen Log-Densities: Table 1 and Table 4 show that eVAE consistently outperforms VAE and other baseline models (like mVAE) on TFD and MNIST datasets across various model complexities and latent dimensions, indicating better generative performance. For instance, on TFD with D=15, eVAE achieves a Parzen log-density of 2371, significantly higher than VAE's 2180.
  • Log-Likelihood: Table 2 shows that as the latent dimension D increases, VAE performance plateaus or slightly degrades, while eVAE continues to improve its log-likelihood estimates, demonstrating better utilization of latent capacity.
  • Overcoming Over-pruning: Figure 3 shows that while dropout VAE increases unit activity, eVAE achieves a similar or better activity profile while also demonstrating superior generation quality.

Limitations and Future Work

  • Discrete Latent Variable Inference: The paper notes that inferring the discrete epitome selector y is challenging. They primarily use a point estimate (y*) and found that using REINFORCE or passing gradients through categorical samplers did not work well, especially for a large number of epitomes. This is left as future work.
  • Exploration of Epitome Structures: The paper assumes a simple structured sparsity for epitomes (contiguous dimensions). More complex structured sparsity could be explored.
  • Combining with Advanced Inference: The authors mention that their epitomic training can also improve methods like IWAE (Importance Weighted Autoencoder), suggesting potential for combining eVAE with other advanced variational inference techniques.

Summary updated

BibTeX
@misc{yeung2017tackling,
  author = {Serena Yeung and Anitha Kannan and Yann N. Dauphin and Li Fei-Fei},
  title = {{Tackling Over-pruning in Variational Autoencoders}},
  year = {2017},
  eprint = {1706.03643},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.03643},
}
Figure