Introduction
Variational Autoencoders (VAEs) are fundamental tools in unsupervised learning, designed to model complex data distributions by mapping high-dimensional input $x$ to a lower-dimensional latent space $z$. However, a persistent challenge in training VAEs is "posterior collapse," where the decoder becomes so powerful that it ignores the latent variables entirely, rendering the learned representations useless. This paper proposes VMI-VAE, a framework that explicitly maximizes the mutual information (MI) between observations and latent codes to ensure informative representations.
The Challenge of Posterior Collapse
Standard VAEs are trained by maximizing the Evidence Lower Bound (ELBO), which consists of a reconstruction term and a Kullback-Leibler (KL) divergence term. While the KL term encourages the latent distribution to match a prior, it often acts as a regularizer that pushes the latent information to zero. If the decoder can reconstruct the data using its own internal capacity, it may ignore $z$ to minimize the KL penalty. Consequently, the mutual information $I(x; z)$ remains low, and the latent space fails to capture meaningful semantic features.
The VMI-VAE Framework
To combat this, the authors introduce a Variational Mutual Information Maximization regularizer. The modified objective function is defined as: $$Objective = ELBO + \lambda \cdot MI(z; x)$$ where $\lambda$ is a hyperparameter weighting the importance of mutual information.
As shown in Figure 1, the framework introduces an auxiliary inference network, $Q(z|x)$. Because direct calculation of MI is intractable for complex neural networks, $Q$ serves to provide a variational lower bound. By training the model such that $Q$ can accurately recover the latent code $z$ from the decoder's output, the framework forces the decoder to embed information about $z$ into the generated data. For discrete latent variables, the model utilizes the Gumbel-Softmax trick to maintain differentiability during backpropagation.
Key Results
The VMI-VAE was evaluated on the MNIST and FashionMNIST datasets. The results demonstrate both qualitative and quantitative improvements over standard VAEs.
Qualitative Analysis: Latent Traversals
In latent space traversals—where one latent dimension is varied while others are held constant—VMI-VAE exhibits clear semantic transitions. For instance, a digit might smoothly transition from a '1' to a '6'. In contrast, vanilla VAEs often show "dead" dimensions where changing the latent code results in no change to the output image, a hallmark of posterior collapse.
As illustrated in Figure 6, increasing the value of $\lambda$ directly impacts the informativeness of the generated samples. While the Vanilla VAE produces static or blurry outputs across the traversal, VMI-VAE generates distinct, class-consistent variations as $\lambda$ increases, proving the decoder is successfully utilizing the latent information.
Quantitative Performance
The framework's ability to learn meaningful discrete representations was tested via unsupervised classification on MNIST. The categorical latent codes learned by VMI-VAE achieved an accuracy of approximately 74%, a significant leap from the 21% accuracy observed in a vanilla VAE. This confirms that the MI regularizer successfully guides the model to capture high-level semantic categories in its latent space.
Conclusion
VMI-VAE provides a robust solution to the problem of posterior collapse by explicitly linking the latent space to the data via mutual information maximization. While the addition of the $Q$ network introduces some computational overhead and requires careful tuning of the $\lambda$ hyperparameter, the resulting improvements in representation quality and disentanglement make it a powerful extension of the standard VAE framework.
Summary updated