How Many Trees in a Random Forest? A Revisited Approach with Plateau Search and Optuna Integration
Not on the map. Why?
Abstract (arXiv)
Hyperparameter optimization (HPO) for Random Forest faces a specific difficulty in tuning the number of trees: the predictive score typically improves monotonically with ensemble size, so standard methods such as Tree-structured Parzen Estimator (TPE) and Hyperband require a predefined search range and often drive the estimate toward its right boundary. Early-stopping strategies avoid fixing such a range, but can be sensitive to score noise and prone to premature stopping. To address this, we propose an integrated triplet-based plateau-search algorithm that removes the number of trees from the direct TPE search space and still exploits information accumulated across HPO trials. The method adaptively tracks a near-minimal sufficient ensemble size by monitoring relative changes in the out-of-bag (OOB) score across a triplet of forest sizes and shifting this triplet accordingly. This yields an automated and user-interpretable procedure based on a tolerance parameter. We also provide a theoretical analysis: we relate the proposed relative OOB-score criterion to the gap between the current and limiting scores, and derive an asymptotic variance estimate for the corresponding OOB-based absolute relative difference. Experiments show that the selected number of trees can differ substantially from the common heuristic: for most classical benchmark datasets it is smaller, whereas for some high-dimensional bioinformatics datasets, such as Arcene and Dorothea, it is larger. The source code and reproducible experiments are available at https://github.com/lange-am/rf_plateau_hpo.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 24 of its 79 references that are in the map. First posted on arXiv 2 Jun 2026.
Builds on
24 of 79 references.
References · 24
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
- 2018Sanity Checks for Saliency Mapscited by 1,149
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 688
- 2021Tabular Data: Deep Learning is Not All You Needcited by 530
- 2021Deep Neural Networks and Tabular Data: A Surveycited by 489
- 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 466
- 2017Interpretation of Neural Networks is Fragilecited by 443
- 2018Consistent Individualized Feature Attribution for Tree Ensemblescited by 279
12 more
- 2015ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and Rcited by 171
- 2015A Random Forest Guided Tourcited by 168
- 2021Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challengescited by 143
- 2018Tunability: Importance of Hyperparameters of Machine Learning Algorithmscited by 98
- 2019When Explanations Lie: Why Many Modified BP Attributions Failcited by 92
- 2019Unrestricted Permutation forces Extrapolation: Variable Importance Requires at least One More Model, or There Is No Free Variable Importancecited by 85
- 2018Hyperparameters and Tuning Strategies for Random Forestcited by 83
- 2014Understanding Random Forests: From Theory to Practicecited by 57
- 2013Confidence Intervals for Random Forests: The Jackknife and the Infinitesimal Jackknifecited by 43
- 2017To tune or not to tune the number of trees in random forest?cited by 33
- 2014Analysis of purely random forests biascited by 10
- 2019Estimating the Algorithmic Variance of Randomized Ensembles via the Bootstrapcited by 10
Built on by
Citing papers per year: 2026: 1.
1 paper.