Mutual Information Estimation via Normalizing Flows

Ivan Butakov, Alexander Tolmachev, Sofia Malanchuk, Anna Neopryatnaya, Alexey Frolov

Abstract

Estimating Mutual Information (MI) in high-dimensional data is a persistent challenge in information theory and machine learning, primarily due to the curse of dimensionality and the instability of existing neural estimators. This paper introduces a novel framework for MI estimation that leverages Normalizing Flows (NFs) to map complex, high-dimensional distributions into a latent space where MI can be calculated analytically. By utilizing the invariance of MI under smooth injective mappings and employing a "binormalization" strategy with a Gaussian target, the proposed method provides a more stable, scalable, and theoretically grounded alternative to traditional non-parametric and neural estimators.

Introduction

Mutual Information (MI) is a fundamental metric that quantifies the statistical dependence between two random variables. Unlike linear correlation coefficients, MI captures non-linear dependencies, making it an essential tool for feature selection, representation learning, and the analysis of deep neural networks. However, calculating MI for high-dimensional datasets—such as images or complex sensor arrays—is notoriously difficult.

Traditional non-parametric methods, such as $k$-Nearest Neighbors ($k$-NN) based estimators (e.g., KSG or WKL), suffer from the curse of dimensionality, where estimation error grows exponentially with the number of dimensions. Conversely, recent neural estimators like Mutual Information Neural Estimation (MINE) and NWJ use variational lower bounds to estimate MI. While powerful, these methods are often plagued by high variance, numerical instability, and significant computational requirements. This paper addresses these limitations by shifting the problem from direct density estimation to a transformation-based approach using Normalizing Flows.

Methodology

Normalizing Flows and Invariance

The core of the proposed method relies on the property that Mutual Information is invariant under smooth, injective (reversible) transformations. If $X$ and $Y$ are transformed into $U$ and $V$ via bijective functions, then $I(X; Y) = I(U; V)$. The authors utilize Normalizing Flows—trainable neural networks composed of a series of invertible mappings—to transform complex input distributions into a structured latent space.

The Binormalization Trick

Rather than estimating MI on the raw data, the researchers train the flows to map the joint distribution of $(X, Y)$ into a target distribution $q$ where the MI is easily computable. The chosen target is a multivariate Gaussian. This "binormalization" process ensures that if the flows successfully "Gaussianize" the data, the MI can be calculated using a simple closed-form formula involving the log-determinants of the latent covariance matrices:

$$I(X; Y) \approx \frac{1}{2} \log \frac{|\Sigma_{UU}| |\Sigma_{VV}|}{|\Sigma_{UV}|}$$

Tridiagonal Optimization for Scalability

To ensure the method scales to very high dimensions without the numerical instability associated with large matrix inversions, the authors introduce a "tridiagonal" approach. By restricting the latent covariance matrix to a sparse, tridiagonal structure, the number of learnable parameters is reduced to $O(d)$, where $d$ is the dimensionality. This structural constraint significantly improves training stability and computational efficiency compared to "black-box" neural architectures.

Experimental Evaluation

The proposed estimator, MIENF (Mutual Information Estimation via Normalizing Flows), was evaluated against several benchmarks using synthetic datasets where ground-truth MI is known:

  1. Compressible High-Dimensional Data: Low-dimensional correlated Gaussians and rectangles were embedded into high-dimensional image spaces ($16 \times 16$ and $32 \times 32$ pixels) using non-linear functions.
  2. Incompressible Data: The estimator was tested on non-Gaussian distributions, such as Uniform and Student-t distributions, to evaluate performance when the data cannot be perfectly mapped to a Gaussian latent space.
  3. Baselines: Performance was compared against MINE, NWJ, and classical $k$-NN estimators (KSG/WKL).

Key Results and Insights

Superior Scaling and Stability

In high-dimensional image tests, MIENF consistently tracked the ground-truth MI. In contrast, traditional $k$-NN methods like WKL failed as dimensions increased; for example, the Root Mean Square Error (RMSE) for WKL jumped from 1.0 to over 500 in high-dimensional settings. Furthermore, while MINE and NWJ often exhibited high variance or underestimated MI in later training epochs, the flow-based approach provided smooth and consistent convergence.

Robustness to Non-Gaussianity

Even in cases where the underlying data was "incompressible" (making it difficult to transform into a perfect Gaussian), the estimator provided useful and accurate lower bounds. This suggests that the Gaussian target distribution acts as a robust proxy even when the mapping is imperfect, outperforming other advanced neural techniques in complex scenarios.

Discussion and Limitations

While MIENF offers significant advantages, its performance is inherently tied to the expressivity of the Normalizing Flow. If the flow architecture is not deep or complex enough to capture the underlying data structure, the resulting MI estimate will be biased. Additionally, the consistency of the most efficient version ($\mathcal{N}$-MIENF) is strictly proven for distributions that are topologically compatible with a Gaussian mapping. If the data topology prevents this, the estimate remains a lower bound rather than an exact value.

Conclusion

This paper presents a significant step forward in high-dimensional Mutual Information estimation. By combining the flexibility of Normalizing Flows with the analytical simplicity of Gaussian distributions, the authors provide a tool that is both theoretically grounded and practically robust. Future work may involve extending this framework to other generative models, such as Diffusion Models, or utilizing Gaussian Mixture Models as the base distribution to better handle multi-modal data structures.

Summary updated

BibTeX
@inproceedings{butakov2024mutual,
  author = {Ivan Butakov and Alexander Tolmachev and Sofia Malanchuk and Anna Neopryatnaya and Alexey Frolov},
  title = {{Mutual Information Estimation via Normalizing Flows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=JiQXsLvDls},
}
Figure