[Paper Review] DEMI: Discriminative Estimator of Mutual Information
DEMI proposes a discriminative neural estimator for mutual information (MI) that trains a classifier to distinguish between paired (joint distribution) and unpaired (product of marginals) data samples. By leveraging the log odds from the classifier's output, DEMI provides a statistically robust, low-variance MI estimate that outperforms variational methods—especially in high- or low-MI regimes—without relying on variational bounds or partition function estimation.
Estimating mutual information between continuous random variables is often intractable and extremely challenging for high-dimensional data. Recent progress has leveraged neural networks to optimize variational lower bounds on mutual information. Although showing promise for this difficult problem, the variational methods have been theoretically and empirically proven to have serious statistical limitations: 1) many methods struggle to produce accurate estimates when the underlying mutual information is either low or high; 2) the resulting estimators may suffer from high variance. Our approach is based on training a classifier that provides the probability that a data sample pair is drawn from the joint distribution rather than from the product of its marginal distributions. Moreover, we establish a direct connection between mutual information and the average log odds estimate produced by the classifier on a test set, leading to a simple and accurate estimator of mutual information. We show theoretically that our method and other variational approaches are equivalent when they achieve their optimum, while our method sidesteps the variational bound. Empirical results demonstrate high accuracy of our approach and the advantages of our estimator in the context of representation learning. Our demo is available at https://github.com/RayRuizhiLiao/demi_mi_estimator.
Motivation & Objective
- Address the statistical limitations of existing variational MI estimators, which struggle with high or low mutual information and suffer from high variance.
- Overcome the theoretical bound that limits variational lower bounds to O(log N), making accurate estimation impossible when MI is large.
- Develop a method that avoids estimating complex density functions or partition functions, which are sources of high variance in discriminative approaches.
- Establish a direct link between classifier performance on a joint-vs-marginal discrimination task and mutual information estimation.
- Provide a simple, scalable, and accurate MI estimator suitable for modern high-dimensional representation learning tasks.
Proposed method
- Train a binary classifier to distinguish between paired data (drawn from the joint distribution p(x,y)) and unpaired data (drawn from the product of marginals p(x)p(y)).
- Use data augmentation via random shuffling or resampling to generate unpaired samples from the same dataset, preserving marginal statistics.
- Estimate mutual information as the average log odds of the classifier's prediction on the test set, derived from the theoretical connection between log odds and MI.
- Avoid variational bounds by directly modeling the likelihood ratio between joint and product-of-marginals distributions, sidestepping density estimation.
- Apply a temperature scaling (α) to the classifier's output to improve calibration and reduce variance, with α=0.5 showing optimal performance in experiments.
- Leverage deep neural networks for the classifier, benefiting from the expressiveness and stability of modern deep learning for discriminative tasks.
Experimental results
Research questions
- RQ1Can a discriminative classifier trained to distinguish joint from product-of-marginal data provide a more accurate and stable estimate of mutual information than variational methods?
- RQ2Does the proposed method overcome the O(log N) theoretical limit on variational lower bounds when estimating high mutual information?
- RQ3How does the performance of DEMI compare to state-of-the-art estimators like MINE and CCMI across varying levels of mutual information (low to high)?
- RQ4Can the log odds of the classifier's output be reliably used as a direct estimator of mutual information without variational approximation?
- RQ5Does the method maintain low variance and high accuracy across diverse data distributions and high-dimensional settings?
Key findings
- DEMI achieves significantly lower estimation error than MINE and CCMI across all levels of mutual information, especially in high-MI regimes where MINE fails.
- For MI = 80, DEMI (α=0.5) estimates 66.7 ± 1.5, compared to MINE’s 59.1 ± 0.7 and CCMI’s 63.8 ± 0.8, demonstrating superior accuracy at high MI.
- At low MI (e.g., MI = 0.1), DEMI (α=0.5) estimates 2.0 ± 0.3, outperforming MINE (2.0 ± 0.3) and CCMI (2.0 ± 0.3), showing robustness across the full range.
- DEMI maintains low variance across all MI levels, with standard errors consistently below 2.0, while MINE shows high variance (e.g., 1.0 at MI=60).
- The method achieves state-of-the-art performance on both synthetic and real image datasets, with consistent improvements in representation learning benchmarks.
- Theoretical analysis confirms that DEMI and variational methods are equivalent at optimum, but DEMI avoids the variational bound entirely, enabling more reliable estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.