MIM: Mutual Information Machine

Micha Livne, Kevin Swersky, David J. FleetarXiv 2019

Abstract: We introduce the Mutual Information Machine (MIM), a probabilistic auto-encoder for learning joint distributions over observations and latent variables. MIM reflects three design principles: 1) low divergence, to encourage the encoder and decoder to learn consistent factorizations of the same underlying distribution; 2) high mutual information, to encourage an informative relation between data and latent variables; and 3) low marginal entropy, or compression, which tends to encourage clustered latent representations. We show that a combination of the Jensen-Shannon divergence and the joint entropy of the encoding and decoding distributions satisfies these criteria, and admits a tractable cross-entropy bound that can be optimized directly with Monte Carlo and stochastic gradient descent. We contrast MIM learning with maximum likelihood and VAEs. Experiments show that MIM learns representations with high mutual information, consistent encoding and decoding distributions, effective latent clustering, and data log likelihood comparable to VAE, while avoiding posterior collapse.

Introduction

In the domain of Latent Variable Models (LVMs), the Variational Auto-encoder (VAE) is a standard tool, yet it frequently suffers from posterior collapse. This phenomenon occurs when the model's encoder ignores input data and simply outputs the prior distribution. In such cases, the latent variables ($z$) convey no useful information about the observations ($x$), defeating the purpose of representation learning. While researchers have explored adversarial training or complex heuristics to mitigate this, these methods often lack stability. The Mutual Information Machine (MIM) addresses this by introducing a stable, direct optimization objective that naturally encourages consistency, high mutual information (MI), and efficient data compression.

Methods

The core innovation of MIM is its optimization objective. Unlike the Evidence Lower Bound (ELBO) used by VAEs, MIM minimizes the entropy of a mixture distribution—specifically, an equally weighted mixture of the encoding and decoding joint distributions. This objective is formulated using the Jensen-Shannon Divergence (JSD) and joint entropy, resulting in a tractable cross-entropy bound that can be optimized directly using stochastic gradient descent and the reparameterization trick.

To address the computational cost of sampling from the decoder in high-dimensional settings (e.g., with auto-regressive models like PixelCNN), the authors introduce Asymmetric MIM (A-MIM). A-MIM simplifies the process by sampling only from the encoder, making it practical for complex image data while retaining the framework's primary benefits.

Results and Discussion

MIM was evaluated against VAEs across several benchmarks, including synthetic 2D Gaussian Mixture Models (GMM), MNIST, Fashion-MNIST, and Omniglot.

Robustness to Posterior Collapse

A significant insight of this work is that the VAE objective implicitly discourages high MI, making it prone to collapse as model capacity increases. In contrast, MIM thrives on extra capacity. As shown in the 2D GMM visualization, VAE posteriors are often broad and overlap the prior, whereas MIM posteriors are tight and highly specific to each data point, effectively avoiding collapse.

Comparison of VAE and MIM posteriors on 2D data. MIM shows much tighter, more informative latent distributions.

Representation and Clustering

Because MIM minimizes marginal entropy, it naturally pushes the latent representations of similar data points together. This leads to superior unsupervised clustering without the need for explicit cluster-based losses. This is visually evident in t-SNE embeddings of the MNIST dataset, where MIM's latent space shows clearly separated, dense clusters for different classes, while the VAE's space is more diffuse and overlapping.

t-SNE embeddings for MNIST. MIM (right) shows much tighter and more distinct class clustering than VAE (left).

Quantitatively, MIM consistently achieved significantly higher MI than VAEs. For example, on 20D Fashion-MNIST, MIM's MI remains high even as the latent dimension increases. This informativeness translates to better performance in downstream tasks; using learned latents for 5-Nearest Neighbor classification, MIM reached ~97% accuracy on MNIST, compared to ~92% for VAEs with standard architectures.

Density Estimation Trade-off

While VAEs typically achieve better Negative Log-Likelihood (NLL) scores because they are optimized specifically for density estimation, the authors demonstrate that with a sufficiently powerful prior (such as VampPrior), the NLL gap between MIM and VAE largely closes.

Conclusion

MIM offers a robust framework for learning informative latent representations while avoiding the pitfalls of posterior collapse. Although it entails a higher training overhead—typically 2 to 5 times longer to converge than a VAE—the resulting improvements in mutual information and clustering are substantial. Future research will explore applying MIM to domains like time-series and natural language processing, where capturing long-term dependencies in latent variables is critical.

Summary updated

BibTeX
@misc{livne2019mim,
  author = {Micha Livne and Kevin Swersky and David J. Fleet},
  title = {{MIM: Mutual Information Machine}},
  year = {2019},
  eprint = {1910.03175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.03175},
}
Figure