Introduction
Variational Autoencoders (VAEs) have become a cornerstone of generative modeling, providing a framework for learning latent representations of complex data. However, the standard training objective—the Evidence Lower Bound (ELBO)—is known to suffer from fundamental flaws that often lead to poor inference or "latent collapse." This paper introduces InfoVAE, a generalized family of objective functions designed to maximize the mutual information between inputs and latent codes, ensuring that the model learns meaningful representations without sacrificing generative quality.
The Failure Modes of the ELBO
The authors identify two primary reasons why the standard ELBO objective often fails in practice:
- Amortized Inference Failures: The ELBO inherently prioritizes fitting the high-dimensional data distribution over the accuracy of the latent posterior. This often results in the model overestimating the variance of latent variables, creating an approximate posterior that deviates significantly from the true posterior.
- The Information Preference Problem (Latent Collapse): When a VAE utilizes a powerful, flexible decoder (such as an autoregressive PixelCNN), the model often finds a shortcut: it ignores the latent variables entirely. In these cases, the mutual information between the input $x$ and the latent code $z$ drops to zero, and the VAE effectively reverts to a standard autoregressive model, failing to learn any useful unsupervised representation.
These issues are exacerbated by the Dimensionality Trap. Because the data space (e.g., image pixels) is much larger than the latent space, any small error in reconstruction incurs a massive penalty compared to errors in the latent space. Consequently, the ELBO sacrifices latent accuracy to achieve marginal gains in pixel-level reconstruction.
The InfoVAE Framework
To address these biases, the authors propose the InfoVAE family. This framework modifies the standard objective by introducing two key hyperparameters:
- Scaling Parameter ($\lambda$): Reweights the divergence between the latent distribution and the prior to correct the dimensionality imbalance between the data and latent spaces.
- Mutual Information Term ($\alpha$): Explicitly encourages the model to encode information about the input into the latent code by maximizing $I_q(x; z)$.
By mathematically isolating the divergence between the marginal posterior $q_\phi(z)$ and the prior $p(z)$, the authors demonstrate that one can substitute the standard Kullback-Leibler (KL) divergence with alternative, likelihood-free divergence measures. They explore three specific implementations:
- Maximum-Mean Discrepancy (MMD): Uses the kernel trick to compare the moments of two distributions.
- Adversarial Training: Employs a GAN-like discriminator to distinguish between the posterior and the prior.
- Stein Variational Gradient: Uses a set of particles to iteratively match the target distribution.
Empirical Results and Insights
The authors evaluated InfoVAE across several benchmarks, including toy Gaussian mixtures, Binarized MNIST, and CIFAR-10. Their findings highlight several key advantages of the InfoVAE approach:
- Accurate Amortized Inference: On MNIST, while the standard ELBO severely overestimated posterior variance, the MMD-based InfoVAE (MMD-VAE) perfectly matched the true prior's variance, leading to significantly more accurate inference.
- Resisting Latent Collapse: When paired with flexible PixelCNN decoders, standard VAEs failed to use the latent space, resulting in poor performance on downstream tasks. InfoVAE forced the model to utilize the latent code, leading to dramatic improvements in semi-supervised classification accuracy.
- Quantitative Superiority: MMD-VAE achieved the best Negative Log-Likelihood (NLL) on MNIST (80.76) compared to the ELBO baseline (82.75).
- Stability: Among the proposed methods, MMD-VAE proved to be the most stable and required the least hyperparameter tuning. While Adversarial VAEs were prone to instability and Stein VAEs struggled with higher-dimensional latents, MMD-VAE remained robust.
Conclusion
InfoVAE provides a unifying theoretical foundation that recovers and explains previous models like the $\beta$-VAE and Adversarial Autoencoder (AAE). By explicitly prioritizing mutual information and leveraging robust divergence measures like MMD, InfoVAE offers a more reliable path toward learning high-quality, informative latent representations in generative models.
Summary updated