DEMI: Discriminative Estimator of Mutual Information

Ruizhi Liao, Daniel Moyer, Polina Golland, William M Wells

TL;DR

This paper introduces DEMI, a novel discriminative approach for estimating mutual information (MI) in high-dimensional, continuous data. DEMI overcomes limitations of existing variational methods by training a classifier to distinguish between joint and marginal distributions, leading to more accurate and stable MI estimates, particularly in challenging low and high MI regimes.

What Problem Does This Paper Address?

Estimating mutual information (MI) is crucial for understanding dependencies between random variables, especially in machine learning for tasks like representation learning. However, for high-dimensional, continuous data, accurately estimating MI is notoriously difficult. Existing methods often rely on optimizing variational lower bounds, which suffer from significant statistical limitations: they struggle to provide accurate estimates when the true MI is very low or very high, and they can exhibit high variance. This makes it hard to reliably use MI as a metric or objective in complex learning scenarios.

Methods

DEMI tackles this challenge by reframing MI estimation as a classification problem. Instead of directly estimating probability densities or ratios, DEMI trains a binary classifier. This classifier learns to distinguish between data pairs sampled from the true joint distribution $p(x, y)$ and those sampled from the product of marginal distributions $p(x)p(y)$.

The core idea is to construct a training set where samples are labeled as either "joint" (z=1) or "marginal" (z=0). A neural network classifier $q(z=1|x, y; \theta)$ is trained to predict this label. The key insight is that the log-odds output of this classifier, when properly transformed, directly relates to the mutual information. Specifically, the average log-odds estimate from the classifier on a test set, after a simple transformation, provides an estimate of the MI. This approach avoids the need to estimate partition functions, which often contribute to high variance in other discriminative methods.

Datasets

The paper evaluates DEMI on synthetic datasets:

  • Multivariate Gaussian variables: Used to test MI estimation accuracy across varying dimensions (20-d, 50-d, 100-d), true MI values, and training set sizes (32K, 80K, 160K).
  • Cubic transformation of Gaussian variables: Introduced to create non-linear dependencies while retaining known ground truth MI values.

For representation learning experiments, the authors use:

  • CIFAR10 and CIFAR100 datasets: Standard image datasets used to train encoders and evaluate the learned representations via classification accuracy.

Key Insights and Ideas

  • MI as a Classification Problem: Reframing MI estimation as a discriminative classification task simplifies the problem and sidesteps the complexities of directly estimating densities or likelihood ratios.
  • Log-Odds as a Proxy for MI: The direct connection between the classifier's log-odds output and MI is a crucial theoretical insight, enabling a straightforward estimation procedure.
  • Avoiding Variational Bounds: DEMI bypasses the limitations inherent in optimizing variational lower bounds, which are known to struggle with extreme MI values and variance.
  • Theoretical Equivalence, Practical Advantage: While theoretically equivalent to other optimal variational methods, DEMI's discriminative approach offers practical advantages in terms of accuracy and stability.

Key Results

  • High Accuracy: DEMI consistently achieved high accuracy in MI estimation across various synthetic datasets, outperforming or matching state-of-the-art methods like MINE, SMILE, and InfoNCE, especially in challenging low and high MI regimes.
  • Robustness: DEMI showed good performance across different settings of its hyperparameter $\alpha$ and was less sensitive to training data size compared to some baselines.
  • Representation Learning: In representation learning tasks using Deep InfoMax on CIFAR datasets, DEMI-based representations led to competitive or superior classification accuracy compared to other MI estimators, demonstrating its utility in downstream applications.
  • Bias-Variance Tradeoff: DEMI offered a favorable bias-variance tradeoff, providing more stable estimates than some competitors.

Limitations and Future Work

  • Model Capacity and Overfitting: The accuracy of DEMI's estimates is governed by the classifier's ability to predict the true posterior, which in turn depends on the number of training samples and the neural network's capacity. This means DEMI is subject to classical deep learning challenges like overfitting.
  • Theoretical Analysis: The authors mention that a deeper theoretical analysis of DEMI's convergence properties, particularly concerning the classifier's boundary separation for general hypothesis classes, is left for future work.
  • Generalization to Other Distributions: While DEMI performed well on Gaussian and cubic transformations of Gaussians, its performance on more complex, real-world distributions with unknown properties would be an interesting area for future exploration.

Summary updated

BibTeX
@misc{liao2020demi,
  author = {Ruizhi Liao and Daniel Moyer and Polina Golland and William M Wells},
  title = {{DEMI: Discriminative Estimator of Mutual Information}},
  year = {2020},
  eprint = {2010.01766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01766},
}
Figure