BFTS: Thompson Sampling with Bayesian Additive Regression Trees
Ruizhe Deng, Bibhas Chakraborty, Ran Chen, Yan Shuo Tan
TL;DR
BFTS introduces Bayesian Forest Thompson Sampling by integrating Bayesian Additive Regression Trees (BART) into the Thompson Sampling framework for contextual bandits. It derives a Bayesian regret guarantee $\mathbb{E}[\mathrm{Regret}_T] \le K\sigma\sqrt{2Tm\Psi_T}$ and a complementary minimax rate for a Feel-Good TS variant, and demonstrates strong empirical performance on OpenML benchmarks and a Drink Less mHealth trial with calibrated uncertainty and interpretability. The approach uses independent-arm BART priors, a separate-arm encoding strategy, and batched MCMC inference with a logarithmic refresh schedule to balance accuracy and computation. Practically, BFTS yields improved engagement and policy-value in real-world interventions while offering principled uncertainty quantification and post-hoc feature-importance insights. This work highlights a viable pathway to robust online personalization in non-linear, heterogeneous health-context data where online tuning is challenging.
Abstract
Contextual bandits are a core technology for personalized mobile health interventions, where decision-making requires adapting to complex, non-linear user behaviors. While Thompson Sampling (TS) is a preferred strategy for these problems, its performance hinges on the quality of the underlying reward model. Standard linear models suffer from high bias, while neural network approaches are often brittle and difficult to tune in online settings. Conversely, tree ensembles dominate tabular data prediction but typically rely on heuristic uncertainty quantification, lacking a principled probabilistic basis for TS. We propose Bayesian Forest Thompson Sampling (BFTS), the first contextual bandit algorithm to integrate Bayesian Additive Regression Trees (BART), a fully probabilistic sum-of-trees model, directly into the exploration loop. We prove that BFTS is theoretically sound, deriving an information-theoretic Bayesian regret bound of $\tilde{O}(\sqrt{T})$. As a complementary result, we establish frequentist minimax optimality for a "feel-good" variant, confirming the structural suitability of BART priors for non-parametric bandits. Empirically, BFTS achieves state-of-the-art regret on tabular benchmarks with near-nominal uncertainty calibration. Furthermore, in an offline policy evaluation on the Drink Less micro-randomized trial, BFTS improves engagement rates by over 30% compared to the deployed policy, demonstrating its practical effectiveness for behavioral interventions.
