Estimating Information-Theoretic Quantities with Random Forests

Richard Guo, Cencheng Shen, Joshua T. Vogelstein

Abstract

Information-theoretic quantities, such as conditional entropy and mutual information, are critical data summaries for quantifying uncertainty. Current widely used approaches for computing such quantities rely on nearest neighbor methods and exhibit both strong performance and theoretical guarantees in certain simple scenarios. However, existing approaches fail in high-dimensional settings and when different features are measured on different scales. We propose decision forest-based adaptive nearest neighbor estimators and show that they are able to effectively estimate posterior probabilities, conditional entropies, and mutual information even in the aforementioned settings. We provide an extensive study of efficacy for classification and posterior probability estimation, and prove certain forest-based approaches to be consistent estimators of the true posteriors and derived information-theoretic quantities under certain assumptions. In a real-world connectome application, we quantify the uncertainty about neuron type given various cellular features in the Drosophila larva mushroom body, a key challenge for modern neuroscience.

Introduction: Beyond k-Nearest Neighbors

Quantifying uncertainty is a cornerstone of modern data science, typically operationalized through metrics like Conditional Entropy (remaining uncertainty in a target $Y$ given features $X$) and Mutual Information (the shared information between $X$ and $Y$). For decades, $k$-nearest neighbor ($k$-NN) methods have served as the standard for estimating these quantities. However, $k$-NN suffers from two primary limitations: the "curse of dimensionality," where Euclidean distances become uninformative in high-dimensional spaces, and a sensitivity to feature scaling that requires precise, often unstable, preprocessing.

This research proposes replacing the rigid neighborhoods of $k$-NN with the adaptive neighborhoods of decision forests. By doing so, the estimator can naturally ignore noise dimensions and remain invariant to feature scaling, providing a more robust framework for uncertainty quantification.

Methodology: The Power of "Honest" Forests

The core innovation lies in the application of Honest Forests to posterior estimation. Standard Random Forests (RF) are often overconfident; because the same data is used to determine node splits and calculate leaf probabilities, the model tends to bias its posteriors toward 0 or 1.

In contrast, Uncertainty Forests (UF) utilize a "honesty" constraint. For every tree, the data is split into two distinct sets: a partition set to decide the tree structure and a voting set to calculate the actual leaf probabilities. This prevents "double-dipping" and results in significantly better-calibrated uncertainty estimates. The paper also evaluates post-hoc calibration methods, such as Platt Scaling (SigRF) and Isotonic Regression (IRF), as alternatives to the inherent honesty of UF.

Posterior probability estimation across different forest variants. The left panel shows the underlying data clusters, while the right panel compares the estimated posteriors against the ground truth.

Calibration and Robustness

Empirical evaluations across 72 real-world datasets from the OpenML CC18 benchmark demonstrate that UF and IRF significantly outperform standard RF in calibration error. As shown in Figure 3, UF tracks the true posterior probability much more closely than standard RF, which tends to exhibit erratic behavior in transition regions between classes.

Further analysis using Hellinger loss—a measure of the distance between probability distributions—reveals that UF maintains stable performance even as the "sharpness" ($\alpha$) of the posterior distribution increases. While other methods like SigRF and IRF may perform well in smooth regimes, their error rates often climb as the underlying distribution becomes more complex.

Posterior calibration performance. The left plot shows Hellinger loss across varying sharpness levels, while the right heatmaps visualize the error (Truth - Model) for each method.

Key Insights and Results

  • Forests as Adaptive k-NN: Decision trees act as nearest-neighbor estimators where the "neighborhood" is a hyperrectangle defined by the most informative features, rather than a fixed-radius sphere. This makes them inherently superior for high-dimensional, noisy data.
  • Theoretical Consistency: The authors prove that UF is a consistent estimator for posterior probabilities and mutual information, guaranteeing convergence to true values as data volume increases.
  • Beating k-NN in Noise: In simulations with added noise dimensions, traditional $k$-NN (KSG) estimates of Mutual Information collapsed toward zero, whereas forest-based methods remained accurate.

Real-World Application: The Drosophila Connectome

The utility of UF was demonstrated on a biological dataset of 213 neurons from a fruit fly larva's brain. By applying UF, the researchers discovered that a latent "cluster" feature combined with the "age" of a neuron forms a minimal sufficient statistic for neuron type. This finding suggests that other morphological features, such as the number of dendritic claws, become redundant for classification once cluster and age are known.

Conclusion and Future Work

Uncertainty Forests provide a theoretically grounded and empirically robust alternative to $k$-NN for information-theoretic estimation. While currently optimized for categorical labels ($Y$), future work aims to extend this framework to continuous regression targets using kernel density estimation within the leaves. Additionally, establishing the specific rates of convergence remains a priority for completing the theoretical profile of forest-based adaptive estimation.

Reference: Perry, R., Mehta, R., et al. "Random Forests for Adaptive Nearest Neighbor Estimation of Information-Theoretic Quantities." arXiv:1907.00325v7, 2021.

Summary updated

Abstract

Information-theoretic quantities, such as conditional entropy and mutual information, are critical data summaries for quantifying uncertainty. Current widely used approaches for computing such quantities rely on nearest neighbor methods and exhibit both strong performance and theoretical guarantees in certain simple scenarios. However, existing approaches fail in high-dimensional settings and when different features are measured on different scales.We propose decision forest-based adaptive nearest neighbor estimators and show that they are able to effectively estimate posterior probabilities, conditional entropies, and mutual information even in the aforementioned settings.We provide an extensive study of efficacy for classification and posterior probability estimation, and prove certain forest-based approaches to be consistent estimators of the true posteriors and derived information-theoretic quantities under certain assumptions. In a real-world connectome application, we quantify the uncertainty about neuron type given various cellular features in the Drosophila larva mushroom body, a key challenge for modern neuroscience.
BibTeX
@misc{guo2019estimating,
  author = {Richard Guo and Cencheng Shen and Joshua T. Vogelstein},
  title = {{Estimating Information-Theoretic Quantities with Random Forests}},
  year = {2019},
  eprint = {1907.00325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.00325},
}
Figure