Sam Babichenko

Reading notes / Bandits and exploration

Best arm identification

Garivier and Kaufmann, 2016; Kaufmann et al., 2016; Kalyanakrishnan et al., 2012

Bandit and strategy
KKnumber of arms
aaan arm, one of 1,…,K1,\dots,K
bba second arm, compared with arm aa (as in Za,bZ_{a,b})
νa\nu_areward distribution of arm aa, a member of a one-parameter exponential family, so fixed by its mean μa\mu_a
μa\mu_amean reward of arm aa
μ\muvector of means μ=(μ1,…,μK)\mu=(\mu_1,\dots,\mu_K); a bandit is identified with it
μ′\mu'an alternative bandit, given by its vector of means μ′=(μ1′,…,μK′)\mu'=(\mu'_1,\dots,\mu'_K)
σ2\sigma^2common variance of Gaussian arms, known to the experimenter
σ1,σ2\sigma_1,\sigma_2standard deviations of the two arms' Gaussian rewards in the two-arm results, known and possibly different
a∗(μ)a^*(\mu)best arm of the bandit μ\mu, a∗(μ)=arg⁡max⁡aμaa^*(\mu)=\arg\max_a\mu_a, assumed unique
Δa\Delta_agap of arm aa, Δa=μ1−μa\Delta_a=\mu_1-\mu_a with arms sorted, and Δ1=Δ2\Delta_1=\Delta_2
tta round, equal to the number of samples taken so far
AtA_tarm sampled at round tt, chosen from the data of rounds 1,…,t−11,\dots,t-1
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
δ\deltaerror level: the largest allowed probability of naming an arm that is not the best
τδ\tau_\deltastopping time: the round at which the strategy stops, decided by the data up to that round
a^\hat aarm the strategy names when it stops
Eμ\mathbb E_\muexpectation when the arms have means μ\mu
PμP_\muprobability when the arms have means μ\mu
Information and the lower bound
KL\mathrm{KL}Kullback-Leibler divergence, KL(p,q)=∫log⁡dpdq dp\mathrm{KL}(p,q)=\int\log\frac{dp}{dq}\,dp
d(x,y)d(x,y)KL divergence from the family member with mean xx to the member with mean yy; (x−y)2/(2σ2)(x-y)^2/(2\sigma^2) for Gaussian arms, kl(x,y)\mathrm{kl}(x,y) for Bernoulli arms
kl(p,q)\mathrm{kl}(p,q)binary relative entropy, kl(p,q)=plog⁡pq+(1−p)log⁡1−p1−q\mathrm{kl}(p,q)=p\log\frac{p}{q}+(1-p)\log\frac{1-p}{1-q}: the divergence between Bernoulli laws with means pp and qq
Alt(μ)\mathrm{Alt}(\mu)set of alternative bandits μ′\mu' whose best arm differs from a∗(μ)a^*(\mu)
w∈ΣKw\in\Sigma_Ksampling proportions: wa≥0w_a\ge0 is the fraction of samples given to arm aa, and ∑awa=1\sum_aw_a=1, so ww lies in the simplex ΣK\Sigma_K
w∗(μ)w^*(\mu)optimal sampling proportions, the ww attaining the supremum that defines 1/T∗(μ)1/T^*(\mu); wa∗(μ)w^*_a(\mu) is the long-run share of arm aa under an optimal strategy
T∗(μ)T^*(\mu)characteristic time, 1/T∗(μ)=sup⁡w∈ΣKinf⁡μ′∈Alt(μ)∑awa d(μa,μa′)1/T^*(\mu)=\sup_{w\in\Sigma_K}\inf_{\mu'\in\mathrm{Alt}(\mu)}\sum_aw_a\,d(\mu_a,\mu'_a): the minimal expected cost is T∗(μ)log⁡(1/δ)T^*(\mu)\log(1/\delta) as δ→0\delta\to0
μˉa\bar\mu_aweighted mean of arm 1 and arm aa under the plan ww, μˉa=(w1μ1+waμa)/(w1+wa)\bar\mu_a=(w_1\mu_1+w_a\mu_a)/(w_1+w_a) (Step 3)
xax_aratio xa=wa/w1x_a=w_a/w_1 of arm aa's share to the best arm's (Step 3)
ga(x)g_a(x)ga(x)=d(μ1,μˉa)+x d(μa,μˉa)g_a(x)=d(\mu_1,\bar\mu_a)+x\,d(\mu_a,\bar\mu_a) with μˉa=(μ1+xμa)/(1+x)\bar\mu_a=(\mu_1+x\mu_a)/(1+x): arm aa's bracket divided by w1w_1, at the ratio xx (Step 3)
yycommon value ga(xa)=yg_a(x_a)=y of the brackets divided by w1w_1 at the optimal plan (Step 3)
LρL_\rholog-likelihood ratio of the data up to a stopping time ρ\rho under one bandit against another (Step 1)
Stopping and tracking
Za,b(t)Z_{a,b}(t)log generalized likelihood ratio of μa≥μb\mu_a\ge\mu_b against μa≤μb\mu_a\le\mu_b at round tt, Na d(μ^a,μ^a,b)+Nb d(μ^b,μ^a,b)N_a\,d(\hat\mu_a,\hat\mu_{a,b})+N_b\,d(\hat\mu_b,\hat\mu_{a,b}) when μ^a≥μ^b\hat\mu_a\ge\hat\mu_b
Z(t)Z(t)Chernoff's stopping statistic, Z(t)=max⁡amin⁡b≠aZa,b(t)Z(t)=\max_a\min_{b\ne a}Z_{a,b}(t): the evidence for the empirical best arm against its closest rival
μ^a,b\hat\mu_{a,b}pooled mean of arms aa and bb, μ^a,b=(Naμ^a+Nbμ^b)/(Na+Nb)\hat\mu_{a,b}=(N_a\hat\mu_a+N_b\hat\mu_b)/(N_a+N_b)
β(t,δ)\beta(t,\delta)stopping threshold: the rule stops once Z(t)Z(t) exceeds it; log⁡(2(K−1)t/δ)\log(2(K-1)t/\delta) for Bernoulli arms
ηs\eta_sminimum share in C-tracking at round ss, ηs=(K2+s)−1/2/2\eta_s=(K^2+s)^{-1/2}/2: each target is projected so every arm gets at least this
Tolerance
ε\varepsilontolerance: any arm whose mean is at least the best mean minus ε\varepsilon is acceptable
HHLUCB's problem complexity, H=∑a1/max⁡(Δa,ε/2)2H=\sum_a1/\max(\Delta_a,\varepsilon/2)^2
Constants
2.42.4constant in kl(δ,1−δ)≥log⁡(1/(2.4δ))\mathrm{kl}(\delta,1-\delta)\ge\log(1/(2.4\delta)), which makes the lower bounds non-asymptotic
α\alphaexponent of the threshold log⁡(Ctα/δ)\log(Ct^\alpha/\delta) for general exponential families, α>1\alpha\gt 1, Main results (b)
CCconstant of the threshold log⁡(Ctα/δ)\log(Ct^\alpha/\delta) for general exponential families, C=C(α,K)C=C(\alpha,K), Main results (b)
ε′\varepsilon'in Step 6, how far w∗w^* may move from w∗(μ)w^*(\mu) for bandits in the small box around μ\mu
Cε′(μ)C_{\varepsilon'}(\mu)in Step 6, the rate at which Z(t)Z(t) grows inside the box around μ\mu, Z(t)≥tCε′(μ)Z(t)\ge tC_{\varepsilon'}(\mu); it tends to 1/T∗(μ)1/T^*(\mu) as ε′→0\varepsilon'\to0
Paper symbols
λ\lambdaGarivier and Kaufmann write λ\lambda for the alternative μ′\mu'
σ\sigmaKaufmann et al.'s symbol for a stopping time ρ\rho; the same paper writes dd for kl\mathrm{kl}

Context. An A/B test, a treatment comparison, or a choice among simulation settings aims to name a winner; the rewards collected along the way serve only as data. Bandit theory calls this a bandit problem whose goal is to name the arm with the highest mean reward; rewards matter only as information. The experimenter chooses which arm to sample next, when to stop, and which arm to name. In the the error probability is fixed in advance and the number of samples is random; in the other setting, fixed budget, the number of samples is fixed and the error probability is minimized setting, the named arm may be wrong with probability at most the error level, the largest allowed probability of naming an arm that is not the best, and the cost is the expected sample count. Before 2016, elimination and confidence-bound algorithms such as lower and upper confidence bounds: sample the empirical best arm and its strongest rival, and stop once the leader's lower confidence bound clears every other arm's upper bound (Kalyanakrishnan et al., 2012) were proved optimal only up to constant factors. The exact cost was known only for two arms (Kaufmann et al., 2016).

On a bandit with the number of arms arms and mean vector μ=(μ1,…,μK)\mu=(\mu_1,\dots,\mu_K), the mean rewards of the arms; a bandit is identified with this vector, every strategy with error at most δ\delta needs at least the characteristic time of the bandit μ\mu: T∗(μ)log⁡(1/δ)T^*(\mu)\log(1/\delta) is the smallest expected number of samples any strategy with error at most δ\delta can achieve, as δ→0\delta\to0log⁡(1/δ)\log(1/\delta) samples on average as δ→0\delta\to0. Here 1/T∗(μ)1/T^*(\mu) is the value of a game in which the experimenter chooses sampling proportions and an adversary picks the hardest-to-distinguish bandit with a different best arm. The maximizing proportions the optimal sampling proportions: wa∗(μ)w^*_a(\mu) is the long-run fraction of samples that an optimal strategy gives arm aa put most samples on the best arm and its closest rivals. They differ from uniform sampling and from reward-maximizing rules that pull the best arm almost every time. Garivier and Kaufmann's Track-and-Stop estimates w∗(μ)w^*(\mu) from the data, steers the sample shares to follow that estimate, and stops once a a test with statistic log⁡max⁡ϑ∈Θ1pϑ(data)max⁡ϑ∈Θ0pϑ(data)\log\frac{\max_{\vartheta\in\Theta_1}p_\vartheta(\text{data})}{\max_{\vartheta\in\Theta_0}p_\vartheta(\text{data})}, the likelihood maximized over the parameters Θ1\Theta_1 allowed by one hypothesis against the maximum over those Θ0\Theta_0 allowed by the other; it rejects the second hypothesis when the statistic exceeds a threshold. Here the hypotheses are that one arm's mean is above, or below, another's separates the empirical best arm from every rival. Its expected sample count is T∗(μ)log⁡(1/δ) (1+o(1))T^*(\mu)\log(1/\delta)\,(1+o(1)).

Setting. Arm aa gives independent rewards from a distribution the reward distribution of arm aa, with mean μa\mu_a with mean μa\mu_a. Each νa\nu_a belongs to a densities exp⁡(θx−b(θ))\exp(\theta x-b(\theta)) with respect to a fixed measure, one for each real θ\theta; each member is determined by its mean, so its mean fixes the distribution; the main examples are Bernoulli arms and Gaussian arms with a known variance the common variance of Gaussian arms, known to the experimenter. Write the Kullback-Leibler divergence from the family member with mean xx to the member with mean yy; (x−y)2/(2σ2)(x-y)^2/(2\sigma^2) for Gaussian arms for the Kullback-Leibler divergence from the family member with mean xx to the one with mean yy. For Gaussian arms d(x,y)=(x−y)2/(2σ2)d(x,y)=(x-y)^2/(2\sigma^2), and for Bernoulli arms d=kld=\mathrm{kl}, where kl(p,q)\mathrm{kl}(p,q)=plog⁡(p/q)+(1−p)log⁡((1−p)/(1−q)){}=p\log(p/q)+(1-p)\log((1-p)/(1-q)). The best arm a∗(μ)a^*(\mu)=arg⁡max⁡aμa{}=\arg\max_a\mu_a is assumed why: with two arms tied for the top, no amount of data names one of them with confidence 1−δ1-\delta, and the cost of separating the top two arms grows like 1/(μ1−μ2)21/(\mu_1-\mu_2)^2 as their means approach each other. When convenient, the arms are sorted as μ1>μ2≥⋯≥μK\mu_1\gt\mu_2\ge\dots\ge\mu_K, with gaps Δa\Delta_a=μ1−μa{}=\mu_1-\mu_a for a≥2a\ge2 and Δ1=Δ2\Delta_1=\Delta_2.

A strategy picks an arm the arm sampled at round tt, chosen from the data of rounds 1,…,t−11,\dots,t-1 at round the round, equal to the number of samples taken so far from past data, stops at a stopping time the round at which the strategy stops; a stopping time, so whether it has occurred is decided by the data up to that round, and names an arm the arm the strategy names when it stops. Write expectation when the arms have means μ\mu; PμP_\mu is the matching probability and PμP_\mu for expectation and probability under μ\mu. A strategy is probably approximately correct at level δ\delta: on every bandit with a unique best arm it stops with probability 1 and names a wrong arm with probability at most δ\delta if, on every bandit with a unique best arm, it stops with probability 1 and satisfies Pμ(a^≠a∗(μ))≤δP_\mu(\hat a\ne a^*(\mu))\le\delta. Write the number of samples of arm aa in rounds 1,…,t1,\dots,t for arm aa's sample count through round tt, the average of the Na(t)N_a(t) rewards of arm aa seen up to round tt; μ^(t)\hat\mu(t) is the vector of these averages for its sample average, and μ^(t)\hat\mu(t) for the vector of averages. The lower bound tests μ\mu against the bandits μ′\mu' whose best arm differs from a∗(μ)a^*(\mu), the set of alternative bandits an alternative bandit, identified with its vector of means μ′=(μ1′,…,μK′)\mu'=(\mu'_1,\dots,\mu'_K) whose best arm differs from a∗(μ)a^*(\mu). A sampling plan is a probability vector sampling proportions: wa≥0w_a\ge0 is the fraction of samples given to arm aa, and ∑awa=1\sum_aw_a=1 in the simplex the probability vectors on the KK arms, {w∈[0,1]K:∑awa=1}\{w\in[0,1]^K:\sum_aw_a=1\} on the KK arms.

Main results. (a) The minimal cost (Garivier and Kaufmann, Theorem 1). Each sample of arm aa yields d(μa,μa′)d(\mu_a,\mu'_a) nats of expected evidence against an alternative μ′\mu'. A plan ww collects ∑awa d(μa,μa′)\sum_aw_a\,d(\mu_a,\mu'_a) nats per sample, and the adversary picks the alternative minimizing that rate. Define the characteristic time T∗(μ)T^*(\mu) by1T∗(μ)=sup⁡w∈ΣK inf⁡μ′∈Alt(μ)∑a=1Kwa d(μa,μa′).\begin{aligned}\frac{1}{T^*(\mu)}=\sup_{w\in\Sigma_K}\ &\inf_{\mu'\in\mathrm{Alt}(\mu)}\\&\sum_{a=1}^Kw_a\,d(\mu_a,\mu'_a).\end{aligned}So T∗(μ)T^*(\mu) counts the minimum samples per nat of evidence. For every δ∈(0,1)\delta\in(0,1), every δ\delta-PAC strategy, and every μ\mu with a unique best arm, Eμ[τδ]≥T∗(μ) kl(δ,1−δ)\mathbb E_\mu[\tau_\delta]\ge T^*(\mu)\,\mathrm{kl}(\delta,1-\delta). Since kl(δ,1−δ)≥log⁡(1/(2.4δ))\mathrm{kl}(\delta,1-\delta)\ge\log(1/(2.4\delta)) and kl(δ,1−δ)/log⁡(1/δ)→1\mathrm{kl}(\delta,1-\delta)/\log(1/\delta)\to1, the expected stopping time is at least T∗(μ)log⁡(1/δ)(1+o(1))T^*(\mu)\log(1/\delta)(1+o(1)). The optimal proportions w∗(μ)w^*(\mu) attain the supremum.

(b) Track-and-Stop attains it (Garivier and Kaufmann, Theorems 10 and 14 and Proposition 12). Track-and-Stop keeps Na(t)/tN_a(t)/t close to wa∗(μ^(t))w^*_a(\hat\mu(t)) while forcing about t\sqrt{t} samples on every arm (Step 5). It stops at τδ=inf⁡{t:Z(t)>β(t,δ)}\tau_\delta=\inf\{t:Z(t)\gt\beta(t,\delta)\} and names the empirical best arm. Here Chernoff's statistic Z(t)=max⁡amin⁡b≠aZa,b(t)Z(t)=\max_a\min_{b\ne a}Z_{a,b}(t), with Za,b(t)Z_{a,b}(t) the log generalized likelihood ratio of μa≥μb\mu_a\ge\mu_b against μa≤μb\mu_a\le\mu_b: the evidence, in nats, by which the data favor the empirical best arm over its closest rival (Step 4) is the log generalized likelihood ratio testing that leader against its closest rival (Step 4), and the stopping threshold: the strategy stops once Z(t)Z(t) exceeds it; of order log⁡(t/δ)\log(t/\delta), for example log⁡(2(K−1)t/δ)\log(2(K-1)t/\delta) on Bernoulli arms; a larger threshold lowers the error and costs samples is a stopping threshold. On why: the proof of correctness (Step 4) bounds the maximized Bernoulli likelihood by a mixture code for binary sequences; for other families a slightly larger threshold is proved instead arms, β(t,δ)=log⁡(2(K−1)t/δ)\beta(t,\delta)=\log(2(K-1)t/\delta) makes any sampling rule δ\delta-PAC. Paired with the tracking rule, it giveslim sup⁡δ→0Eμ[τδ]log⁡(1/δ)≤T∗(μ),\limsup_{\delta\to0}\frac{\mathbb E_\mu[\tau_\delta]}{\log(1/\delta)}\le T^*(\mu),matching (a) asymptotically. For other exponential families, β(t,δ)=log⁡(Ctα/δ)\beta(t,\delta)=\log(Ct^\alpha/\delta) with why: the error bound sums, over all rounds tt, a term of order t−αt^{-\alpha} times powers of log⁡t\log t, which is finite only for α>1\alpha\gt 1 and a constant a constant large enough that the error bound's sum over rounds is at most δ\delta; it depends only on α\alpha and KK keeps the rule δ\delta-PAC. For α≤e/2\alpha\le e/2, the paper proves the same limit is at most αT∗(μ)\alpha T^*(\mu).

(c) How big T∗(μ)T^*(\mu) is. In general, T∗(μ)T^*(\mu) has no closed form and does not decompose across arms. For Gaussian arms with variance σ2\sigma^2, it matches the sum of inverse squared gaps within a factor of 2:∑a=1K2σ2Δa2 ≤ T∗(μ) ≤ 2∑a=1K2σ2Δa2.\sum_{a=1}^K\frac{2\sigma^2}{\Delta_a^2}\ \le\ T^*(\mu)\ \le\ 2\sum_{a=1}^K\frac{2\sigma^2}{\Delta_a^2}.Because Δ1=Δ2\Delta_1=\Delta_2, the term 2σ2/(μ1−μ2)22\sigma^2/(\mu_1-\mu_2)^2 enters twice, giving T∗(μ)≥4σ2/(μ1−μ2)2T^*(\mu)\ge4\sigma^2/(\mu_1-\mu_2)^2. The cost therefore grows without bound as the top two means approach each other. To get the lower bound, apply Step 1 to alternatives that move a single arm: lift arm a≥2a\ge2 just past μ1\mu_1, or drop arm 1 just below μ2\mu_2. Each alternative bounds that arm's expected sample count, and summing over all KK arms yields the left inequality.

(d) Two arms (Kaufmann et al., Sections 3 and 4). For two arms, the cheapest alternative moves both arms to a common point xx between their means with equal divergence to xx, so d(μ1,x)=d(μ2,x)d(\mu_1,x)=d(\mu_2,x) in a common family. The minimal cost is about log⁡(1/δ)\log(1/\delta) divided by that common divergence. For Gaussian arms with known, possibly unequal standard deviations the standard deviations of the two arms' Gaussian rewards, known and possibly different, equalizing (μ1−x)2/(2σ12)=(μ2−x)2/(2σ22)(\mu_1-x)^2/(2\sigma_1^2)=(\mu_2-x)^2/(2\sigma_2^2) gives x=(σ2μ1+σ1μ2)/(σ1+σ2)x=(\sigma_2\mu_1+\sigma_1\mu_2)/(\sigma_1+\sigma_2) and cost 2(σ1+σ2)2/(μ1−μ2)2⋅log⁡(1/δ) (1+o(1))2(\sigma_1+\sigma_2)^2/(\mu_1-\mu_2)^2\cdot\log(1/\delta)\,(1+o(1)). The matching rule samples arm 1 on the fraction σ1/(σ1+σ2)\sigma_1/(\sigma_1+\sigma_2) of rounds. That puts more samples on the noisier arm and minimizes σ12/N1+σ22/N2\sigma_1^2/N_1+\sigma_2^2/N_2, the variance of μ^1−μ^2\hat\mu_1-\hat\mu_2, for a fixed total. It stops once ∣μ^1−μ^2∣|\hat\mu_1-\hat\mu_2| exceeds 2β(t,δ)(σ12/N1+σ22/N2)\sqrt{2\beta(t,\delta)(\sigma_1^2/N_1+\sigma_2^2/N_2)}. With β(t,δ)=log⁡(t/δ)+2log⁡log⁡(6t)\beta(t,\delta)=\log(t/\delta)+2\log\log(6t), this rule is δ\delta-PAC and attains that cost. Equal sampling costs a factor 2(σ12+σ22)/(σ1+σ2)2∈[1,2]2(\sigma_1^2+\sigma_2^2)/(\sigma_1+\sigma_2)^2\in[1,2]. When the variances match, that factor is 1 and the rule reduces to Robbins' (1970) sequential test.

For two Bernoulli arms, equal sampling is nearly optimal; the stopping rule carries the gain. At conversion rates 0.2 and 0.1, a likelihood ratio test needs about half the samples of a mean-difference test with a with tails at least as light as a Gaussian's: E es(X−EX)≤eR2s2/2\mathbb E\,e^{s(X-\mathbb EX)}\le e^{R^2s^2/2} for every real ss, with R2R^2 the variance proxy; rewards in [0,1][0,1] qualify with R2=1/4R^2=1/4, which gives Hoeffding's inequality confidence width (computed here from the paper's formulas). That width assumes the worst-case variance 1/4 on [0,1][0,1], whereas a Bernoulli reward with mean 0.15 has variance about 0.13.

Garivier and Kaufmann's simulations separate both halves of Track-and-Stop. They averaged 3,000 runs at δ=0.1\delta=0.1 on two Bernoulli bandits, with means (0.5, 0.45, 0.43, 0.4) and (0.3, 0.21, 0.2, 0.19, 0.18). With direct tracking (D-tracking, Step 5), Track-and-Stop averaged 4,052 and 1,406 samples, against 8,437 and 2,716 for LUCB (sample the empirical leader and its strongest rival, stop once the leader's lower bound clears every other arm's upper bound) with confidence bounds built from the Bernoulli divergence kl\mathrm{kl} in place of LUCB's Hoeffding radius (Kaufmann and Kalyanakrishnan, 2013), the strongest earlier method. Two sampling all arms still in the race once per round and dropping the empirically worst arm when a test allows methods isolate the stopping and sampling gains. Chernoff-Racing replaces KL-Racing's confidence-interval elimination with the likelihood ratio test. On four arms that cut the cost from 9,590 to 4,516, halving it by the stopping rule alone. Tracking w∗w^* added little on four arms, where the top two shares nearly match (Step 3), but on five arms it dropped the cost from Chernoff-Racing's 3,078 to 1,406. There w∗w^* gives the top two arms shares of 0.336 and 0.251. A race instead splits samples equally between its last two arms, which is suboptimal whenever w1∗(μ)≠w2∗(μ)w^*_1(\mu)\ne w^*_2(\mu). A heuristic a heuristic rule that samples the empirical leader or its closest challenger so that their sample ratio follows w∗w^*; it has no proof rule slightly beat D-tracking, without a proof. The authors report that in their simulations the threshold log⁡((log⁡t+1)/δ)\log((\log t+1)/\delta), which the proofs do not cover, stayed conservative in practice.

Consequences and limits. Wrong sampling proportions carry a permanent multiplicative penalty. On the four-arm bandit above, equal sampling raises the small-δ\delta cost to 1.61 times T∗(μ)log⁡(1/δ)T^*(\mu)\log(1/\delta) (computed here). Reward-maximizing algorithms are likewise poor identifiers with a fixed budget (Bubeck et al., 2011, cited by Kaufmann et al.). Even with optimal tracking, the guarantee is asymptotic in δ\delta. At δ=0.1\delta=0.1 on the four-arm problem, T∗(μ)log⁡(1/δ)≈2,280T^*(\mu)\log(1/\delta)\approx2{,}280 (computed here), just over half of what Track-and-Stop used. Because Z(t)Z(t) grows like t/T∗(μ)t/T^*(\mu) (Step 6), the rule stops near the tt solving t/T∗(μ)=β(t,δ)t/T^*(\mu)=\beta(t,\delta). For β(t,δ)=log⁡((log⁡t+1)/δ)\beta(t,\delta)=\log((\log t+1)/\delta) at a few thousand samples, log⁡(log⁡t+1)≈2.2\log(\log t+1)\approx2.2 nearly matches log⁡(1/δ)=2.3\log(1/\delta)=2.3. That raises β\beta to about 4.5 and puts the predicted stop at 4.5 T∗(μ)≈4,5004.5\,T^*(\mu)\approx4{,}500 samples (computed here), close to what Track-and-Stop used. Provably safe thresholds cost even more. On a hard two-arm Gaussian problem, Kaufmann et al.'s elimination rule ran about three times longer with the provably safe log⁡(t/δ)\log(t/\delta) than with log⁡((log⁡t+1)/δ)\log((\log t+1)/\delta), while the smaller threshold still kept the error below δ\delta. The fixed-time threshold log⁡(1/δ)\log(1/\delta) let the error exceed δ\delta.

The theory covers one-parameter families with a known variance and a unique best arm. By (c), the cost grows like 1/(μ1−μ2)21/(\mu_1-\mu_2)^2, so when several arms nearly match the best, the fixed-confidence problem becomes very expensive. A tolerance the tolerance: any arm whose mean is at least the best mean minus ε\varepsilon is acceptable keeps it finite. For rewards in [0,1][0,1], LUCB accepts any arm within ε\varepsilon of the best and needs O(Hlog⁡(H/δ))O(H\log(H/\delta)) samples (Kalyanakrishnan et al., Theorem 6), with HH=∑a1/max⁡(Δa,ε/2)2{}=\sum_a1/\max(\Delta_a,\varepsilon/2)^2. Each arm's term is capped at 4/ε24/\varepsilon^2. Track-and-Stop also has to recompute w∗(μ^(t))w^*(\hat\mu(t)) as estimates evolve and relies on forced exploration to recover from bad early estimates.

Step 1

Any event a strategy can decide costs expected evidence at least the binary divergence of its two probabilities. Kaufmann et al.'s change-of-measure inequality (Lemma 1) drives every lower bound here. Let ν\nu and ν′\nu' be two bandits with mutually absolutely continuous arm distributions. Take an almost surely finite stopping time ρ\rho and an event EE decided by the data up to ρ\rho. Write the log-likelihood ratio of the data up to the stopping time ρ\rho: the sum over samples of log⁡(fa(x)/fa′(x))\log(f_a(x)/f'_a(x)), with fa,fa′f_a,f'_a the densities of arm aa under ν\nu and ν′\nu' for the log-likelihood ratio of those data under ν\nu against ν′\nu', and the Kullback-Leibler divergence KL(p,q)=∫log⁡dpdq dp\mathrm{KL}(p,q)=\int\log\frac{dp}{dq}\,dp for the Kullback-Leibler divergence, equal to d(μa,μa′)d(\mu_a,\mu'_a) in the exponential family. Then∑a=1KEν[Na(ρ)] KL(νa,νa′)=Eν[Lρ]≥kl(Pν(E),Pν′(E)).\begin{aligned}&\sum_{a=1}^K\mathbb E_\nu[N_a(\rho)]\,\mathrm{KL}(\htmlData{gr=g10}{\nu_a},\nu'_a)\\&\quad=\mathbb E_\nu[L_\rho]\\&\quad\ge\mathrm{kl}\big(P_\nu(E),P_{\nu'}(E)\big).\end{aligned}for i.i.d. increments summed up to a stopping time ρ\rho with finite mean, the expected sum is the increments' mean times E[ρ]\mathbb E[\rho] (Wald, 1944) gives the equality, since each sample of arm aa adds an increment to LρL_\rho with mean KL(νa,νa′)\mathrm{KL}(\nu_a,\nu'_a). For the inequality, Pν′(E)=Eν[1Ee−Lρ]=Pν(E) Eν[e−Lρ∣E]P_{\nu'}(E)=\mathbb E_\nu[\mathbb 1_Ee^{-L_\rho}]=P_\nu(E)\,\mathbb E_\nu[e^{-L_\rho}\mid E], so Jensen's inequality given EE yields Eν[Lρ∣E]≥log⁡(Pν(E)/Pν′(E))\mathbb E_\nu[L_\rho\mid E]\ge\log(P_\nu(E)/P_{\nu'}(E)). The same bound holds on the complement of EE. Averaging both with weights Pν(E)P_\nu(E) and 1−Pν(E)1-P_\nu(E) produces kl(Pν(E),Pν′(E))\mathrm{kl}(P_\nu(E),P_{\nu'}(E)). For a δ\delta-PAC strategy, take E={a^=a∗(ν)}E=\{\htmlData{gr=g21}{\hat a}=a^*(\nu)\} and an alternative ν′\nu' with a different best arm. Then Pν(E)≥1−δP_\nu(E)\ge1-\delta and Pν′(E)≤δP_{\nu'}(E)\le\delta, so the right side is at least kl(1−δ,δ)≥log⁡(1/(2.4δ))\mathrm{kl}(1-\delta,\delta)\ge\log(1/(2.4\delta)). Pinsker's inequality, kl(p,q)≥2(p−q)2\mathrm{kl}(p,q)\ge2(p-q)^2, gives only a constant here because 1−δ1-\delta and δ\delta are at most 1 apart.

Step 2

Applying Step 1 to all alternatives at once gives T∗(μ)T^*(\mu), and only a strategy that samples in the proportions w∗(μ)w^*(\mu) can attain it. Garivier and Kaufmann apply Step 1 with ρ=τδ\rho=\tau_\delta to every μ′∈Alt(μ)\mu'\in\mathrm{Alt}(\mu). Write wˉa=Eμ[Na(τδ)]/Eμ[τδ]\bar w_a=\htmlData{gr=g22}{\mathbb E_\mu}[N_a(\tau_\delta)]/\mathbb E_\mu[\tau_\delta] for arm aa's expected share. Dividing by Eμ[τδ]\mathbb E_\mu[\tau_\delta] and taking the infimum over Alt(μ)\mathrm{Alt}(\mu) giveskl(δ,1−δ)Eμ[τδ]≤inf⁡μ′∑awˉa d(μa,μa′)≤1T∗(μ),\begin{aligned}\frac{\mathrm{kl}(\delta,1-\delta)}{\mathbb E_\mu[\tau_\delta]}&\le\inf_{\mu'}\sum_a\bar w_a\,d(\mu_a,\mu'_a)\\&\le\frac{1}{T^*(\mu)},\end{aligned}using kl(δ,1−δ)=kl(1−δ,δ)\mathrm{kl}(\delta,1-\delta)=\mathrm{kl}(1-\delta,\delta). Since wˉ∈ΣK\bar w\in\Sigma_K, replacing wˉ\bar w by the supremum over ΣK\Sigma_K yields the second inequality. The second inequality is tight only at wˉ=w∗(μ)\bar w=\htmlData{gr=g8}{w^*(\mu)}, so any strategy attaining the lower bound must sample in those proportions.

Step 3

The cheapest alternative moves the best arm and one rival to their weighted mean, so w∗(μ)w^*(\mu) solves a single scalar equation. Sort the arms so μ1>μ2≥⋯≥μK\mu_1\gt\mu_2\ge\dots\ge\mu_K. An alternative in Alt(μ)\mathrm{Alt}(\mu) need only lift some rival a≥2a\ge2 to at least arm 1's level, leaving every other arm unchanged at zero cost. Minimizing w1d(μ1,μ1′)+wad(μa,μa′)w_1d(\mu_1,\mu'_1)+w_ad(\mu_a,\mu'_a) over μa′≥μ1′\mu'_a\ge\mu'_1 is a convex problem; in a one-parameter exponential family, the minimum puts both arms at their weighted mean μˉa\bar\mu_a=(w1μ1+waμa)/(w1+wa){}=(w_1\mu_1+w_a\mu_a)/(w_1+w_a). The inner infimum over Alt(μ)\mathrm{Alt}(\mu) therefore reduces to a minimum over the K−1K-1 rivals:1T∗(μ)=max⁡w∈ΣK min⁡a≥2[w1d(μ1,μˉa)+wad(μa,μˉa)].\begin{aligned}&\frac{1}{T^*(\mu)}=\max_{w\in\Sigma_K}\ \min_{a\ge2}\\&\quad\big[w_1d(\mu_1,\bar\mu_a)+w_ad(\mu_a,\bar\mu_a)\big].\end{aligned}

At the maximizer the K−1K-1 brackets must match; otherwise shifting weight from larger brackets to the smallest raises the minimum. Write xa=wa/w1x_a=w_a/w_1 and ga(x)=d(μ1,μˉa)+x d(μa,μˉa)g_a(x)=d(\mu_1,\bar\mu_a)+x\,d(\mu_a,\bar\mu_a), with μˉa=(μ1+xμa)/(1+x)\bar\mu_a=(\mu_1+x\mu_a)/(1+x), so each bracket is w1ga(xa)w_1g_a(x_a). Since μˉa\bar\mu_a minimizes the bracket, the envelope theorem gives ga′(x)=d(μa,μˉa)>0g_a'(x)=d(\mu_a,\bar\mu_a)\gt0. Setting ga(xa)=yg_a(x_a)=y therefore determines each xa(y)x_a(y) uniquely, with xa′(y)=1/d(μa,μˉa)x_a'(y)=1/d(\mu_a,\bar\mu_a). Since w1=1/(1+∑a≥2xa)w_1=1/(1+\sum_{a\ge2}x_a), the common bracket is w1yw_1y, and maximizing over yy gives0=ddy y1+∑a≥2xa(y)  ⟺  1+∑a≥2xa=y∑a≥21d(μa,μˉa)  ⟺  ∑a≥2d(μ1,μˉa)d(μa,μˉa)=1,\begin{aligned}0&=\tfrac{d}{dy}\,\frac{y}{1+\sum_{a\ge2}x_a(y)}\\&\iff1+\textstyle\sum_{a\ge2}x_a=y\sum_{a\ge2}\frac{1}{d(\mu_a,\bar\mu_a)}\\&\iff\textstyle\sum_{a\ge2}\frac{d(\mu_1,\bar\mu_a)}{d(\mu_a,\bar\mu_a)}=1,\end{aligned}substituting y=d(μ1,μˉa)+xa d(μa,μˉa)y=d(\mu_1,\bar\mu_a)+x_a\,d(\mu_a,\bar\mu_a) and canceling ∑a≥2xa\sum_{a\ge2}x_a for the last line. Because μˉa\bar\mu_a moves with yy through xa(y)x_a(y), the left side increases in yy. Bisection on yy, with one scalar inversion per arm, computes w∗(μ)w^*(\mu) in time roughly proportional to KK.

The solution gives every arm positive weight, assigns smaller shares to worse rivals a≥2a\ge2, and is continuous in μ\mu, as Step 5 requires. For equal-variance Gaussian arms, μˉa\bar\mu_a splits μ1−μa\mu_1-\mu_a in the ratio (μ1−μˉa):(μˉa−μa)=wa:w1(\mu_1-\bar\mu_a):(\bar\mu_a-\mu_a)=w_a:w_1. Each divergence ratio is then (wa/w1)2(w_a/w_1)^2, so the equation becomesw12=∑a≥2wa2.w_1^2=\sum_{a\ge2}w_a^2.The best arm's share is the Euclidean norm of the rival shares. It is at least the largest rival share, at most their sum, and k\sqrt{k} times each rival's share against kk equally good rivals. Its samples enter every comparison, while each rival's enter only its own. Bernoulli arms near 1/2 nearly obey this Gaussian rule. On the four-arm bandit above, w∗(μ)=(0.417,0.390,0.136,0.057)w^*(\mu)=(0.417,0.390,0.136,0.057) and 0.3902+0.1362+0.0572=0.417\sqrt{0.390^2+0.136^2+0.057^2}=0.417. Far from 1/2, the Bernoulli divergence is asymmetric, so the best arm need not get the largest share. Means 0.5, 0.1, and 0.02 give shares of about 39%, 42%, and 19%.

Step 4

Chernoff's stopping rule is a likelihood ratio test whose statistic is the lower bound's objective evaluated on the data. For any two arms a,ba,b, let the log of the generalized likelihood ratio of μa≥μb\mu_a\ge\mu_b against μa≤μb\mu_a\le\mu_b at round tt, each likelihood maximized over the means; Zb,a=−Za,bZ_{b,a}=-Z_{a,b} be the log generalized likelihood ratio of μa≥μb\mu_a\ge\mu_b against μa≤μb\mu_a\le\mu_b, each likelihood maximized over the means. Write μ^a,b=(Naμ^a+Nbμ^b)/(Na+Nb)\hat\mu_{a,b}=(N_a\hat\mu_a+N_b\hat\mu_b)/(N_a+N_b) for their pooled mean, with every quantity on the right evaluated at round tt. When μ^a≥μ^b\hat\mu_a\ge\hat\mu_b,Za,b(t)=Na d(μ^a,μ^a,b)+Nb d(μ^b,μ^a,b),\begin{aligned}Z_{a,b}(t)={}&N_a\,d(\hat\mu_a,\hat\mu_{a,b})\\&+N_b\,d(\hat\mu_b,\hat\mu_{a,b}),\end{aligned}and Zb,a(t)=−Za,b(t)Z_{b,a}(t)=-Z_{a,b}(t). Because Za,b(t)≥0Z_{a,b}(t)\ge0 precisely when μ^a≥μ^b\hat\mu_a\ge\hat\mu_b, the empirical best arm attains the outer maximum in Z(t)=max⁡amin⁡b≠aZa,b(t)Z(t)=\max_a\min_{b\ne a}Z_{a,b}(t). The rule stops once Z(t)>β(t,δ)Z(t)\gt\beta(t,\delta) and names that arm. By Step 3's closed form,Z(t)t=inf⁡μ′∈Alt(μ^)∑aNat d(μ^a,μa′),\frac{\htmlData{gr=g30f}{Z(t)}}{t}=\inf_{\mu'\in\mathrm{Alt}(\hat\mu)}\sum_a\frac{N_a}{t}\,d(\hat\mu_a,\mu'_a),the objective of (a) evaluated at the empirical means and sample proportions. The rule thus stops once the data hold about log⁡(1/δ)\log(1/\delta) nats of evidence against every alternative, the amount Step 2 requires.

The threshold must keep the test valid under adaptive sampling. An error requires Za,a∗(t)>β(t,δ)Z_{a,a^*}(t)\gt\beta(t,\delta) at some round tt for a suboptimal arm aa with μa<μa∗\mu_a\lt\mu_{a^*}. By a union bound over the K−1K-1 suboptimal arms, it suffices to show that the probability of Za,bZ_{a,b} ever crossing β\beta is at most δ/(K−1)\delta/(\htmlData{gr=g5}{K}-1) whenever μa<μb\mu_a\lt\mu_b. Let EtE_t be the event that Za,bZ_{a,b} first crosses β\beta at round tt. On EtE_t, 1≤e−β(t,δ)eZa,b(t)1\le e^{-\beta(t,\delta)}e^{Z_{a,b}(t)}. Because μa<μb\mu_a\lt\mu_b lies in the denominator's hypothesis, the maximized denominator is at least the true likelihood, so Pμ(Et)P_\mu(E_t) is at most e−β(t,δ)e^{-\beta(t,\delta)} times the integral of the maximized numerator over EtE_t. That maximized likelihood is not a probability density, so the proof bounds it by a mixture density. On Bernoulli arms, the the Bernoulli likelihood averaged over a Beta(1/2,1/2) prior on the mean; it is a probability distribution on binary sequences (Krichevsky and Trofimov, 1981) lies within a factor 2n2\sqrt{n} of the maximized likelihood for nn samples, giving a joint factor 2Na⋅2Nb=4NaNb≤2(Na+Nb)≤2t2\sqrt{N_a}\cdot2\sqrt{N_b}=4\sqrt{N_aN_b}\le2(N_a+N_b)\le2t. Summing over the disjoint events EtE_t givesPμ ⁣(⋃tEt)≤∑t2t e−β(t,δ)P~(Et),P_\mu\!\Big(\bigcup_tE_t\Big)\le\sum_t2t\,e^{-\beta(t,\delta)}\tilde P(E_t),where P~\tilde P draws the two arms' means from that prior while keeping the same sampling rule. With β(t,δ)=log⁡(2(K−1)t/δ)\beta(t,\delta)=\log(2(K-1)t/\delta), the prefactor equals δ/(K−1)\delta/(K-1), and ∑tP~(Et)≤1\sum_t\tilde P(E_t)\le1 bounds the sum by δ/(K−1)\delta/(K-1). For other exponential families, a a bound on a sum of deviations divided by its own standard deviation that holds for all sample counts at once, so it survives adaptive sampling (Magureanu et al., 2014) replaces the mixture at the cost of the threshold log⁡(Ctα/δ)\log(Ct^\alpha/\delta).

Step 5

Tracking the estimated proportions makes the sampling shares converge to w∗(μ)w^*(\mu), provided every arm is sampled about t\sqrt{t} times. Tracking w∗(μ^(t))w^*(\hat\mu(t)) alone can starve an arm that looks poor early, leaving its estimate uncorrected. the direct tracking rule: sample the least-sampled arm if some arm has fewer than t−K/2\sqrt{t}-K/2 samples, otherwise the arm with the largest deficit t wa∗(μ^(t))−Na(t)t\,w^*_a(\hat\mu(t))-N_a(t) pulls the least-sampled arm whenever any arm has fewer than t−K/2\sqrt{t}-K/2 samples; otherwise it picks the arm with the largest deficit t wa∗(μ^(t))−Na(t)t\,w^*_a(\hat\mu(t))-\htmlData{gr=g24}{N_a(t)}. the cumulative tracking rule: sample the arm furthest behind the running sum ∑s<tw∗(μ^(s))\sum_{s\lt t}w^*(\hat\mu(s)) of past targets, each target first projected so that every arm gets at least the share ηs=(K2+s)−1/2/2\eta_s=(K^2+s)^{-1/2}/2 projects each round-ss target w∗(μ^(s))w^*(\hat\mu(s)) so every arm gets share at least ηs=(K2+s)−1/2/2\eta_s=(K^2+s)^{-1/2}/2, then at round tt pulls the arm furthest behind the running sum of past targets. C-tracking guarantees Na(t)≥t+K2−2KN_a(t)\ge\sqrt{t+K^2}-2K and keeps Na(t)N_a(t) within K(1+t)K(1+\sqrt{t}) of ∑s<twa∗(μ^(s))\sum_{s\lt t}w^*_a(\hat\mu(s)). Under either rule, every Na(t)→∞N_a(t)\to\infty, so μ^(t)→μ\hat\mu(t)\to\mu. Continuity of w∗w^* from Step 3 then makes the targets converge, so Na(t)/t→wa∗(μ)N_a(t)/t\to w^*_a(\mu) almost surely. Forced exploration rarely triggers once estimates settle, yet it is necessary. When μ2=μ3\mu_2=\mu_3, tracking without it can fail to stop with positive probability.

Step 6

On a likely event the statistic grows like t/T∗(μ)t/T^*(\mu), which gives the expected stopping time T∗(μ)log⁡(1/δ)(1+o(1))T^*(\mu)\log(1/\delta)(1+o(1)). To bound Eμ[τδ]=∑T≥0Pμ(τδ>T)\mathbb E_\mu[\tau_\delta]=\sum_{T\ge0}P_\mu(\tau_\delta\gt T), fix ε′>0\varepsilon'\gt0 and a small box around μ\mu where arm 1 stays best and w∗w^* stays within ε′\varepsilon' of w∗(μ)w^*(\mu). At horizon TT, forced exploration gives each arm at least about t≥T1/8\sqrt{t}\ge T^{1/8} samples for every round t≥T1/4t\ge T^{1/4}. Let the good event be that μ^(t)\hat\mu(t) stays in the box for all t∈[T1/4,T]t\in[T^{1/4},T]. Its failure probability is at most of order Texp⁡(−γT1/8)T\exp(-\gamma T^{1/8}) for a constant γ>0\gamma\gt0 depending on μ\mu and ε′\varepsilon', a summable tail in TT. On this good event, tracking keeps Na(t)/tN_a(t)/t within 3(K−1)ε′3(K-1)\varepsilon' of wa∗(μ)w^*_a(\mu) for all t≥Tt\ge\sqrt{T}. Continuity of Step 4's empirical objective then yields Z(t)≥tCε′(μ)Z(t)\ge tC_{\varepsilon'}(\mu), with Cε′(μ)→1/T∗(μ)C_{\varepsilon'}(\mu)\to1/T^*(\mu) as ε′→0\varepsilon'\to0.

For TT large enough that the tracking bound holds, evaluating at t=Tt=T on the good event forces stopping by round TT whenever T Cε′(μ)≥β(T,δ)T\,C_{\varepsilon'}(\mu)\ge\beta(T,\delta). With β(t,δ)=log⁡(Ctα/δ)\beta(t,\delta)=\log(Ct^\alpha/\delta), the smallest tt satisfying tCε′(μ)≥β(t,δ)tC_{\varepsilon'}(\mu)\ge\beta(t,\delta) is log⁡(1/δ)/Cε′(μ)\log(1/\delta)/C_{\varepsilon'}(\mu) up to lower-order terms. Once TT passes both that crossing time and the tracking threshold, stopping after TT requires the good event at TT to fail. Summing Pμ(τδ>T)P_\mu(\tau_\delta\gt T) therefore bounds Eμ[τδ]\mathbb E_\mu[\tau_\delta] by that crossing time plus a δ\delta-free constant from the tracking threshold and the summed failure probabilities. Letting ε′→0\varepsilon'\to0 gives T∗(μ)log⁡(1/δ)(1+o(1))T^*(\mu)\log(1/\delta)(1+o(1)). The paper solves tCε′(μ)≥β(t,δ)tC_{\varepsilon'}(\mu)\ge\beta(t,\delta) with a looser explicit bound, which introduces the factor α\alpha in (b).

Terms

Fixed confidence
error at most δ\delta guaranteed; minimize the expected number of samples
Characteristic time T∗(μ)T^*(\mu)
1/T∗=sup⁡winf⁡μ′∈Alt(μ)∑awad(μa,μa′)1/T^*=\sup_w\inf_{\mu'\in\mathrm{Alt}(\mu)}\sum_aw_ad(\mu_a,\mu'_a); minimal cost T∗(μ)log⁡(1/δ)T^*(\mu)\log(1/\delta)
Optimal proportions w∗(μ)w^*(\mu)
the maximizing plan; any optimal strategy samples in these proportions
Change of measure
∑aEν[Na]KL(νa,νa′)≥kl(Pν(E),Pν′(E))\sum_a\mathbb E_\nu[N_a]\mathrm{KL}(\nu_a,\nu'_a)\ge\mathrm{kl}(P_\nu(E),P_{\nu'}(E))
Chernoff stopping rule
stop when the GLR statistic Z(t)Z(t) exceeds log⁡(2(K−1)t/δ)\log(2(K-1)t/\delta); valid for any sampling
Track-and-Stop
track w∗(μ^(t))w^*(\hat\mu(t)) with forced t\sqrt{t} exploration, stop by Chernoff's rule; asymptotically optimal
Gaussian size of T∗T^*
between ∑a2σ2/Δa2\sum_a2\sigma^2/\Delta_a^2 and twice that, with Δ1=Δ2\Delta_1=\Delta_2
Two Gaussian arms
minimal cost 2(σ1+σ2)2log⁡(1/δ)/(μ1−μ2)22(\sigma_1+\sigma_2)^2\log(1/\delta)/(\mu_1-\mu_2)^2; sample arm 1 a fraction σ1/(σ1+σ2)\sigma_1/(\sigma_1+\sigma_2)
Two Bernoulli arms
equal sampling nearly optimal; stop by a likelihood ratio test
Tolerance ε\varepsilon
accept any arm within ε\varepsilon of the best; LUCB needs O(Hlog⁡(H/δ))O(H\log(H/\delta)), each gap raised to at least ε/2\varepsilon/2

Sources

Connected notes

  • With effects θi\theta_i spread around a common mean, the posterior mean pulls each raw estimate toward that mean, and Lindley's version of James-Stein estimates both the mean and the amount of pulling from the spread of the estimates themselves. It beats the raw estimates in total squared error for every configuration of the θi\theta_i once there are four or more, and in Efron's batting example it cuts the total prediction error to 0.28 of that of the raw batting averages.

  • 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.

  • By the note's rough estimate the difference between two average pass@1 scores, over about 120 problems with 16 samples each, has a standard deviation of at most about 0.016 before any training-seed variation, so gaps of 0.01 to 0.02 between eviction methods are not resolved.

  • 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.

Threads