MAE: Mutual Posterior-Divergence Regularization for Variational AutoEncoders

Xuezhe Ma, Chunting Zhou, Eduard H. Hovy

Introduction

Variational Autoencoders (VAEs) are a cornerstone of modern generative modeling, designed to learn compact latent representations of complex data. However, a persistent challenge in training VAEs is "posterior collapse" (or KL vanishing). This phenomenon occurs when the decoder becomes sufficiently powerful to reconstruct data without relying on the latent code. Consequently, the KL divergence term in the objective function vanishes, and the model fails to learn meaningful representations, rendering the latent space useless for downstream tasks like clustering or classification.

To address this, researchers from Carnegie Mellon University have introduced Mutual posterior-divergence Regularization (MAE). This novel technique forces the model to learn diverse and smooth posterior distributions, ensuring that latent variables remain informative even when paired with highly expressive decoders.

Methodology: The MAE Objective

The core of the MAE approach is a modified objective function that augments the standard Evidence Lower Bound (ELBO) with two data-dependent regularization terms:

  1. Mutual Posterior Diversity ($\mathcal{L}_{diverse}$): This term encourages the posterior distributions $q(z|x)$ for different data points to be distinct. By maximizing the KL divergence between pairs of posteriors, the model is incentivized to use the latent space to differentiate between inputs.
  2. Measure of Smoothness ($\mathcal{L}_{smooth}$): While diversity is crucial, excessive separation can lead to a fractured latent space. The smoothness term minimizes the variance of pairwise distances between posteriors, promoting an even and continuous distribution across the latent space.
Conceptual illustration of latent space regularization: (a) shows potential clustering without smoothness, while (b) illustrates the desired even spread of posteriors.

The combined loss function is defined as: $\mathcal{L}_{MAE} = \mathcal{L}_{ELBO} + \eta \mathcal{L}_{diverse} + \gamma \mathcal{L}_{smooth}$.

The authors demonstrate that maximizing the diversity term is theoretically equivalent to maximizing a symmetric version of the Mutual Information between data and latent variables. Unlike previous methods like InfoVAE, MAE achieves this through a simpler and more stable training objective. To ensure numerical stability, the authors employ a "log-sum-exp" formulation, which prevents the unbounded growth of KL divergence.

Experimental Results

The MAE framework was evaluated on three benchmark image datasets: MNIST, OMNIGLOT, and CIFAR-10.

Density Estimation and Reconstruction

MAE achieved state-of-the-art performance in density estimation on binary image datasets. On MNIST, it reached a negative log-likelihood (NLL) of 77.98, and on OMNIGLOT, it achieved 89.09. These results surpass previous strong baselines such as VLAE and IAF VAE.

Reconstructed MNIST digits demonstrating the model's ability to maintain high-quality generation while preserving informative latent codes.

Representation Learning

The primary strength of MAE lies in the quality of its learned representations:

  • Unsupervised Clustering: In K-Means clustering tasks on MNIST, MAE achieved an accuracy of 91.2%, a significant improvement over the 68.1% achieved by standard VLAE.
  • Semi-supervised Learning: With only 100 labeled examples, the model reached 91.5% accuracy on MNIST, indicating that the latent features are highly discriminative.

Discussion and Future Work

A key insight from this work is the importance of relative geometry in the latent space. By focusing on how different data points relate to one another rather than just fitting a global prior, MAE creates a more structured and useful representation. The smoothness term is particularly vital for unsupervised learning, as it prevents the formation of isolated clusters and ensures that similar data points occupy adjacent regions in the latent space.

While MAE shows exceptional results on binary images, its performance on more complex natural images like CIFAR-10 is currently comparable to existing methods. Future research will focus on scaling these geometric regularization techniques to more complex visual scenes and exploring their application in Natural Language Processing (NLP), where posterior collapse is a particularly severe issue.

Summary updated

BibTeX
@inproceedings{ma2019mae,
  author = {Xuezhe Ma and Chunting Zhou and Eduard H. Hovy},
  title = {{MAE: Mutual Posterior-Divergence Regularization for Variational AutoEncoders}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=ZmkV7RST7aO},
}
Figure