Optimal Randomized Approximations for Matrix-Based Rényi's Entropy

Yuxin Dong, Tieliang Gong, Shujian Yu, Chen Li

This paper, recently published by researchers from Xi’an Jiaotong University and UiT The Arctic University of Norway, tackles a major computational bottleneck in information theory: calculating Matrix-based Rényi’s Entropy. By leveraging randomized numerical linear algebra, the authors provide a way to scale these powerful information measures to large datasets that were previously untouchable.

TL;DR

The authors develop a randomized framework to approximate matrix-based Rényi’s entropy, slashing the computational complexity from a prohibitive $O(n^3)$ to a scalable $O(n^2sm)$. By combining variance-reduced trace estimation (Hutch++) with polynomial expansions, they achieve near-optimal speedups with negligible loss in accuracy across deep learning and feature selection tasks.

What Problem Does This Paper Address?

Information measures like entropy and mutual information are fundamental to machine learning, but they usually require estimating probability density functions (PDFs)—a task that suffers from the "curse of dimensionality."

Matrix-based Rényi’s entropy offers a clever workaround. It allows researchers to calculate information quantities directly from data matrices (Gram matrices) without explicit PDF estimation. However, there is a catch: calculating this entropy exactly requires the full eigenspectrum of an $n \times n$ matrix, where $n$ is the number of samples. This leads to a computational cost of $O(n^3)$. As datasets grow into the tens of thousands or millions of samples, this $O(n^3)$ wall makes matrix-based entropy practically unusable.

Methods

The authors reframe the problem: instead of calculating eigenvalues, they treat entropy estimation as a stochastic trace estimation problem. Their approach, called ARMI (Approximated Rényi Mutual Information) and ADIB (Approximated Deterministic Information Bottleneck), relies on three key pillars:

  1. Hutch++ Estimator: They utilize the Hutch++ algorithm, a state-of-the-art randomized trace estimator. It decomposes the matrix into a low-rank subspace (containing the largest eigenvalues) and a complement. The trace of the low-rank part is calculated exactly, while the rest is approximated, significantly reducing variance compared to standard Monte Carlo methods.
  2. Polynomial Approximations: For non-integer entropy orders ($\alpha$), calculating the matrix power $A^\alpha$ is difficult. The authors use Taylor and Chebyshev series expansions to approximate the matrix power functional. Chebyshev series, in particular, are shown to be more robust for ill-conditioned matrices.
  3. Complexity Reduction: By converting the problem into a series of matrix-vector multiplications, they reduce the time complexity to $O(n^2sm)$, where $s$ is the number of random vector queries and $m$ is the polynomial order. Since $s, m \ll n$, this is a massive win for scalability.

Datasets

The authors validated their approach on a diverse set of benchmarks:

  • Synthetic Data: Mixtures of Gaussian distributions to test convergence rates and the impact of condition numbers.
  • Robust Deep Learning: The CIFAR-10 dataset was used to evaluate the "Information Bottleneck" objective in training VGG16 networks.
  • Feature Selection/Ranking: Eight real-world datasets from the UCI repository, including Madelon, Krvskp, Optdigits, Statlog, Spambase, Waveform, Galaxy, and Beans. These cover various instance-feature ratios and data domains.

Key Insights and Ideas

  • Trace Estimation is Enough: The most critical "aha" moment is Proposition III.1, which proves that a relative error in trace estimation translates directly to a relative error in Rényi entropy. This justifies using randomized linear algebra tools.
  • Chebyshev > Taylor: While Taylor series are easier to implement because they don't require estimating the smallest eigenvalue, Chebyshev approximations converge much faster for "ill-conditioned" matrices (those with a high ratio between the largest and smallest eigenvalues).
  • Near-Optimality: The authors didn't just make it faster; they proved their convergence rates ($O(1/\epsilon)$ for queries and $O(\sqrt{\kappa})$ for polynomial order) are nearly optimal, matching theoretical lower bounds up to a logarithmic factor.

Key Results

The experimental results demonstrate that the approximation is both fast and faithful to the original "oracle" calculation:

  • Speed vs. Accuracy: In integer-order tests, the method achieved a 0.1% relative error with only 10 random vectors. This took ~1.2 seconds, compared to 27 seconds for the traditional eigenvalue approach—a 22x speedup on a $5000 \times 5000$ matrix.
  • Scalability in Deep Learning: When applied to the Information Bottleneck (IB) objective, the approximated version (ADIB) was significantly faster than the exact version (DIB), reducing the IB calculation time from 1.13 hours to just 0.15 hours per training run, with virtually no impact on final classification error (see Figure 6/Table I).
Table I: Performance comparison on CIFAR-10
  • Feature Selection: The approximated mutual information (ARMI) achieved 10x to 40x speedups across various datasets while maintaining the exact same feature ranking orders as the original, computationally expensive method.
Figure 1: MRE vs. number of random vectors for integer orders

Limitations and Future Work

  • The $\alpha \to 1$ Limit: The authors note that as $\alpha$ approaches 1 (the limit for Shannon entropy), the scaling term $1/(1-\alpha)$ in the entropy definition explodes, making precise approximation increasingly difficult.
  • Eigenvalue Bounding: The Chebyshev approach requires an estimate of the lower eigenvalue bound $u$. If $u$ is extremely small or the matrix is rank-deficient, the convergence rate slows down.
  • Lanczos Connection: The authors briefly mention that the Lanczos method could be an alternative to explicit polynomial expansion. They suggest exploring the memory-accuracy trade-offs of block Lanczos methods as a promising future direction.

For researchers dealing with high-dimensional data where traditional Shannon entropy fails, this work provides the necessary tools to make matrix-based Rényi entropy a standard part of the toolkit.

Summary updated

BibTeX
@article{dong2023optimal,
  author = {Yuxin Dong and Tieliang Gong and Shujian Yu and Chen Li},
  title = {{Optimal Randomized Approximations for Matrix-Based Rényi's Entropy}},
  journal = {IEEE Trans. Information Theory},
  year = {2023},
  doi = {10.1109/tit.2023.3260122},
}
Figure