Variational Mutual Information Maximization Framework for VAE Latent Codes with Continuous and Discrete Priors

Andriy Serdega, Dae-Shik KimarXiv 2019

Abstract

Learning interpretable and disentangled representations of data is a key topic in machine learning research. Variational Autoencoder (VAE) is a scalable method for learning directed latent variable models of complex data. It employs a clear and interpretable objective that can be easily optimized. However, this objective does not provide an explicit measure for the quality of latent variable representations which may result in their poor quality. We propose Variational Mutual Information Maximization Framework for VAE to address this issue. In comparison to other methods, it provides an explicit objective that maximizes lower bound on mutual information between latent codes and observations. The objective acts as a regularizer that forces VAE to not ignore the latent variable and allows one to select particular components of it to be most informative with respect to the observations. On top of that, the proposed framework provides a way to evaluate mutual information between latent codes and observations for a fixed VAE model. We have conducted our experiments on VAE models with Gaussian and joint Gaussian and discrete latent variables. Our results illustrate that the proposed approach strengthens relationships between latent codes and observations and improves learned representations.

Introduction

Variational Autoencoders (VAEs) are a cornerstone of unsupervised learning, yet they frequently suffer from "posterior collapse." This occurs when the Evidence Lower Bound (ELBO) objective allows a powerful decoder to reconstruct data while ignoring the latent variables. Consequently, the learned representations often lack semantic meaning. This paper introduces a framework that explicitly maximizes the mutual information (MI) between observations and latent codes, ensuring that the latent space captures salient features of the data.

Methodology

The core of the proposed framework is the addition of a variational MI regularizer to the standard VAE objective. Because exact MI is computationally intractable, the author introduces an auxiliary network ($Q$) that acts as a critic. This network attempts to recover the original latent code $z$ from the decoder's output, establishing a trainable lower bound on the true mutual information.

The final training objective is defined as: $$\mathcal{L} = ELBO + \lambda \cdot MI_{bound}$$

This approach is uniquely designed to handle joint priors, allowing the latent space to simultaneously model continuous factors (like style or rotation) and discrete factors (like object identity).

Experimental Evaluation

The framework was tested on standard benchmarks including MNIST, FashionMNIST, Frey Face, and CelebA.

Unsupervised Class Discovery

A standout result of this framework is its ability to perform unsupervised classification. By using a discrete categorical latent variable, the model naturally learns to group similar data points. On the MNIST dataset, the MI-maximized VAE achieved 82% accuracy in identifying digits without any labels during training, compared to just 21% for a standard VAE.

Disentanglement and Interpretability

Qualitative results demonstrate that maximizing MI prevents the decoder from ignoring latent dimensions. Latent traversals show smooth, semantically meaningful transitions—such as changing the tilt of a digit or the expression of a face—without affecting other attributes. This confirms that the framework successfully disentangles the underlying factors of variation in an unsupervised manner.

Conclusion

The Variational Mutual Information Maximization Framework provides a robust solution to posterior collapse. By forcing a strong relationship between data and latent codes, it enables the discovery of interpretable structures in complex datasets. While the auxiliary network adds some computational complexity, the resulting improvements in representation quality and unsupervised classification performance are substantial.

Summary updated

BibTeX
@misc{serdega2019variational,
  author = {Andriy Serdega and Dae-Shik Kim},
  title = {{Variational Mutual Information Maximization Framework for VAE Latent Codes with Continuous and Discrete Priors}},
  year = {2019},
  eprint = {2006.02227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.02227},
}
Figure