Explaining Prediction Disagreement between Random Forests and Gradient Boosting on Tabular Data
Keywords:
random forests; gradient boosting; ensemble diversity; bias–variance decomposition; probability calibration; tabular dataAbstract
Random forests and gradient boosting are the two most widely used tree ensembles for tabular prediction, yet they frequently assign substantially different scores to the same instance while achieving comparable aggregate accuracy. This manuscript develops an analytical account of that disagreement. The two learners are treated as solutions to different statistical problems: the forest estimates a conditional functional by variance reduction over randomized, weakly correlated trees, whereas boosting performs stagewise functional gradient descent and reduces bias through a shrinkage-controlled sum of shallow learners. Building on the bias–variance–covariance decomposition of ensemble error and on the stagewise risk-minimization formulation of boosting, an exact additive decomposition of the pointwise prediction gap is derived, separating an approximation component tied to the model class and loss from an estimation component tied to resampling and randomization. Four mechanisms that inflate these components are then analyzed: impurity-driven split selection and threshold placement on a training-dependent grid; differences in implicit interaction order induced by depth, shrinkage, and early stopping; the non-identifiability of score scales and the limited reach of monotone calibration; and contrasting behavior in sparse regions and near the boundary of the data. A Cauchy–Schwarz bound links the expected squared gap and the local margin to the probability of discrete label disagreement, explaining why disagreement concentrates in low-margin, locally sparse regions. The manuscript closes with a diagnostic protocol that attributes observed disagreements to identifiable causes using refitting, randomization, and calibration probes, together with reporting recommendations. The treatment is analytical and literature-grounded; no new benchmark results are claimed.
References
1. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.
2. Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29(5), 1189–1232.
3. Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.). Springer.
4. Fernández-Delgado, M., Cernadas, E., Barro, S., & Amorim, D. (2014). Do we need hundreds of classifiers to solve real world classification problems? Journal of Machine Learning Research, 15(1), 3133–3181.
5. Grinsztajn, L., Oyallon, E., & Varoquaux, G. (2022). Why do tree-based models still outperform deep learning on typical tabular data? In Advances in Neural Information Processing Systems 35 (Datasets and Benchmarks Track).
6. Caruana, R., & Niculescu-Mizil, A. (2006). An empirical comparison of supervised learning algorithms. In Proceedings of the 23rd International Conference on Machine Learning (pp. 161–168).
7. Dietterich, T. G. (2000). Ensemble methods in machine learning. In Multiple Classifier Systems (Lecture Notes in Computer Science 1857, pp. 1–15). Springer.
8. Breiman, L. (1996). Bagging predictors. Machine Learning, 24(2), 123–140.
9. Friedman, J. H. (2002). Stochastic gradient boosting. Computational Statistics & Data Analysis, 38(4), 367–378.
10. Bühlmann, P., & Yu, B. (2003). Boosting with the L2 loss: Regression and classification. Journal of the American Statistical Association, 98(462), 324–339.
11. Strobl, C., Boulesteix, A.-L., Zeileis, A., & Hothorn, T. (2007). Bias in random forest variable importance measures: Illustrations, sources and a solution. BMC Bioinformatics, 8, 25.
12. Biau, G., & Scornet, E. (2016). A random forest guided tour. TEST, 25(2), 197–227.
13. Louppe, G., Wehenkel, L., Sutera, A., & Geurts, P. (2013). Understanding variable importances in forests of randomized trees. In Advances in Neural Information Processing Systems 26 (pp. 431–439).
14. Ueda, N., & Nakano, R. (1996). Generalization error of ensemble estimators. In Proceedings of the IEEE International Conference on Neural Networks (pp. 90–95).
15. Kuncheva, L. I., & Whitaker, C. J. (2003). Measures of diversity in classifier ensembles and their relationship with the ensemble accuracy. Machine Learning, 51(2), 181–207.
16. Mentch, L., & Hooker, G. (2016). Quantifying uncertainty in random forests via confidence intervals and hypothesis tests. Journal of Machine Learning Research, 17(26), 1–41.
17. Geurts, P., Ernst, D., & Wehenkel, L. (2006). Extremely randomized trees. Machine Learning, 63(1), 3–42.
18. Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794).
19. Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (2018). CatBoost: Unbiased boosting with categorical features. In Advances in Neural Information Processing Systems 31 (pp. 6638–6648).
20. Zhang, T., & Yu, B. (2005). Boosting with early stopping: Convergence and consistency. Annals of Statistics, 33(4), 1538–1579.
21. Niculescu-Mizil, A., & Caruana, R. (2005). Predicting good probabilities with supervised learning. In Proceedings of the 22nd International Conference on Machine Learning (pp. 625–632).
22. Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017). On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning (pp. 1321–1330).
23. Wyner, A. J., Olson, M., Bleich, J., & Meys, J. (2017). Explaining the success of AdaBoost and random forests as interpolating classifiers. Journal of Machine Learning Research, 18(48), 1–33.
24. Olson, R. S., La Cava, W., Orzechowski, P., Urbanowicz, R. J., & Moore, J. H. (2017). PMLB: A large benchmark suite for machine learning evaluation and comparison. BioData Mining, 10, 36.
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Computer Science and Engineering Transactions

This work is licensed under a Creative Commons Attribution 4.0 International License.
