arXiv:2610.10488stat.MLOct 2026

Manuscript Offprint

arXiv:2610.10488

Best Arm Identification for Bandits with Shifting Means

Lukas Zierahn, Wouter M. Koolen, Shubhada Agrawal, Christina Katsimerou, Dirk van der Hoeven

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Lukas Zierahn

CWI and Booking.com

Science Park 123 1098 XG Amsterdam

lukas.zierahn@gmail.com

Wouter M. Koolen

CWI and University of Twente

Science Park 123 1098 XG Amsterdam

wmkoolen@cwi.nl

Shubhada Agrawal

Indian Institute of Science (IISc), Bengaluru

CV Raman Rd, Bengaluru, Karnataka 560012, India

shubhada@iisc.ac.in

Christina Katsimerou

Booking.com

Oosterdokskade 163, 1011 DL Amsterdam

christina.katsimerou@booking.com

Dirk van der Hoeven

Leiden University

Rapenburg 70, 2311 EZ Leiden

dirk@dirkvanderhoeven.com

Abstract

We study the best arm identification problem in a stochastic environment with a novel form of adversarial perturbations, which we coin Shifting Means. While classically the mean rewards of the KK arms are stable in time, in Shifting Means only the gaps Δ\Delta between mean rewards are stable, while their common shift may be determined adversarially in each round. The objective of the learner is to identify the best arm with high probability while minimizing sample complexity (the fixed confidence setting). Handling shifts requires new tools: we show that algorithms employing a Generalized Likelihood Ratio Test (GLRT) stopping rule, including the popular Track-and-Stop, fail under time-varying shifts. Instead, we propose Importance Weights for Shifting Means (ISM). Assuming means bounded by UU and σ2\sigma^2-sub-Gaussian rewards, we show ISM to be δ\delta-correct and to enjoy a sample complexity bound of order K(σ2+U2)Δmin⁡−2ln⁡1δK(\sigma^2 + U^2)\Delta_{\min}^{-2}\ln\frac{1}{\delta}. We also present a matching (up to constant factors) worst-case lower bound and evaluate our results empirically.

1 Introduction

Best Arm Identification (BAI) is a fundamental problem in sequential decision making, where the learner is given a set of KK arms, each associated with an unknown probability distribution. At each time step, the learner may sample one arm and observe a reward, with the goal of identifying the best arm, namely, the one with the highest expected reward.

In the literature, two classical formulations of the problem have been considered. In the fixed-budget setting, the objective is to maximize the confidence of identifying the best arm given a pre-specified sampling budget [Glynn and Juneja, 2004, Audibert and Bubeck, 2010]. In the fixed-confidence setting, the objective is to identify the best arm with a prescribed level of confidence while minimizing the number of samples [Even-Dar et al., 2006, Mannor and Tsitsiklis, 2004]. This work focuses exclusively on the fixed-confidence setting.

Preprint.

A central assumption in the standard BAI framework is that observations are independent and identically distributed (i.i.d.) over time. However, in real-world applications, data are neither independent nor identically distributed. For example, the performance of a new product may decline as novelty wears off, or the conversion rate of a website may fluctuate with time of day or day of the week. When such perturbations are left unmodeled, classical algorithms can lose their correctness guarantees (Section 3). To provide robustness against such effects, we study BAI under adversarial perturbations that shift the mean rewards of all arms simultaneously.

One important class of such perturbations arises when global trends affect all arms in the same direction. For instance, user engagement on an online platform may be uniformly higher during weekends and lower during weekdays, or all products may experience a dip in sales following a seasonal lull. Empirical evidence suggests that macro-level effects on real-world platforms (e.g., seasonality, events, platform-wide fluctuations) are largely independent of the intrinsic qualities of the arms and that the differences between arms remain stable over time [Fiez et al., 2024, Russac et al., 2021]. We model such perturbations adversarially: the absolute performance of all arms is shifted by an arbitrary, unobserved common offset in each round, while the pairwise gaps remain constant. This ensures that a unique best arm persists throughout the experiment, while the adversarial shift captures a broad class of real-world effects without assuming any specific generative process. We call the resulting model Shifting Means.

In Shifting Means, the expected rewards may vary across rounds and allow an arbitrary dependence on past samples. To retain learnability we introduce a latent variable BtB_t called the shift, which the learner will never observe. BtB_t can vary arbitrarily and even adversarially between timesteps tt and may also be drawn at random. We make three core assumptions: (a) the expected mean of an arm given the shift BtB_t is bounded by UU, (b) the reward distributions of all arms are σ2\sigma^2 sub-Gaussian given BtB_t, and (c) the expected mean gaps between arms given BtB_t are constant (both over the draw of BtB_t and across time). One valid way to construct an environment for KK arms given these assumptions is to pick a set of gaps Δ\Delta, pick a bounded BtB_t deterministically in a non-oblivious adversarial fashion and draw the rewards from normal distributions with means Bt−ΔaB_t - \Delta_a for arm aa. Picking Bt=0B_t = 0 with probability 1 recovers the stationary best arm identification setting.

Contributions We now summarize key contributions of our work.

  1. We show that the much celebrated Track-and-Stop algorithm of Garivier and Kaufmann [2016] fails in the Shifting Means setting (Lemma 9) and propose Importance Weighting for Shifting Means (ISM; Algorithm 1). ISM is based on an evidence measure that generalizes importance weighting and optimally tunes the hyperparameters to ensure that the evidence of sub-optimal arms being the best arm does not grow and consequently we prove δ\delta-correctness for ISM (Theorem 2).

  2. We show an asymptotic in δ→0\delta \to 0 upper bound on the expected sample complexity in terms of a problem dependent rate 1/D∗(Δ)1/D^*(\Delta) (Theorem 4), which we then show to be of order K(σ2+U2)/Δmin⁡2K(\sigma^2 + U^2)/\Delta_{\min}^2 (Theorem 6), for the smallest gap Δmin⁡\Delta_{\min}. One of the core difficulties to overcome is to ensure quick enough convergence to optimal arm sampling probabilities for the current bandit, which we tackle by per-round plug-in estimates, sufficient exploration, and a martingale concentration analysis of Bernstein type.

  3. We prove a lower bound on the expected number of samples any δ\delta-correct algorithm needs to generate in the Shifting Means scenario, by randomizing the shifts BtB_t. We draw the shifts from the raised cosine distribution, which is least informative in the sense of Fisher information among all distributions on a bounded interval [Polyanskiy and Wu, 2025, Equation (29.13) and references therein]. It uses its bounded range to inflate the effective variance of the rewards, measured through a KL divergence, from σ2\sigma^2 to nearly σ2+U2/π2\sigma^2 + U^2/\pi^2 (Lemma 7), culminating in a lower bound of order K(σ2+U2)/Δmin⁡2K(\sigma^2 + U^2)/\Delta_{\min}^2 (Theorem 8). That lower bound contains the standard BAI lower bound of Kσ2/Δmin⁡2K\sigma^2/\Delta_{\min}^2 [Kaufmann et al., 2016] and shows that ISM is optimal up to constant factors.

  4. We demonstrate the practicality of ISM through experiments in Section 6. We discuss when the theoretical bounds are good predictors of the actual stopping time. We also verify empirically that the algorithm is δ\delta-correct under mis-specification.

Limitations Our model assumes an additive common shift and fixed pairwise gaps and we require valid known upper bounds on the conditional means and sub-Gaussian variance proxy. The current expected sample-complexity upper bound is asymptotic as δ→0\delta \to 0, the upper and lower bounds match only up to universal constants, and the numerical evaluation is limited to synthetic instances.

Related Work The first tight lower bound and an asymptotically optimal algorithm for the fixed-confidence BAI setting with stationary parametric distributions was developed by Garivier and Kaufmann [2016]. Their algorithm, Track-and-Stop (TAS), has since been extended to a variety of BAI frameworks, including BAI with heavy-tails and risk-sensitive objectives [Agrawal et al., 2020, 2021], BAI with multiple-correct answers [Degenne and Koolen, 2019], BAI for linear bandits [Jedra and Proutiere, 2020], multi-agent bandits [Vannella et al., 2023], and batched BAI [Jin et al., 2024]. For a broader introduction to BAI and the TAS methodology, we refer the reader to the textbook treatment by Lattimore and Szepesvári [2020].

Robustness to adversarial perturbations is well studied in the regret-minimization literature [Lykouris et al., 2018, Gupta et al., 2019]. Within BAI, Altschuler et al. [2019] study ε\varepsilon-contamination, where each sample is independently replaced by an adversarial value with probability ε\varepsilon; since means become unidentifiable, they target the arm with the highest median and give matching sample-complexity bounds. Jamieson and Talwalkar [2016] consider a fully adversarial model where arm losses may change arbitrarily but are assumed to converge to a limit, a condition that need not hold in our setting. Closest to our setting, Srisawad et al. [2024] study fixed-budget BAI under a common additive shift sjs_j that equally affects the mean of all arms in each environment jj. They show that pairwise gap estimates are consistent under the condition that the number of environment changes grows sublinearly in the number of rounds and that the learner observes when the environment changes. In contrast, Shifting Means allows the shift to change adversarially every round and the learner does not observe any additional information about the shifts.

A related field is non-stationary bandits, since adversarial common shifts can naturally arise from real-world non-stationarity. In the fixed-budget setting, Abbasi-Yadkori et al. [2018] achieve a “best of both worlds” guarantee adapting to both stochastic and adversarial rewards, and Xiong et al. [2024] address linear BAI under arbitrary time variations but can be overly conservative for the structured perturbations we consider. Allesiardo et al. [2017] study a non-stationary BAI setting similar to but more restrictive than ours using elimination-based methods. In the fixed-confidence setting, Russac et al. [2021] model non-stationarity through seasonal subpopulations with known frequencies, achieving asymptotic optimality but not capturing continuous perturbations. More recently, Hou et al. [2024] generalize this to piecewise-stationary linear bandits where the learner estimates both rewards and change-points.

Outline of the paper In Section 2, we formalize the setup and introduce the notation we use throughout. Section 3 contains certain negative results and also give some intuitions on why TAS cannot be used directly for Shifting Means. In Section 4 we first introduce the core ideas of our ISM algorithm and show its δ\delta-correctness before also demonstrating the sample complexity guarantees. Then we move on to the lower bounds in Section 5, present the numerical results in Section 6, and conclude with discussions and broader perspectives in Section 7.

References (70)