XBART: Accelerated Bayesian Additive Regression Trees

Jingyu He, Saar Yalov, P. Richard HahnAISTATS 2019

Introduction

Bayesian Additive Regression Trees (BART) have long been considered a "gold standard" for non-parametric regression, particularly in fields requiring robust uncertainty measures and resistance to overfitting. However, traditional BART implementations suffer from a significant scalability bottleneck. Their reliance on Markov Chain Monte Carlo (MCMC) algorithms—which make small, local changes to tree structures—renders them prohibitively slow for modern "big data" applications.

XBART (Accelerated Bayesian Additive Regression Trees) addresses this limitation by introducing a new stochastic hill-climbing algorithm. It brings the predictive power of Bayesian models to large-scale data, achieving speeds comparable to XGBoost while requiring significantly less hyperparameter tuning.

Methodology: Stochastic Hill-Climbing

XBART departs from the traditional MCMC approach through several key innovations designed for speed and accuracy:

  1. Grow-from-Root Backfitting: Instead of making incremental tweaks to existing trees (like the "birth" or "death" of nodes), XBART grows an entirely new tree from scratch at each iteration. This allows the model to explore the space of possible tree structures much more rapidly.
  2. Integrated Likelihood Criterion: Unlike standard decision trees that split based on minimizing the Sum of Squared Errors (SSE), XBART uses an integrated likelihood criterion. This mathematically embeds regularization into the splitting process, preventing the model from chasing noise.
  3. Computational Efficiency: The algorithm adopts high-performance heuristics from the gradient boosting world, such as pre-sorting features and subsampling potential cut-points (e.g., considering only the max of 100 or $\sqrt{n}$ points), which drastically reduces the search space.
  4. Adaptive Sparsity: By using a Dirichlet prior, XBART learns which variables are most useful during training. It maintains a weight vector that tracks variable usage, effectively performing automatic feature selection.

Experimental Design

The authors evaluated XBART against state-of-the-art alternatives using synthetic datasets designed to simulate complex real-world relationships. These simulations involved sample sizes ($n$) ranging from 10,000 to 250,000 observations with 30 predictor variables.

Mathematical definitions of the four synthetic functions used for benchmarking.

Key Results and Performance

The benchmarks reveal that XBART consistently outperforms both tuned XGBoost and neural networks across various functional forms and noise levels.

Comparative performance metrics (RMSE and execution time in parentheses) across different sample sizes and function types.

Superior Accuracy

Across all tested functions, XBART was approximately 31% more accurate (in terms of Root Mean Squared Error) than XGBoost after the latter had undergone extensive cross-validation. This performance gap was particularly evident in high-noise environments where other models tended to overfit.

Competitive Speed

While slightly slower than a single "untuned" run of XGBoost, XBART proved significantly faster once the time for XGBoost's cross-validation (XGB+CV) was factored in. It is orders of magnitude faster than traditional Bayesian tree packages like dbarts.

Conclusion and Future Work

XBART demonstrates that the elegance of Bayesian priors does not have to be sacrificed for computational performance. By replacing slow MCMC sampling with efficient stochastic backfitting, it provides a robust, high-performance alternative for modern data science pipelines. Future research will focus on refining posterior uncertainty quantification—which may currently be understated due to the hill-climbing nature of the algorithm—and extending the logic to handle high-cardinality categorical variables.

Summary updated

BibTeX
@inproceedings{he2019xbart,
  author = {Jingyu He and Saar Yalov and P. Richard Hahn},
  title = {{XBART: Accelerated Bayesian Additive Regression Trees}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure