DiME: Maximizing Mutual Information by a Difference of Matrix-Based Entropies

Oscar Skean, Jhoan Keider Hoyos-Osorio, Austin J. Brockmeier, Luis Gonzalo Sánchez GiraldoarXiv 2023 · DOI

Abstract

Maximizing Mutual Information (MI) is a fundamental objective in representation learning, yet estimating MI for high-dimensional, continuous data remains a significant challenge. We present DiME (Difference of Matrix-based Entropies), a novel framework that bypasses complex probability density estimation. By leveraging the eigenvalues of Gram matrices and a permutation-based regularization trick, DiME provides a stable, scalable objective that prevents trivial solutions and enables effective disentanglement of latent factors.

Introduction

Mutual Information (MI) quantifies the statistical dependence between variables, making it an ideal metric for learning shared features across different data modalities. However, calculating MI in high-dimensional spaces is notoriously difficult. Traditional approaches often rely on density estimation, which scales poorly, or neural network "critics" (e.g., MINE, InfoNCE) that can be unstable and sensitive to hyperparameters. DiME addresses these issues by measuring information directly from data samples in a Reproducing Kernel Hilbert Space (RKHS), offering a more robust alternative for training deep models.

Methodology

The DiME framework is built upon two core innovations:

  1. Matrix-Based Entropy: Instead of estimating a probability density function, DiME utilizes a matrix-based entropy functional. By constructing a Gram (similarity) matrix of the data using kernels, the entropy is computed via the matrix's normalized eigenvalues. This allows the model to capture informational properties without explicit density modeling.
  2. The Permutation Trick: A common failure mode in matrix-based MI maximization is the "trivial solution," where the model minimizes kernel bandwidth to artificially inflate the MI score. DiME solves this by subtracting the expected joint entropy of permuted (shuffled) data from the joint entropy of the paired data. This difference naturally penalizes the model if it attempts to "cheat," forcing it to find meaningful dependencies.
Comparison of DiME against standard variational bounds and estimators. DiME shows superior stability and tracking of relative MI changes compared to baselines like InfoNCE and CLUB.

Experiments and Results

DiME was evaluated across several benchmarks, including toy correlated Gaussians, Multiview MNIST, and Colored MNIST.

Robustness and Accuracy

In toy experiments, DiME demonstrated a more linear and lower-variance tracking of true MI compared to popular estimators like InfoNCE, particularly in high-MI regimes. On the Multiview MNIST task—where the goal is to identify a digit across noisy or rotated views—encoders trained with DiME achieved significantly higher classification accuracy than established baselines such as Deep Canonical Correlation Analysis (DCCA).

Supervised finetuning classification accuracy and DiME winrate across varying latent dimensions. DiME consistently outperforms or matches competitive baselines like CCA, CKA, and HSIC.

Disentanglement and Style Transfer

By combining DiME with conditional matrix-based entropy, the researchers successfully disentangled shared information (e.g., digit identity) from exclusive features (e.g., color or rotation). In Colored MNIST experiments, this allowed for unsupervised style transfer, where the color of one digit could be swapped onto the shape of another without any explicit labels for color.

Discussion and Limitations

While DiME offers a powerful alternative to traditional MI estimators, it is sensitive to batch size, as small batches can lead to noisy estimates. Additionally, the computational complexity of calculating eigenvalues for a Gram matrix is $O(n^3)$, which may necessitate approximations like Random Fourier Features for extremely large-scale applications. Despite these constraints, DiME represents a significant step forward in stable, kernel-based representation learning.

Summary updated

BibTeX
@misc{skean2023dime,
  author = {Oscar Skean and Jhoan Keider Hoyos-Osorio and Austin J. Brockmeier and Luis Gonzalo Sánchez Giraldo},
  title = {{DiME: Maximizing Mutual Information by a Difference of Matrix-Based Entropies}},
  year = {2023},
  eprint = {2301.08164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.08164},
}
Figure