NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Sliding Regret in Stochastic Bandits: Discriminating Index and Randomized Policies

Victor BoonearXiv 2023 · DOI

Abstract

In stochastic multi-armed bandit (MAB) problems, algorithms are typically evaluated by their expected total regret. However, this aggregate metric fails to capture the local temporal stability of an algorithm's decisions. This paper introduces sliding regret and regret of exploration to distinguish between "smooth" and "bumpy" performance profiles. We demonstrate that while popular index-based policies (e.g., UCB, KL-UCB) inevitably suffer from concentrated bursts of errors—manifesting as staircase-like regret curves—randomized policies like Thompson Sampling are locally stable and avoid these "bumps."

Introduction

The Stochastic Multi-Armed Bandit (MAB) framework is a cornerstone of online learning. While many algorithms, such as Upper Confidence Bound (UCB) and Thompson Sampling (TS), are theoretically optimal in terms of expected cumulative regret, their behavior in individual realizations can differ drastically.

Practitioners often observe that UCB-style algorithms exhibit "bumpy" regret curves: long periods of optimal play interrupted by sudden, sharp increases in regret where a suboptimal arm is pulled repeatedly. In contrast, Thompson Sampling tends to produce "smooth" curves, where exploration is distributed more evenly. In high-stakes environments like clinical trials or real-time systems, these concentrated bursts of errors (the "bumps") can be far more damaging than sporadic mistakes. This paper formalizes this distinction by introducing metrics for local stability.

Methodology: Measuring Local Stability

To quantify the "bumpiness" of an algorithm, the author proposes two new metrics:

  1. Sliding Regret: This metric measures the maximum regret accumulated over any fixed-length time window $T$ as the total time horizon goes to infinity. A "smooth" algorithm maintains low sliding regret, whereas a "bumpy" one will have sliding regret linear in $T$, indicating it can get stuck pulling a bad arm for an entire window.
  2. Regret of Exploration: This measures the expected regret incurred immediately after an algorithm decides to explore a suboptimal arm. It captures how quickly an algorithm recovers from a "reality check" pull.

The theoretical analysis focuses on two-armed Bernoulli bandits to establish the fundamental limits of these metrics for both deterministic index-based policies and randomized policies.

The "Poisoning" Effect in Index Policies

The core finding is that index policies are mathematically prone to "poisoning" their own indices. Because these policies are deterministic, if a suboptimal arm yields a string of high rewards by chance, its index increases. Since the index only updates when the arm is pulled, the algorithm becomes "blinded" and must continue pulling the suboptimal arm until the index eventually regresses below that of the optimal arm. This creates the characteristic staircase pattern in regret.

Randomized policies like Thompson Sampling avoid this trap. Because they select arms probabilistically, there is always a non-zero chance of pulling the optimal arm even when a suboptimal arm looks temporarily superior. This provides a continuous "reality check" that prevents the algorithm from entering long, suboptimal streaks.

Key Results

The paper proves a sharp divide between the two classes of algorithms:

  • Optimal Sliding Regret: Randomized policies (Thompson Sampling, MED) achieve the minimum possible sliding regret, equal to the gap between the best and second-best arms ($\mu_1 - \mu_2$).
  • Worst-Case Sliding Regret: Index-based policies (UCB, MOSS, KL-UCB, IMED) suffer from the worst possible sliding regret, $T(\mu_1 - \mu_2)$, meaning they can be "tricked" into pulling a bad arm for the entire duration of a sliding window $T$.
Comparison of pseudo-regret trajectories: The left plot shows the "bumpy" staircase behavior typical of index-based policies, while the right plot shows the "smooth" behavior of randomized policies.

These results are generalized in Theorem 18, which shows that "bumpiness" is an inherent property of the regularity conditions satisfied by most major index policies in the literature.

Conclusion and Future Work

This work highlights a critical but often overlooked aspect of bandit algorithm design: local temporal stability. While asymptotic optimality is important, the shape of the regret curve matters in practice.

Future research directions include extending these proofs to multi-arm settings and continuous reward distributions. Additionally, the concept of "regret of exploration" holds significant promise for Reinforcement Learning in Markov Decision Processes (MDPs), where achieving sublinear regret of exploration remains an open challenge.

Summary updated

BibTeX
@misc{boone2023sliding,
  author = {Victor Boone},
  title = {{The Sliding Regret in Stochastic Bandits: Discriminating Index and Randomized Policies}},
  year = {2023},
  eprint = {2311.18437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.18437},
}
Figure