[Paper Review] Making Sense of Random Forest Probabilities: a Kernel Perspective
This paper establishes a kernel regression framework for random forest probability estimation, showing that the proximity kernel—derived from tree proximity—acts as a bandwidth parameter. By modeling this kernel, the authors provide a principled statistical foundation for random forest probability estimates and demonstrate that tuning mtry significantly improves calibration, with proximity-based methods outperforming standard random forests in RMSE by up to 50% on synthetic data.
A random forest is a popular tool for estimating probabilities in machine learning classification tasks. However, the means by which this is accomplished is unprincipled: one simply counts the fraction of trees in a forest that vote for a certain class. In this paper, we forge a connection between random forests and kernel regression. This places random forest probability estimation on more sound statistical footing. As part of our investigation, we develop a model for the proximity kernel and relate it to the geometry and sparsity of the estimation problem. We also provide intuition and recommendations for tuning a random forest to improve its probability estimates.
Motivation & Objective
- To address the unprincipled nature of random forest probability estimation via vote counting, which lacks statistical grounding.
- To establish a formal connection between random forests and kernel regression, identifying the proximity kernel as the underlying kernel.
- To model the kernel's shape and bandwidth dependence on mtry, providing intuition for tuning.
- To improve probability estimation quality by reinterpreting random forests through a kernel lens and proposing proximity-based estimation.
- To demonstrate empirically that proximity-based random forests achieve significantly lower RMSE than standard classification or regression forests.
Proposed method
- Derive the proximity kernel from the random forest structure, where proximity measures how often two training points co-occur in the same terminal node across trees.
- Model the proximity kernel as a function of mtry, showing it controls the effective bandwidth of the kernel estimate.
- Reframe random forest probability estimation as kernel regression using the proximity kernel, with weights determined by proximity to training points.
- Propose $RF^{prox}$, a method that uses proximity as a similarity measure for probability estimation, replacing vote counting.
- Tune mtry to control kernel bandwidth, balancing bias and variance in the proximity kernel estimate.
- Compare $RF^{prox}$ to standard random forests (classification and regression modes), bagged trees, and completely random forests using RMSE on synthetic datasets.
Experimental results
Research questions
- RQ1How can random forest probability estimation be formally grounded in kernel regression theory?
- RQ2What is the role of mtry in shaping the proximity kernel and controlling bias-variance trade-off in probability estimation?
- RQ3How does the proximity kernel relate to the geometry and sparsity of the underlying data?
- RQ4Can proximity-based probability estimation outperform standard vote-counting in random forests?
- RQ5What tuning strategies for mtry lead to optimal probability calibration in random forests?
Key findings
- The proximity kernel in a random forest acts as a bandwidth parameter in kernel regression, with mtry controlling the kernel's width and thus the smoothness of probability estimates.
- When mtry = 1, probability estimates are heavily biased toward 0.5, even when classification error is optimal, due to weak trees and high correlation.
- With mtry = 30, probability estimates are well-centered around true values (0.3 and 0.7), demonstrating that tuning mtry is critical for calibration.
- The $RF^{prox}$ method achieves the lowest RMSE on four of six synthetic models, with a 50% reduction in error on the XOR and 1d models compared to nearest competitors.
- On the 10d model, $RF^{prox}$ achieves an RMSE of 0.396, outperforming the next best method (0.383) and showing robustness in high-dimensional settings.
- The kernel perspective reveals that standard random forests can produce poor probability estimates despite achieving the Bayes error rate, highlighting the disconnect between classification and probability performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.