What Functions Does XGBoost Learn?
Dohyeong Ki, Adityanand Guntuboyina
TL;DR
This work builds a rigorous theoretical framework for the function class implicitly learned by XGBoost by introducing $\mathcal{F}^{d,s}_{\infty-\text{ST}}$ and the complexity measure $V^{d,s}_{\infty-\text{XGB}}(\cdot)$. It proves that solving the XGBoost objective is equivalent to a penalized least squares problem over this enlarged class and links the function space to Hardy–Krause variation, providing dimension-robust minimax rates of order $n^{-2/3}$ up to logarithmic factors. The results show that XGBoost effectively regularizes functions of controlled HK variation and interaction order, offering a principled explanation for its strong performance in high-dimensional settings. An open question remains whether the XGBoost algorithm itself attains minimax optimality over this class, beyond the theoretical target objective analyzed here. Overall, the paper bridges algorithmic practice with classical statistical regularization, clarifying the function space XGBoost targets and the role of $L^1$-based complexity control.
Abstract
This paper establishes a rigorous theoretical foundation for the function class implicitly learned by XGBoost, bridging the gap between its empirical success and our theoretical understanding. We introduce an infinite-dimensional function class $\mathcal{F}^{d, s}_{\infty-\text{ST}}$ that extends finite ensembles of bounded-depth regression trees, together with a complexity measure $V^{d, s}_{\infty-\text{XGB}}(\cdot)$ that generalizes the $L^1$ regularization penalty used in XGBoost. We show that every optimizer of the XGBoost objective is also an optimizer of an equivalent penalized regression problem over $\mathcal{F}^{d, s}_{\infty-\text{ST}}$ with penalty $V^{d, s}_{\infty-\text{XGB}}(\cdot)$, providing an interpretation of XGBoost as implicitly targeting a broader function class. We also develop a smoothness-based interpretation of $\mathcal{F}^{d, s}_{\infty-\text{ST}}$ and $V^{d, s}_{\infty-\text{XGB}}(\cdot)$ in terms of Hardy--Krause variation. We prove that the least squares estimator over $\{f \in \mathcal{F}^{d, s}_{\infty-\text{ST}}: V^{d, s}_{\infty-\text{XGB}}(f) \le V\}$ achieves a nearly minimax-optimal rate of convergence $n^{-2/3} (\log n)^{4(\min(s, d) - 1)/3}$, thereby avoiding the curse of dimensionality. Our results provide the first rigorous characterization of the function space underlying XGBoost, clarify its connection to classical notions of variation, and identify an important open problem: whether the XGBoost algorithm itself achieves minimax optimality over this class.
