Posterior Concentration for Bayesian Regression Trees and Forests
Veronika Rockova, Stephanie van der Pas
Non-parametric Regression Setup
The remarkable empirical success of Bayesian tree-based regression has raised considerable interest in understanding why and when these methods produce good results. Despite their extensive use in practice, theoretical justifications have, thus far, been unavailable. To narrow this yawning gap, we consider the fundamental problem of making inference about an unknown regression function.
Our setup consists of the nonparametric regression model
where output variables are related in a stochastic fashion to a set of potential covariates . We assume that the covariates are fixed and have been rescaled so that . The true unknown regression surface will be assumed to be smooth, possibly involving only a small fraction of the potential covariates.
In the absence of a parametric model, a natural strategy to estimate the unknown regression function is by partitioning the covariate space into cells and then estimating the function locally within each cell from available observations. Such strategies yield histogram reconstructions of the regression surface and have been analyzed theoretically by multiple authors . Regression trees are among the most popular data-dependent histogram methods, where the partitioning scheme is obtained through nested parallel axis splitting. Trees are an integral constituent of ensemble methods that aggregate single tree learners into forests to boost prediction . Tree-based regression, either single or ensemble, is arguably one of the most popular machine learning tools today. In particular, Bayesian variants of these methods (Bayesian CART and BART) have earned a prominent role as one of the top machine learners. While consistency results for classical trees and random forests have been available , theory on the also very widely used Bayesian counterparts is non-existent. Our goal in this paper is to provide the first frequentist optimality results for Bayesian trees, and their ensembles.
Most of the work on Bayesian nonparametric regression has revolved around Gaussian processes . While there are multiple results on recursive partitioning (or histogram) priors for Bayesian density estimation (or non-linear autoregression ), the literature on Bayesian regression histograms is far more deserted. One fundamental contribution is due to Coram and Lalley , who showed consistency of Bayesian binary regression with uniform mixture priors on step functions and with one predictor. More recently, van der Pas and Ročková considered a similar setup for estimating step mean functions in Gaussian regression, again with a single predictor. This paper goes far beyond that framework, addressing (a) the full-fledged high-dimensional setup with a diverging number of potential covariates, (b) tree ensembles for additive regression.
The purpose of this paper is to study the rate of convergence of posterior distributions induced by step function priors on the regression surface when . The speed of convergence is measured by the size of the smallest shrinking ball around that contains most of the posterior probability. In pioneering works, Ghosal, Ghosh and Van der Vaart and Shen and Wasserman obtained rates of convergence for infinite-dimensional parametric models with iid observations in terms of the size of the model (measured by the metric entropy) and concentration rate of the prior around . These results were later extended to infinite-dimensional models that are not iid by Ghosal and Van der Vaart . Their general conceptual framework serves as an umbrella for our development.
We initially assume that is Hölder continuous (with smoothness not exceeding one) and may depend only on a small fraction of predictors. The optimal rate of estimation of a -variable function, which is known to be -smooth, is . Our first result shows that, with suitable regularization priors, single Bayesian regression trees achieve this minimax rate (up to a log factor). In other words, the posterior behaves nearly as well as if we knew and the number of active covariates , concentrating at a rate that only depends on the number of active predictors. This is the first optimality result for Bayesian regression trees, demonstrating their adaptability and reluctance to overfit in high-dimensional scenarios with . The regularization is achieved through our proposed spike-and-tree prior, a new variant of the Bayesian CART prior for dimension reduction and model-free variable selection. Going further, we show that Bayesian additive regression trees also achieve (near) minimax-rate optimal performance when approximating a single smooth function. Finally, the tree ensembles are also shown to be certifiably optimal when the true function is an actual sum of smooth functions, again concentrating at a near minimax rate.
2 Notation
3 Outline
We outline our goals and strategy in Section 2. We then review several useful concepts for analyzing recursive partitioning schemes in Section 3. In Section 4, we state our first main result on the posterior concentration for Bayesian CART. In Section 5, we develop tools for analyzing Bayesian additive regression trees and show their optimal posterior concentration in non-additive regression. Section 6 presents the final development of our theory concerning the recovery of an additive regression function with additive trees. We conclude with a discussion in Section 7. The proofs of our main theorems are presented in Sections 8, 9 and 10.
Background
The key to our approach will be drawing upon the foundational posterior concentration theory for non-iid observations, laid down in the seminal paper by Ghosal and Van der Vaart .
Our results are obtained under a unifying hat of a general result which requires three conditions to hold. Namely, suppose that for a sequence such that is bounded away from zero and sets we have
for some . Then it follows from Theorem 4 in that the posterior distribution concentrates at the rate , i.e.
in -probability, as , for any .
The conditions of Ghosal and Van der Vaart provide a very general recipe for showing posterior concentration in infinite-dimensional models. Our goal in this paper is to obtain tailored statements for Bayesian regression trees and forests. The major challenge will be (a) designing a sequence of approximating spaces (a sieve) and (b) endowing with a prior distribution such that the three conditions hold simultaneously for as small as possible. To this end, we will build on, and develop, tools for an analysis of recursive partitioning schemes.
Throughout this work, we assume that the true regression function is Hölder continuous and the smoothness parameter does not exceed one, (or an additive composition thereof), in the sense made precise below.
With we denote the space of uniformly -Hölder continuous functions, i.e.
where and where is the Hölder coefficient.
The assumption is standard in the study of piecewise constant estimators and priors, see for example . The reason for this limitation is that step functions are relatively rough; e.g. the approximation error of histograms for functions that are smoother than Lipschitz is at least of the order , where is the number of bins. The number of steps required to approximate a smooth function well is thus too large, creating a costly bias-variance tradeoff.
In some applications, it is reasonable to expect that the regression function depends only on a small fraction of input covariates. For a set of indices , we define
Regime 1: is -Hölder continuous and depends on an unknown subset of covariates, i.e. .
Regime 2: is an aggregate of -Hölder continuous functions , , each depending on an unknown subset of covariates, i.e. , where .
For an estimation procedure to be successful in Regime 1, it needs to be doubly adaptive (with respect to and ). We will show that both single trees and tree ensembles adapt accordingly, performing at a near-minimax rate. Regime 2 makes the performance discrepancies more apparent, where the additive structure of is appreciated by tree ensembles, which can achieve a faster convergence rate than single trees. A variant of Regime 2 was studied by who derived minimax rates for estimating additive smooth functions and showed optimal concentration of additive Gaussian processes. Here, we approximate with step functions and their aggregates. We limit considerations to step functions that are underpinned by recursive partitioning schemes.
On Recursive Partitions
Tree-based regression consists of first finding an underlying partitioning scheme that hierarchically subdivides a dataset into more homogeneous subsets, and then learning a piecewise constant function on that partition. This section serves to review several useful concepts for analyzing such nested partitioning rules that will be instrumental in our analysis.
For the first requirement, let us formalize the notion of the cell size in terms of the empirical measure induced by observations . For each cell , we define by
the proportion of observations falling inside . Throughout this work, we focus on partitions whose boxes can adaptively stretch and shrink, allowing the splits to arrange themselves in a data-dependent way . The simplest data-adaptive partition is based on statistically equivalent blocks , where all cells have approximately the same number of points, i.e. . We deviate from such a strict rule by allowing for imbalance and define the so called valid partitions.
(Valid Partitions) Denote by a partition of . We say that is valid if
Valid partitions have non-empty cells, where the allocation does not need to be balanced. In balanced partitions (introduced in van der Pas and Ročková ), the cells satisfy for some . One prominent example of such balanced partitions is the median tree (or a - tree) , which will be discussed in the next section and will be used as a benchmark tree approximation towards establishing Condition 2.2.
For the second requirement, let us formalize the notion of the cell size in terms of the local spread of the data. To this end, we introduce the partition diameter .
(Diameter) Denote by a partition of and by a collection of data points in . For an index set , we define a diameter of w.r.t. as
The diameter of corresponds to the largest distance between -coordinate projections of two points that fall inside . This is one of the more flexible notions of a cell diameter, which takes into account the data itself, not just the physical cell size. Traditionally, bias and convergence rate analysis of tree-based estimators have been characterized in terms of the cell diameters. The rate depends on how fast the diameters shrink as we move down the tree: the more rapidly, the better. As will be seen later in Section 3.3, controlling the diameter will be essential for obtaining tight bounds on the approximation error.
2 Tree Partitions
We are ultimately interested in partitions that can be obtained with nested axis-parallel splits. Such partitions can be represented by a tree diagram, a hierarchical arrangement of nodes. We will focus on binary tree partitions, where each split yields two children nodes. Namely, starting from a parent node , a binary tree partition is grown by successively applying a splitting rule on a chosen internal node, say . The node is split into two cells by a perpendicular bisection along one of the coordinates, say , at a chosen observed value . The newborn cells and constitute two rectangular regions of , which can be split further (to become internal nodes) or end up being terminal nodes . The terminal cells after splits then yield a box-shaped (tree) partition .
Unlike dyadic trees, where the threshold is preset at a midpoint of the rectangle along the direction, we allow for splits at available observations . Such data-dependent splits are integral to Bayesian CART and BART implementations . With more opportunities for each split, many more tree topologies can be generated. However, since the tree partitions are arranged in a nested fashion, their combinatorial complexity is not too large (as shown in Lemma 3.1 below).
We will denote each tree-structured -partition by . With we denote a family of valid tree partitions of , obtained by splitting times at observed values in along each coordinate direction inside at least once. In particular, each tree is valid according to Definition 3.1 and uses up all covariates in for splits, where can be regarded as an index set of active predictors. We will refer to the partitioning number (in a similar vein as in ) as the overall number of distinct partitions of that can be induced by members of the partitioning family .
Denote by an index set of active covariates. Let denote the set of valid tree partitions obtained with splits. Then
This follows from the recursive formula , where we use the fact that there are possible trees with cells which have altogether potential next splits along one of the coordinates. ∎
Lemma 3.1 will be fundamental for understanding the combinatorial richness of trees and for obtaining bounds on the covering numbers towards establishing Condition (2.1).
3 On Tree-structured Step Functions
The second critical ingredient in building a tree regressor is learning the piecewise function on a given partition. In this section, we describe some facts about the approximating properties of such tree-structured step functions (further referred to as trees). The understanding of how well we can approximate a smooth regression surface will be vital for establishing Condition (2.2).
For a family of valid tree partitions , we denote by
The cell diameters oversee how closely one can approximate with and it is desirable that they decay fast with . Ideally, the approximation error should be no slower than for some , where . To get an intuitive insight into this requirement, consider the following perfectly regular partition: a -dimensional “chess-board” that splits into cubes of length . The maximal interpoint distance inside each cube will be at most . This partition is, however, not adaptive and thereby less practical. It turns out that, under a mild requirement on the spread of the data points , the fast diameter decay is also guaranteed by the data-adaptive - trees mentioned in Remark 3.1. The “mild requirement” is formalized in our definition below.
Denote by the - tree where and . We say that a dataset is -regular if
The definition states that in a regular dataset, the maximal diameter in the - tree partition should not be much larger than a “typical” diameter. This condition ensures that, as more and more data points are collected, the data conform to a structure that does not permit outliers in active directions . For example, a fixed design on a regular grid (including directions ) will satisfy (3.4). Our notion of regularity goes farther by allowing (a) the predictors to be correlated, (b) the points to scatter unevenly and/or close to a lower-dimensional manifold. The manifold, however, should be varying in active directions and do so sufficiently smoothly (or be monotone) so that the cells in the - tree do not contain isolated clouds of points. For example, data points arising from distributions with atomic marginals (in active directions) would violate regularity.
As will be seen in the following lemma, for regular datasets, - trees have a faster diameter decay (roughly halving the cell diameters after one round of splits), thereby attaining better approximation error. The following lemma is an important element of our proof skeleton, showing that there exists a tree (a - tree) that approximates well.
Controlling the approximation error is only one of the critical aspects in our theoretical study. The second will be monitoring the complexity of our approximating function classes. Finding the right balance between the two will be instrumental for obtaining optimal performance.
Now that we have developed the necessary tools, we can dive into the main results of the paper.
Adaptive Dimension Reduction with Trees
In Regime 1, we assume that the target regression surface , although initially conceived as a function of , in fact depends only on a small fraction of features , where . If an oracle were able to isolate , the minimax rate would improve from to and it would be the fastest rate possible. When no such oracle information is available, characterized the minimax rate as follows: where is the isotropic Hölder norm. The first term is the classical minimax risk for estimating a -dimensional smooth function. The second term is the penalty incurred by variable selection uncertainty. While the number of features is not forbidden from growing to infinity much faster than , we keep in mind that consistent estimation will only be possible in sparse contexts where is small relative to and (in which case the complexity penalty will be dominated by the first term in the minimax rate).
Bayesian regression tree implementations that do not induce sparsity (when in fact present) are unfit for inference in high-dimensional setups. In particular, the traditional Bayesian CART prior grows trees by splitting each node, indexed by the depth level , with a probability , where are tuning parameters. The splitting variable is picked from uniformly (i.e. with a fixed probability ). Recently, proposed an adaptive variant of this prior by placing a sparsity-inducing Dirichlet prior on the splitting proportions . This prior uses fewer variables in the tree construction and thereby is more reluctant to overfit. In another popular Bayesian CART implementation, suggest directly placing a prior on and a conditionally uniform prior on tree topologies with bottom leaves. Again, in its original form, this prior will likely suffer from the curse of dimensionality, failing to harvest the intrinsic lower-dimensional structure. Here, we propose a fix to this problem. To make the Bayesian CART prior of appropriate for high-dimensional setups, we propose a spike-and-tree variant by injecting one more layer: a complexity prior over the active set of predictors.
Bayesian models for feature selection have traditionally involved a hierarchy of priors over subset sizes and subsets . Instead of modeling the mean outcome as a linear functional of active predictors , here we grow a tree from . We begin by treating as unknown with an exponentially decaying prior
Next, given the dimensionality , we assume that all subsets of covariates are a-priori equally likely, i.e.
Given and , we assign a uniform prior over valid tree topologies , i.e.
Similar constraints on trees where each terminal node is assigned a minimal number of data points have been implemented in stochastic search algorithms . At the very least, we can choose in (3.2) , merely requiring that the cells be non-empty. Finally, given the partition of size , we assign an iid Gaussian prior on the step heights (similarly as in )
The name spike-and-tree prior deserves a bit of explanation. It follows from the fact that (T1) and (T2) will be satisfied if each covariate has a prior probability of contributing to the mean regression surface for some . Endowing each covariate with a Bernoulli indicator , where , and building a tree on , one obtains a mixture prior on that pertains to spike-and-slab variable selection. Here, the slab is a tree prior built on active covariates rather than an independent product prior on active regression coefficients. This hierarchical construction has distinct advantages for variable selection. In linear regression, it is customary to select variables by thresholding marginal posterior inclusion probabilities . These will be available also under our spike-and-tree construction. Inspecting the posterior probabilities obtained with our hierarchical tree prior will be a new avenue for conducting variable selection in Bayesian CART and BART, an alternative to . Thus, our prior has important practical implications for performing principled model-free variable selection.
2 Posterior Concentration for Bayesian CART
The difficulty in properly analyzing Bayesian CART stems from the combinatorial richness of the prior that makes it less tractable analytically. By building on our developments from previous sections, we are now fully equipped to present the first theoretical result concerning this method.
The following theorem solidifies the optimality properties of Bayesian CART by showing that under the hierarchical prior (T1)-(T5), the posterior adapts to both smoothness and sparsity, concentrating at the (near) minimax rate that depends only on the number of strong covariates regardless of how many noise variables are present. The near-minimaxity refers to an additional log factor. The result holds for sparse (high-dimensional) regimes, where can be potentially much larger than and where . We will denote by
the collection of all tree-structured step functions (with various tree sizes and split subsets) that can be obtained by partitioning .
Assume with and such that and . Moreover, we assume that and that is -regular. We endow with priors (T1)-(T5). Then with we have
for any in -probability, as .
It is useful to note that Theorem 4.1 holds also when and when is fixed as . When is fixed, however, the assumptions and can be omitted. The first assumption is needed here to make sure that the step sizes of an approximating - tree are well behaved when . The result holds for a bit slower rate with under slightly relaxed assumptions and .
The assumption of a regular design is an inevitable consequence of treating ’s as fixed. As noted by in their study of random forests, point-wise consistency results have been complicated by the difficulty in controlling local (cell) diameters. The regularity assumption guarantees this control and is apt to be satisfied for most realizations of from reasonable distributions on . The following Corollary certifies that Bayesian CART, under a suitable complexity prior on the number of terminal nodes, is reluctant to overfit. This is seen from the behavior of the posterior, which concentrates on values that are only a constant multiple larger than the optimal oracle value .
(Bayesian regression trees do not overfit.) Under the assumptions of Theorem 4.1 with we have
in -probability for a suitable constant .
Corollary 4.1 also reveals a fundamental limitation of trees (step functions) in recovering smoother functions. To see this, consider which possesses Hölder smoothness and, by Corollary 4.1, will thus be approximated by trees with at most leaves (up to multiplicative constants) with high posterior probability. However, is also in and the approximation error by a regular histogram with leaves will be at least of the order which is too large to achieve the minimax rate of over .
Tree Ensembles
Combining multiple trees through additive aggregation has proved to be remarkably effective for enhancing prediction . This section offers new theoretical insights into the mechanics behind the Bayesian variants of such tree ensemble methods. Our approach rests on a detailed analysis of the collective behavior of partitioning cells generated by individual trees. We will see that the overall performance is affected not only by the quality of single trees but also how well they can collaborate .
Additive regression trees grow an ensemble predictor by binding together tree-shaped regressors. For subsets and tree sizes , we define a sum-of-trees model (forest) as
Sum-of-trees models offer an improved representation flexibility by chopping up the predictor space into more refined segmentations. These segmentations are obtained by superimposing multiple tree partitions, yielding what we define below as a global partition.
For a partition ensemble , we define a global partition
as the partition obtained by merging all cuts in . We refer to ’s as global cells in the ensemble.
The concept of the global partition can be better understood from Figure 1, where splits from trees (each having leaves) are merged to obtain a global partition with global cells. Generally, the global partition itself is not necessarily a tree and can have as many as cells. This upper bound can be attained if each trees splits times on a single variable, where each tree uses a different one. Without loss of generality, the global partition will be assumed to have non-empty cells. This requirement can be met by merging vacuous cells with their nonempty neighbors.
Bayesian additive regression trees were conceived as a collection of weak learners that capture different aspects of the predictor space . To characterize the amount of diversity/correlation between trees in the ensemble, we introduce the so-called stretching matrix.
For a partition ensemble , we define the stretching matrix as follows: for each and we have
where and are such that and where is the (local) cell in the tree .
Each row of the stretching matrix corresponds to one global cell and each column to one local cell. The row entries sum to , indicating which local cells overlap with that global cell (as shown in Figure 2 for partitions from Figure 1). To further characterize the pattern of overlap between trees, we introduce the Gram matrix
The off-diagonal elements measure the “similarity” between local cells, say and , in terms of the number of global cells that they share. More formally, let be the restricted cell count , measuring the number of global cells that intersect with a compact set . For and we can write . Small off-diagonal entries indicate less overlap, where the individual trees capture more diverse aspects of the predictor space. The diagonal elements, on the other hand, quantify the “persistence” of each local cell, say , counting the number of global cells it stretches over. More formally, for we have . The amount of diversity (or tree dis-similarity) in the ensemble can be quantified with eigenvalues of . We denote by (resp. ) the minimal (resp. maximal) singular values of (i.e. square roots of extremal nonzero eigenvalues of ). If some trees in the ensemble are redundant, the conditioning number will be large. The idea of diversifying trees was originally introduced by Breiman via subsampling. One could, in principle, impose a restriction on in the prior to encourage the trees to collaborate and diversify. However, this is not required for our theoretical study. We will focus on the so-called valid ensembles which consist of valid trees.
An ensemble is valid if each is valid according to Definition 3.1. For tree sizes and subsets , we denote the set of all valid ensembles by .
The representation flexibility of additive trees also pertains to jump sizes. The global step size coefficients under additive trees are intertwined due to the tree overlap. This can be seen from the following, more compact, representation of (5.1):
where is the stretching matrix defined in (5.2). This link unfolds the theoretical analysis of tree ensembles using tools that we have already developed for single trees. Note that the condition number determines how much the relative change in influences the relative change in .
The mapping (5.4) can be in principle many-to-one in the sense that many tree-structured step functions can sum towards the same target (5.1). Such over-parametrization occurs, for instance, when or, more generally, when has zero eigenvalues. This redundancy is not entirely unwanted and, in fact, it endows sum-of-trees models with a lot of modeling freedom.
We now formally define the space of approximating additive trees. For variable sets and a vector of tree sizes , we denote by
the set of all additive tree step functions supported on valid ensembles . The union of these over the number of trees , all possible sets of sizes and tree sizes gives rise to
our approximating space of additive regression tree functions.
2 Additive Regression Trees are Adaptive
This section provides an interesting initial perspective on the behavior of Bayesian additive regression trees in Regime 1. We will continue with the more general Regime 2 in the next section. We will focus on a variant of the popular Bayesian Additive Regression Trees (BART) model , modified in three ways. First, the tree prior will be according to rather than . The second modification is that the trees are built on the same set of variables, endowed with a subset selection prior construction. In the next section, we allow for the fully general case where each tree builds on a potentially different set of variables. Third, rather than fixing the number of trees, we endow with a prior distribution.
We will see that having a good control of the regression function variation inside each global cell together with a good choice of the prior on the total number of leaves will be sufficient to ensure optimal behavior. The approximation ability of tree ensembles hinges on the diameter of the global partition. Each tree partition does not need to have a small diameter (i.e. can be a weak learner), as long as the global one does. An important building block in our proof will be the construction of a single tree ensemble that can approximate well. As will be shown in Lemma 10.1, we can construct such ensemble by first finding a single - tree from Lemma 3.2 (a strong learner) and then redistributing the cuts among small trees (weak learners) in a way that the global partition is exactly equal to the - tree. An example of this deconstruction is depicted in Figure 3, where a full symmetric tree from Figure 4, say , has been trimmed into many smaller imbalanced trees which add up towards . More details on this decomposition are in the proof of Lemma 10.1.
The following theorem is an ensemble variant of Theorem 4.1 which will serve as a useful stepping stone towards the full-fledged result presented in the next section. Instead of approximating with one large tree in Regime 1, we build a forest made up of many smaller trees (weak learners). The first two layers of the prior (T1) and (T2) are the same. Next, we assign a prior on the number of trees
which is sufficiently diffuse so as to promote ensembles with many trees. Next, conditionally on , we assign a prior on as an independent product of Poisson distributions (T3). An important distinction between the Poisson prior deployed for single trees in Section 4 and the one deployed here for ensembles is that the hyper-parameter depends on . Namely, our prior on leaves satisfies
As a prior on , given , we use the uniform prior over valid ensembles
where is the overall number of ensembles consisting of valid trees that can be obtained by splitting on data points . Recall that throughout this section, all trees are constrained to use split variables in the same set . To mark this difference, we have denoted the partition ensembles with instead of .
The following theorem shows that additive regression trees, in combination with a subset selection prior, can nicely adapt to the ambient dimensionality and smoothness, also achieving the optimal concentration rate in Regime .
Assume with and such that and . Moreover, we assume and that is -regular. We endow with priors (T1),(T2),(T3*)-(T6*). With we have
for any in -probability, as .
Similarly as for single trees, we obtain the following corollary which states that the posterior concentrates on ensembles whose overall number of leaves is not much larger than the optimal value .
Under the assumptions of Theorem 5.1 with we have
in -probability, as , for a suitable constant .
This follows from Lemma 1 of and Section 10.3. ∎
Corollary 5.1 shows that the posterior distribution rewards either many weak learners or a few strong ones. The compromise between the two is regulated by the prior (T3*), where stronger shrinkage (i.e. larger ) will result in fewer trees. This corollary provides an important theoretical justification for why Bayesian additive regression trees have been so resilient to overfitting in practice.
The dependence on in the Poisson prior (T4⋆) works nicely in tandem with the exponential prior (T3*). Removing from (T4⋆) would have to be balanced with a bit stronger prior . Theorem 5.1 also holds with fixed (with slight modifications of the proof). The prior will be instrumental in the additive case (next section). The dependence on in (T6*), though recommended in practice , is not needed in Theorem 5.1.
Tree Ensembles in Additive Regression
In Section 4.2 we have shown that the posterior distribution under the Bayesian CART prior has optimal properties. However, it is now well known that the practical deployments of Bayesian CART suffer from poor MCMC mixing. Additive aggregations of single small trees have proven to have far more superior mixing properties. One may wonder whether the benefits of additive trees are purely computational or whether there are some aspects that make them more attractive also theoretically. We will address this fundamental question.
For estimating a single smooth function, we were not able to tell apart single trees from tree ensemble in terms of their convergence rate (besides perhaps a small difference in the log factor). They are both optimal in Regime 1. Tree ensembles are inherently additive and, as such, are well-equipped for approximating additive (Regime 2). Throughout this section, we assume
where . Note that each component depends only on a potentially very small subset of covariates, where . However, the additive structure allows to depend on a larger number of variables, say , where . The minimax rate for estimating in Regime 2 satisfies , where
and where is the Hölder norm of . The sparsity constraint in Regime 2 is less strict than in Regime 1, where can be potentially larger than while still allowing for consistent estimation. For the isotropic case ( and ), single trees can achieve the slower rate where . As will be shown below, tree ensembles can achieve a faster rate where and where .
We will approximate with tree ensembles . The ensembles here differ from the ones considered in Section 5.2. The crucial difference is that now we allow each of the trees to depend on a different set of variables . Now we have a vector of subset sizes and a set of subsets , one for each tree. We consider the following independent product variant of the complexity prior (T1)
and a product prior variant of (T2), given ,
The prior on the number of trees, the number of leaves, ensembles and step sizes is the same as in (T3*), (T4*), (T5*).
We are now ready to present our final result showing that the posterior concentration for Bayesian additive regression trees is near-minimax rate optimal when has an additive structure.
Assume that is as in (6.1) where with and such that and . Moreover, assume and that is -regular for . We endow with priors (T1*)-(T6*). With and , we have
for any in -probability, as .
Under the assumptions and , the second term in (defined earlier) is dominated by the first term . This is why the second term does not appear in the rate in Theorem 6.1.
Failing to recognize the additive structure in , single regression trees achieve the slower rate , according to Theorem 4.1. Theorem 6.1 thus provides an additional theoretical justification for Bayesian additive tree models suggesting their performance superiority over single trees when is additive.
Our priors differ from the widely used BART implementations in three ways: (1) we focus on the uniform prior of Denison et al. , (2) we assign a prior distribution on the number of trees and (c) we deploy the spike-and-slab wrapper. Implementations of our priors are feasible with some modifications of the existing software. For the Bayesian CART prior that we analyze, Denison et al. propose a reversible jump MCMC implementation. While this algorithm is different from BART, the acceptance ratios in the Metropolis-Hastings step differ only very slightly. Liu, Ročková and Wang extended their sampler to the spike-and-tree (spike-and-forest) versions in two ways. The first one is a Metropolis-Hasting strategy that consists of joint sampling from variable subsets as well as trees (forests). As a faster alternative, they proposed an approximate ABC sampling strategy based on data splitting (called ABC Bayesian Forests).
Discussion
In this work, we have laid down foundations for the theoretical study of Bayesian regression trees and their additive variants. We have shown an optimal behavior of Bayesian CART, the first theoretical result on this method. We have developed several useful tools for analyzing additive regression trees (variants of the BART method), showing their optimal performance in both additive and non-additive regression. The smoothness order of studied functions is restricted to values not exceeding one, a main limitation of our approach due to the fact that our approximations are piecewise constants . While in the one-dimensional case, step functions are not appealing estimators of a regression function that is thought to be smooth, methods like CART and BART are attractive and feasible solutions in complex high-dimensional data. The limitation could be overcome by extending our approach to piecewise polynomials or kernels, an elaboration that we leave for future investigation. One such extension was recently proposed in a related paper by Linero and Yang . These authors obtained concentration results for a kernel method that can be regarded as a smooth variant of BART. The results of do not apply for single trees, only aggregates of kernels. In contrast, we study actual posteriors of single trees, as well as forests, and analyze sieves of step functions which are the essence of the actual BART method.
While our priors do not exactly match the BART prior, BART could be adapted to achieve the same optimality properties. The first modification is the splitting probability (as pointed out in Remark 4.3). The second modification is the spike-and-slab wrapper (as pointed out in Section 4.1) or a modification of the prior on the split variables (as in ). The prior distribution on the number of trees will only be beneficial in the additive model and is not needed when has one layer.
The assumption of a known can be relaxed. It has been noted in the literature (e.g. ) that the general result of Ghosal and van der Vaart (which we build upon) can be extended to the unknown case. Such an extension was formally proved in Jonge and van Zanten (2013), who assume that belongs to a compact interval and the prior concentrates on . We could obtain our results under this restriction as well by verifying suitably adapted conditions (2.1)-(2.3). In related work, Yoo and Ghosal show optimal posterior concentration (in both and sense) in non-parametric regression with unknown variance and B-spline tensor product priors. Next, they show that under an inverse-gamma prior, the posterior for contracts at at the same rate. Moreover, for any prior on with positive and continuous density, the posterior of is consistent. These results are obtained under the assumption that is uniformly bounded. We anticipate that similar results will hold also for our priors when is uniformly bounded.
Acknowledgement We are grateful to the Associate Editor and two referees for helpful comments, and to Johannes Schmidt-Hieber for helpful discussions on the assumption .
Proof of Theorem 4.1
where was defined in (3.3). The optimal choice of and will follow from our considerations below.
We start with a useful lemma that characterizes a useful upper bound on the covering number of the smaller sets .
Let be the class of step functions (3.3). Then
where is the partitioning number of .
Denote by the projection of onto , the set of all step functions that live on a given partition . Then and . This relationship shows that the covering number of an ball can be bounded from above by the covering number of an Euclidean ball of a radius , which is bounded by . We can repeat this argument by projecting onto any valid tree topology . The number of such valid trees is no larger than , which completes the proof.∎
The covering number for the entire sieve is then seen to satisfy
From Lemma 8.1 and Lemma 3.1, we obtain the following upper bound
where we used the fact . Next, using the regularized incomplete beta function representation of the Binomial cdf, we can write
where . Finally, the entropy condition requires that the log-covering number, now upper bounded by
2 Condition (2.2)
We wish to show that the prior assigns enough mass around the truth in the sense that
for some . The proof Lemma 3.2 is in the Supplemental Material (Section 3).
To continue with the proof of Theorem 4.1, We find the smallest such that the function in (8.5) safely approximates with an error that is no larger than , a constant multiple of the target rate. Such a will be denoted by and is defined as the smallest such that for . Then we have
Then the statement implies where the last inequality follows from the definition of . Thus, we have
From the triangle inequality (and because is balanced) we have
Taking minus the log of this quantity, Condition (2.2) will be met when
is smaller than a constant multiple of . Above, we omitted the small terms (since ) and . First, we note that
With and , we obtain . Next, focusing on the last term in (8.11), we obtain (from the left inequality in (8.6)) the following bound
and hence for and . Moreover, from the right inequality in (8.6) we obtain for and
Under our assumption , (8.12) immediately yields . All of these considerations, combined with the fact , yield the following leading term behind the last three summands in (8.11): . Using (8.12), we obtain for . Altogether, there exists such that (8.4) is satisfied.
3 Condition (2.3)
for a large enough constant . Indeed, for we have . For we have and . Finally, for , we have and . For and , we can write and (8.13) holds for large enough. Next, we apply the Chernoff bound for . Namely, for any we can write
With our choice (Section 8.1) and with we obtain
Proof of Theorem 6.1
We aim to establish conditions (2.1), (2.2) and (2.3) for , where . Our sieve consists of valid forests with either (a) many trees that are small (weak learners), or (b) a few large trees (strong learners). We impose a joint requirement on so that the overall number of leaves in the ensemble is small. At the same time, we require that (the upper bound on the number of active variables in the ensemble) is small as well. The sieve is constructed as follows:
for some integer values and . Throughout this section we denote .
We first obtain the following upper bound on the log-covering number
Now we find an upper bound on the number of valid ensembles inside the sieve . To start, we note that given , there are at most valid ensembles . This bound is obtained from Lemma 3.1 by combining all possible -tuples of trees.The order of trees in matters. Given , there are sets of subsets satisfying the constraint . This leads to an overall upper bound
Combining this bound with (9.2), we obtain the following bound
Condition 2.1 will be met when (9.3) is smaller than (a constant multiple of) . With the choice and , where and are large enough constants to be determined later, this condition is satisfied.
2 Condition (2.2)
To establish Condition (2.2) for tree ensembles, we begin by finding a single additive tree that approximates well. We will heavily leverage our findings from Section 8.2, noting that the problem of approximating an additive function with a sum of trees can be decomposed into smaller problems of approximating each layer separately.
Denote by the smallest leaf size of a - tree (defined in Remark 3.1) needed to approximate with an error smaller than , where . Such a tree step function approximation exists according to Lemma 3.2 when is -regular. We will denote this approximation with . Moreover, with we denote the vector of such minimal tree sizes, where each satisfies (8.6) with and . Next, we will denote by the approximating partition ensemble with step heights . The individual tree approximations are woven into an approximating forest , where .
Because we assumed , given , we can directly use (8.9) to lower-bound the above with
Because each tree is a - tree and is by definition balanced, we have . Now we can directly apply all our calculations from Section 8.2. In particular, using (9.4) and noting that , we obtain
where was defined in (8.8). It follows from Section (8.2) that
3 Condition (2.3)
for any , where we used the fact
With and , we can write
Proof of Theorem 5.1
The sieve will be very similar to (9.1). The only difference is that each tree in the ensemble is now constrained to depend on the same set of active variables . To mark this difference, we have denoted the partition ensembles with instead of . Throughout this section, we use the following sieve:
Our sieve (10.1) is embedded in (9.1), where the number of ensembles inside is now upper-bounded by
2 Condition (2.2)
The key ingredient for establishing Condition (2.2) is the following lemma on the existence of a tree ensemble that approximates well.
for some , where .
Now we proceed with Condition 2.2. Denote by the approximating ensemble from Lemma 10.1. Recall that the global partition is a - tree, which is balanced in the sense that for some constants and . Next, we find the smallest such that . This value will be denoted by and it satisfies (8.6). Next, we denote by the number of approximating trees and by the vector of leaves, where (again we are using the construction from Lemma 10.1). Then, using similar arguments as in Section 9.2 we can lower-bound with
Combined with the fact (as shown in the proof of Lemma 12.1), the statement implies Therefore we have
Moreover, because for some , we have
where we used the fact (proof of Lemma 10.1). Therefore we have for some . Following the calculations from Section 8.2 (namely (8.10)), we continue to lower-bound (10.2) with
Using this bound, we verify that - are bounded by a constant multiple of . First, note that
3 Condition (2.3)
Proof of Lemma 3.2
We start with an auxiliary statement showing that when is -Hölder continuous, we can grow a step function on any given (tree) partition so that the approximation error will be governed by cell diameters.
To continue with the proof of (3.5), we grow a - tree partition (as explained in Remark 3.1) and construct an approximating step function , as outlined above.
Using (11.1), the statement (3.5) then follows from
Auxiliary Result
Assume a valid ensemble consisting of trees, each with leaves. Let be the largest eigenvalue of . Then
where and where denotes the number of rows of .
By the Gershgorin circle theorem, all eigenvalues of lie inside the union of intervals for . As explained in Section 5.1, the diagonal and off-diagonal entries of quantify the persistence and the overlap in terms of the number of intersecting global partitioning cells. The magnitude is no larger than for each . The upper bound on the maximal eigenvalue is thus . ∎