Alpha-Trimming: Locally Adaptive Tree Pruning for Random Forests

Nikola Surjanovic, Andrew J. Henrey, Thomas M. LoughinarXiv 2024

Abstract

Conventional wisdom in machine learning suggests that Random Forest (RF) trees should be grown as deep as possible to minimize bias, relying on ensemble averaging to cancel out variance. This paper challenges that notion by introducing alpha-trimming, a fast, locally adaptive pruning algorithm. By adaptively controlling the size of individual regression trees, alpha-trimming smooths out predictions in noisy regions while preserving detail where the signal is strong. Our results across 46 benchmark datasets demonstrate that alpha-trimmed forests often substantially lower mean squared prediction error (MSPE) and never significantly underperform standard, fully-grown forests.

The Problem: Signal-to-Noise Ratio and Global Tuning

In standard Random Forest implementations, trees are typically grown unpruned. The logic is that while individual deep trees have high variance, the forest's averaging process will mitigate this noise. However, this assumption fails in regions of the feature space with a low signal-to-noise ratio (SNR)—where the underlying function is relatively flat or the noise is high. In these areas, deep trees create "jagged" and overly variable predictions that averaging cannot fully rectify.

Existing solutions, such as setting a global min.node.size, are blunt instruments. Increasing the minimum node size to smooth out noisy regions inadvertently sacrifices detail in high-signal regions. The authors propose a "scalpel" instead of a "sledgehammer": a method to prune trees locally and adaptively based on the strength of the local signal.

Methods: Alpha-Trimming

The proposed Alpha-Trimming method follows a two-step approach:

  1. Accumulated Information Pruning: Rather than using computationally expensive cross-validation for every tree, the algorithm employs an information-theoretic approach. It traverses a fully-grown tree from the bottom up, deciding whether to keep a split based on a modified Bayesian Information Criterion (BIC).
  2. The $\alpha$ Parameter: A tuning parameter, $\alpha$, scales the penalty in the BIC. When $\alpha = 0$, no pruning occurs (standard RF). When $\alpha = 1$, trees are pruned to be optimal standalone predictors. By tuning $\alpha$ (typically between 0 and 3), the forest finds the optimal complexity for the specific dataset.
Recursive partitioning logic used to evaluate split points within the tree structure.

Standard BIC often ignores the fact that the location of a split is a parameter that must be estimated. This paper utilizes a modified BIC that specifically accounts for split-point estimation, making pruning decisions more reliable. Because pruning is a post-processing step, $\alpha$ can be tuned using Out-of-Bag (OOB) error without ever refitting the trees, making it highly efficient for production environments.

Key Insights and Results

The most striking finding is that alpha-trimming maintains deep branches in high-signal areas while aggressively pruning low-signal regions. This local adaptivity is something global parameters like max_depth cannot achieve.

Comparison of predictive performance: Alpha-trimming (right) provides a smoother fit in noisy regions compared to standard unpruned trees (left) while maintaining the sharp transition of the signal.

Performance Highlights:

  • Superior Accuracy: In a suite of 46 datasets (42 real-world and 4 synthetic), alpha-trimmed RFs frequently achieved lower MSPE than default RFs.
  • Robustness: The method was never substantially worse than a standard RF, serving as a "no-regret" optimization.
  • Local vs. Global: On the "elbow" dataset—which features both flat and sloped regions—alpha-trimming significantly outperformed forests where only the global min.node.size was tuned. This confirms that local adaptivity provides a unique advantage.

Conclusion and Future Work

Alpha-trimming offers a computationally efficient way to improve Random Forest performance by reducing tree correlation in noisy regions. While this research focuses on regression, the logic is extensible to classification. Future work may involve integrating this framework into automated machine learning (AutoML) pipelines as a standard optimization step, further refining the robustness of ensemble methods across diverse data distributions.

Summary updated

BibTeX
@misc{surjanovic2024alpha,
  author = {Nikola Surjanovic and Andrew J. Henrey and Thomas M. Loughin},
  title = {{Alpha-Trimming: Locally Adaptive Tree Pruning for Random Forests}},
  year = {2024},
  eprint = {2408.07151},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.07151},
}
Figure