arXiv:2609.10529cs.LGSep 2026

Manuscript Offprint

arXiv:2609.10529

A positive resolution of the gap-entropy conjecture

P. M. Aronow, Nathan Kallus, Patrick Lopatto

P. M. ARONOW, NATHAN KALLUS, AND PATRICK LOPATTO

ABSTRACT. We prove the gap-entropy conjecture for fixed-confidence best-arm identification with independent unit-variance Gaussian arms, means in [0,1][0,1], and a unique optimal arm. For each suboptimal arm ii, let Δi=μ∗−μi\Delta_i = \mu_* - \mu_i be its gap from the optimal mean, and write H=∑i≠∗Δi−2H = \sum_{i \neq *} \Delta_i^{-2}. Let prp_r be the fraction of HH contributed by arms with 2−(r+1)<Δi≤2−r2^{-(r+1)} < \Delta_i \leq 2^{-r}, and let Ent(I)=∑r:pr>0prlog⁡(1/pr)\text{Ent}(I) = \sum_{r:p_r > 0} p_r \log(1/p_r). Among all algorithms that identify the optimal arm with probability at least 1−δ1 - \delta on every Gaussian instance, the optimal expected number of samples on a given instance, averaged over all permutations of the arm labels, is within absolute constant factors of H(log⁡(1/δ)+Ent(I))H(\log(1/\delta) + \text{Ent}(I)). Moreover, there is an algorithm, independent of the instance, whose expected number of samples is bounded by a constant multiple of this quantity plus g−2log⁡log⁡(ee/g)g^{-2} \log \log(e^e/g), where g=min⁡i≠∗Δig = \min_{i \neq *} \Delta_i is the gap to the closest competitor.

1. INTRODUCTION

Experiments often compare several alternatives in order to choose the one with the best mean reward. Adaptive sampling, wherein at each step an algorithm pulls one of K≥2K \geq 2 arms and immediately receives a sample from its unknown reward distribution to inform future pulls, can significantly improve performance. In regret minimization, avoiding apparently inferior arms in future sampling can help attain higher cumulative rewards over the experiment, and in best-arm identification, concentrating future sampling on apparently close competitors for best can find the best faster. Fixed-confidence best-arm identification formalizes this problem by seeking to identify the best arm with as few samples as possible while controlling the probability of returning the wrong arm for all admissible reward distributions [5, 10].

The difficulty depends on the gaps between the mean rewards (μ1,…,μK)∈[0,1]K(\mu_1, \dots, \mu_K) \in [0,1]^K, where μ∗=max⁡iμi\mu_* = \max_i \mu_i is uniquely attained. In the unit-variance Gaussian model, a suboptimal arm i≠∗i \neq * with gap Δi=μ∗−μi\Delta_i = \mu_* - \mu_i from the optimal arm requires Ω(Δi−2log⁡(1/δ))\Omega(\Delta_i^{-2} \log(1/\delta)) samples to distinguish it from the optimal arm at error level δ\delta. Summing these costs gives the lower bound Ω(Hlog⁡(1/δ))\Omega(H \log(1/\delta)), where H=∑i≠∗Δi−2H = \sum_{i \neq *} \Delta_i^{-2} is the sum of the inverse squared gaps, capturing the baseline cost of distinguishing the best arm if we know up to orders of magnitude how well separated it is from each other arm [10, 12]. This does not, however, reveal the cost of discovering this scale of the gaps, which matters even when the error level δ\delta is fixed.

Exponential-Gap Elimination [9] and lil'UCB [8] achieved upper bounds with iterated-log dependence on gaps of the form O(Hlog⁡(1/δ)+∑i≠∗Δi−2log⁡log⁡(ee/Δi))O(H \log(1/\delta) + \sum_{i \neq *} \Delta_i^{-2} \log \log(e^e/\Delta_i)). Chen and Li [1] subsequently improved this bound, capping each arm's iterated-logarithmic factor at log⁡log⁡K\log \log K, apart from a g−2log⁡log⁡(1/g)g^{-2} \log \log(1/g) term where g=min⁡i≠∗Δig = \min_{i \neq *} \Delta_i. They also proved that for sufficiently small δ\delta and large KK, any δ\delta-correct algorithm has a Gaussian instance requiring Ω(Hlog⁡log⁡K)\Omega(H \log \log K) samples. This raised the question of how this unavoidable adaptation cost depends on the particular configuration of gaps.

Chen and Li [2] proposed that the additional instance-dependent cost is described by gap entropy. For an instance II, peel the suboptimal arms into geometrically spaced shells according to their gaps,

Date: September 9, 2026.

This paper was written by the authors with the assistance of large language models, which were used to suggest mathematical arguments, draft and revise exposition, and write code for computational verification. P. L. was partially supported by NSF grant DMS-2450004.

P. M. ARONOW, NATHAN KALLUS, AND PATRICK LOPATTO

and assign to each shell the fraction of HH contributed by its arms. The entropy of the resulting probability vector, Ent(I)\mathrm{Ent}(I), measures how widely the required sampling effort is distributed across scales.

Chen and Li conjectured (their conjecture 3.5) that, among δ\delta-correct algorithms, the smallest expected sample size achievable on a given instance II (averaged over permutations of its arm labels) is of order H(log⁡(1/δ)+Ent(I))H(\log(1/\delta) + \mathrm{Ent}(I)). (A different algorithm may attain the benchmark for each II, provided it remains δ\delta-correct on all instances.) They further conjectured (their conjecture 3.2) that a single algorithm can attain this instance-wise benchmark simultaneously on all instances, up to an additive term of order g−2log⁡log⁡(1/g)g^{-2}\log\log(1/g). Such an adaptation cost is unavoidable already with two arms: adapting to an unknown gap that may be arbitrarily small incurs an iterated-logarithmic cost along some sequences of instances, even though this cost is not required at every fixed instance [2, 6].

The conjectures seek nonasymptotic bounds that hold uniformly in the instance and δ\delta. By contrast, Track-and-Stop [7] already achieves asymptotic optimality as δ↓0\delta \downarrow 0 with the instance fixed. In that limit, the gap entropy of the fixed instance is eventually dominated by log⁡(1/δ)\log(1/\delta). An asymptotically optimal leading constant therefore does not determine the additional cost when the gap configuration and the confidence parameter vary together. Simchowitz, Jamieson, and Recht [13] studied the complexity distinctions between fixed δ\delta and δ↓0\delta \downarrow 0 asymptotics, including the cost of learning a sampling allocation in structured models. Cho and Kallus [4] relax exact error control to asymptotic validity in the δ↓0\delta \downarrow 0 regime, enabling the use of strong invariance principles to match the optimal exact-error Gaussian benchmark with known variances even under nonparametric reward distributions.

Chen, Li, and Qiao [3] made progress toward the conjectures, obtaining the upper bound O(H(log⁡(1/δ)+Ent(I))+g−2log⁡log⁡(1/g) polylog(K,1/δ))O(H(\log(1/\delta) + \mathrm{Ent}(I)) + g^{-2} \log \log(1/g) \text{ polylog}(K, 1/\delta)) (their theorem 1.11) and, for Gaussian instances whose gaps are powers of two, a lower bound of Ω(H(log⁡(1/δ)+Ent(I)))\Omega(H(\log(1/\delta) + \mathrm{Ent}(I))) for algorithms whose expected sample cost does not increase when suboptimal arms are deleted (their theorem 1.12 and corollary 1.13).

In this paper, we answer both conjectures in the positive. We remove both the extra polylogarithmic factor from the upper bound (which applies to arbitrary 1-sub-Gaussian reward distributions) and the restrictions on instances and algorithms in the lower bound (for the Gaussian model).

1.1. Main results. For K≥2K \geq 2, a KK-armed bandit instance I=(ν1,…,νK)I = (\nu_1, \ldots, \nu_K) has reward distributions νi\nu_i with means μi∈[0,1]\mu_i \in [0,1]. The index of the largest mean, denoted by *, is assumed unique. Each arm has an sequence of independent samples with law νi\nu_i, and the sequences are independent across arms. Pulling an arm reveals its next sample.

Let SKS_{K} be the class of such unique-optimum instances with 1-sub-Gaussian rewards, meaning that

EX∼νiexp⁡(λ(X−μi))≤exp⁡(λ2/2)(λ∈R, i∈[K]).\mathbb{E}_{X\sim\nu_{i}}\exp\bigl(\lambda(X-\mu_{i})\bigr)\leq\exp(\lambda^{2}/2)\qquad(\lambda\in\mathbb{R},~i\in[K]).

The algorithm knows that the rewards are 1-sub-Gaussian, but not their distributions or means. Let GK⊂SK\mathcal{G}_K \subset \mathcal{S}_K be the Gaussian subclass with νi=N(μi,1)\nu_i = N(\mu_i, 1).

For either class, write

m=μ∗,Δi=m−μi(i≠∗),H=∑i≠∗Δi−2,g=min⁡i≠∗Δi,D=g−2.m=\mu_{*},\qquad\Delta_{i}=m-\mu_{i}(i\neq*),\qquad H=\sum_{i\neq*}\Delta_{i}^{-2},\quad g=\min_{i\neq*}\Delta_{i},\quad D=g^{-2}.

For r=0,1,…r = 0,1,\ldots, let

Gr={i≠∗:2−(r+1)<Δi≤2−r},Hr=∑i∈GrΔi−2,pr=Hr/H.G_{r}=\{i\neq*:2^{-(r+1)}<\Delta_{i}\leq2^{-r}\},\qquad H_{r}=\sum_{i\in G_{r}}\Delta_{i}^{-2},\qquad p_{r}=H_{r}/H.

For a probability vector q∈[0,1]N0q \in [0,1]^{\mathbb{N}_0}, write Ent(q)=∑r:qr>0qrlog⁡(1/qr)\mathrm{Ent}(q) = \sum_{r:q_r>0} q_r \log(1/q_r) for its Shannon entropy. The gap entropy of instance II is defined as

Ent(I)=Ent(p).(1.1)\mathrm{Ent}(I)=\mathrm{Ent}(p). \tag{1.1}

It is zero when all gaps lie on the same geometric scale. If dd groups contribute equally to HH, it equals log⁡d\log d. More generally, writing U={r:Hr>0}\mathcal{U} = \{r : H_r > 0\} for the finite set of indices of the nonempty gap groups, we have 0≤Ent(I)≤log⁡∣U∣0 \leq \mathrm{Ent}(I) \leq \log |\mathcal{U}|.

All logarithms are natural unless otherwise indicated. Constants denoted by cc or CC are positive and absolute and may change between occurrences. Constants used as algorithm parameters are fixed within each construction. We write [K]={1,…,K}[K] = \{1, \ldots, K\}.

An algorithm is δ\delta-correct on a model class if, on every instance in that class, it stops almost surely and returns the optimal arm with probability at least 1−δ1 - \delta. Write TAT_A for its total number of samples. For a permutation π∈SK\pi \in S_K of the labels, let πI\pi I be the relabeled instance. For I∈GKI \in \mathcal{G}_K, following [2, definition 3.1], define

L(I,δ)=inf⁡A:δ−correct on GK1K!∑π∈SKEπITA.(1.2)\mathcal{L}(I,\delta)=\operatorname*{i n f}_{A:\delta\mathrm{-c o r r e c t~o n~}\mathcal{G}_{K}}\frac{1}{K!}\sum_{\pi\in S_{K}}\mathbb{E}_{\pi I}T_{A}. \tag{1.2}

The averaging removes any advantage from a favorable labeling. The infimum is taken separately for each Gaussian instance II, but every algorithm in it must be δ\delta-correct on the Gaussian class GK\mathcal{G}_K. Appendix A compares these conventions with those of [2] and explains why our results imply their original conjectures.

We now present our main results.

Theorem 1.1. There exist absolute constants c,C>0c, C > 0 such that, for every I∈GKI \in \mathcal{G}_K and 0<δ<0.10 < \delta < 0.1,

cH(log⁡(1/δ)+Ent(I))≤L(I,δ)≤CH(log⁡(1/δ)+Ent(I)).c H(\log(1/\delta)+\mathrm{E n t}(I))\leq\mathcal{L}(I,\delta)\leq C H(\log(1/\delta)+\mathrm{E n t}(I)).

The lower and upper bounds are proved in Sections 2 and 3, respectively. The lower bound is proved directly for the original Gaussian instance, after averaging over permutations of the arm labels, without first passing to a subinstance obtained by deleting arms. The matching upper bound uses an algorithm selected for that target instance. More generally, Proposition 3.1 constructs, for each instance in SK\mathcal{S}_K, an algorithm that is δ\delta-correct on SK\mathcal{S}_K and attains the same bound on every relabeling of the instance. The next theorem gives one algorithm for the whole sub-Gaussian class.

Theorem 1.2. There exists one algorithm, given only KK and δ\delta, that is δ\delta-correct on SK\mathcal{S}_K and satisfies, for every I∈SKI \in \mathcal{S}_K and 0<δ<0.10 < \delta < 0.1,

EITA≤C(H(log⁡(1/δ)+Ent(I))+Dlog⁡log⁡(ee/g)).\mathbb{E}_{I}T_{A}\leq C\left(H(\log(1/\delta)+\mathrm{E n t}(I))+D\log\log(e^{e}/g)\right).

The constant C is absolute.

The algorithm is defined in Section 4; its correctness and bounds on the expected sample size are proved in Sections 5 and 6, respectively. The additive term depends only on the smallest gap, with no further factor involving KK or δ\delta. Specializing the uniform algorithm to GK\mathcal{G}_K and applying Theorem 1.1 gives the near-optimality on every individual instance conjectured in [2, conjecture 3.2].

Corollary 1.3. For every I∈GKI \in \mathcal{G}_K and 0<δ<0.10 < \delta < 0.1, the algorithm in Theorem 1.2 satisfies

EITA≤C(L(I,δ)+Dlog⁡log⁡(ee/g)).\mathbb{E}_{I}T_{A}\leq C(\mathcal{L}(I,\delta)+D\log\log(e^{e}/g)).

The proof is given at the end of Section 6. Theorem 1.1 proves [2, conjecture 3.5], and together with Corollary 1.3 proves [3, conjecture 1.9]; see Appendix A for details.

P. M. ARONOW, NATHAN KALLUS, AND PATRICK LOPATTO

1.2. Ideas of the proof. A short allocation calculation explains why entropy appears. Suppose the group weights HrH_r were known and group GrG_r were assigned error budget δr\delta_r. The corresponding sampling cost would have the form ∑rHrlog⁡(1/δr)\sum_r H_r \log(1/\delta_r). Under the constraint ∑rδr≤δ\sum_r \delta_r \leq \delta, this expression is minimized by δr=δpr\delta_r = \delta p_r, giving

inf⁡δr>0∑r∈Uδr≤δ∑r∈UHrlog⁡(1/δr)=H(log⁡(1/δ)+Ent(I)).(1.3)\inf_{\substack{\delta_{r}>0\\ \sum_{r\in\mathcal{U}}\delta_{r}\leq\delta}}\sum_{r\in\mathcal{U}}H_{r}\log(1/\delta_{r})=H(\log(1/\delta)+\mathrm{Ent}(I)). \tag{1.3}

In particular, if dd groups contribute equally to HH, then δr=δ/d\delta_{r}=\delta/d and the additional cost is Hlog⁡dH\log d.

This calculation, used to motivate the conjecture in [2, section 4], does not by itself prove a lower bound for an arbitrary algorithm or give an algorithm when the weights are unknown. We first show that every algorithm correct on the Gaussian class must pay the entropy cost. We then attain this cost using an algorithm selected for a fixed target instance. Finally, we construct an algorithm that does not depend on the instance and bound the additional cost of adaptation.

1.2.1. The lower bound. The term Hlog⁡(1/δ)H \log(1/\delta) follows from the standard bandit change-of-measure argument; see [10, lemma 1]. The remaining task is to establish the additional entropy cost for an arbitrary correct algorithm. For each gap group GrG_r, we choose one of its arms uniformly and examine how many times the algorithm samples that arm. Since arms in GrG_r have gaps of order 2−r2^{-r}, their sampling complexity is on the scale 4r4^r, and we associate GrG_r with an event in which this sample count lies in a suitable range around that scale. Widely separated scales give disjoint ranges, and the main difficulty is to compare the probabilities of these events under one common reference law.

Fix a Gaussian instance and an arbitrary algorithm AA that is δ\delta-correct on the Gaussian class. Define a new algorithm by first applying a uniformly random permutation to the arm labels, running AA on the relabeled instance, and then applying the inverse permutation to AA's output. The new algorithm is still δ\delta-correct, treats all labelings symmetrically, and has expected sample cost on every labeling equal to the average cost of AA over all labelings of the original instance. Let uiu_i be its expected number of samples from arm ii of the target instance, and let

αr=∑i∈Grui∣Gr∣4r,r∈U.\alpha_{r}=\frac{\sum_{i\in G_{r}}u_{i}}{|G_{r}|4^{r}},\qquad r\in\mathcal{U}.

An arm in GrG_{r} has inverse squared gap comparable to 4r4^{r}. Thus αr\alpha_{r} is the average sample count in the group divided by this sampling scale.

Fix a≥1a \geq 1. For each group with αr≤a\alpha_r \leq a, let PrP_r be the law of the algorithm's run when the optimal arm has label 1, a uniformly chosen arm from GrG_r has label 2, and the remaining arms are uniformly relabeled. Let N2N_2 count the samples from label 2, and let Er(a)E_r(a) be the event that the algorithm returns label 1 with c04r≤N2≤4a4rc_04^r \leq N_2 \leq 4a4^r, for a sufficiently small absolute constant c0c_0. Since EPrN2=αr4r≤a4r\mathbb{E}_{P_r} N_2 = \alpha_r 4^r \leq a 4^r, Markov's inequality gives Pr(N2>4a4r)≤1/4P_r(N_2 > 4a4^r) \leq 1/4.

For the lower tail, raise label 2's mean to mm, producing a tied reference law QrQ_r. Correctness on nearby instances in which label 2 is uniquely optimal forces the probability of returning label 1 under QrQ_r to be at most δ\delta. Before label 2 has been sampled c04rc_04^r times, the KL divergence between the corresponding history distributions is bounded by an absolute constant times c0c_0. A finite-horizon change-of-measure argument therefore shows that returning label 1 this early also has small probability under PrP_r. Combining the two tail bounds with correctness gives Pr(Er(a))≥1/2P_r(E_r(a)) \geq 1/2; the details are in Section 2.

For sufficiently separated indices r,r′,r, r', the ranges [c04r,4a4r][c_04^r, 4a4^r] and [c04r′,4a4r′][c_04^{r'}, 4a4^{r'}] are disjoint. But their event probabilities have been bounded under different laws PrP_r, and the tied reference laws QrQ_r also depend on rr. To compare different groups, we construct a reference law that can be used for all of them. Fix a nonempty group GsG_s. For r>sr > s, let ii denote the arm placed at label 2, choose jj uniformly from GsG_s, independently of the labeling, and change the two means by

(μi,μj)⟼(m,μi).(\mu_{i},\mu_{j})\longmapsto(m,\mu_{i}).

The second change restores the suboptimal mean removed by the first. Labels 1 and 2 are now tied, and the other labels carry exactly the original suboptimal means with μj\mu_j omitted. After averaging over the random choices, those remaining means are uniformly arranged on labels 3,…,K3,\ldots,K. The resulting law, denoted by QsQ_s, therefore depends on ss but not on rr. For r=sr=s, raising the selected arm to mm alone gives the same QsQ_s. Note that each of these resulting instances is inadmissible because labels 1 and 2 are tied for best. While δ\delta-correctness or almost-sure stopping are therefore not required for AA on these, the law of the algorithm's run is still well-defined and its finite-time answer probabilities are controlled by its required δ\delta-correct behavior on nearby admissible instances where label 1's mean is slightly reduced, making label 2 uniquely optimal.

A Gaussian change-of-measure calculation bounds the KL divergence from PrP_r to QsQ_s, at any finite horizon, by (αr+αs)/2(\alpha_r + \alpha_s)/2. If any group satisfies αr≤a\alpha_r \leq a, choose s=min⁡{r∈U:αr≤a}s = \min\{r \in \mathcal{U} : \alpha_r \leq a\}. The divergence bound is then at most aa for every such group, and Pr(Er(a))≥1/2P_r(E_r(a)) \geq 1/2 implies Qs(Er(a))≥e−2a/4Q_s(E_r(a)) \geq e^{-2a}/4. Under this one law, events from sufficiently separated groups are disjoint. Since each has probability at least e−2a/4e^{-2a}/4, any such collection contains at most 4e2a4e^{2a} groups. Partitioning the indices into O(a)O(a) separated collections gives the required counting bound for a≥1a \geq 1. The standard per-arm lower bound gives αr>1\alpha_r > 1 for every rr, so integrating this counting bound, as carried out in Section 2, yields

∑re−8αr≤1.\sum_{r} e^{-8\alpha_{r}} \leq 1.

Since the weights e−8αre^{-8\alpha_{r}} have total mass at most one, normalizing them and applying Gibbs's inequality gives

HEnt⁡(I)≤8∑rHrαr≤32∑i≠∗ui.H\operatorname{Ent}(I) \leq 8 \sum_{r} H_{r} \alpha_{r} \leq 32 \sum_{i \neq *} u_{i}.

Since ∑i≠∗ui\sum_{i \neq *} u_i is the expected number of samples from the suboptimal arms, it is at most the expected total number of samples. Hence, writing TT for the total number of samples

ET≥132HEnt⁡(I).\mathbb{E}T \geq \frac{1}{32} H \operatorname{Ent}(I).

Together with the standard lower bound ET≥cHlog⁡(1/δ)\mathbb{E}T \geq cH \log(1/\delta), this gives

ET≥c′H(log⁡(1/δ)+Ent⁡(I))\mathbb{E}T \geq c' H (\log(1/\delta) + \operatorname{Ent}(I))

for an absolute constant c′>0c' > 0, proving the lower half of Theorem 1.1.

1.2.2. The instance-wise upper bound. For each fixed target instance I∈SKI \in \mathcal{S}_K, we may choose an algorithm specifically for II, provided it remains δ\delta-correct on all of SK\mathcal{S}_K. The algorithm's definition includes the indices and sizes of the target's nonempty gap groups and a threshold τ∈(m−g/2,m−g/3)\tau \in (m-g/2, m-g/3). Thus τ\tau lies strictly between the largest mean mm and the second-largest mean m−gm-g, at distance comparable to gg from both. On the target, the optimal arm is the unique arm with mean above τ\tau. Thus it suffices to eliminate all arms whose means lie below τ\tau. We do this through a sequence of independent trials. Each trial may return an arm or return without an answer.

Choose probability weights qrq_r proportional to ∣Gr∣4r|G_r|4^r, so that qrq_r is comparable to prp_r. Given a parameter η\eta that will serve as the trial's error allowance, the trial starts with all arms active and cycles through the active arms, taking one sample from each in turn. For each arm, we combine one exponential test statistic for each supplied gap scale, using mixture weight qrq_r for scale rr. An arm is eliminated when this combined statistic reaches its rejection threshold. For a suboptimal target arm i∈Gri \in G_r, let UiU_i be the number of samples from that arm before it is eliminated. We show that

EUi≤CΔi−2[log⁡(1/η)+log⁡(1/qr)].\mathbb{E}U_i \leq C \Delta_i^{-2} [\log(1/\eta) + \log(1/q_r)].

P. M. ARONOW, NATHAN KALLUS, AND PATRICK LOPATTO

Thus the mixture weight qrq_r enters the sample bound through the additive term log⁡(1/qr)\log(1/q_r). Since qrq_r is comparable to prp_r, summing over the suboptimal arms gives

∑i≠∗EUi≤CH(log⁡(1/η)+Ent(I)).\sum_{i\neq*}\mathbb{E}U_{i}\leq CH(\log(1/\eta)+\mathrm{Ent}(I)).

Because the procedure takes one sample from every active arm in each cycle through the active set, the optimal arm is sampled at most max⁡i≠∗Ui\max_{i\neq*} U_i times before at most one arm remains. Hence the total number of samples used during elimination is at most

∑i≠∗Ui+max⁡i≠∗Ui≤2∑i≠∗Ui.\sum_{i\neq*}U_{i}+\max_{i\neq*}U_{i}\leq 2\sum_{i\neq*}U_{i}.

Although the algorithm is chosen using information from the target instance, it must remain δ\delta-correct when run on every instance in SK\mathcal{S}_K, including instances whose means and gap groups differ from those of the target. There are two cases. If the input has an arm with mean at least τ\tau, then the optimal arm also has mean at least τ\tau. An incorrect output is therefore possible only if the tests eliminate the optimal arm, which happens with probability at most η\eta. If instead every input mean is below τ\tau, then before returning the sole remaining arm the trial takes fresh samples from it and requires its empirical mean to exceed a level slightly above τ\tau. We choose the number of confirmation samples so that, by the sub-Gaussian tail bound, this event has probability at most η\eta. Thus in this case the trial returns any arm with probability at most η\eta, and in particular returns an incorrect arm with probability at most η\eta.

We impose a deterministic sample limit on each trial and repeat independent trials with geometrically decreasing error allowances whose sum is at most δ/2\delta/2. On the target instance, each trial returns the optimal arm with probability at least 3/43/4, so the probability of reaching later trials decreases geometrically while their sample limits grow only linearly with the trial index. The repeated-trial procedure need not stop on every other instance. To guarantee almost-sure stopping on the full class, we interleave it with an independent δ/2\delta/2-correct confidence-interval procedure and return the first answer. This at most doubles the target-instance cost, up to one sample, while the two error guarantees together give δ\delta-correctness.

1.2.3. The uniform upper bound. The preceding instance-wise construction uses the instance's gap distribution to choose its testing scales and error allocation. We now construct one algorithm, given only KK and δ\delta, that must discover this information from the data. It runs independent stages with geometrically increasing budgets Bt=100tB_t = 100^t. Each stage begins with all KK arms and either returns an arm or rejects and passes control to the next stage. A deterministic sample limit of order BtB_t bounds the cost of the stage on every sample path.

Within a stage, round rr works at accuracy εr=2−r\varepsilon_r = 2^{-r}. A Median call selects an arm whose mean is within εr/8\varepsilon_r/8 of the largest active mean, with probability at least 0.99. The algorithm estimates this arm's mean and uses a Fraction call to determine whether sufficiently many active arms lie substantially below it. If so, an Eliminate call removes arms with low estimated means; otherwise the active set is unchanged. The stage returns as soon as only one arm remains. It rejects if either of its two budget tests is triggered, its final permitted round is completed without a singleton, or its sample limit is reached.

For an active set SrS_r, the sampling-cost scale at accuracy εr\varepsilon_r is

wr=∣Sr∣εr−2=∣Sr∣4r.w_r = |S_r| \varepsilon_r^{-2} = |S_r| 4^r.

This observable quantity replaces the unknown gap-group weights used by the instance-wise algorithm. Set η=cδ\eta = c\delta, where c>0c > 0 is a sufficiently small absolute constant. An Eliminate call in round rr receives an error allowance proportional to wr/Btw_r/B_t. The stage controls both the sum of these allowances and the cumulative sum of

zr=wrlog⁡Btηwr.z_{r}=w_{r}\log\frac{B_{t}}{\eta w_{r}}.

Up to an absolute constant, zrz_r bounds the expected cost of the Median and Eliminate calls in that round.

The main cost estimate controls how long each suboptimal arm remains active. In the comparison process of Section 5, if Median succeeds in round rr and every Eliminate call through that round is valid, the next active set has size at most an absolute constant times

1+∣{i≠∗:Δi≤2εr}∣.1+|\{i\neq*:\Delta_i\leq 2\varepsilon_r\}|.

If Median fails for jj additional rounds, the probability of that delay is at most 0.01j0.01^j, whereas the sampling scale grows by 4j4^j. The series

∑j≥0(4⋅0.01)j\sum_{j\geq 0}(4\cdot 0.01)^j

is finite, so these delays change the expected cost by only an absolute factor. Consequently, arms with gaps of order 2−r2^{-r} contribute mainly near round rr. For Bt≥HB_t \geq H, sum zrz_r over executed rounds up to and including the first invalid Eliminate call, or until an earlier stage termination. The active-set and entropy estimates in Lemma 5.1 give

E∑rzr≤CH[log⁡(1/δ)+Ent(I)+1+log⁡(Bt/H)].\mathbb{E}\sum_{r} z_r \leq CH\left[\log(1/\delta)+\mathrm{Ent}(I)+1+\log(B_t/H)\right].

The outer Mean and Fraction calls require a separate summation. The separation between the two fraction thresholds is indexed by the number of rounds remaining. Reindexing from the final round turns the resulting polynomial factor into a summable correction to the geometric round costs; see Lemma 6.1. The resulting sample costs also grow logarithmically with the stage index. The calculation in Lemma 6.2 accounts for this dependence through the term CH(log⁡(1/δ)+Ent(I))CH(\log(1/\delta)+\mathrm{Ent}(I)) together with

CDlog⁡log⁡(ee/g).CD\log\log(e^e/g).

Correctness across stages requires more than a direct union bound, because each stage receives the same total budget for elimination errors. We again use the comparison process. For a budget BB, call the optimal arm and every suboptimal arm satisfying Δi−2>B\Delta_i^{-2} > B hard; call the remaining suboptimal arms easy. A wrong output requires the optimal arm and all but possibly one of the hard suboptimal arms to be removed. Every removal of a hard suboptimal arm occurs before its gap scale is reached. The product guarantee for Eliminate controls these joint premature removals. When there are few hard arms, a localized estimate instead uses

B−1∑i:ieasyΔi−2.B^{-1}\sum_{i:i\text{easy}}\Delta_i^{-2}.

When this ratio is large, an exponential-moment argument shows that acceptance itself is unlikely. Together with the bound on disagreement between the actual and comparison processes, these estimates control the total error across stages; see Section 5.

Finally, Lemma 6.2 shows that a stage accepts with probability at least 199/200 once

Bt≥C{H(log⁡(1/δ)+Ent(I))+Dlog⁡log⁡(ee/g)}.B_t \geq C\left\{H(\log(1/\delta)+\mathrm{Ent}(I))+D\log\log(e^e/g)\right\}.

Beyond this point, the probability of reaching the next stage decreases by a factor at most 1/200, while its sample limit increases by a factor of 100. The successive expected costs therefore decrease by a factor at most 1/2. This proves both almost-sure stopping and the claimed bound on the expected sample size. The construction modifies [3, algorithms 4–5] and is specified in Section 4; its correctness and cost are proved in Sections 5 and 6.

P. M. ARONOW, NATHAN KALLUS, AND PATRICK LOPATTO