English

Sliding-Window Thompson Sampling for Non-Stationary Settings

Machine Learning 2025-06-17 v3 Machine Learning

Abstract

Non-stationary multi-armed bandits (NS-MABs) model sequential decision-making problems in which the expected rewards of a set of actions, a.k.a.~arms, evolve over time. In this paper, we fill a gap in the literature by providing a novel analysis of Thompson sampling-inspired (TS) algorithms for NS-MABs that both corrects and generalizes existing work. Specifically, we study the cumulative frequentist regret of two algorithms based on sliding-window TS approaches with different priors, namely Beta-SWTS\textit{Beta-SWTS} and \textit{\gamma-SWGTS}. We derive a unifying regret upper bound for these algorithms that applies to any arbitrary NS-MAB (with either Bernoulli or subgaussian rewards). Our result introduces new indices that capture the inherent sources of complexity in the learning problem. Then, we specialize our general result to two of the most common NS-MAB settings: the abruptly changing\textit{abruptly changing} and the smoothly changing\textit{smoothly changing} environments, showing that it matches state-of-the-art results. Finally, we evaluate the performance of the analyzed algorithms in simulated environments and compare them with state-of-the-art approaches for NS-MABs.

Keywords

Cite

@article{arxiv.2409.05181,
  title  = {Sliding-Window Thompson Sampling for Non-Stationary Settings},
  author = {Marco Fiandri and Alberto Maria Metelli and Francesco Trovò},
  journal= {arXiv preprint arXiv:2409.05181},
  year   = {2025}
}

Comments

32 pages

R2 v1 2026-06-28T18:37:52.163Z