Sam Babichenko

Reading notes / Bandits and exploration

Thresholding and good arm identification

Locatelli et al., 2016; Kano et al., 2019

Arms and threshold
KKnumber of arms
aaan arm, one of 1,…,K1,\dots,K
μa\mu_amean reward of arm aa
ξ\xithreshold: an arm is good if its mean reaches it, μa≥ξ\mu_a\ge\xi
Δa\Delta_adistance of arm aa's mean from the threshold, Δa=∣μa−ξ∣\Delta_a=|\mu_a-\xi|
tta round; one sample is taken per round
Na(t)N_a(t)number of samples of arm aa in rounds 1,…,t1,\dots,t
μ^a(t)\hat\mu_a(t)average of the Na(t)N_a(t) rewards of arm aa seen up to round tt
Thresholding (fixed budget)
TTbudget: the total number of samples in the thresholding problem
ε\varepsilonprecision, ε≥0\varepsilon\ge0: arms whose means are within ε\varepsilon of ξ\xi may be classified either way
RRsub-Gaussian scale of the rewards, Eexp⁡(s(X−EX))≤exp⁡(R2s2/2)\mathbb E\exp(s(X-\mathbb EX))\le\exp(R^2s^2/2) for every real ss; R=1/2R=1/2 for rewards in [0,1][0,1]
HHcomplexity of the thresholding problem, H=∑a(Δa+ε)−2H=\sum_a(\Delta_a+\varepsilon)^{-2}; the best achievable error is of order exp⁡(−T/H)\exp(-T/H)
S^\hat Sset of arms the thresholding learner outputs as above the threshold after TT samples
Ba(t)B_a(t)APT's index Ba(t)=Na(t) (∣μ^a(t)−ξ∣+ε)B_a(t)=\sqrt{N_a(t)}\,(|\hat\mu_a(t)-\xi|+\varepsilon); APT samples the arm with the smallest one
ν0\nu^0in Step 1, the unflipped problem: unit-variance Gaussian arms, arm aa at mean Δa\Delta_a above the threshold 0
νa\nu^ain Step 1, the problem ν0\nu^0 with arm aa alone flipped to mean −Δa-\Delta_a
L^a\hat L_ain Step 1, the log-likelihood ratio of arm aa's Na(T)N_a(T) samples under ν0\nu^0 against νa\nu^a
GGin Step 3, the event that every estimate is accurate: ∣μ^a−μa∣≤cT/(HNa)|\hat\mu_a-\mu_a|\le c\sqrt{T/(HN_a)} for every arm at every count Na≤TN_a\le T
ccwidth constant of the event GG in Step 3, c=1/(42)c=1/(4\sqrt{2})
μ∗\mu^*largest mean, μ∗=max⁡aμa\mu^*=\max_a\mu_a, assumed known to the learner in (c)
Hμ∗H_{\mu^*}complexity of best arm identification with μ∗\mu^* known, Hμ∗=∑a:μa≠μ∗(μ∗−μa)−2H_{\mu^*}=\sum_{a:\mu_a\ne\mu^*}(\mu^*-\mu_a)^{-2}
Good arm identification (fixed confidence)
δ\deltaerror level of good arm identification: the largest allowed probability of a wrong report
mmnumber of good arms, those with μa≥ξ\mu_a\ge\xi; unknown to the learner
λ\lambdanumber of good arms the learner wants reported
τλ\tau_\lambdaround of the λ\lambda-th report of a good arm; τλ=τstop\tau_\lambda=\tau_{\rm stop} if fewer than λ\lambda arms are reported
τstop\tau_{\rm stop}round at which the learner stops, concluding that no unreported good arm remains
d(x,y)d(x,y)divergence between Bernoulli arms with means xx and yy, d(x,y)=xlog⁡xy+(1−x)log⁡1−x1−yd(x,y)=x\log\frac{x}{y}+(1-x)\log\frac{1-x}{1-y}
kl(p,q)\mathrm{kl}(p,q)binary relative entropy plog⁡pq+(1−p)log⁡1−p1−qp\log\frac{p}{q}+(1-p)\log\frac{1-p}{1-q}, the same function as dd, used for probabilities in Step 5
La(t)L_a(t)lower confidence bound La(t)=μ^a(t)−log⁡(4KNa(t)2/δ)/(2Na(t))L_a(t)=\hat\mu_a(t)-\sqrt{\log(4KN_a(t)^2/\delta)/(2N_a(t))}; arm aa is reported good when it reaches ξ\xi
Ua(t)U_a(t)upper confidence bound Ua(t)=μ^a(t)+log⁡(4KNa(t)2/δ)/(2Na(t))U_a(t)=\hat\mu_a(t)+\sqrt{\log(4KN_a(t)^2/\delta)/(2N_a(t))}; arm aa is discarded when it falls below ξ\xi
μ~a(t)\tilde\mu_a(t)HDoC's sampling index, μ~a(t)=μ^a(t)+log⁡t/(2Na(t))\tilde\mu_a(t)=\hat\mu_a(t)+\sqrt{\log t/(2N_a(t))}: an upper confidence bound with a log⁡t\log t bonus
Δmin⁡\Delta_{\min}smallest gap that matters, Δmin⁡=min⁡{min⁡aΔa, min⁡l(μl−μl+1)/2}\Delta_{\min}=\min\{\min_a\Delta_a,\ \min_l(\mu_l-\mu_{l+1})/2\}
η\etasmall positive margin in the proofs of Steps 5 and 7, sent to 0 at the end
T0T_0in Step 7, a round count of order Klog⁡(1/δ)K\log(1/\delta); rounds after it are counted separately in the proof
Constants
33constant in the exponent of the thresholding lower bound (a), e−3T/He^{-3T/H}
4log⁡(12(log⁡T+1)K)4\log(12(\log T+1)K)logarithmic term of the thresholding lower bound (a), which is e−3T/H(12(log⁡T+1)K)−4e^{-3T/H}\big(12(\log T+1)K\big)^{-4}
6464constant in the exponent of APT's upper bound (b), −T/(64R2H)-T/(64R^2H)
2log⁡((log⁡T+1)K)2\log((\log T+1)K)logarithmic term added in the exponent of APT's upper bound (b)
3636exponent constant of the known-mean result (c)
4K4Kinside the logarithm of the confidence bounds; makes the union bound sum to δ\delta (Step 6)
Paper symbols
τ\tauLocatelli et al.'s symbol for the threshold ξ\xi
Tk(t)T_k(t)Locatelli et al.'s symbol for Na(t)N_a(t), the number of samples of an arm up to round tt
Δk\Delta_kLocatelli et al.'s symbol for Δa+ε\Delta_a+\varepsilon
ξ\xiLocatelli et al.'s symbol for the event GG of Step 3
BiB^iLocatelli et al.'s symbol for the flipped problem νa\nu^a of Step 1
δ\deltaLocatelli et al.'s symbol for the width constant cc of Step 3
iiKano et al.'s symbol for an arm aa
μ‾i\underline\mu_iKano et al.'s symbol for the lower confidence bound LaL_a
μ‾i\overline\mu_iKano et al.'s symbol for the upper confidence bound UaU_a
Δ\DeltaKano et al.'s symbol for Δmin⁡\Delta_{\min}
ϵ\epsilonKano et al.'s symbol for the margin η\eta

Context. Best arm identification asks which arm is best, so its cost scales with the inverse square of the gap between the top two arms. When those two arms are nearly tied, the cost explodes. Many decisions test options against an absolute bar instead, such as drug doses meeting a clinical response rate or recommendations whose purchase rate covers advertising cost. Locatelli et al. (2016) study the sample arms for a fixed budget of rounds, then classify every arm as above or below a given threshold; the error is the probability of any misclassification, where a learner spends a fixed budget of the budget, the total number of samples in the thresholding problem samples to classify every arm above or below a threshold the threshold an arm's mean reward must reach to count as good. Often a few good options matter more than the single best arm or a full classification, so Kano et al. (2019) pose report arms whose mean is at least the threshold one at a time, each as soon as it is confirmed, with error probability at most δ\delta, and stop once no good arm is left to report. The learner reports arms above ξ\xi one by one as each is confirmed, keeping the error probability at most the error level of good arm identification, the largest allowed probability of a wrong report.

With a threshold, an arm's difficulty depends only on the distance between its mean the mean reward of arm aa and ξ\xi, written Δa\Delta_a=∣μa−ξ∣{}=|\mu_a-\xi|, so arms tied with each other cost nothing extra. A precision the precision, ε≥0\varepsilon\ge0: arms whose means are within ε\varepsilon of ξ\xi may be classified either way allows arms within ε\varepsilon of ξ\xi to go either way, giving the problem complexity HH=∑a(Δa+ε)−2{}=\sum_a(\Delta_a+\varepsilon)^{-2}. Classifying all the number of arms arms within budget TT has best achievable error of order exp⁡(−T/H)\exp(-T/H), up to exponent constants and log factors. Locatelli et al.'s Anytime Parameter-free Thresholding algorithm: sample the arm with the smallest Na(t) (∣μ^a(t)−ξ∣+ε)\sqrt{N_a(t)}\,(|\hat\mu_a(t)-\xi|+\varepsilon), then output the arms whose empirical mean is at least ξ\xi attains this rate without knowing HH, the noise level, or TT. Each round, it pulls the arm minimizing Na(t) (∣μ^a(t)−ξ∣+ε)\sqrt{N_a(t)}\,(|\hat\mu_a(t)-\xi|+\varepsilon), where the number of samples of arm aa in rounds 1,…,t1,\dots,t is arm aa's sample count and the average of the Na(t)N_a(t) rewards from arm aa is its empirical mean.

Finding good arms one at a time avoids paying for the hardest arms upfront. Sort the arms by mean. Confirming the first the number of good arms the learner wants to have reported good arms takes about ∑a≤λlog⁡(1/δ)/(2Δa2)\sum_{a\le\lambda}\log(1/\delta)/(2\Delta_a^2) samples, plus only O(log⁡log⁡(1/δ))O(\log\log(1/\delta)) for each remaining arm. Classifying all KK arms instead costs O(log⁡(1/δ))O(\log(1/\delta)) per arm. Kano et al.'s Hybrid algorithm for the Dilemma of Confidence: sample the arm with the highest upper confidence bound with a log⁡t\log t bonus, and report an arm once its lower confidence bound, built with δ\delta, reaches ξ\xi decouples exploration from confirmation. It samples the arm with the highest upper confidence bound using a log⁡t\log t bonus, and reports an arm once a separate δ\delta-level lower confidence bound passes ξ\xi. In Kano et al.'s ten-arm Bernoulli simulation at δ=0.05\delta=0.05, HDoC reported its first good arm after 114 samples on average, compared to 6,068 for a thresholding sampling rule. Classifying all ten arms took about 10,250 samples for every method.

Setting. Arm aa produces independent rewards with mean μa\mu_a, and tt counts rounds at one sample per round. In the thresholding problem, rewards are Eexp⁡(s(X−EX))≤exp⁡(R2s2/2)\mathbb E\exp(s(X-\mathbb EX))\le\exp(R^2s^2/2) for every real ss: tails at least as light as a Gaussian's with standard deviation RR; rewards in [0,1][0,1] qualify with R=1/2R=1/2, meaning their tails are at least as light as a Gaussian with standard deviation RR. Rewards in [0,1][0,1] qualify with R=1/2R=1/2. After TT samples, the learner outputs a set the set of arms the thresholding learner classifies as above the threshold of arms classified above ξ\xi. It errs if S^\hat S misses an arm with μa≥ξ+ε\mu_a\ge\xi+\varepsilon or includes one with μa<ξ−ε\mu_a\lt \xi-\varepsilon. The complexity H=∑a(Δa+ε)−2H=\sum_a(\Delta_a+\varepsilon)^{-2} sums inverse squared gaps padded by ε\varepsilon, so the arms nearest ξ\xi dominate the sum.

In good arm identification, the arms are Bernoulli, an arm is good if μa≥ξ\mu_a\ge\xi, and the count the number of good arms, those with μa≥ξ\mu_a\ge\xi; unknown to the learner of good arms is unknown. For analysis, index the arms as μ1≥⋯≥μm≥ξ>μm+1≥⋯≥μK\mu_1\ge\dots\ge\mu_m\ge\xi\gt \mu_{m+1}\ge\dots\ge\mu_K, though the learner does not know this order. The learner reports good arms at rounds the rounds at which the learner reports its first, second, ... good arm; τλ\tau_\lambda is the round of the λ\lambda-th report and stops at the round at which the learner concludes that no good arm is left to report; τλ=τstop\tau_\lambda=\tau_{\rm stop} if fewer than λ\lambda arms are reported once it concludes no unreported good arm remains. If it reports fewer than λ\lambda arms, set τλ=τstop\tau_\lambda=\tau_{\rm stop}. A strategy is if at least λ\lambda arms are good, it reports fewer than λ\lambda arms or a bad arm among its first λ\lambda reports with probability at most δ\delta; if fewer are good, it reports λ\lambda or more with probability at most δ\delta if it fails on the first λ\lambda reports with probability at most δ\delta. When m≥λm\ge\lambda, failure means reporting fewer than λ\lambda arms or including a bad arm among the first λ\lambda. When m<λm\lt\lambda, failure means reporting λ\lambda or more arms. A strategy is δ\delta-PAC if this holds for every λ\lambda. Write d(x,y)d(x,y)=xlog⁡(x/y)+(1−x)log⁡((1−x)/(1−y)){}=x\log(x/y)+(1-x)\log((1-x)/(1-y)) for the Bernoulli KL divergence. Gaussian arms with known variance behave the same way.

Main results. (a) No algorithm can beat exp⁡(−3T/H)\exp(-3T/H) (Locatelli et al., Theorem 1). Even a learner told every gap Δa\Delta_a and the reward family errs with probability about exp⁡(−3T/H)\exp(-3T/H) on some instance. Start with unit-variance Gaussian arms, each at distance Δa\Delta_a above the threshold, and form KK more instances by flipping a single arm in each to the same distance below it. All K+1K+1 instances share the same HH. For every algorithm and every TT, at least one instance hasP(error)≥e−3T/H×(12(log⁡T+1)K)−4.\begin{aligned}P(\text{error})&\ge e^{-3T/H}\\&\quad\times\big(12(\log T+1)K\big)^{-4}.\end{aligned}

(b) APT attains it (Locatelli et al., Theorem 2). For why: APT first samples each arm once, and the proof (Step 3) needs the remaining T−KT-K rounds to be at least half the budget and RR-sub-Gaussian arms with any RR, APT errs with probability at mostexp⁡(−T64R2H+2log⁡((log⁡T+1)K)).\begin{aligned}\exp\Big(&-\frac{T}{64R^2H}\\&+2\log\big((\log T+1)K\big)\Big).\end{aligned}Once TT is of larger order than HR2log⁡((log⁡T+1)K)HR^2\log((\log T+1)K), bounds (a) and (b) pin the minimax error at exp⁡(−Θ(T/H))\exp(-\Theta(T/H)) over problems with complexity at most HH and noise scale at most RR. APT is therefore optimal up to the constant in the exponent. It needs only ξ\xi and ε\varepsilon as inputs, and it can be stopped at any time.

(c) A known best mean turns best arm identification into thresholding (Locatelli et al., Theorems 3 and 4). Suppose the best mean the largest mean, max⁡aμa\max_a\mu_a, here assumed known to the learner is known and T≥2KT\ge2K. Run APT with ξ=μ∗\xi=\mu^* and ε=0\varepsilon=0, then recommend the most-sampled arm. It names the best arm with error at most exp⁡(−T/(36R2Hμ∗)+2log⁡((log⁡T+1)K))\exp(-T/(36R^2H_{\mu^*})+2\log((\log T+1)K)), where Hμ∗=∑a:μa≠μ∗(μ∗−μa)−2H_{\mu^*}=\sum_{a:\mu_a\ne\mu^*}(\mu^*-\mu_a)^{-2}. The same run incurs the expected reward lost, over the TT rounds, against sampling the best arm every round. Reading note: UCB and Thompson sampling at most of order ∑aR2log⁡T/(μ∗−μa)\sum_aR^2\log T/(\mu^*-\mu_a), matching upper confidence bound: play the arm whose average reward plus a bonus is largest, the bonus shrinking as the arm is played more. Reading note: UCB and Thompson sampling. Without knowing μ∗\mu^*, no strategy achieves both at once (Bubeck et al., 2009, cited there).

(d) The cost of the first λ\lambda good arms (Kano et al., Theorem 1). Because a learner may choose which good arms to report, the lower bound counts only the λ\lambda arms furthest above ξ\xi. Under any (λ,δ)(\lambda,\delta)-PAC algorithm, if m≥λm\ge\lambda,E[τλ]≥∑a=1λlog⁡(1/(2δ))d(μa,ξ)−md(μλ,ξ).\mathbb E[\tau_\lambda]\ge\sum_{a=1}^\lambda\frac{\log(1/(2\delta))}{d(\mu_a,\xi)}-\frac{m}{d(\mu_\lambda,\xi)}.

(e) HDoC nearly attains it (Kano et al., Theorems 2 and 3 and Corollary 1). HDoC is δ\delta-PAC. When λ≤m\lambda\le m and why: HDoC samples the other arms only until their upper confidence bounds fall below μλ\mu_\lambda, which takes about log⁡t/(2(μλ−μa)2)\log t/(2(\mu_\lambda-\mu_a)^2) samples (Step 7) and is unbounded when the λ\lambda-th and (λ+1)(\lambda+1)-th means tie,lim sup⁡δ→0E[τλ]log⁡(1/δ)≤∑a=1λ12Δa2.\limsup_{\delta\to0}\frac{\mathbb E[\tau_\lambda]}{\log(1/\delta)}\le\sum_{a=1}^\lambda\frac{1}{2\Delta_a^2}.The same bound holds for τstop\tau_{\rm stop} with the sum over all KK arms. More precisely,Δmin⁡2 E[τλ]=O(λlog⁡1δ+(K−λ)log⁡log⁡1δ+Klog⁡KΔmin⁡),\begin{aligned}\Delta_{\min}^2\,\mathbb E[\tau_\lambda]=O\Big(&\lambda\log\tfrac{1}{\delta}\\&+(K-\lambda)\log\log\tfrac{1}{\delta}\\&+K\log\tfrac{K}{\Delta_{\min}}\Big),\end{aligned}where Δmin⁡\Delta_{\min}=min⁡{min⁡aΔa,min⁡l(μl−μl+1)/2}{}=\min\{\min_a\Delta_a,\min_l(\mu_l-\mu_{l+1})/2\} is the smallest distance to the threshold or half-gap between adjacent arms. By Pinsker's inequality, d(μa,ξ)≥2Δa2d(\mu_a,\xi)\ge2\Delta_a^2, so the leading term matches (d) up to the ratio d(μa,ξ)/(2Δa2)d(\mu_a,\xi)/(2\Delta_a^2), which is near 1 when means lie near 1/2. The authors expect confidence bounds built from dd to close this gap.

Consequences and limits. When only a few good options are needed, such as viable drug doses, HDoC separates sampling from reporting. It samples by a regret-style upper confidence bound and reports once a separate lower bound clears ξ\xi. The cost then scales with λ\lambda and grows only slowly with KK. Classifying every arm instead allocates samples in proportion to (Δa+ε)−2(\Delta_a+\varepsilon)^{-2}, so arms near the threshold dominate. APT reaches that allocation without knowing HH or RR, whereas confidence-bound rules need both for tuning.

An arm whose mean sits exactly at the threshold is classified only with probability of order δ/K\delta/K, so τstop\tau_{\rm stop} is infinite with high probability. A sampling rule that prioritizes arms near ξ\xi can then spend almost all its budget on that arm. At practical δ\delta, the (K−λ)log⁡log⁡(1/δ)(K-\lambda)\log\log(1/\delta) term remains a visible part of HDoC's cost, and HDoC's O(⋅)O(\cdot) bound says nothing when μλ≈μλ+1\mu_\lambda\approx\mu_{\lambda+1}. For thresholding, the upper and lower bounds leave a wide constant gap in the exponent, 1/64 against 3 when R=1R=1. The minimax match holds over the class of instances with a given complexity. The identification rule's union bound over all sample counts is conservative. Kano et al. note that bounds based on the for a sum SnS_n of nn i.i.d. mean-zero terms with variance σ2\sigma^2, lim sup⁡nSn/2σ2nlog⁡log⁡n=1\limsup_nS_n/\sqrt{2\sigma^2n\log\log n}=1 almost surely: the largest fluctuations exceed n\sqrt n only by a log⁡log⁡n\sqrt{\log\log n} factor perform better in practice. Both papers rest on simulation evidence only, including two dose-finding settings in Kano et al. built from published trials.

Step 1

Even a learner told every gap errs with probability about exp⁡(−3T/H)\exp(-3T/H) on one of K+1K+1 problems that differ by flipping one arm. Set ξ=0\xi=0, ε=0\varepsilon=0, and take unit-variance Gaussian arms. In problem ν0\nu^0, arm aa has mean Δa\Delta_a; in problem νa\nu^a, arm aa alone flips to −Δa-\Delta_a. Each sample of arm aa carries KL divergence (2Δa)2/2=2Δa2(2\Delta_a)^2/2=2\Delta_a^2 between ν0\nu^0 and νa\nu^a. Let AaA_a be the event that arm aa is classified above 0, which is an error under νa\nu^a. Because ν0\nu^0 and νa\nu^a differ only on arm aa, changing measure givesPνa(Aa)=Eν0[1Aae−L^a],P_{\nu^a}(A_a)=\mathbb E_{\nu^0}\big[\mathbb 1_{A_a}e^{-\hat L_a}\big],where L^a\hat L_a is the log-likelihood ratio of arm aa's Na(T)N_a(T) samples. Under ν0\nu^0, the log-likelihood ratio of arm aa's first nn samples has mean 2Δa2n2\Delta_a^2n and standard deviation 2Δan2\Delta_a\sqrt{n}. A cutting the possible sample counts into ranges [2k,2k+1)[2^k,2^{k+1}), bounding the deviation within each range, and adding the bounds, at the cost of a factor of about log⁡T\log T keeps L^a\hat L_a within 4ΔaNa(T)log⁡(4(log⁡T+1)K)4\Delta_a\sqrt{N_a(T)\log(4(\log T+1)K)} of 2Δa2Na(T)2\Delta_a^2N_a(T) uniformly over all counts and arms, which produces the log⁡((log⁡T+1)K)\log((\log T+1)K) factor.

Since the sample counts sum to T=∑aT/(HΔa2)T=\sum_aT/(H\Delta_a^2), every run leaves some arm with Na(T)≤T/(HΔa2)N_a(T)\le T/(H\Delta_a^2). Apply 2xy≤x2+y22xy\le x^2+y^2 with x=ΔaNa(T)x=\Delta_a\sqrt{N_a(T)} and y=2log⁡(4(log⁡T+1)K)y=2\sqrt{\log(4(\log T+1)K)}. The fluctuation splits into Δa2Na(T)\Delta_a^2N_a(T) plus 4log⁡(4(log⁡T+1)K)4\log(4(\log T+1)K), and adding Δa2Na(T)\Delta_a^2N_a(T) to 2Δa2Na(T)2\Delta_a^2N_a(T) turns the 2 into 3. On the event that every arm is classified above 0, average the error probabilities over aa. That under-sampled arm alone contributes e−3Δa2Na≥e−3T/He^{-3\Delta_a^2N_a}\ge e^{-3T/H}, and the logarithmic term combines with the 1/K1/K from averaging to give the polynomial factor in (a). Either ν0\nu^0 errs with probability at least 1/2, or every arm is classified above 0 with probability at least 1/2 under ν0\nu^0 and some νa\nu^a errs with probability at least e−3T/H(12(log⁡T+1)K)−4e^{-3T/H}(12(\log T+1)K)^{-4}. Shifting means to ξ\xi and adding ε\varepsilon to the gaps extends the bound to the general case.

Step 2

APT samples the arm whose estimated Na(Δa+ε)2N_a(\Delta_a+\varepsilon)^2 is smallest, which needs no knowledge of HH, RR, or TT. Step 1's pigeonhole bound shows that the balancing allocation equalizes Na(Δa+ε)2N_a(\Delta_a+\varepsilon)^2 across arms. An oracle knowing the gaps would give arm aa exactly T(Δa+ε)−2/HT(\Delta_a+\varepsilon)^{-2}/H samples, setting Na(Δa+ε)2=T/HN_a(\Delta_a+\varepsilon)^2=T/H for every arm. Each empirical mean then lands within (Δa+ε)/2(\Delta_a+\varepsilon)/2 of μa\mu_a except with probability at most 2exp⁡(−T/(8R2H))2\exp(-T/(8R^2H)) (computed here). That accuracy classifies every arm outside the ε\varepsilon-band. APT pursues this allocation from empirical estimates. After one pull of each arm, each round samplesarg⁡min⁡a Ba(t),Ba(t)=Na(t) (∣μ^a(t)−ξ∣+ε),\begin{aligned}&\arg\min_a\ B_a(t),\\&B_a(t)=\sqrt{\htmlData{gr=g12}{N_a(t)}}\,\big(|\hat\mu_a(t)-\xi|+\varepsilon\big),\end{aligned}and at time TT outputs S^={a:μ^a(T)≥ξ}\hat S=\{a:\hat\mu_a(T)\ge\xi\}. For an arm far from the threshold, the index APT's index Na(t) (∣μ^a(t)−ξ∣+ε)\sqrt{N_a(t)}\,(|\hat\mu_a(t)-\xi|+\varepsilon), an estimate of Na(t) (Δa+ε)\sqrt{N_a(t)}\,(\Delta_a+\varepsilon) grows quickly, so APT leaves it alone. An arm near the threshold keeps a small index and keeps being sampled. A confidence-bound method for the same problem instead needs HH and a bound on RR to set its exploration constant.

Step 3

On a likely event every arm receives at least T/(8H(Δa+ε)2)T/(8H(\Delta_a+\varepsilon)^2) samples, which is enough to classify it. Set c=1/(42)c=1/(4\sqrt{2}) and let GG be the event that ∣μ^a−μa∣≤cT/(HNa)|\hat\mu_a-\mu_a|\le c\sqrt{T/(HN_a)} for every arm at every count Na≤TN_a\le T. Peeling over dyadic count ranges with the for partial sums SkS_k of nn independent mean-zero RR-sub-Gaussian terms, P(max⁡k≤nSk≥x)≤e−x2/(2nR2)P(\max_{k\le n}S_k\ge x)\le e^{-x^2/(2nR^2)}: the running maximum has the tail of the final sum gives P(Gc)≤2(log⁡T+1)Kexp⁡(−c2T/(2R2H))P(G^c)\le2(\log T+1)K\exp(-c^2T/(2R^2H)), where c2/2=1/64c^2/2=1/\htmlData{gr=gn11}{64}. On GG, the triangle inequality keeps Ba(t)B_a(t) within cT/Hc\sqrt{T/H} of Na(t) (Δa+ε)\sqrt{N_a(t)}\,(\Delta_a+\varepsilon) for every arm and round. The pulls beyond the initial KK samples sum to T−K≥T/2T-K\ge T/2, so some arm kk satisfies Nk(T)−1≥T/(2H(Δk+ε)2)N_k(T)-1\ge T/(2H(\Delta_k+\varepsilon)^2). At the last round tt when kk was pulled, its count was Nk(T)−1N_k(T)-1 and its index was smallest. Write BaB_a for Ba(t)B_a(t). Since Na(t)≤Na(T)N_a(t)\le N_a(T), event GG givesBk≥(1/2−c)T/H,Bk≤Ba≤Na(T)(Δa+ε)+cT/H\begin{aligned}B_k&\ge(1/\sqrt{2}-c)\sqrt{T/H},\\B_k&\le B_a\\&\le\sqrt{N_a(T)}(\Delta_a+\varepsilon)+c\sqrt{T/H}\end{aligned}for every arm aa. Rearranging yields Na(T)≥(1/2−2c)2T/(H(Δa+ε)2)=T/(8H(Δa+ε)2)N_a(T)\ge(1/\sqrt{2}-2c)^2T/(H(\Delta_a+\varepsilon)^2)=T/(8H(\Delta_a+\varepsilon)^2). On GG, that sample count puts μ^a(T)\hat\mu_a(T) within c8(Δa+ε)=(Δa+ε)/2c\sqrt{8}(\Delta_a+\varepsilon)=(\Delta_a+\varepsilon)/2 of μa\mu_a, which falls on the right side of ξ\xi for every arm at distance at least ε\varepsilon from ξ\xi. APT makes no error on GG.

The known-mean result (c) uses the same last-round argument. With ξ=μ∗\xi=\mu^* and ε=0\varepsilon=0, the best arm's estimated gap stays near 0 so its index stays small, while each suboptimal arm's index grows like Na (μ∗−μa)\sqrt{N_a}\,(\mu^*-\mu_a). On a likely event, each suboptimal arm therefore receives fewer than T/(2Hμ∗(μ∗−μa)2)T/(2\htmlData{gr=gn4}{H_{\mu^*}}(\mu^*-\mu_a)^2) samples. Those counts sum to less than T/2T/2, so the best arm takes more than half the pulls and finishes as the most-sampled arm.

Step 4

In simulations APT is beaten only by a confidence-bound method that is given the complexity and its best tuning. Locatelli et al. run 5,000 games with K=10K=10 Bernoulli arms, ξ=1/2\xi=1/2, ε=0.1\varepsilon=0.1, and horizons up to T=500T=500. They test three mean profiles: three groups, an arithmetic progression, and a geometric progression away from ξ\xi. They compare APT against uniform allocation, the combinatorial a fixed-budget scheme that splits the budget into phases, samples every surviving arm equally within a phase, and drops the empirically worst arm at each phase's end (Audibert et al., 2010) method CSAR, and UCBE. UCBE is a confidence-bound rule whose exploration constant they set to (T−K)/H(T-K)/H times 1/4, 1, or 256. Only UCBE at the constant suggested by its analysis matched or beat APT, and that setting requires knowing HH. Its other two settings fared about as poorly as uniform allocation. The paper reports log-error plots against TT without a table, and Gaussian arms with variance 0.25 behave the same way.

Step 5

The good-arm lower bound lets the algorithm choose which good arms to report, and the cheapest choice is the λ\lambda arms furthest above the threshold. Fix a good arm jj and a small a small positive margin in the proofs of Steps 5 and 7, sent to 0 at the end. Form a modified bandit by moving arm jj alone to ξ−η\xi-\eta, just below the threshold. Let pjp_j be the probability that jj appears among the first λ\lambda reports in the original bandit. In the modified bandit, arm jj is bad, so it appears among the first λ\lambda reports with probability at most δ\delta. When pj≥δp_j\ge\delta, Kaufmann et al.'s (2016) change-of-measure inequality givesE[Nj(τλ)] d(μj,ξ−η)≥kl(pj,δ)≥pjlog⁡1δ−log⁡2.\begin{aligned}&\mathbb E[N_j(\htmlData{gr=gn5}{\tau_\lambda})]\,d(\mu_j,\xi-\eta)\\&\quad\ge\mathrm{kl}(p_j,\delta)\ge p_j\log\tfrac{1}{\delta}-\log2.\end{aligned}Here the binary relative entropy plog⁡pq+(1−p)log⁡1−p1−qp\log\frac{p}{q}+(1-p)\log\frac{1-p}{1-q}, the divergence between Bernoulli laws with means pp and qq is the binary relative entropy, the same function as dd.

Unlike best arm identification, no single pjp_j has to sit near 1. A (λ,δ)(\lambda,\delta)-PAC algorithm only needs to report some λ\lambda good arms, so the first λ\lambda reports are all good with probability at least 1−δ1-\delta. Summing over the good arms gives ∑j≤mpj≥λ(1−δ)\sum_{j\le m}p_j\ge\lambda(1-\delta) with 0≤pj≤10\le p_j\le1. Since τλ≥∑j≤mNj(τλ)\tau_\lambda\ge\sum_{j\le m}N_j(\tau_\lambda), E[τλ]\mathbb E[\tau_\lambda] is at least the minimum of ∑j≤mmax⁡(pjlog⁡(1/δ)−log⁡2,0)/d(μj,ξ−η)\sum_{j\le m}\max(p_j\log(1/\delta)-\log2,0)/d(\mu_j,\xi-\eta) over all p∈[0,1]mp\in[0,1]^m meeting that sum constraint. That minimization is a linear program. Its solution puts the mass on the λ\lambda arms with the largest divergences, which are the λ\lambda best arms. Evaluating a feasible point of the dual and sending η→0\eta\to0 yields (d).

Step 6

Declaring an arm when its confidence bound crosses ξ\xi is δ\delta-PAC for any sampling rule. Every algorithm Kano et al. compare shares this identification rule. An algorithm reports arm aa as good once its lower confidence boundLa(t)=μ^a(t)−log⁡(4KNa(t)2/δ)2Na(t)L_a(t)=\hat\mu_a(t)-\sqrt{\frac{\log(4KN_a(t)^2/\delta)}{2N_a(t)}}reaches ξ\xi. It discards arm aa once the upper confidence bound the upper confidence bound μ^a(t)+log⁡(4KNa(t)2/δ)/(2Na(t))\hat\mu_a(t)+\sqrt{\log(4KN_a(t)^2/\delta)/(2N_a(t))}; La(t)L_a(t) is the same with a minus sign, the same formula with a plus sign, falls below ξ\xi. At any fixed sample count nn, arm aa's nn-th empirical mean has the same i.i.d. distribution regardless of the sampling rule, so Hoeffding's inequality bounds a one-sided failure at count nn by δ/(4Kn2)\delta/(4Kn^2). Summing over n≥1n\ge1 gives ∑nδ/(4Kn2)=π2δ/(24K)≤δ/K\sum_n\delta/(4Kn^2)=\pi^2\delta/(24K)\le\delta/K for a good arm's upper bound ever dropping below ξ\xi, and the same bound holds for a bad arm's lower bound exceeding ξ\xi. A union bound over all KK arms establishes both halves of the (λ,δ)(\lambda,\delta)-PAC condition for every λ\lambda. The sampling rule therefore affects only speed. Every arm must be classified before τstop\tau_{\rm stop}, so the τstop\tau_{\rm stop} bound in (e) holds for every sampling rule. As a result, all methods in Step 8 stop at about the same time.

Step 7

Sampling by an upper confidence bound with a log⁡t\log t bonus keeps the arms outside the top λ\lambda at O(log⁡log⁡(1/δ))O(\log\log(1/\delta)) samples each. To first order, arm aa needs log⁡(1/δ)/(2Δa2)\log(1/\delta)/(2\Delta_a^2) samples before Step 6's confidence radius shrinks below Δa\Delta_a and allows a report. To report a good arm quickly, the learner can keep pulling the arm most likely to be good until its lower bound clears ξ\xi. Yet the current leader may be bad, or another arm may confirm faster, a tension Kano et al. call the in good arm identification, the choice between sampling the current leader to raise confidence that it is good and sampling other arms that may be easier to confirm. HDoC pulls the unclassified arm with the largest regret-style upper confidence bound,μ~a(t)=μ^a(t)+log⁡t2Na(t).\tilde\mu_a(t)=\hat\mu_a(t)+\sqrt{\frac{\log t}{2N_a(t)}}.LUCB-G instead adapts the best-arm rule and pulls the arm with the largest Ua(t)U_a(t), whose bonus scales with log⁡(1/δ)\log(1/\delta). Since the run finishes within t=O(log⁡(1/δ))t=O(\log(1/\delta)) rounds with high probability, HDoC's bonus satisfies log⁡t=O(log⁡log⁡(1/δ))\log t=O(\log\log(1/\delta)). Any arm aa below μλ\mu_\lambda is therefore pulled only until μa+log⁡t/(2Na)\mu_a+\sqrt{\log t/(2N_a)} drops below μλ\mu_\lambda, which takes about log⁡t/(2(μλ−μa)2)=O(log⁡log⁡(1/δ))\log t/(2(\mu_\lambda-\mu_a)^2)=O(\log\log(1/\delta)) samples. LUCB-G's log⁡(1/δ)\log(1/\delta) bonus instead pulls that arm O(log⁡(1/δ))O(\log(1/\delta)) times.

The proof splits τλ\tau_\lambda into four counts using a horizon T0T_0 of order Klog⁡(1/δ)K\log(1/\delta) and a small margin η>0\eta\gt0. First, each of the top λ\lambda arms takes at most log⁡(1/δ)/(2(Δa−η)2)\log(1/\delta)/(2(\Delta_a-\eta)^2) samples to first order, plus 1/(2η2)1/(2\eta^2) by Hoeffding's inequality. Second, up to round T0T_0, while the leading index stays at least μλ−η\mu_\lambda-\eta, each remaining arm a>λa\gt\lambda is pulled at most log⁡T0/(2(μλ−μa−2η)2)\log T_0/(2(\mu_\lambda-\mu_a-2\eta)^2) times. The proof bounds the remaining two expected counts separately: rounds up to T0T_0 where the leading index dips below μλ−η\mu_\lambda-\eta, and rounds after T0T_0. Dividing by log⁡(1/δ)\log(1/\delta), letting δ→0\delta\to0, and then sending η→0\eta\to0 yields (e).

Step 8

In simulations HDoC reports its first good arms much sooner than a rule taken from thresholding, and every rule finishes at about the same time. Kano et al. average 1,000 runs per setting after five initial pulls per arm, at δ=0.05\delta=0.05 and 0.005. They test two dose-finding trials and three thresholding-style benchmarks, two of them from Locatelli et al. Their first ten-arm Bernoulli benchmark sets ξ=0.5\xi=0.5, with three arms at 0.1, four at 0.35, 0.45, 0.55, and 0.65, and three at 0.9. At δ=0.05\delta=0.05, HDoC reported the first good arm after 114.0 samples, LUCB-G after 134.4, and APT-G after 6,067.5, while all three stopped near 10,250. Here APT-G pulls the arm minimizing Na ∣μ^a−ξ∣\sqrt{N_a}\,|\hat\mu_a-\xi|. Roughly, APT-G equalizes Na ∣μ^a−ξ∣\sqrt{N_a}\,|\hat\mu_a-\xi|, so NaN_a scales like 1/Δa21/\Delta_a^2. Each arm at 0.45 or 0.55 then draws (0.4/0.05)2=64(0.4/0.05)^2=\htmlData{gr=gn11}{64} pulls for every pull of an arm at 0.9. An arm at 0.9 needs about 45 pulls for its lower bound to clear 0.5, so APT-G's first report waits for roughly 64×45≈2,90064\times45\approx2{,}900 pulls on each of those two near-threshold arms. HDoC instead pulls the 0.9 arms first. Those same two near-threshold arms set the common stopping time, because Step 6's rule needs about 4,700 pulls to classify each one under any sampling rule.

The gap persists on harder instances. With three arms at 0.55 and seven at 0.45 around ξ=0.5\xi=0.5, HDoC found the first good arm in 7,081 samples, LUCB-G in 10,333, and APT-G in 44,326. A secukinumab dose-finding setting with ξ=0.5\xi=0.5 has response rate 0.36 for placebo and 0.34, 0.469, 0.465, and 0.537 for four doses, so only the highest dose is good. HDoC and LUCB-G found it after about 10,200 and 10,500 samples, against 30,800 for APT-G.

In the six-arm arithmetic setting with means 0.1 to 0.6 and ξ=0.35\xi=0.\htmlData{gr=gn9}{3}5, HDoC's second report had higher variance, averaging 825.8±1,048.7825.8\pm1{,}048.7 samples (mean and standard deviation) against 763.7±260.4763.7\pm260.4 for LUCB-G. In a second dose-finding problem with Gaussian arms, one dose sits exactly at the threshold. That dose is classified only with probability of order δ/K\delta/K, so with high probability neither the third report nor the final stop ever arrives. HDoC and LUCB-G still reported the two clearly good doses, whereas APT-G kept pulling the arm at the threshold and reported no good arm within 100,000 samples in almost all runs. On that same problem, HDoC's first two reports approach the asymptotic lower bound as log⁡(1/δ)\log(1/\delta) grows to 50. At δ=0.05\delta=0.05 and 0.005, the log⁡log⁡(1/δ)\log\log(1/\delta) term remains a visible part of the cost.

Terms

Thresholding bandit
fixed budget TT; classify every arm above or below ξ\xi, precision ε\varepsilon
Complexity HH
∑a(∣μa−ξ∣+ε)−2\sum_a(|\mu_a-\xi|+\varepsilon)^{-2}; best error exp⁡(−Θ(T/H))\exp(-\Theta(T/H))
APT
sample arg⁡min⁡aNa(∣μ^a−ξ∣+ε)\arg\min_a\sqrt{N_a}(|\hat\mu_a-\xi|+\varepsilon); no HH, RR or TT needed; error ≤e−T/(64R2H)\le e^{-T/(64R^2H)} up to log terms
Balanced allocation
Na(Δa+ε)2N_a(\Delta_a+\varepsilon)^2 equal across arms
Good arm identification
report arms with μa≥ξ\mu_a\ge\xi one at a time, error at most δ\delta
GAI lower bound
E[τλ]≳∑a≤λlog⁡(1/δ)/d(μa,ξ)\mathbb E[\tau_\lambda]\gtrsim\sum_{a\le\lambda}\log(1/\delta)/d(\mu_a,\xi): only the λ\lambda best arms
HDoC
sample by μ^a+log⁡t/(2Na)\hat\mu_a+\sqrt{\log t/(2N_a)}; report when La≥ξL_a\ge\xi; ∑a≤λlog⁡(1/δ)/(2Δa2)\sum_{a\le\lambda}\log(1/\delta)/(2\Delta_a^2) plus O(log⁡log⁡(1/δ))O(\log\log(1/\delta)) per other arm
Dilemma of confidence
sample the leader to confirm it, or other arms that may be confirmed sooner
Known best mean
thresholding at μ∗\mu^* identifies the best arm and keeps UCB-order regret
Arm at the threshold
classified only with probability of order δ/K\delta/K; τstop=∞\tau_{\rm stop}=\infty with high probability

Sources

Connected notes

  • Expected reward is linear in the policy, so its maximum is a vertex of the simplex, all mass on the best sequence, even for a reward that ranks every sequence correctly; the KL penalty makes the target the tilt πrefer/β/Z\pi_{\rm ref}e^{r/\beta}/Z, which puts mass wherever the reference does and concentrates on the best sequences only as β→0\beta\to0.

  • On a 0/1 reward, RL raises the chance pxp_x of solving problems the model often solves and can push it to zero on problems it rarely solves; in Yue et al.'s runs the starting model overtakes the trained one in pass@kk as kk grows, and longer training raises pass@1 while pass@256 falls.

  • Classifier-confidence distillation collapses images onto typical prototypes and attraction-only drifting reduces to mean shift on density peaks (FID 177 against 8.5), while adding repulsion between synthetic views spreads ten images across each class and raises SigLIP2 coverage from under 10% to 77.0%.

  • Standard policy gradients push answers in proportion to their probability and create rank bias that favors popular proofs, whereas unlikeliness rewards, pass@kk objectives weighting prompts by k(1−q)k−1k(1-q)^{k-1}, and RepExp's novelty bonus keep rarer solutions in play.

Threads