[Paper Review] Thompson sampling with the online bootstrap
This paper introduces Bootstrap Thompson Sampling (BTS), a computationally efficient alternative to Thompson sampling that replaces the posterior distribution with a bootstrap distribution using online reweighting (e.g., double-or-nothing bootstrap). BTS achieves competitive performance in Bernoulli and Gaussian bandits, with improved scalability and robustness to model misspecification, especially under heteroscedastic errors.
Thompson sampling provides a solution to bandit problems in which new observations are allocated to arms with the posterior probability that an arm is optimal. While sometimes easy to implement and asymptotically optimal, Thompson sampling can be computationally demanding in large scale bandit problems, and its performance is dependent on the model fit to the observed data. We introduce bootstrap Thompson sampling (BTS), a heuristic method for solving bandit problems which modifies Thompson sampling by replacing the posterior distribution used in Thompson sampling by a bootstrap distribution. We first explain BTS and show that the performance of BTS is competitive to Thompson sampling in the well-studied Bernoulli bandit case. Subsequently, we detail why BTS using the online bootstrap is more scalable than regular Thompson sampling, and we show through simulation that BTS is more robust to a misspecified error distribution. BTS is an appealing modification of Thompson sampling, especially when samples from the posterior are otherwise not available or are costly.
Motivation & Objective
- Address the computational infeasibility of Thompson sampling in large-scale bandit problems due to costly posterior sampling via MCMC.
- Improve robustness of Thompson sampling to model misspecification, particularly in non-i.i.d. or heteroscedastic error structures.
- Develop a scalable, online alternative to Thompson sampling that avoids full posterior computation by using bootstrap resampling.
- Enable parallelization and real-time updates in streaming or high-volume data settings where full data reprocessing is impractical.
- Demonstrate that BTS maintains strong performance while reducing reliance on parametric assumptions and complex posterior sampling.
Proposed method
- Replace the Bayesian posterior P(θ|D) in Thompson sampling with a bootstrap distribution of the point estimate θ̂ using reweighting instead of resampling.
- Use the double-or-nothing bootstrap (DoNB), where each observation is assigned a weight of 0 or 2 (or 0 or 1) with equal probability, enabling online updates.
- For each bootstrap replicate j, compute a weighted estimate θ̂j using the current data and weights, and sample from the empirical distribution of these θ̂j to select actions.
- Implement the method online: when a new observation arrives, update each bootstrap replicate with probability 1/2, avoiding full recomputation.
- Use the probability of each arm being optimal as determined by the bootstrap distribution, similar to Thompson sampling’s exploration-exploitation trade-off.
- Leverage parallelization by distributing bootstrap replicates across multiple machines or cores, enabling high-throughput deployment in real-world systems.
Experimental results
Research questions
- RQ1Can bootstrap-based sampling approximate the posterior in Thompson sampling well enough to maintain competitive performance in bandit problems?
- RQ2How does BTS perform compared to Thompson sampling in terms of cumulative regret under model misspecification, particularly with heteroscedastic errors?
- RQ3To what extent does BTS scale with large datasets, and can it be updated efficiently in an online, streaming fashion?
- RQ4How does the number of bootstrap replicates J affect the exploration-exploitation balance and overall performance of BTS?
- RQ5Can BTS be implemented in a distributed or parallelized manner without sacrificing performance or consistency?
Key findings
- BTS achieves cumulative regret comparable to Thompson sampling in the well-specified Bernoulli bandit setting, especially with sufficient bootstrap replicates (J=1000).
- Under heteroscedastic error distributions, BTS significantly outperforms Thompson sampling, with larger regret gaps increasing as the degree of heteroscedasticity (γ) increases.
- The performance of BTS is sensitive to the number of bootstrap replicates: too few replicates lead to over-exploitation and higher regret.
- BTS is computationally scalable because each bootstrap replicate can be updated independently and online, avoiding full posterior re-computation at each step.
- The method is easily parallelizable, making it suitable for large-scale, real-time applications such as online advertising or A/B testing platforms.
- BTS demonstrates robustness to model misspecification, particularly when the assumed likelihood (e.g., Gaussian) does not match the true data-generating process.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.