InfoNet: Neural Estimation of Mutual Information without Test-Time Optimization

Zhengyang Hu, Song Kang, Qunsong Zeng, Kaibin Huang, Yanchao Yang · DOI

Abstract

Mutual Information (MI) is a critical metric for quantifying statistical dependencies in high-dimensional data, yet its estimation has traditionally faced a trade-off between computational efficiency and differentiability. Existing neural estimators, such as MINE, require iterative optimization at test time, rendering them unsuitable for real-time applications. We present InfoNet, a novel architecture that transforms MI estimation into a single feed-forward pass. By leveraging an attention-based architecture and a copula transformation, InfoNet achieves speeds up to 2000x faster than traditional neural estimators while maintaining high accuracy and generalization capabilities across diverse data distributions.

1. Introduction

Mutual Information (MI) serves as the "gold standard" for measuring non-linear statistical dependencies between variables. Unlike simple correlation coefficients, MI captures the total amount of information shared between data streams, making it indispensable for tasks ranging from feature selection to representation learning. However, estimating MI for continuous, high-dimensional data remains a significant challenge.

Historically, researchers have relied on two primary approaches: non-parametric estimators (e.g., KSG) and neural estimators (e.g., MINE). Non-parametric methods are accurate but lack differentiability and scalability. Neural estimators, while differentiable, utilize the Donsker-Varadhan dual formulation, which necessitates a fresh round of gradient descent for every new pair of data sequences. This "test-time optimization" creates a computational bottleneck that prevents the use of MI in latency-sensitive environments like robotics or live video processing.

2. The InfoNet Architecture

InfoNet addresses these limitations by "neuralizing" the optimization process. Instead of solving an optimization problem at test time, InfoNet is trained to directly predict the MI from a sequence of sample pairs in a single feed-forward pass.

2.1 Attention-Based Processing

The model utilizes an architecture inspired by the Perceiver IO framework. By employing cross-attention layers, InfoNet can process variable-length sequences of sample pairs, capturing the underlying structure of the joint distribution without the need for iterative refinement.

2.2 Copula Transformation

To ensure robustness against varying scales and marginal distributions, InfoNet employs a copula transformation based on the empirical Cumulative Distribution Function (eCDF). This step maps input data to a uniform range $[0, 1]$ while preserving the underlying MI. This normalization simplifies the learning task, allowing the network to focus on the dependency structure rather than the specific range of the input values.

2.3 Predicting the Discriminant

In the dual formulation of MI, the goal is to find an optimal discriminant function. InfoNet is designed to output a discretized version of this function as a 2D lookup table (tensor). Once this table is generated, the final MI value is calculated via simple summation and indexing, ensuring the entire process remains differentiable and extremely fast.

3. Training and Datasets

To achieve broad generalization, InfoNet is trained on a massive synthetic dataset of Gaussian Mixture Models (GMMs). These models, ranging from 1 to 20 components, provide a diverse set of ground-truth distributions. By exposing the network to a wide spectrum of statistical patterns during training, the model learns to generalize to unseen, non-Gaussian distributions.

For real-world validation, the authors utilized the PointOdyssey dataset, which contains long-term pixel trajectories in video sequences. This dataset tests the model's ability to perform unsupervised object discovery by measuring the MI between the movement patterns of different pixels.

4. Results and Discussion

4.1 Computational Efficiency

The primary advantage of InfoNet is its speed. For a sequence of 2,000 data points, InfoNet produces an estimate in approximately 0.002 seconds. In contrast, MINE requires nearly 4 seconds to reach a stable estimate through iterative optimization. This represents a 2000x speedup, enabling MI estimation in real-time pipelines.

4.2 Estimation Accuracy

Despite the lack of test-time refinement, InfoNet demonstrates superior performance in "correlation order accuracy." In tests involving complex GMMs, InfoNet consistently outperformed both MINE and traditional Kernel Density Estimation (KDE) methods, achieving over 99% accuracy in correctly ranking the strength of dependencies between different variable pairs.

4.3 Real-World Generalization

InfoNet successfully generalized from synthetic GMM training to real-world video data. In the PointOdyssey benchmark, the model effectively grouped pixels belonging to the same moving objects by identifying high MI between their trajectories. It demonstrated greater stability and higher precision-recall metrics compared to MINE, which often struggled with the noise and complexity of real-world trajectories.

5. Conclusion and Future Work

InfoNet represents a significant shift in information-theoretic estimation, moving from iterative optimization to direct neural prediction. While currently optimized for 1D and 2D variables (using slicing techniques for higher dimensions), the architecture provides a foundation for real-time dependency modeling. Future research will focus on extending the model to handle high-dimensional latent spaces directly and refining the quantization of the output discriminant to support even higher precision requirements.

Summary updated

BibTeX
@inproceedings{hu2024infonet,
  author = {Zhengyang Hu and Song Kang and Qunsong Zeng and Kaibin Huang and Yanchao Yang},
  title = {{InfoNet: Neural Estimation of Mutual Information without Test-Time Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=40hCy8n5XH},
}
Figure