Best-scored Random Forest Density Estimation

Hanyuan Hang, Hongwei WenarXiv 2019

Abstract

This paper introduces Best-scored Random Forest Density Estimation (BRDF), a novel nonparametric strategy that enhances traditional random forest methods through a "survival of the fittest" selection mechanism. By selecting the best-performing density trees from a pool of candidates and utilizing adaptive, oblique partitions, BRDF achieves superior accuracy and faster convergence rates than standard methods like Kernel Density Estimation (KDE). The authors provide rigorous theoretical proofs for consistency and convergence under $L_1$ and $L_\infty$ norms, supported by extensive experiments on synthetic and real-world datasets.

Introduction

Density estimation—the task of estimating the underlying probability distribution of a dataset—is a cornerstone of statistics and machine learning, powering applications from anomaly detection to image processing. However, traditional tools face significant limitations. Histograms are often too coarse and non-smooth, while Kernel Density Estimation (KDE) struggles with the "curse of dimensionality" and lacks local adaptivity. While neural autoregressive models (like rNADE) offer high performance, they often lack theoretical transparency.

BRDF addresses these gaps by combining the ensembling power of random forests with a rigorous selection process and geometric flexibility, creating a method that is theoretically grounded, computationally efficient, and robust in high-dimensional spaces.

Methodology

The Best-scored Random Forest Density Estimation (BRDF) framework evolves through three primary innovations:

1. The "Best-Scored" Selection

In a standard random forest, every tree grown is integrated into the final ensemble. BRDF introduces a more selective approach: for each slot in the forest, the algorithm generates $k$ candidate trees. It then uses cross-validation to select the single tree with the best performance—measured by Average Negative Log-Likelihood (ANLL)—to join the ensemble. This ensures that only the most representative models contribute to the final density estimate.

2. Adaptive Partitioning

To avoid the pitfalls of over-splitting empty space or under-splitting dense regions, BRDF employs a data-driven partitioning strategy. At each step, the algorithm samples a small subset of points to determine which cell in the tree is most "in need" of a split, allowing the model to focus its computational budget on areas where data actually exists.

3. Oblique Splits

While standard decision trees split data along axis-parallel lines (e.g., $x > 5$), BRDF implements oblique partitions. By splitting the space with hyperplanes at any angle, the model can capture complex, diagonal structures in the data much more efficiently than rectangular partitions.

Theoretical Foundations

The authors provide a rigorous mathematical basis for BRDF, establishing the consistency of both the individual best-scored trees and the resulting forest under the $L_1$-norm. Furthermore, they derive convergence rates under three different tail assumptions, which describe how the distribution behaves at its edges. Finally, the paper presents convergence analysis under the $L_\infty$-norm, ensuring the model's reliability across various statistical contexts.

Experimental Evaluation

The researchers evaluated BRDF against state-of-the-art methods, including KDE, Discrete Histogram Transforms (DHT), and rNADE, using both synthetic and real-world benchmarks.

Synthetic Data

Testing on distributions such as piecewise constant and mixture models (Beta/Uniform) across dimensions $d=1, 2, 3, 5$ showed that BRDF-AP (axis-parallel) often halved the Mean Absolute Error (MAE) compared to KDE.

Real-World Performance

On UCI Repository datasets (Wine Quality, Parkinsons Telemonitoring, and Ionosphere), BRDF models consistently achieved significantly lower ANLL scores. For example, on the Parkinsons dataset ($n=5875$), BRDF-OB (oblique) scored -0.67, whereas KDE scored 8.27 (where lower is better).

Computational Efficiency

BRDF demonstrates impressive scalability. On the Parkinsons dataset, BRDF-OB completed training in roughly 2.3 seconds, outperforming both KDE (3.7s) and rNADE (35.9s). This makes it a viable candidate for large-scale data applications where neural models might be too slow.

Conclusion

BRDF represents a significant advancement in nonparametric density estimation. By prioritizing tree selection over simple averaging and incorporating oblique geometric partitions, it overcomes the limitations of KDE and provides a computationally efficient, theoretically grounded alternative for high-dimensional data analysis. While future work may further refine hyperparameter sensitivity and volume estimation for oblique splits, BRDF stands as a powerful new tool for the data scientist’s toolkit.

Summary updated

BibTeX
@misc{hang2019best,
  author = {Hanyuan Hang and Hongwei Wen},
  title = {{Best-scored Random Forest Density Estimation}},
  year = {2019},
  eprint = {1905.03729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.03729},
}
Figure