Abstract
Gradient boosting machines (GBMs) based on decision trees consistently demonstrate state-of-the-art results on regression and classification tasks with tabular data, often outperforming deep neural networks. However, these models do not provide well-calibrated predictive uncertainties, which prevents their use for decision making in high-risk applications. The Bayesian treatment is known to improve predictive uncertainty calibration, but previously proposed Bayesian GBM methods are either computationally expensive, or resort to crude approximations. Variational inference is often used to implement Bayesian neural networks, but is difficult to apply to GBMs, because the decision trees used as weak learners are non-differentiable. In this paper, we propose to implement Bayesian GBMs using variational inference with soft decision trees, a fully differentiable alternative to standard decision trees. Our experiments demonstrate that variational soft trees and variational soft GBMs provide useful uncertainty estimates, while retaining good predictive performance. The proposed models show higher test likelihoods when compared to the state-of-the-art Bayesian GBMs in 7/10 tabular regression datasets and improved out-of-distribution detection in 5/10 datasets.
Introduction
In high-stakes domains like healthcare and finance, predictive accuracy is only half the battle; models must also provide reliable estimates of their own uncertainty. While Gradient Boosting Machines (GBMs) such as XGBoost and LightGBM dominate tabular data benchmarks, they are notoriously "overconfident," often providing point estimates without a sense of risk.
Bayesian methods offer a principled solution by treating model parameters as probability distributions. However, applying Bayesian logic to standard decision trees is non-trivial because their discrete "if-else" logic is non-differentiable. Existing Bayesian GBMs typically rely on computationally intensive Markov chain Monte Carlo (MCMC) sampling or crude approximations that compromise uncertainty quality.
Methodology: Softening the Decision Tree
The core innovation of this work is the transition from "hard" to "soft" decision trees to enable the use of Variational Inference (VI).
Soft Decision Trees
Unlike traditional trees that use hard thresholds (e.g., $x > c$), soft trees employ a sigmoid gating function at each internal node. This transformation makes the entire tree a continuous, differentiable function, allowing for optimization via stochastic gradient descent.
Variational Inference (VI)
With differentiability established, the authors apply VI to approximate the posterior distribution of tree weights. They utilize a low-rank Gaussian variational posterior, which effectively captures parameter correlations without the prohibitive memory costs of a full covariance matrix.
The paper introduces two primary architectures:
- Variational Soft Tree (VST): A standalone Bayesian soft tree.
- Variational Soft GBM (VSGBM): An ensemble of VSTs trained sequentially through gradient boosting.
To further enhance expressivity, the authors incorporate linear leaves, where each leaf returns an affine function of the input ($w^Tx + b$) rather than a simple constant.
Experimental Results
The models were rigorously evaluated across regression tasks, out-of-distribution (OOD) detection, and contextual bandit scenarios.
Predictive Performance and Uncertainty
The VST/VSGBM models achieved higher test log-likelihoods than state-of-the-art Bayesian GBMs like XBART and SGLB in 7 out of 10 regression datasets. A key differentiator is the behavior in "data-sparse" regions. While existing methods like XBART often remain overconfident far from the training data, VSTs exhibit a significant and "healthy" increase in uncertainty in the tails of the distribution.
Safety and Decision Making
- OOD Detection: The proposed models outperformed competitors in 5 out of 10 datasets, demonstrating a superior ability to identify anomalous data.
- Contextual Bandits: In exploration-exploitation tasks, VSTs achieved the lowest cumulative regret in 2 out of 4 tasks, proving that their uncertainty estimates are practically useful for real-world decision-making.
Conclusion and Future Work
Variational Boosted Soft Trees bridge the gap between the high performance of GBMs and the robust uncertainty calibration of Bayesian methods. By making decision trees differentiable, this approach unlocks the scalability of Variational Inference for tabular data.
While the current implementation shows promise, challenges remain. The models can underfit on very small datasets, likely due to the choice of the Gaussian prior. Additionally, training is currently slower than standard "hard" GBMs due to the iterative nature of gradient descent. Future research will focus on extending this framework to classification tasks and exploring its potential for continual learning.
Summary updated