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:
- 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.
- 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.
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).
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