MIST: Mutual Information Via Supervised Training

German Gritsai, Megan Richards, Maxime Méloux, Kyunghyun Cho, Maxime Peyrard · OpenReview

Abstract

We propose a fully data-driven approach to designing mutual information (MI) estimators. Since any MI estimator is a function of the observed sample from two random variables, we parameterize this function with a neural network (MIST) and train it end-to-end to predict MI values. Training is performed on a large meta-dataset of 625,000 synthetic joint distributions with known ground-truth MI. To handle variable sample sizes and dimensions, we employ a two-dimensional attention scheme ensuring permutation invariance across input samples. To quantify uncertainty, we optimize a quantile regression loss, enabling the estimator to approximate the sampling distribution of MI rather than return a single point estimate. This research program departs from prior work by taking a fully empirical route, trading universal theoretical guarantees for flexibility and efficiency. Empirically, the learned estimators largely outperform classical baselines across sample sizes and dimensions, including on joint distributions unseen during training. The resulting quantile-based intervals are well-calibrated and more reliable than bootstrap-based confidence intervals, while inference is orders of magnitude faster than existing neural baselines. Beyond immediate empirical gains, this framework yields trainable, fully differentiable estimators that can be embedded into larger learning pipelines. Moreover, exploiting MI's invariance to invertible transformations, meta-datasets can be adapted to arbitrary data modalities via normalizing flows, enabling flexible training for diverse target meta-distributions.

Introduction

Mutual Information (MI) is a fundamental metric in data science, quantifying the statistical dependence between random variables. It is widely used for feature selection, causality analysis, and representation learning. However, calculating MI for continuous variables is notoriously difficult because the underlying probability distributions are rarely known.

Existing estimators typically fall into two categories: density estimators (like KSG) and density ratio estimators (like MINE). Both struggle in practical, "messy" scenarios involving high dimensionality, small sample sizes, or high computational costs. MIST (Mutual Information estimation via Supervised Training) shifts this paradigm from analytical density modeling to a supervised learning task. By training a specialized neural network on over 600,000 synthetic distributions, MIST creates an estimator that is significantly faster and more accurate than traditional methods, particularly in challenging regimes.

MIST high-level overview showing the prediction of MI distribution quantiles.

Methodology

Instead of deriving a mathematical estimator, MIST learns one through a meta-learning approach. The architecture is built on a SetTransformer-based design, which is essential for ensuring permutation invariance—the principle that the order of input samples should not affect the estimated MI. A 2D attention scheme is utilized to handle varying input dimensions and sample sizes seamlessly.

One of the most significant innovations in MIST is the use of quantile regression via a pinball loss function. Rather than outputting a single point estimate, MIST predicts the entire sampling distribution. This allows the model to provide built-in, well-calibrated confidence intervals in a single forward pass, offering a robust measure of uncertainty.

The MIST pipeline: (Left) Generating training data by sampling from distributions with known MI. (Right) The MIST architecture and inference process.

Training and Datasets

To train a supervised estimator, a massive amount of labeled data is required. The authors utilized the BMI (Benchmark for Mutual Information) library to generate a meta-dataset of 625,000 synthetic joint distributions. This dataset includes 23 different distribution types (19 of which are non-Gaussian) with dimensions ranging from 2 to 32. The model was evaluated on both In-Meta-Distribution (IMD) and Out-of-Meta-Distribution (OoMD) sets to verify its ability to generalize to entirely unseen distribution families.

Key Results

  • Superior Accuracy: MIST achieved up to 100x lower Mean Squared Error (MSE) than the classical KSG estimator in high-dimensional, low-sample regimes. It effectively avoids the underestimation bias common in high-MI settings.
  • Amortized Speed: Because the heavy computational work is done during training, inference is a simple forward pass. MIST is 4x to 80x faster than KSG and orders of magnitude faster than optimization-based neural methods like MINE.
  • Reliable Uncertainty: The quantile-based intervals were found to be more reliable and better calibrated than traditional bootstrap-based confidence intervals.
  • Differentiability: Unlike classical estimators, MIST is fully differentiable, allowing it to be integrated directly into other neural network training loops as a loss function.

Discussion and Limitations

While MIST outperforms baselines empirically, it trades away "universal theoretical guarantees" such as consistency as $n \to \infty$. As a learned model, it is also limited to the range of MI values (0 to 40 bits) and dimensions seen during training. However, in real-world scenarios where data is finite, MIST provides a more practical and efficient tool for information-theoretic analysis. Future work may involve incorporating theoretical constraints, such as the Data Processing Inequality, as explicit inductive biases to further improve robustness.

Summary updated

BibTeX
@article{gritsai2026mist,
  author = {German Gritsai and Megan Richards and Maxime Méloux and Kyunghyun Cho and Maxime Peyrard},
  title = {{MIST: Mutual Information Via Supervised Training}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=Qi4JgS2PLw},
}
Figure