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 K arms are stable in time, in Shifting Means only the gaps Δ 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 U and σ2-sub-Gaussian rewards, we show ISM to be δ-correct and to enjoy a sample complexity bound of order K(σ2+U2)Δmin−2lnδ1. 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 K 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 Bt called the shift, which the learner will never observe. Bt can vary arbitrarily and even adversarially between timesteps t and may also be drawn at random. We make three core assumptions: (a) the expected mean of an arm given the shift Bt is bounded by U, (b) the reward distributions of all arms are σ2 sub-Gaussian given Bt, and (c) the expected mean gaps between arms given Bt are constant (both over the draw of Bt and across time). One valid way to construct an environment for K arms given these assumptions is to pick a set of gaps Δ, pick a bounded Bt deterministically in a non-oblivious adversarial fashion and draw the rewards from normal distributions with means Bt−Δa for arm a. Picking Bt=0 with probability 1 recovers the stationary best arm identification setting.
Contributions We now summarize key contributions of our work.
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 δ-correctness for ISM (Theorem 2).
We show an asymptotic in δ→0 upper bound on the expected sample complexity in terms of a problem dependent rate 1/D∗(Δ) (Theorem 4), which we then show to be of order K(σ2+U2)/Δmin2 (Theorem 6), for the smallest gap Δ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.
We prove a lower bound on the expected number of samples any δ-correct algorithm needs to generate in the Shifting Means scenario, by randomizing the shifts Bt. 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 to nearly σ2+U2/π2 (Lemma 7), culminating in a lower bound of order K(σ2+U2)/Δmin2 (Theorem 8). That lower bound contains the standard BAI lower bound of Kσ2/Δmin2 [Kaufmann et al., 2016] and shows that ISM is optimal up to constant factors.
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 δ-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, 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 ε-contamination, where each sample is independently replaced by an adversarial value with probability ε; 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 sj that equally affects the mean of all arms in each environment j. 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 δ-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.
2 Setup and Notation for Shifting Means
In this section we define our stochastic bandit model with common adversarial perturbations, describe learner strategies in the fixed-confidence setting, and preview the sample complexity guarantees we will achieve. Let K be the number of arms. We will model sequential interactions where in each round t≥1 the learner picks an arm At∈[K] and the environment responds with a reward Xt∈R. We denote the history observed in the first t rounds by Ht=(A1,X1,…,At,Xt). A sampling rule for the learner is a stochastic kernel for At∣Ht−1 in each round t≥1, whereas a bandit instance B is a stochastic kernel for Xt∣At, Ht−1 in each round t≥1.¹ Together, a sampling rule and a bandit instance induce a unique joint law over histories (At,Xt)t≥1 that we will henceforth denote by P and E, using the convenient shorthand Et[⋅]:=E[⋅∣Ht−1].
1Allowing the environment to condition only on Ht−1 is without loss of generality: any additional private randomness, latent state, past potential outcomes or past shifts can be marginalised out via regular conditional probabilities, yielding an equivalent kernel for Xt∣At,Ht−1.
To state our requirements about the bandit instance, we will assume that it is the marginal of a richer stochastic kernel, namely for Xt,Bt,Xt∣At,Ht−1, modelling the latent potential reward vector Xt∈RK and the latent shift Bt∈R, neither of which is observed. We impose the standard assumptions of consistency Xt=Xt,At and independence (Xt,Bt)⊥At∣Ht−1, while explicitly allowing arbitrary dependence between Xt and Bt. We denote the shift-conditional mean reward of arm a∈[K] by μt,a:=Et[Xt,a∣Bt]. In this paper we additionally assume bounded means, sub-Gaussian noise and time-invariant gaps. More precisely we assume B admits a fixed range U≥0, a variance proxy σ2≥0 and a gap vector Δ∈[0,2U]K with a uniquely attained minimum of mina∈[K]Δa=0 such that
Assumption 1. For each t≥1 and each arm a∈[K], almost surely
(a) the conditional mean μt,a is bounded 2 by ∣μt,a∣≤U,
(b) the noise is conditionally σ2-sub-Gaussian, i.e. Et[eη(Xt,a−μt,a)∣Bt]≤e21η2σ2 for all η∈R,
(c) the mean equals the shifted gap μt,a=Bt−Δa.
Note that by (c) the shift-conditional mean gap μt,a−μt,b is the constant (Bt−Δa)−(Bt−Δb)=Δb−Δa=:Δa,b. Also note that (b) does not imply that Xt,a−Et[Xt,a] is σ2-sub-Gaussian 3, and (a) allows unbounded reward. Our assumptions imply that there is a consistent and unique best arm, which we denote by
a∗:=a∈[K]argminΔa.
We work in the fixed confidence setting, where a strategy for a learner consists of a sampling rule which induces action probabilities wt,a=Pt{At=a}, a stopping time τ∈N∪{∞} with respect to the filtration (Ht)t≥0, and an Hτ-measurable recommendation rule a~∈[K]. We call a learner δ-correct with confidence δ∈(0,1), if for any bandit instance satisfying Assumption 1 we have P{τ<∞ and a~=a∗}≤δ. Under this definition a learner that never stops is considered δ-correct, which is intuitive when considering that never giving any recommendation will never produce a wrong recommendation.
We will look at efficient learners, and in particular develop δ-correct learners with strong sample complexity guarantees. Specifically, for any bandit instance satisfying Assumption 1 with some gap Δ, the sample complexity is bounded by
E[τ]≤D∗(Δ)lnδK−1+o(lnδ1)
as δ→0, where D∗(Δ) is a gap-dependent rate defined in (5). We will also derive a tight lower bound matching this upper bound in δ→0 setting. Although the rewards are conditionally stochastic, the latent shifts Bt and the distribution of the σ2-sub-Gaussian noise associated with each arm may be chosen in an adversarial, history-dependent manner. In this sense, our model lies between classical stochastic bandits and fully adversarial bandits. Randomisation plays a central role in this adversarial interaction. Here, unlike in the fully stochastic case, achieving any upper bounds on sample complexity requires randomised arm selection, while nontrivial lower bounds necessitate randomised shifts Bt.
3 TAS and GLRT Fail
We argue that existing templates for algorithms, including Track-and-Stop [Garivier and Kaufmann, 2016], do not address the Shifting Means setting. Under the mild assumption that the shifts can be larger than the gaps, the opponent may set Bt=ΔAt against deterministic At. Then all rewards Xt are zero-mean regardless of the arm and reveal no information about the true gaps. Thus, any deterministic sampling rule is powerless.
2We show in Theorem 8 that without any constraints on the mean of the arm distributions, any δ-correct algorithm would require an unbounded number of samples on average.
3Analogously, marginalising out Bt raises variance by Vt[Xt,a]−Et[Vt[Xt,a∣Bt]]=Vt[Et[Xt,a∣Bt]], i.e. Vt[Bt].
In addition, we argue that the classic GLRT stopping rule also fails, even with shifted actually Gaussian rewards. There are two ways GLRT could be applied. First, we may simply ignore the shifts in its design. We argue that this is not δ-correct as the randomised shifts can inflate the variance of the rewards. Not taking that increased variance into account leads to a higher error probability than δ, meaning it is unsafe. The second way the GLRT can be applied is by including the possibility of shifts in its design. Now it becomes powerless, i.e. it never stops. The reason for τ=∞ is that this statistic overfits the latent shifts Bt to the observed rewards Xt each round; the statistic equals its starting value forever and hence never crosses its threshold. We analyse both these cases in detail in Appendix A.
4 Design and Sample Complexity Analysis of the ISM Strategy
In this section we will define and analyse our learning strategy. We will first set up the stopping and recommendation rule, and then consider the sampling rule.
4.1 The ISM Stopping and Recommendation Rules
For each ordered pair of distinct arms a=b, we introduce a measure of evidence zt,a,b in round t against Δa,b≤0, i.e. arm b being better than arm a. It is parameterised by the sampling rule wt and by the hyperparameters λt,a,b, αt,a,b, and βt,a,b which we will tune in Sections 4.2 and 4.3. We define
where It,a:=I[At=a] denotes the indicator for At=a. We further define the cumulative evidence after t rounds by Zt,a,b:=∑s=1tzs,a,b, which is compared against a threshold depending on the confidence δ to yield the stopping rule. The full ISM stopping and recommendation rules are given by
with ties broken arbitrarily. We will only work with parameter values ensuring that (eZt,a,b)t≥0 is a supermartingale whenever in fact Δa,b≤0, i.e. b is better than a. To express that, define Φˉ for wa,wb,λ≥0 and α,β∈R by
Moreover, Φ is jointly convex (in all five parameters).
With this, we can prove δ-correctness, the proofs to both results can be found in Appendix B.
Theorem 2. Any sampling rule wt, paired with stopping and recommendation rules (2) employing predictable parameters (λt,a,b,αt,a,b,βt,a,b) for each pair of arms a=b and at each round t such that Φ(wt,a,wt,b,λt,a,b,αt,a,b,βt,a,b)≤1, yields a δ-correct learner in any bandit satisfying Assumption 1.
The δ-correctness proof is build on a round-by-round argument and thus does not rely on the assumption that gaps are fixed in time. The same proof would go through under the weaker assumption that the best arm is fixed (but with gaps that change arbitrarily in time), meaning that ISM is robust to that misspecified setting, although potentially suffering from a worse sample complexity.
4.2 The Oracle Strategy for Known Gaps
To have (2) stop and recommend the correct best arm a~=a∗, we need minb=a∗Zt,a∗,b to cross its threshold. For each pair a=b, the cumulative evidence Zt,a,b has drift, i.e. expected increment,
Et[zt,a,b]=λt,a,bΔa,b−αt,a,b−βt,a,b,
which depends on the chosen parameters and the true gap. We assume the gaps Δ are known for this section and describe how to adapt to unknown gaps in the next Section 4.3. Our approach is to optimize the parameters and the sampling rule to maximise the minimal drift, since ISM only stops after the cumulative evidences for all arms have crossed the threshold. To ensure safety, i.e., to bound the probability of a wrong recommendation, the feasible parameters we optimize over have to observe the safety constraint as laid out in Theorem 2, meaning the parameters and the sampling rule are subject to a unit exponential moment constraint (sometimes called “e-variable” 4).
at which point the optimal parameters including the optimal sampling proportions can be read off.
Both D and D∗ are convex optimisation problems. To see why, observe that D∗ (which contains D) is a concave objective with convex constraints, and hence one can compute the solution numerically. We discuss an efficient special-purpose implementation in Appendix J, exploiting the particular structure of this problem. We prove useful analytic results about these problems in Appendix C. For now, all that matters is that both (4) and (5) are efficiently solvable.
For any gap vector Δ with best arm a∗=argmina∈[K]Δa. We define the oracle learner with sampling rule and parameters given by extracting the relevant maximizers
which are in fact all independent of t. The oracle learner has maximised the minimal drift for all b=a∗, and in fact equalised all these drifts to D∗(Δ). Intuitively, if the variance of each zt,a∗,b is not excessive, then after roughly lnδK−1/D∗(Δ) timesteps we should start to expect the stopping rule (2) to trigger. Based on this intuition, Lemma 3 quantifies the stopping time of any sampling rule guaranteeing some nontrivial drift D>0. Lemma 13 then supplies the required control on the (one-sided) sub-Gaussian variance proxy for the oracle sampling rule. Both proofs are in Appendix D.
Lemma 3. Fix drift D>0 and variance proxy ρ2≥0 such that Et[eξ(D−zt,a∗,b)]≤e2ξ2ρ2 for every ξ≥0 and arm pair b=a∗. Then the sample complexity of stopping rule (2) is at most
To interpret this bound, observe that limδ→0lnδ1E[τ]≤D1, so the asymptotic sample complexity is determined by the drift D. That is, the drift term dominates as the variance term is δ independent, which means we can ignore ρ. This motivates our choice (5) of maximising the minimal drift across all arms within the safety constraint.
4Compared to classic e-values our evidences are against sophisticated nulls. First of all, the shifts make our setting fork-convex (at least for fixed gaps Δ). Second of all, the fact that we actively control the arm At makes that its randomness may be leveraged, which is what our importance weighted evidences actually exploit.
Algorithm 1 Importance Weights for Shifting Means (ISM)
Require: Confidence δ∈(0,1), mean range U>0, sub-Gaussianity constant σ2>0
1: for t=1,… do
2: Compute sampling proportions wt in (7b) using (7a) and (5)
3: Sample arm At∼wt and observe reward Xt
4: For all pairs a=b, compute (λt,a,b,αt,a,b,βt,a,b) in (7c) using (4)
5: For all pairs a=b, update evidences Zt,a,b in (1) and gap estimates Δ^t,a,b in (6)
6: if stopping condition (2) reached (i.e. τ=t) then Stop and recommend arm a~ in (2)
7: end for
4.3 The ISM Sampling Rule for Unknown Gaps
The final step is to define the algorithm for unknown gaps. Our approach here is to estimate the gaps and plug them in. We use the unbiased importance-weighted estimator
We extend the definition to t=0 by arbitrarily setting Δ^0,a,b:=0. At a high level, the approach of ISM is to tune in round t as if the gaps Δ^t−1,b:=maxaΔ^t−1,a,b were correct. This requires some care. While the true gap vector Δ has a unique best arm (i.e. gap zero), and its entries are bounded in [0,2U], neither of which have to be true for the estimated gap vector Δ^t−1. These are transient problems that vanish in probability as t→∞ (see e.g. Lemma 21) with sufficient exploration. If entries of Δ^t−1 are above 2U, we project them down to 2U componentwise, written Δ^t−1∧2U; as Δ∈[0,2U]K this only moves the estimate closer to the truth, and it keeps λ, α and β bounded. If there are several zeroes, then D(wa,wb,0)=0 and any weights w are optimal, in which case we choose to set w uniform. We set
Here, w~t maximises the minimal drift as if Δ^t−1∧2U were the real gaps, and (7b) mixes in exploration to obtain the actual sampling probabilities wt. With that the algorithm, which we call ISM, is completely defined. See Algorithm 1 for a summary. ISM is δ-correct by Theorem 2. The next result shows that D∗(Δ) quantifies its sample complexity.
Theorem 4. Fix a bandit instance satisfying Assumption 1 with gap Δ. ISM (Algorithm 1) ensures asymptotic sample complexity
δ→0limlnδ1E[τ]≤D∗(Δ)1.
The proof needs to overcome two complications compared to that of Lemma 3. First, the gaps are now learned, and as such the drift is not uniformly bounded below over time. We argue, by concentration, that the true gap is learned quickly enough. In addition, the sub-Gaussian variance proxy used in Lemma 3 can get arbitrarily large when the sampling weights wt,a get small. Forced exploration provides a lower bound of order 1/t, yet this would be vacuous when combined with Hoeffding's range bound, which scales as wt,a21. We overcome this by relying on Bernstein instead, as the actual variance scales by only wt,a1. We refer the reader to Appendix H for a complete proof, and conclude with showing that ISM is efficiently implementable, proof in Appendix J.
Lemma 5. ISM requires O(K2) storage, and O(K) work per round.
Proof. First of all, instead of maintaining Δ^t,a,b for all pairs a=b, we can instead track the terms in (6) for arm a and arm b separately. This requires maintaining K quantities instead of K(K−1)/2 for the gap estimates, though the evidence need to be stored separately leading to a O(K2) storage requirement. Lines 4 and 5 mention all K(K−1) ordered distinct pairs. But due to the indicators in the evidence (1) and gap estimates (6), only the 2(K−1) pairs containing At need updating in line 5, and only their parameters need to be computed in line 4. The weights and parameters can be computed in O(K) work as described in Appendix J.
4.4 Interpretable Bounds
While Theorem 4 and D∗(Δ) provide an accurate quantification of the expected stopping time, it is not apparent what the scaling of critical parameters σ2, U and the gaps Δ actually is. Therefore, we present interpretable bounds on the sample complexity for our algorithm in this section by lower and upper bounding D∗(Δ)−1.
Theorem 6. Define the second best action by b∗=argminb=a∗Δb. Then D∗(Δ) as defined in (5) is sandwiched by (where the lower bound ( ⋆) holds whenever maxaΔa≤21γU, with γ:=3(coth(1)−1)≈0.94)
The proof of Theorem 6 is based on technical calculation to derive a term that is similar to the result of Garivier and Kaufmann [2016] and indeed, we obtain essentially the same upper bound on D∗(Δ)−1 as they do, except for the presence of U. This is perhaps not surprising as illustrated by our lower bounds presented in the next Section 5, that also feature the factor U on the sample complexity of any δ-correct algorithm. The two sides of Theorem 6 differ by a factor of 2/γ≈2.1. Its lower bound on 1/D∗(Δ) only holds if 2maxaΔa≤γU, i.e., if the adversary has comparatively more power for shifting; if maxaΔa=2U the range of the shifts is constant over time. ISM recovers the optimal bound in the BAI setting and we leave showing an exact graceful degradation of performance to future work.
5 Lower bounds
In this section, we prove a lower bound on the expected number of samples any δ-correct algorithm for the shifting means setting introduced in Section 2 will need to request. We define our lower-bound bandit instances B as follows: Given a gap vector Δ and a shift distribution 5 for Bt, we sample the potential rewards from a normal distribution Xt,a∣Bt∼N(Bt−Δa,σ2) with fixed (and known) variance σ2. To ensure that B fulfills Assumption 1, the shift distribution has to be bounded, that is Bt∈[maxaΔa−U,U] with probability 1. The main challenge of the lower bound is to choose a shift distribution that makes the problem as hard as possible. As in the lower bound of Garivier and Kaufmann [2016], the hardness of a bandit instance is measured by how well a single reward distinguishes two instances with a different best arm. That is, informally, the expected stopping time E[τ] is determined by the fraction of pulls wa that any algorithm allocates to arm a and a one-round KL divergence
E[τ]≳lnδ1∑a=1KwaKL(ϵ+B∥Δa−Δ~a+ϵ+B)1,(8)
for any Δ~ with a different best arm than Δ (full details in Theorem 8/Appendix F). When picking B=0, we exactly recover the standard lower bound for Gaussian bandits [Garivier and Kaufmann, 2016]. The goal now becomes to leverage the shift B to make this KL divergence as small as possible while respecting the boundedness required by Assumption 1.
For small △:=Δa−Δ~a, the KL divergence between nearby members of a smooth location family is governed by its Fisher information. Writing I(X):=∫q′(x)2/q(x)dx for the Fisher information
5For deterministic Bt, one has to assume that the learner has full knowledge of Bt, just like how the learner has to assume that an adversary has full knowledge of the learning algorithm. In that case, the learner can simply subtract Xt−Bt and they will recover the standard BAI setting, where the lower bounds feature no dependency on U.
of a random variable X with density q, we have
KL(ϵ+B∥△+ϵ+B)≈2△2I(ϵ+B)<21σ2+1/I(B)△2,
where we plugged in I(ϵ)=1/σ2 for the normal distribution, the critical term remaining being the Fisher information of the shifts I(B); the details can be found in the proof of Lemma 7 in Appendix F.
Thus for our shifting distribution, we seek to minimize the Fisher information. The minimizer on a closed interval [−R,R] is given by a raised cosine distribution
p(B′)={R1cos2(2RπB′)0if∣B′∣≤Rotherwise,(9)
which achieves I(B′)=π2/R2 for B′∼p. Overall, that allows us to bound the KL as follows:
Lemma 7. Fix σ2>0 and R>0. Let ϵ∼N(0,σ2) and B′∼p as in Equation (9) be independent. There exists d>0, depending only on σ2 and R, such that for all ∣△∣≤d,
KL(ϵ+B′∥△+ϵ+B′)≤2(σ2+R2/π2)△2.
The proof can be found in Appendix F. Formalizing Equation 8 and combining it with the last lemma yields the main result of this section:
Theorem 8. Fix U>0, σ2>0, and fix any algorithm that is δ-correct for all bandit instances for the given U and σ2. There exists a set of gaps Δ and a shift distribution, such that the following lower bound holds:
Comparing with the upper bound 4(σ2+U2) of Theorem 6 shows that, for gaps that are small relative to U, ISM is optimal up to a factor of at most 2π2≈20 and approaches 2 when σ2 dominates U2.
6 Numerical Experiments
We consider a K=4 armed bandit instance6 with Bernoulli rewards and fixed mean gap vector Δ=[0.00.050.070.1], which coincides with the gaps of the stationary bandit μ1=[0.5,0.45,0.43,0.4] used in the experiments of Garivier and Kaufmann [2016]. We work with adversarially shifted means μt,a=Bt−Δa, where we draw the per-round common shifts Bt i.i.d. from the uniform distribution over the range [0.1, 1]. Accordingly, we set U=1 and σ2=1/4. We solve (5) to obtain optimal drift and weights
D∗=4965.741andw∗=[0.41680.38960.13630.0572].
Our optimal weights are to first order the same as those reported by Garivier and Kaufmann [2016] meaning the shifts only have a small influence on the sampling probabilities in this case. We also display the optimal values for the evidence parameters in Table 2. As the gap estimates only change slowly, we speed up the computation by recomputing the wt only every 100 timesteps. Table 1 and Figure 1 in Appendix K show the expected and realized stopping times of ISM over 1000 iterations (All experiments were run on a personal desktop (CPU: Intel i7-10700K) with a total compute time of less than 24h.). We can see how the additional fraction of samples between empirical and predicted stopping time (Theorem 4) vanishes as δ shrinks.
Since we are using the exact same setup as Garivier and Kaufmann [2016] (modulo shifts), we can compare numbers directly. The mean stopping time with δ=101 for TAS is 3968 or 4052 (averaged over 3000 iterations) depending on the tracking strategy, while the empirical stopping time of ISM is between [28 085, 29 470] with 95% confidence.
Figure 1 also shows that the algorithm is at least empirically robust to misspecification of U as all iterations over different U and δ values find the correct arm, except for 4 out of the 1000 runs with U=41.
Table 1: Theoretical predictions and practical measurement of sample complexity for the bandit as laid out in Section 6 at different δ. For Lemma 3 we took as the variance proxy ρ2 the largest worst-case variance in Table 2. The empirical value is given as a 95% confidence interval of 1000 samples. The ratio is the real overhead not predicted by theory, that is, it is the relative percentage difference between the first and second last entry of the table.
7 Discussion & Conclusion
We introduced the Shifting Means setting and demonstrated how previous approaches using the GLRT fail in this setting. Then we developed ISM and showed that it is δ-correct and enjoys a sample complexity guarantee of 4(σ2+U2)(Δb∗−2+∑a∈[K]∖a∗Δa−2)lnδ1 (Theorem 6). We demonstrated the practicality of ISM, and empirically demonstrate its robustness in misspecification of U. Furthermore, we developed a novel construction for our lower bound, which matches the upper bound up to a constant factor (Theorem 8) of at most 2π2≈20 for gaps that are small relative to U.
Shifting Means is a strict generalization of the traditional BAI setting, though our safety argument holds for the even larger class of problems where only the identity of the best arm is fixed each timestep. That is, we are safe when the mean rewards of all arms change arbitrarily over a bounded range, as long as the best arm always has the highest expected payoff. However, approaching that setting from the power side is highly non-trivial. Our current approach is based around plugging in the estimated gaps, which are then not fixed any more, will change adversarially over time, and can even vanish. Showing, for example, convergence guarantees based on the time averaged gap remains a major challenge. We leave that very interesting setting open for future work.
Acknowledgments and Disclosure of Funding
DvdH was supported by Netherlands Organization for Scientific Research (NWO), grant number VI.Veni.242.143 (https://doi.org/10.61686/SCGQQ55380).
References
Yasin Abbasi-Yadkori, Peter Bartlett, Victor Gabillon, Alan Malek, and Michal Valko. Best of both worlds: Stochastic & adversarial best-arm identification. In Conference on learning theory, pages 918–949. PMLR, 2018.
Shubhada Agrawal, Sandeep Juneja, and Peter Glynn. Optimal δ -correct best-arm selection for heavy-tailed distributions. In 31st International Conference on Algorithmic Learning Theory, volume 117, pages 61–110. PMLR, 2020.
Shubhada Agrawal, Wouter M. Koolen, and Sandeep Juneja. Optimal best-arm identification methods for tail-risk measures. Advances in neural information processing systems, 34:25578–25590, 2021.
Robin Allesiardo, Raphaël Féraud, and Odalric-Ambrym Maillard. The non-stationary stochastic multi-armed bandit problem. International Journal of Data Science and Analytics, 3(4):267–283, 2017. ISSN 2364-4168. doi: 10.1007/s41060-017-0050-5.
Jason Altschuler, Victor-Emmanuel Brunel, and Alan Malek. Best arm identification for contaminated bandits. Journal of Machine Learning Research, 20(91):1–39, 2019.
Jean-Yves Audibert and Sébastien Bubeck. Best arm identification in multi-armed bandits. In COLT-23th Conference on learning theory-2010, pages 13–p, 2010.
Nicolò Cesa-Bianchi and Gabor Lugosi. Prediction, Learning, and Games. Cambridge University Press, 2006.
Rémy Degenne and Wouter M. Koolen. Pure exploration with multiple correct answers. Advances in Neural Information Processing Systems, 32, 2019.
Rémy Degenne, Wouter M. Koolen, and Pierre Ménard. Non-asymptotic pure exploration by solving games. In Advances in Neural Information Processing Systems (NeurIPS) 32, pages 14492–14501, December 2019.
Eyal Even-Dar, Shie Mannor, and Yishay Mansour. Action elimination and stopping conditions for the multi-armed bandit and reinforcement learning problems. Journal of Machine Learning Research, 7(39):1079–1105, 2006.
Tanner Fiez, Houssam Nassif, Yu-Cheng Chen, Sergio Gamez, and Lalit Jain. Best of three worlds: Adaptive experimentation for digital marketing in practice. In Proceedings of the ACM Web Conference 2024, pages 3586–3597, 2024.
Aurélien Garivier and Emilie Kaufmann. Optimal best arm identification with fixed confidence. In 29th Annual Conference on Learning Theory, volume 49 of Proceedings of Machine Learning Research, pages 998–1027. PMLR, 23–26 Jun 2016.
Peter Glynn and Sandeep Juneja. A large deviations perspective on ordinal optimization. In Proceedings of the 2004 Winter Simulation Conference, 2004., volume 1. IEEE, 2004.
Anupam Gupta, Tomer Koren, and Kunal Talwar. Better algorithms for stochastic bandits with adversarial corruptions. In Conference on Learning Theory, pages 1562–1578. PMLR, 2019.
Yunlong Hou, Vincent Y. F. Tan, and Zixin Zhong. Almost minimax optimal best arm identification in piecewise stationary linear bandits. In Advances in Neural Information Processing Systems, volume 37, pages 128967–129041, 2024.
Kevin Jamieson and Ameet Talwalkar. Non-stochastic best arm identification and hyperparameter optimization. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51, pages 240–248. PMLR, 09–11 May 2016.
Yassir Jedra and Alexandre Proutiere. Optimal best-arm identification in linear bandits. In Advances in Neural Information Processing Systems, volume 33, pages 10007–10017, 2020.
Tianyuan Jin, Yu Yang, Jing Tang, Xiaokui Xiao, and Pan Xu. Optimal batched best arm identification. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
Emilie Kaufmann, Olivier Cappé, and Aurélien Garivier. On the complexity of best-arm identification in multi-armed bandit models. Journal of Machine Learning Research, 17(1):1–42, 2016. URL http://jmlr.org/papers/v17/kaufman16a.html.
Tor Lattimore and Csaba Szepesvári. Bandit Algorithms. Cambridge University Press, 2020. doi:10.1017/9781108571401.
Thodoris Lykouris, Vahab Mirrokni, and Renato Paes Leme. Stochastic bandits robust to adversarial corruptions. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, pages 114–122, 2018.
Shie Mannor and John N. Tsitsiklis. The sample complexity of exploration in the multi-armed bandit problem. Journal of Machine Learning Research, 5(Jun):623–648, 2004.
Yury Polyanskiy and Yihong Wu. Information Theory: From Coding to Learning. Cambridge University Press, 2025.
Olivier Rioul. Information theoretic proofs of entropy power inequalities. IEEE Transactions on Information Theory, 57(1):33–55, 2011.
Yoan Russac, Christina Katsimerou, Dennis Bohle, Olivier Cappé, Aurélien Garivier, and Wouter M. Koolen. A/B/n testing with control in the presence of subpopulations. In Advances in Neural Information Processing Systems, volume 34, pages 25100–25110, 2021.
Phurinut Srisawad, Juergen Branke, and Long Tran-Thanh. Identifying the best arm in the presence of global environment shifts. arXiv preprint arXiv:2408.12581, 2024.
Filippo Vannella, Alexandre Proutiere, and Jaeseong Jeong. Best arm identification in multi-agent multi-armed bandits. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 34875–34907. PMLR, 23–29 Jul 2023.
J. Ville. Etude critique de la notion de collectif. Gauthier-Villars, 1939.
Zhihan Xiong, Romain Camilleri, Maryam Fazel, Lalit Jain, and Kevin Jamieson. A/B testing and best-arm identification for linear bandits with robustness to non-stationarity. In Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, volume 238, pages 1585–1593. PMLR, 2024.
A TAS and GLRT fail in the Shifting Means setting
This appendix contains two parts, first we sketch some informal arguments to illustrate why the celebrated Track-and-Stop (TAS) [Garivier and Kaufmann, 2016] algorithm may no longer be δ-correct in the Shifting Means setting and second, we show that a naïve adaptation of TAS has no power.
A.1 TAS Fails
First we will argue that TAS, when tuned for the classical K-armed bandit with Gaussian arms of unknown means and unit variance (henceforth referred to as the 1-Gaussian bandit), may incur more than a δ fraction of errors when applied to a Shifting Means 1-Gaussian bandit. Our reasoning proceeds in two steps, which we outline below.
Step 1. (Informal) Consider a 1-Gaussian bandit with 2 arms. Since the adversary can randomize while selecting the shifts, if it randomizes according to a 0-mean Gaussian with unit variance, then the samples that the algorithm observes from any arm, say a, are draws from a Gaussian with same mean, but inflated variance (2 in this case). Thus, it suffices to show that TAS tuned for 1-Gaussian bandits, when run on σ2-Gaussian bandits is not δ-correct.
Note that randomizing according to a Gaussian distribution is not a valid scheme for the adversary since the resulting mean may no longer respect the bounds of [0,U]. But for large U, this is a good model to get intuitions.
Step 2. (Informal) Suppose we observe samples X1,X2… that are distributed iid according to N(m,1). We want to test the following hypothesis:
H0:m=0vsH1:m=1,(10)
sequentially using a δ-correct, power-1 stopping rule τδ. Formally, this means that the stopping rule should satisfy the following: if samples come from H0, then Pr0[τδ<∞]≤δ. This corresponds to δ-correctness requirement. Next, when the samples come from H1, then Pr1[τδ<∞]=1. This corresponds to power-1 part of the requirement.
For this problem, the GLRT rule (tuned to 1-Gaussian distributions) reduces to the following
τδ=min{n:enSn−2nθ2≥δ1},whereSn:=i=1∑nXi.
δ-correctness easily follows from an application of Ville's inequality [Ville, 1939].
We now show that the above GLRT stopping rule is not δ-correct for testing problem (10) with data Xi i.i.d. according to N(m,σ2), for σ>1. To this end, consider the following. Note that the following probabilities are evaluated under Xi∼N(0,σ2).
Since the TAS stopping rule may fail in the Shifting Means setting, a natural question is whether a straightforward adaptation of the Generalized Likelihood Ratio Test (GLRT) could serve as a valid stopping rule. As the name suggests, the GLRT is based on the likelihood ratio of the null hypothesis that action a is not better than action b against the alternative hypothesis that action b is better than a. In our setting, we can write the GLRT based test statistic at time t as
Lemma 9 shows that this is not the case: in the Shifting Means setting, such a GLRT-based rule will, with high probability, fail to stop altogether. On a high level, the GLRT fails at the timestep t as there are many more parameters (Kt effectively independent parameters) to estimate while only having access to at most t data points, which leads to catastrophic overfitting.
Lemma 9. The GLRT fails to stop for shifting means as the test statistic is uniformly 0 at all times, irrespective of the observed data.
Proof. Let As be any action sampled at time-step s and Xs∈R be any reward value that has non-zero probability under arm distribution of arm As at time s, for all s∈[t].
We start by investigating the denominator of the GLRT, as it is defined in (11), given by
where the first equality follows as μt,c only affects round t and the second equality follows by setting μa′=μb′ to fulfill the constraint and then deleting all μc′ for c=At, as they have no influence on the optimization problem. The numerator follows the same template
Moreover, Φ is jointly convex (in all five parameters).
Proof. We first show that Φ is jointly convex in wa,wb,λ,α, and β. We define the function f with constants c1,c2 where c2>0 as
f(x,y)=exp(xc1−y+x2c2),
and observe that this function is jointly convex in x and y. The perspective transform of a function is defined as g(x,y,w)→wf(x/w,y/w) and is jointly convex in x,y and w≥0 if the original function g is jointly convex in x,y. Noting that f is jointly convex in its parameters and then applying the perspective transform yields a function jointly convex in x,y, and w
g(x,y,w):=wexp(wxc1−y+w2x2c2).
Finally, we are in a position to show that Φ is convex after recalling that the sum and max of convex functions is also convex and recognizing g twice
We isolate the innermost expectation and write out the definition of the evidence (Equation 1), resolve the expectation over At, and follow it up with applying Assumption 1(b)
The above bound holds for all μt where Δb≤Δa, which we now worst case over. First we recognize that the max of an expectation is achieved for a non-random value of μ, then that the value is increasing in ua but decreasing in ub and since ua≤ub, we can equivalently optimize over the point u where they meet
We obtain the final result as the maximizer of a convex function is on the boundary of the range and we can recognize g twice more to see the value being convex in u.
Theorem 2 (RESTATED). Any sampling rule wt, paired with stopping and recommendation rules (2) employing predictable parameters (λt,a,b,αt,a,b,βt,a,b) for each pair of arms a=b and at each round t such that Φ(wt,a,wt,b,λt,a,b,αt,a,b,βt,a,b)≤1, yields a δ-correct learner in any bandit satisfying Assumption 1.
Proof. This proof consists of two parts, first we construct a test for two arms and then we do an appropriate union bound. So, fix a,b∈A, with a=b and Δa,b≤0. Since arm a is better than arm b we want to show it is unlikely for our evidence to grow large at any point in time. Specifically, we require that for certainty δ′, it holds that
P(∃t:Zt,a,b≥lnδ′1)=P(∃t:exp(Zt,a,b)≥δ′1).
The main tool in this proof is Ville's inequality, which states that
P(∃t:Mt≥δ′1)≤δ′
for any super-martingale Mt with M0=1, in our case Mt:=exp(Zt,a,b) with Zt,a,b:=∑s=1tzs,a,b. Since exp(Z0,a,b)=exp(0)=1, the only thing that is left to do for us is to check that exp(Zt,a,b) is a super-martingale, for which most of the heavy lifting has been done already. We calculate directly
where the first equality follows from the definition of Zt,a,b, the first inequality follows by Lemma 1, which we can apply as we assumed that Δa,b≤0 and the second inequality is by assumption on Φ and the relevant parameters.
For the second part of the proof, spell out our stopping condition: In order to recommend a wrong action a~=a∗, there must be a timestep t where a~ beats all other actions b and especially including a∗. Thus by direct calculation we can show that
where the equality is from the stopping condition as outlined in Equation 2, the first inequality is relaxing the stopping condition to a sub-optimal action a~ beating the optimal action a∗, as opposed to a sub-optimal action beating all other actions including the optimal action. The second inequality follows by a union bound and the final inequality follows by applying the first half of this proof with δ′=(K−1)/δ.
Lemma 10. The optimisation problem D from (4) is maximised given fixed λ≥0 at
Proof. Fix any λ,wa,wb≥0, we aim to find α and β optimally. Since Φ(wa,wb,λ,0,0)≥1 and Φ and the objective value is decreasing in both α and β the optimal α and β will fulfill the safety constraint with equality, that is Φ(wa,wb,λ,α,β)=1. Spelling that constraint out with Φ from Equation (3) gives
Solving for α, β uniquely results in the expressions in the lemma. It remains to check that this is optimal. We will do so by witnessing non-negative Lagrange multipliers for the two constraints (12) and checking the KKT conditions. That is, we solve for p and q so that the weighted gradient sum of (12) cancels the gradient of the objective (4), which is (−1,−1). This results in
It then remains to check that both p and q are non-negative. As this is symmetric, we do it for p. We use that ex≥1+x twice, to find
p≥wa+wbwawb(wb2λUwb1−wa2λUwa1)=0.
C Upper Bound - Maximin Drift - Details
We will show in Lemma 10 that the optimisation over α and β can be performed analytically. In fact, we will show that for each λ≥0, abbreviating h(x):=lnxsinhx and W:=wa+wbwawb, we have
where h2(λ):=(wa+wb)h(WλU)−wbh(waλU)−wah(wbλU).
Further progress is not possible in closed-form. Yet both for interpretation and further analysis of D(wa,wb,Δ) the following sandwich is useful:
Lemma 11. Let W:=wa1+wb11=wa+wbwawb so that W∈[0,41], and define the convex functions h1≤h2≤h3 by h1(λ):=0, (13) and h3(λ):=2Wλ2U2. For i∈{1,2,3}, let gi and λi∗ denote the value and maximiser of the problem gi:=maxλ≥0λΔ−2Wλ2σ2−hi(λ). Then
Proof. The difference h2−h1=h2 is convex, even and zero at zero by inspection, and the difference h3−h2 is convex, even and zero at zero by Lemma 12. Hence the values and maximisers are monotonic as stated.
Lemma 12. Fix θ∈[0,1] and let h(x):=lnxsinhx. This function is convex, even, and zero at x=0:
x↦θ(1−θ)2x2−(h(x)−θh(θx)−(1−θ)h((1−θ)x)).
Positivity of this function is in fact Lemma 14.
Proof. Let f(x)=6x2−h(x) and g(x)=x2f′′(x)=−32x2+x2coth2(x)−1=∑n=1∞ρ(nπx) where ρ(x)=(x2+1)22x4(x2+3). The latter function is even and convex (as ρ is), and hence increasing for positive inputs. We hence obtain
g(x)=θg(x)+(1−θ)g(x)≥θg(θx)+(1−θ)g((1−θ)x)
Rewriting that inequality gives
x2f′′(x)≥θ3x2f′′(θx)+(1−θ)3x2f′′((1−θ)x)
Dividing by x2 gives
f′′(x)≥θ3f′′(θx)+(1−θ)3f′′((1−θ)x)
thus proving that the following function is convex
x↦f(x)−θf(θx)−(1−θ)f((1−θ)x)
which finally unpacks to convexity of
x↦θ(1−θ)2x2−(h(x)−θh(θx)−(1−θ)h((1−θ)x)).
D Upper Bound - Known Gaps - Details
Lemma 13. For each pair a=b, the centred evidence zt,a,b−Et[zt,a,b] is sub-Gaussian with variance proxy
We bound the factors separately, starting with innermost conditional expectation. Combining (1) and (14), we find that the shift-conditional centred evidence is
Given At and Bt (in addition to Ht−1), this is a fixed scaling of a centred σ2-sub-Gaussian random variable. Taking worst case over the scaling, we hence find that
For the other factor we use Hoeffding's Inequality [Cesa-Bianchi and Lugosi, 2006, Lemma A.1], which states that for any bounded random variable Y∈[x,y]
E[exp(ξY)]≤exp(ξE[Y]+8ξ2(x−y)2),
Recall that the shift-conditional means μt,a and μt,b are bounded by [±U]. So the tightest range on qt,a,b is of radius
Lemma 3 (RESTATED). Fix drift D>0 and variance proxy ρ2≥0 such that Et[eξ(D−zt,a∗,b)]≤e2ξ2ρ2 for every ξ≥0 and arm pair b=a∗. Then the sample complexity of stopping rule (2) is at most
where the inequalities are enlarging the event of the stopping rule (2) not firing, a union bound over arms, sub-Gaussianty and integer rounding. As also trivially P{τ>t}≤1, we conclude that
The optimal choice for ξ, found by cancelling the derivative, is
ξ=Cρ(1+ln(K−1))(2CD+ρ2(1+ln(K−1)))−(1+ln(K−1))
which is indeed positive. Plugging it in, the bound becomes
1+(DC+2D2ρ2(1+ln(K−1))+2D2ρ2(1+ln(K−1)))2
as desired.
□
E Upper Bound - Interpretable Bounds - Details
Theorem 6 (RESTATED). Define the second best action by b∗=argminb=a∗Δb. Then D∗(Δ) as defined in (5) is sandwiched by (where the lower bound ( ⋆) holds whenever maxaΔa≤21γU, with γ:=3(coth(1)−1)≈0.94)
and we obtain the first result after recalling that b∗=argminb∈A∖{a∗}Δb is the second best action and following the same steps as Appendix A.4 of Garivier and Kaufmann [2016], to find that
For the second part of the statement we commence by upper bounding (18). By Lemma 14, with γ=3(coth1−1)≈0.939 as defined there, for η such that ηU≤1 we have that
where we used that γU2+σ2Δb≤U1, so that the first inner maximum is attained inside [0,U1], and that the second inner maximum is non-positive. We finish again by following the same steps as Appendix A.4 of Garivier and Kaufmann [2016], to find that
Proof. Let L(t):=ψ′(t)=cotht−t1. By Euler's partial fraction expansion cotht=t1+2t∑k=1∞π2k2+t21 we have
tL(t)=2k=1∑∞π2k2+t21,
which is positive and decreasing in t>0 with limit 31 at t=0, and L is increasing since L′(t)=t21−sinh2t1>0. Now fix 0≤s≤x. Writing the integrand as L(t)=t⋅tL(t) and using xL(x)≤tL(t)≤31 for all t∈(0,x], we obtain
where the underbrace follows as L=ψ′. Writing the middle expression of the lemma as θ(ψ(x)−ψ(θx))+(1−θ)(ψ(x)−ψ((1−θ)x)), and using the above display twice, once with s=θx and once with s=(1−θ)x, we obtain
The right-hand side is the claimed upper bound. For the lower bound, since L(x)/x is decreasing we have xL(x)≥L(1)x2 for x≤1, and since L is increasing we have xL(x)≥L(1)x for x≥1. Hence xL(x)≥L(1)min{x,x2}, and 23L(1)=2γ.
F Lower Bounds - Details
Lemma 7 (RESTATED). Fix σ2>0 and R>0. Let ϵ∼N(0,σ2) and B′∼p as in Equation (9) be independent. There exists d>0, depending only on σ2 and R, such that for all ∣△∣≤d,
KL(ϵ+B′∥△+ϵ+B′)≤2(σ2+R2/π2)△2.
Proof. For △∈R, let q△ denote the density of △+ϵ+B′, so that the claim reads KL(q0∥q△)≤△2/(2(σ2+R2/π2)) for all ∣△∣≤d. For a random variable X with absolutely continuous density q, write I(X):=∫q′(x)2/q(x)dx for its Fisher information for location. The density q0 is the convolution of p with a centred Gaussian, hence a Gaussian mixture with means in [−R,R]: it is smooth, strictly positive, and has Gaussian tails. The location family {q△}△∈R therefore satisfies the regularity conditions of Polyanskiy and Wu [2025, Definition 7.21], exactly as a Gaussian location family does, and Polyanskiy and Wu [2025, Theorem 7.22], applied to △↦q△ and to △↦q−△, yields
△→0lim△2/2KL(q0∥q△)=I(ϵ+B′).(19)
We next bound this Fisher information. We have I(ϵ)=1/σ2. For B′, let G have density g(u)=cos2(πu/2) on [−1,1], so that RG∼p. This g has Fisher information I(G)=π2, which is the smallest Fisher information of any density supported on [−1,1] [Polyanskiy and Wu, 2025, Equation (29.13)]. By the scaling rule of Fisher information [Polyanskiy and Wu, 2025, Equation (2.35)], we obtain
I(B′)=I(RG)=R2I(G)=R2π2.
The Fisher information inequality [Polyanskiy and Wu, 2025, Exercise I.47], states that for independent X and Y
I(X+Y)1≥I(X)1+I(Y)1,
with equality only if both X and Y are Gaussian [Rioul, 2011, Section II-C4]. As B′ is bounded, we thus have the strict inequality
I(ϵ+B′)<σ2+R2/π21.(20)
Combining (19) and (20), there is d>0 such that
KL(q0∥q△)≤2(σ2+R2/π2)△2forall∣△∣≤d,
which is the claim.
Theorem 8 (RESTATED). Fix U>0, σ2>0, and fix any algorithm that is δ-correct for all bandit instances for the given U and σ2. There exists a set of gaps Δ and a shift distribution, such that the following lower bound holds:
Proof. Fix any δ-correct algorithm and let Δ be gaps with optimal arm a∗ as in the statement of the theorem, that is, with R:=U−maxaΔa/2>0, the constant d>0 of Lemma 7 for this σ2 and R satisfies maxaΔa≤d. Let p be the shift distribution of Equation (9) with this R, and let BΔ be the hard shift instance for Δ, that is, Bt=maxaΔa/2+Bt′ with Bt′∼p i.i.d. Since Bt′∈[−R,R], we have Bt∈[maxaΔa/2−R,maxaΔa/2+R]=[maxaΔa−U,U] and hence ∣Bt−Δa∣≤U for every arm a, so BΔ fulfills Assumption 1.
Then, our lower bound construction follows Garivier and Kaufmann [2016] and thus we now introduce an alternative set of gaps Δ~ with a different best arm, that is argminaΔa=a∗, and let BΔ~ be the instance with gaps Δ~ and the same shifts Bt. Note that Δ~ does not need to be a real gap vector, i.e., it does not need to contain an action with gap of 0. We then consider the KL of the entire history when playing against BΔ compared to the entire history playing against BΔ~. The idea of the proof is to bound this KL from both sides, the KL is given as
where we used the data processing inequality in the first inequality to cut out all variables except a~ and the second inequality follows as the algorithm is δ-correct on both of BΔ and BΔ~ and the fact that a∗=argminaΔ~a is not the best arm for Δ~. For the upper bound we start by some direct calculation employing that conditioned on the value of At=a, we have Xt=Bt−Δa+ϵt with ϵt∼N(0,σ2),
where we first used the definition of the KL, then cancelled the actions in the log as their distribution given the history (i.e. the sampling rule) is identical in BΔ and BΔ~. The third equality is by enumerating the possible values for At, the tower rule, pulling the sum outside of the log. The final equality comes from recognizing the inside expectation as a one-round KL that is independent of time. Since Bt=maxaΔa/2+Bt′ and the KL divergence is invariant under a common translation of both arguments, this one-round KL equals KL(ϵt+Bt′∥(Δa−Δ~a)+ϵt+Bt′). We now plan to apply Lemma 7 to it with △=Δa−Δ~a, where we simply assume that ∣Δa−Δ~a∣≤maxaΔa≤d for now, which we will verify later. That gives the upper bound for the KL of (21), which we use together with the lower bound of (22) to find that
using that ∑a∈[K]∑t=1∞PBΔ{At=a,τ≥t}=∑t=1∞PBΔ{τ≥t}=EBΔ[τ]. We further focus on the RHS of the above equation and worst-case it over all legal alternative gaps Δ~, and give the learner the benefit of the doubt, to find
where we first upper bounded the probability to play an arm by maximizing instead, then recognized that the best alternative will only change the best arm and a second arm b, and move them to meet at a midpoint m. The last equality is by optimizing over m=wa∗+wbwbΔb, where now can also verify that ∣Δa−Δ~a∣=∣Δb−m∣≤Δb≤maxaΔa and thus the application of Lemma 7 above was appropriate. By following the same argument as by Garivier and Kaufmann [2016, Appendix A.4], one obtains that
By rearranging the pieces, we obtain E[τ]≥2(σ2+R2/π2)(Δb∗1+∑a∈[K]∖a∗Δa21)kl(δ∥1−δ), and the claim follows from limδ→0kl(δ∥1−δ)/lnδ1=1 and R=U−maxaΔa/2.
G Concentration: Bernstein with bounded means and sub-Gaussian noise
We are interested in concentration of time-averages of the importance-weighted reward:
(wt,aIt,a−wt,bIt,b)Xt.
To bound the exponential moment we start with a definition.
For interpretation sake, we observe that for small R (which is typically under our control),
R2eRU+21R2σ2−1−RU≤21(1+RU)(U2+σ2)+O(R2)
As we will see below, it is not important that Ξ(R,U,σ2) is a small multiple of U2+σ2. What matters is that is constant over rounds.
Proof of Lemma 16. The objective is convex in x, so the maximiser is at the boundary. By considering both cases, and then by checking that the remaining function is increasing in r≥0, we find
By two applications of Lemma 16, one to the first exponential with r=waη∈[±C] and x=Bt−Δa∈[±U] and one to the second exponential with the analogous substitution for arm b, we find
Proof. Let λˉ:=2σ2U. By Lemma 11, λt,a,b≤λˉ in every round, as the projected gaps are at most 2U and W≤41. Let Uˉ be a constant with ∣λt,a,b(Bt−Δa)−αt,a,b∣≤Uˉ and ∣λt,a,b(Bt−Δb)−βt,a,b∣≤Uˉ in every round; it exists since ∣Bt−Δa∣≤U and αt,a,b,βt,a,b are bounded by Lemma 10 applied to the projected gaps. The rest of the proof is similar to that of Lemma 17. We present it here for completeness.
Again, applying Lemma 16 twice, one to the first exponential with r=waη∈[±C] and x=λt,a,b(Bt−Δa)−αt,a,b∈[±Uˉ] and variance proxy σ2λt,a,b2≤σ2λˉ2, using that Ξ is increasing in its last argument, and one to the second exponential with the analogous substitution for arm b, we find
Finally, taking the total expectation and the logarithm gives the result.
☐
H ISM Sample Complexity Analysis
Theorem 4 (RESTATED). Fix a bandit instance satisfying Assumption 1 with gap Δ. ISM (Algorithm 1) ensures asymptotic sample complexity
δ→0limlnδ1E[τ]≤D∗(Δ)1.
At a high level, our proof follows the same broad strategy as the sample-complexity analysis of the TAS algorithm. The main difference lies in the treatment of evidence: TAS recomputes its evidence statistic at each time step, whereas our method accumulates evidence over time. This distinction leads us to work with a different set of concentration events.
Proof. Here, we derive an upper bound on the stopping time as a function of δ. Hence, to make the dependence of τ on δ explicit, we denote the stopping time by τδ.
Let Δ be the true gap with best arm a∗. For any pair-wise gap vector Δˉ, and all pairs of arms a=b, let λa,b(Δˉ), αa,b(Δˉ), βa,b(Δˉ), and w(Δˉ) denote the optimizers in D∗(Δˉ). For ϵ>0 (to be chosen small enough, later), define
Iϵ:=[Δ−ϵ,Δ+ϵ]=⊗b∈[K][Δb−ϵ,Δb+ϵ].
We will choose ϵ small enough so that for any Δˉ∈Iϵ, we have that Δˉa∗,b>0, for all b=a∗ (so that the best arm a∗ for Δ is also the best arm in Δˉ). Further, since Δ is fixed, in the rest of this proof, we denote D∗(Δ) by D∗. Note that as Δ∈[0,2U]K, Δ^t∈Iϵ implies Δ^t∧2U∈Iϵ, so the projected gaps that ISM plugs in lie in Iϵ whenever Δ^t does.
Then, there exists ϵ1(ϵ) such that tuning for Δˉ is only ϵ1 suboptimal compared to tuning for the true Δ itself, i.e.
Note that the existence of ϵ1(ϵ) follows from Lemma 19: the optimizers depend continuously on Δˉ and Δb is fixed, so the left-hand side of (24) is continuous in Δˉ and equals D∗ at Δˉ=Δ. We suppress the dependence of ϵ1 on ϵ, for simplicity of notation. For T>0, and ϵ2>0, define
(25) where −L is a constant lower bound on Et[zt,a∗,b]. It exists since the projected gaps, and hence the parameters, are bounded, see the proof of Lemma 22. Next, define
Tδ=min{T:(T−T41)(D∗−ϵ1−ϵ2)−T41L≥lnδK−1}.
We now show that for any T≥Tδ, on GT, τδ≤T. To see this, fix T>Tδ, and recall from (2) that on GT, since Δ^t∈Iϵ for all t≥T41,
Using Lemmas 20 and 23 to bound the two terms in the bound above, dividing both sides by lnδ1, and taking the limit of δ→0, we get
δ→0limlnδ1E[τδ]≤D∗−ϵ1−ϵ21.
Finally, since the above bound holds for any ϵ>0 and ϵ2>0, we get the desired bound by optimizing over these free parameters (taking ϵ,ϵ2→0).
The following lemma proves the continuity of the optimizers in D∗ as a function of the gap vector.
Lemma 19. Fix an arm a∗∈[K] and restrict to gap vectors Δ∈[0,2U]K for which a∗ is the unique best arm, i.e. Δa∗<Δb for all b=a∗. On this set, the maximisers of D∗(Δ),
Proof. We start by plugging the partial solution to the D problem from Lemma 10 into the D∗ problem. Following the notation of Lemma 11, this results in
This is a convex problem jointly in the weights (wa)a∈[K] and parameters (λa∗,b)b=a∗ (which we can hoist out of the min). Our λ and w are found as its argmax, and we want to see their continuity in Δ. The objective function here is not bounded below (the problematic case is taking weights to 0, for which both W1→∞ and h2(λ)→∞). Yet by Lemma 11, we may restrict the domain to
λ∈[σ2+U2ΔW,σ2ΔW] without changing the optimum. On that domain, which is compact, the function value is bounded below, namely by
Hence, the objective function, being convex and bounded, is continuous. By Berge's theorem, we conclude that argmaxw,λD∗ is an upper-hemicontinuous (compact, convex, non-empty) set-valued function of Δ.
where the inequality (a) follows from Lemma 17 (assuming that supaη/ws,a≤C) and the constant Ξ(C,U,σ2) is as in the Lemma. We will later see that the optimized η indeed satisfies this condition for small ϵ, so that the assumption in Lemma 17 is satisfied, and this step is legal.
Finally, we get the desired bound by optimizing the right-hand side in the above inequality with respect to η≥0 (setting η=η∗:=ϵ/(4Ξ(C,U,σ2)Kt)). Now, recall that by forced exploration, ws,a≥Ks1, and hence, η∗/ws,a≤ϵ/(4Ξ(C,U,σ2)). Choosing ϵ small enough guarantees that this bound is at most C, proving the result. The other bound follows symmetrically.
where the parameters λt,a∗,b, αt,a∗,b, and βt,a∗,b are the optimizers in (7c) tuned for the projected gaps Δ^t−1∧2U. For the bandit with true gap Δ,
E[zt,a∗,b]=λt,a∗,bΔb−αt,a∗,b−βt,a∗,b.
Clearly, on the event A, for t∈[T41,T], E[zt,a∗,b]≥D∗−ϵ1. This follows from (24), together with the observation that ϵ1 can be taken small enough to accommodate the forced exploration added in (7b). Moreover, for t<T41, we also have E[zt,a∗,b]≥−L, for a constant L. This follows since Δb, λt,a∗,b, αt,a∗,b, and βt,a∗,b are bounded (by Assumption 1 and Lemmas 11 and 10, the latter applied to the projected gaps in [0, 2U]; this is where the projection in (7c) is needed). Using these, for any
where (⋆) follows from Lemma 18 (assuming supa∣η∣/ws,a≤C) and the constants C, Uˉ and Ξ(C,Uˉ,σ2λˉ2) are as in Lemma 18.
Finally, we get the desired bound by optimizing the right-hand side in the inequality above with respect to η≥0 (setting η=η∗=ϵ2(T−T41)/(4KTTΞ(C,Uˉ,σ2λˉ2))), and observing that T−T41≥41T for T>1.
Lemma 23. For A>0, B>0, and threshold L>0, let
TL=min{T:(T−T41)A−T41B≥L}.
Then,
TL≤AL+o(L).
Proof. By definition, Tδ is the smallest integer T such that
AT−(A+B)T1/4≥L.(26)
Fix a constant u>0 (depending only on A and B, and independent of L) and consider
T:=AL+uL1/4.
For all sufficiently large L, using concavity of the map x→x41,
T1/4≤(AL)1/4+(uL1/4)1/4=A−1/4L1/4+u1/4L1/16.
Substituting into the left-hand side of (26), we obtain
To get a worst-case bound, this convex function of Bt needs to be maximised over the valid interval of Bt∈[−U+Δmax,U]. It suffices to check the end-points and take the max. Finally, the variance is the second moment minus the square of the mean, which is Et[zt,a,b]=λt,a,bΔb−αt,a,b−βt,a,b.
J Computation
We start from the observation that we can write the D∗(Δ) problem as
Following Garivier and Kaufmann [2016, Section 2.2], this means we are looking for the largest possible level C to which all gb can be equalised, for weights summing to one. That is, we are after
Cmax1+∑b=a∗gb−1(C)C.
Solving that concave maximisation problem amounts to cancelling the derivative, i.e. solving
b=a∗∑{C(gb−1)′(C)−gb−1(C)}=1.
Now let rb(C)=gb−1(C) and let ζb(r) be the maximiser in gb(r). Then we are looking for C such that
b=a∗∑{gb′(rb(C))C−rb(C)}=1
By the rule for the derivative of an inverse, we have
All in all, this reveals that argmaxD∗(Δ) can be computed with three nested bissections. The outer one optimises over the scalar C. Then for each arm b=a∗, the middle one computes the inverse rb(C), and within that, the innermost evaluates gb(r).
The advantage of this method is it reaches machine precision in O(K) work. We may compare this to first-order iterative schemes (including gradient descent), where the run-time per iteration is also O(K), but where the required number of iterations increases with the desired accuracy. We may also contrast it with second-order iterative schemes (including Newton's method), where the number of iterations is small, but the run-time per iteration is O(K2).
Degenne et al. [2019] show that it is possible to get the best of both worlds: one can run one iteration of an iterative scheme per round, while updating the estimates between round, and obtain convergence guarantees using concentration and online learning regret bounds. We leave developing such schemes for our setting as an interesting future endeavour.
K Numerical Experiments - Additional Figures
Figure 1: Histograms of stopping times in 1000 runs. The first three figures use U=1 and vary δ, the dashed lines are (green) the expected stopping time as predicted by Theorem 4, (black) the empirical average stopping time, and (red) the stopping time as predicted by Lemma 3 (as also spelled out in Table 1). The last figure fixes δ=1/10 and mis-specifies U=1,21,41. Here the dashes show the average stopping times. U=41 admits 4 mistakes, all other runs were perfect.
a
b
Δb
λt,a,b
αt,a,b
βt,a,b
Drift Et[zt,a,b]
Vt[zt,a,b] bound
1
2
0.05
0.00805581
0.000100929
0.000100477
0.000201384
0.00038665
1
3
0.07
0.0057545
0.000104116
0.000097315
0.000201384
0.000374914
1
4
0.1
0.00402871
0.000105826
0.000095661
0.000201384
0.0003842
Table 2: Optimised parameters for the pairs a=b involving the best arm a=a∗=1. The drifts are perfectly equalised. The worst-case variances are computed as described in Appendix I. They are not optimised to be similar, but they turn out to be.