Approximating Mutual Information by Maximum Likelihood Density Ratio Estimation

Taiji Suzuki, Masashi Sugiyama, Jun Sese, Takafumi Kanamori

Abstract

Mutual Information (MI) is a fundamental metric in statistical machine learning, used to quantify dependencies between variables beyond simple linear correlation. However, accurately estimating MI from finite samples is challenging due to the numerical instability of traditional density estimation methods. This paper proposes Maximum Likelihood Mutual Information (MLMI), a robust approach that sidesteps individual density estimation by directly modeling the ratio of the joint density to the product of the marginal densities. By formulating the problem as a convex optimization task, MLMI ensures a unique global optimum and provides a systematic framework for hyperparameter tuning through Likelihood Cross-Validation (LCV). Experimental results on synthetic datasets demonstrate that MLMI is more stable than Kernel Density Estimation (KDE) and more versatile than specialized parametric methods.

Introduction

In tasks such as feature selection, Independent Component Analysis (ICA), and signal processing, detecting non-linear dependencies between variables is crucial. Mutual Information (MI) serves as the standard tool for this purpose. Despite its theoretical elegance, the practical estimation of MI is notoriously difficult. The "naive" approach involves using Kernel Density Estimation (KDE) to estimate the joint density $p(x,y)$ and marginal densities $p(x)$ and $p(y)$ separately, then computing the integral of their ratio. This approach often fails because small errors in the denominator (the marginals) are significantly magnified during division, leading to unstable and inaccurate estimates.

Alternative methods like K-Nearest Neighbors (KNN) or Ensemble Dependency Graph Estimator (EDGE) offer some improvements but come with their own drawbacks. KNN lacks an objective way to select the optimal $k$, while EDGE often relies on assumptions of normality that do not hold in complex datasets. This paper introduces MLMI to address these limitations by focusing on the density ratio itself.

Methodology

Direct Density Ratio Estimation

The core innovation of MLMI is the direct modeling of the density ratio: $$w(x, y) = \frac{p_{xy}(x, y)}{p_x(x)p_y(y)}$$ By focusing on $w(x, y)$, the method avoids the "division trap" inherent in separate density estimation. The ratio is modeled as a linear combination of basis functions, typically Gaussian kernels: $$\hat{w}(x, y) = \sum_{i=1}^{b} \alpha_i \phi_i(x, y)$$ where $\alpha_i$ are the parameters to be learned and $\phi_i$ are the basis functions.

Convex Optimization

The parameters $\alpha$ are determined by maximizing the log-likelihood objective. A significant advantage of this formulation is that the optimization problem is convex. This guarantees that the algorithm will efficiently converge to a unique global optimum, avoiding the local minima issues that plague many non-linear estimation techniques.

Model Selection via Likelihood Cross-Validation (LCV)

One of the primary challenges in non-parametric estimation is hyperparameter tuning (e.g., choosing the kernel width $\sigma$). MLMI incorporates Likelihood Cross-Validation (LCV), allowing for an automated and objective selection process. This makes the estimator highly adaptive to the specific scale and structure of the data without requiring manual intervention or prior knowledge of the distribution.

Experimental Evaluation

The authors evaluated MLMI against KDE, KNN, and EDGE using four synthetic datasets representing different statistical relationships:

  1. Linear Dependence: A standard Gaussian relationship.
  2. Non-linear Dependence with Correlation: A quadratic relationship where correlation is present.
  3. Non-linear Dependence without Correlation: A complex lattice-structured dependence where the correlation coefficient is zero, but variables are highly dependent.
  4. Independence: A null case where $x$ and $y$ are completely independent.

Key Results and Discussion

Robustness and Stability

MLMI emerged as a consistently strong performer across all test scenarios. In the "Independence" case, where KDE often produced erratic results due to error magnification, MLMI provided stable, near-zero estimates. This suggests that the direct ratio approach is significantly more numerically robust than methods that require explicit division of estimated densities.

Versatility Across Distributions

While specialized methods like EDGE performed well on Gaussian data, they failed significantly on the non-linear lattice dataset. MLMI, however, successfully captured the dependency in the lattice structure, matching the performance of KNN while maintaining the advantage of systematic hyperparameter tuning. This positions MLMI as a reliable "all-rounder" for datasets where the underlying distribution is unknown.

Theoretical Convergence

The paper provides a rigorous analysis of the estimator's convergence. It demonstrates that as the sample size increases, the MLMI estimator approaches the true MI at a predictable rate, providing a solid theoretical foundation for its empirical success.

Conclusion and Future Work

Maximum Likelihood Mutual Information (MLMI) provides a stable and theoretically grounded alternative to traditional MI estimation. By modeling the density ratio directly and utilizing convex optimization, it avoids the numerical instabilities of KDE and the tuning difficulties of KNN.

Future research directions include scaling the optimization process for high-dimensional or massive datasets, as the current use of basis functions may become computationally expensive. Additionally, while MLMI shows promise on synthetic benchmarks, further validation on high-dimensional real-world data—such as genomic sequences or complex image features—will be essential to fully establish its utility in the field.

Summary updated

BibTeX
@article{suzuki2008approximating,
  author = {Taiji Suzuki and Masashi Sugiyama and Jun Sese and Takafumi Kanamori},
  title = {{Approximating Mutual Information by Maximum Likelihood Density Ratio Estimation}},
  journal = {FSDM},
  year = {2008},
}
Figure