Random Forests for Adaptive Nearest Neighbor Estimation of Information-Theoretic Quantities

Ronan Perry, Ronak Mehta, Richard Guo, Jesús Arroyo, Michael Powell, Hayden S. Helm, Cencheng Shen, Joshua T Vogelstein, Vogelstein, Joshua T.

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

Quantifying the information shared between variables is a cornerstone of data science, typically achieved through metrics like Mutual Information (MI) and Conditional Entropy. Traditional "gold standard" tools, such as the KSG estimator, rely on $k$-nearest neighbor ($k$-NN) logic using Euclidean distance. However, these methods often fail in high-dimensional spaces or when features are measured on disparate scales—the "curse of dimensionality." This paper introduces Uncertainty Forests (UF), a nonparametric approach that treats decision forests as adaptive nearest neighbor estimators to overcome these limitations.

The Challenge of High-Dimensional Estimation

Standard $k$-NN methods assume a fixed spherical neighborhood around data points. In high dimensions, or when data is non-isotropic (scaled differently across dimensions), these neighborhoods become uninformative. Researchers often resort to complex preprocessing to mitigate this. In contrast, decision trees partition space into axis-aligned boxes based on the data's actual structure, making them naturally invariant to monotone transformations and capable of ignoring uninformative "junk" features.

Uncertainty Forests: An Honest Approach

The core innovation of UF is the application of the "Honesty" principle. While standard Random Forests (RF) use the same data to determine tree structure and calculate leaf-node votes, UF splits the training data for each tree. One half determines the splits (structure), while the other half determines the posterior probability estimates (values). This prevents "double-dipping," reducing bias and overconfidence, and leads to theoretically consistent estimates of information-theoretic quantities.

Experimental Validation

The authors evaluated UF against standard RF and other variants using simulated Gaussians and 72 real-world datasets from OpenML. As shown in the calibration analysis, UF tracks the true posterior probabilities much more closely than standard RF, which tends to be overconfident.

Posterior probability estimation compared to ground truth.

In simulations with 100 dimensions where only a few were informative, $k$-NN estimators failed completely, while UF remained stable. This robustness is further evidenced by the Hellinger loss metrics across varying levels of distribution "sharpness" ($\alpha$).

Key Findings

UF consistently outperformed standard RF in terms of Expected Calibration Error (ECE). The Hellinger loss—a measure of similarity between estimated and true distributions—remains lower for UF across different data complexities compared to standard RF.

Hellinger loss and error heatmaps across varying sharpness levels.

In a high-stakes neuroscience application involving the Drosophila connectome, UF was used to quantify uncertainty regarding neuron types. The model revealed that a neuron's network cluster and age were the most informative features, effectively capturing the information present in more complex morphological traits.

Conclusion

Uncertainty Forests provide a robust, scalable, and theoretically grounded framework for estimating information-theoretic quantities. By leveraging the honesty principle, UF achieves superior calibration and handles high-dimensional, unscaled data where traditional $k$-NN methods fail. Future work aims to extend this framework from categorical labels to continuous target variables using techniques like Kernel Density Estimation within tree leaves.

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{perry2019random,
  author = {Ronan Perry and Ronak Mehta and Richard Guo and Jesús Arroyo and Michael Powell and Hayden S. Helm and Cencheng Shen and Joshua T Vogelstein and Vogelstein, Joshua T.},
  title = {{Random Forests for Adaptive Nearest Neighbor Estimation of Information-Theoretic Quantities}},
  year = {2019},
  eprint = {1907.00325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.00325},
}
Figure