TL;DR
DEMI (Discriminative Estimator of Mutual Information) simplifies the complex task of estimating mutual information (MI) by reframing it as a binary classification problem. By training a neural network to distinguish between paired data and shuffled "unpaired" data, DEMI provides more accurate and stable MI estimates than traditional variational methods, particularly in high-dimensional settings.
What Problem Does This Paper Address?
Mutual Information (MI) is a fundamental metric that quantifies the statistical dependency between two random variables. It is a cornerstone of modern unsupervised representation learning (like Deep InfoMax) and medical image registration. However, calculating MI for continuous, high-dimensional data is notoriously difficult because the underlying probability distributions are usually unknown.
Current state-of-the-art methods rely on variational lower bounds (e.g., MINE, SMILE, InfoNCE). While popular, these methods have significant drawbacks:
- High Variance: Estimators like MINE often suffer from extreme fluctuations during training.
- Saturation: Methods like InfoNCE are mathematically capped by the log of the batch size ($\log N$), meaning they cannot accurately estimate high MI values.
- Inaccuracy: Many variational bounds struggle when the true MI is either very low or very high.
Methods
The authors propose a "discriminative" approach that sidesteps variational bounds entirely.
- Lifting the Distribution: They introduce an auxiliary Bernoulli variable $z$. If $z=1$, the sample $(x, y)$ is drawn from the joint distribution (a "real" pair). If $z=0$, the sample is drawn from the product of marginals (a "shuffled" or "unpaired" pair).
- Classifier Training: A binary classifier (typically a multi-layer perceptron) is trained using standard cross-entropy loss to distinguish between these two classes.
- Log-Odds Estimation: The core innovation is the realization that the logit (log-odds) of the optimal classifier is directly related to the log-likelihood ratio needed to calculate MI.
- The Estimator: The final MI estimate is simply the average logit of the classifier on a test set, adjusted by the logit of the prior probability $\alpha$ (the ratio of joint vs. marginal samples used during training).
Datasets
The authors evaluated DEMI across several benchmarks:
- Synthetic Multivariate Gaussians: Variables in 20, 50, and 100 dimensions where the ground-truth MI can be analytically calculated.
- Cubed Gaussians: A non-linear version of the Gaussian task ($y \mapsto y^3$) to test the estimator's ability to capture non-linear dependencies.
- MNIST: Used for "self-consistency" tests to verify properties like monotonicity and additivity.
- CIFAR-10 & CIFAR-100: Used to evaluate DEMI as a loss function for representation learning within the Deep InfoMax framework.
Key Insights and Ideas
- Classification is Easier than Density Estimation: Neural networks are exceptionally good at discrimination. By turning MI estimation into a classification task, DEMI leverages the inherent strengths of deep learning architectures.
- Stability through Logits: Unlike MINE, which requires estimating a partition function (often leading to high variance), DEMI uses the classifier's logit output. This proves to be much more stable and less prone to outliers.
- Breaking the $\log N$ Barrier: Because DEMI does not rely on the specific contrastive structure of InfoNCE, it is not limited by batch size and can accurately estimate much higher MI values.
- Robustness to Priors: The choice of $\alpha$ (how many "fake" pairs you generate relative to "real" ones) does not significantly impact the accuracy, making the method easy to tune.
Key Results
In synthetic experiments, DEMI consistently stayed closer to the ground truth than its competitors. As shown in Figure 1, while other methods like InfoNCE saturated or MINE/SMILE fluctuated, DEMI's error remained near zero across a wide range of MI values.
In representation learning tasks (Table 1), DEMI proved to be a powerful objective function. When used to train an encoder on CIFAR-10, the resulting representations allowed a linear classifier to reach 74.09% accuracy, outperforming MINE, SMILE, and even the popular InfoNCE.
Limitations and Future Work
- Model Capacity & Overfitting: Like any neural-network-based method, DEMI's accuracy is tied to the capacity of the classifier. If the network is too small, it underfits; if it's too large and the data is sparse, it may overfit the classification task, leading to biased MI estimates.
- Theoretical Convergence: While the authors establish an asymptotic connection to MI, they note that a more rigorous theoretical analysis of the classifier's convergence to the true separating boundary for general hypothesis classes is still needed.
- High-Dimensional Scaling: While it performs better than previous methods in 100-d, extremely high-dimensional or complex distributions (like raw video) will still pose a challenge for the classifier's training.
Summary updated