Sample-Mean Anchored Thompson Sampling for Offline-to-Online Learning with Distribution Shift
Bochao LiYao FuWei ChenFang-yuan Kong
Proposes Anchor-TS, a Thompson sampling algorithm that uses a median-based anchoring rule to safely incorporate distribution-shifted offline data into online bandit learning with provable regret guarantees.
Sequential decision-making systems—such as recommendation platforms, clinical trials, and dynamic pricing models—often aim to accelerate live learning by incorporating pre-collected historical data. However, real-world deployment frequently suffers from distribution shift, where the offline historical environment differs from the online operational environment due to system updates, evolving user preferences, or simulation-to-reality discrepancies. While existing approaches primarily rely on optimism-driven confidence-bound algorithms, developing practical Bayesian methods like Thompson sampling has remained an unresolved challenge because posterior samples are neither strictly optimistic nor pessimistic, making biased historical data difficult to filter safely.
The article introduces and evaluates a novel algorithm called Sample-Mean Anchored Thompson Sampling (Anchor-TS). Its main objective is to establish a principled mechanism that leverages potentially biased offline data to accelerate online bandit learning while rigorously guarding against performance degradation caused by distribution shift.
To achieve this, Anchor-TS calculates a decision score for each available action by taking the median of three values: a purely online posterior sample, a hybrid posterior sample combining offline and online data with a protective right-hand shift, and the unbiased online sample mean serving as a stabilizing anchor. The authors establish theoretical cumulative regret bounds to quantify learning speed and performance guarantees. They also conduct extensive empirical evaluations across varying environments, testing different offline dataset sizes, bias magnitudes, action set sizes, and offline sample distributions over ten thousand interaction rounds.
The analysis yields several key findings in order of importance. First, the proposed median anchoring provides provable robustness: cumulative regret is guaranteed to be no worse than purely online Thompson sampling, and it strictly decreases when distribution shift is mild. Second, unlike confidence-bound methods, Anchor-TS uniquely reduces regret by accelerating convergence on the optimal action when historical data contain abundant samples of the best choice—a common scenario in practice when logs are generated by expert policies. Third, empirical simulations show that Anchor-TS consistently and substantially outperforms both standard Thompson sampling baselines and confidence-bound algorithms across all tested bias levels and sample sizes. Finally, even in purely online settings with zero offline data, the median-aggregation mechanism reduces the exploration threshold by half, effectively curtailing the excessive exploration caused by the variance of single posterior samples.
These findings demonstrate that organizations can safely reuse legacy logs and domain simulations without risking severe policy degradation from unmodeled shifts. By converting biased historical logs into faster convergence, systems can significantly lower operational learning costs and user-facing exploration risks. Furthermore, because Anchor-TS captures unique efficiencies when historical data favor the optimal decision, it offers superior real-world utility over traditional confidence-bound architectures.
Stakeholders deploying adaptive decision engines should consider adopting median-anchored Thompson sampling frameworks when historical data are available. Prior to full deployment, teams should establish loose but sound upper bounds on expected historical bias across key actions to calibrate the hybrid adjustments. Promising operational next steps include running controlled pilot deployments in production and extending the anchoring architecture into high-dimensional, contextual decision systems.
Decision-makers should note that the current theoretical guarantees assume bounded distribution shifts and sub-Gaussian reward structures. Confidence in the reported performance is high for standard multi-armed decision settings, but caution is advised in highly dynamic environments where distribution shifts fluctuate unpredictably over time.
- Paper: An Empirical Evaluation of Thompson Sampling, Olivier Chapelle et al. (2011). Provides the foundational empirical and algorithmic benchmark for Thompson sampling in bandit settings, establishing the baseline Bayesian exploration method that Anchor-TS adapts for offline-to-online learning.
- Paper: Introduction to Multi-Armed Bandits, Aleksandrs Slivkins (2019). Offers essential prerequisite foundations on multi-armed bandit algorithms, regret analysis, and posterior sampling principles central to evaluating online decision-making.
- Paper: Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Sébastien Bubeck et al. (2012). Establishes core regret analysis frameworks and concentration properties for multi-armed bandit algorithms that underpin the theoretical safety guarantees in the source.
- Paper: Finite-time Analysis of the Multiarmed Bandit Problem, Peter Auer et al. (2002). Introduces standard finite-time regret analysis and upper confidence bounds, contrasting the optimistic index methods that Anchor-TS seeks to match in robustness using Thompson sampling.
- Paper: Improved Algorithms for Linear Stochastic Bandits, Yasin Abbasi-Yadkori et al. (2011). Develops self-normalized martingale concentration techniques essential for understanding confidence bounds and sample-mean behavior in sequential decision problems.
- Paper: Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems, Sergey Levine et al. (2020). Presents a comprehensive review of the challenges of distributional shift and overestimation when transitioning from logged offline data to online decision-making.
- Paper: Counterfactual Risk Minimization: Learning from Logged Bandit Feedback, Adith Swaminathan et al. (2015). Formulates the foundational principles of learning and variance control under logged bandit feedback, directly motivating offline data reuse in sequential environments.
No sufficiently relevant recommendations were found.
