| Arms and threshold | |
|---|---|
| number of arms | |
| an arm, one of | |
| mean reward of arm | |
| threshold: an arm is good if its mean reaches it, | |
| distance of arm 's mean from the threshold, | |
| a round; one sample is taken per round | |
| number of samples of arm in rounds | |
| average of the rewards of arm seen up to round | |
| Thresholding (fixed budget) | |
| budget: the total number of samples in the thresholding problem | |
| precision, : arms whose means are within of may be classified either way | |
| sub-Gaussian scale of the rewards, for every real ; for rewards in | |
| complexity of the thresholding problem, ; the best achievable error is of order | |
| set of arms the thresholding learner outputs as above the threshold after samples | |
| APT's index ; APT samples the arm with the smallest one | |
| in Step 1, the unflipped problem: unit-variance Gaussian arms, arm at mean above the threshold 0 | |
| in Step 1, the problem with arm alone flipped to mean | |
| in Step 1, the log-likelihood ratio of arm 's samples under against | |
| in Step 3, the event that every estimate is accurate: for every arm at every count | |
| width constant of the event in Step 3, | |
| largest mean, , assumed known to the learner in (c) | |
| complexity of best arm identification with known, | |
| Good arm identification (fixed confidence) | |
| error level of good arm identification: the largest allowed probability of a wrong report | |
| number of good arms, those with ; unknown to the learner | |
| number of good arms the learner wants reported | |
| round of the -th report of a good arm; if fewer than arms are reported | |
| round at which the learner stops, concluding that no unreported good arm remains | |
| divergence between Bernoulli arms with means and , | |
| binary relative entropy , the same function as , used for probabilities in Step 5 | |
| lower confidence bound ; arm is reported good when it reaches | |
| upper confidence bound ; arm is discarded when it falls below | |
| HDoC's sampling index, : an upper confidence bound with a bonus | |
| smallest gap that matters, | |
| small positive margin in the proofs of Steps 5 and 7, sent to 0 at the end | |
| in Step 7, a round count of order ; rounds after it are counted separately in the proof | |
| Constants | |
| constant in the exponent of the thresholding lower bound (a), | |
| logarithmic term of the thresholding lower bound (a), which is | |
| constant in the exponent of APT's upper bound (b), | |
| logarithmic term added in the exponent of APT's upper bound (b) | |
| exponent constant of the known-mean result (c) | |
| inside the logarithm of the confidence bounds; makes the union bound sum to (Step 6) | |
| Paper symbols | |
| Locatelli et al.'s symbol for the threshold | |
| Locatelli et al.'s symbol for , the number of samples of an arm up to round | |
| Locatelli et al.'s symbol for | |
| Locatelli et al.'s symbol for the event of Step 3 | |
| Locatelli et al.'s symbol for the flipped problem of Step 1 | |
| Locatelli et al.'s symbol for the width constant of Step 3 | |
| Kano et al.'s symbol for an arm | |
| Kano et al.'s symbol for the lower confidence bound | |
| Kano et al.'s symbol for the upper confidence bound | |
| Kano et al.'s symbol for | |
| Kano et al.'s symbol for the margin | |
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 thresholding bandit problemsample 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 good arm identificationreport arms whose mean is at least the threshold one at a time, each as soon as it is confirmed, with error probability at most , and stop once no good arm is left to report. The learner reports arms above 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 and , written the gap between arm 's mean and the threshold, so arms tied with each other cost nothing extra. A precision the precision, : arms whose means are within of may be classified either way allows arms within of to go either way, giving the problem complexity the complexity of the thresholding problem, with arm 's distance from the threshold; the best achievable error after samples is of order , and the arms nearest the threshold dominate the sum. Classifying all the number of arms arms within budget has best achievable error of order , up to exponent constants and log factors. Locatelli et al.'s APTAnytime Parameter-free Thresholding algorithm: sample the arm with the smallest , then output the arms whose empirical mean is at least attains this rate without knowing , the noise level, or . Each round, it pulls the arm minimizing , where the number of samples of arm in rounds is arm 's sample count and the average of the rewards from arm 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 samples, plus only for each remaining arm. Classifying all arms instead costs per arm. Kano et al.'s HDoCHybrid algorithm for the Dilemma of Confidence: sample the arm with the highest upper confidence bound with a bonus, and report an arm once its lower confidence bound, built with , reaches decouples exploration from confirmation. It samples the arm with the highest upper confidence bound using a bonus, and reports an arm once a separate -level lower confidence bound passes . In Kano et al.'s ten-arm Bernoulli simulation at , 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 produces independent rewards with mean , and counts rounds at one sample per round. In the thresholding problem, rewards are -sub-Gaussian for every real : tails at least as light as a Gaussian's with standard deviation ; rewards in qualify with , meaning their tails are at least as light as a Gaussian with standard deviation . Rewards in qualify with . After samples, the learner outputs a set the set of arms the thresholding learner classifies as above the threshold of arms classified above . It errs if misses an arm with or includes one with . The complexity sums inverse squared gaps padded by , so the arms nearest dominate the sum.
In good arm identification, the arms are Bernoulli, an arm is good if , and the count the number of good arms, those with ; unknown to the learner of good arms is unknown. For analysis, index the arms as , 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; is the round of the -th report and stops at the round at which the learner concludes that no good arm is left to report; if fewer than arms are reported once it concludes no unreported good arm remains. If it reports fewer than arms, set . A strategy is -PACif at least arms are good, it reports fewer than arms or a bad arm among its first reports with probability at most ; if fewer are good, it reports or more with probability at most if it fails on the first reports with probability at most . When , failure means reporting fewer than arms or including a bad arm among the first . When , failure means reporting or more arms. A strategy is -PAC if this holds for every . Write the Kullback-Leibler divergence between Bernoulli laws with means and , for the Bernoulli KL divergence. Gaussian arms with known variance behave the same way.
Main results. (a) No algorithm can beat (Locatelli et al., Theorem 1). Even a learner told every gap and the reward family errs with probability about on some instance. Start with unit-variance Gaussian arms, each at distance above the threshold, and form more instances by flipping a single arm in each to the same distance below it. All instances share the same . For every algorithm and every , at least one instance has
(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 rounds to be at least half the budget and -sub-Gaussian arms with any , APT errs with probability at mostOnce is of larger order than , bounds (a) and (b) pin the minimax error at over problems with complexity at most and noise scale at most . APT is therefore optimal up to the constant in the exponent. It needs only and 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, , here assumed known to the learner is known and . Run APT with and , then recommend the most-sampled arm. It names the best arm with error at most , where . The same run incurs regretthe expected reward lost, over the rounds, against sampling the best arm every round. Reading note: UCB and Thompson sampling at most of order , matching UCBupper 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 , no strategy achieves both at once (Bubeck et al., 2009, cited there).
(d) The cost of the first good arms (Kano et al., Theorem 1). Because a learner may choose which good arms to report, the lower bound counts only the arms furthest above . Under any -PAC algorithm, if ,
(e) HDoC nearly attains it (Kano et al., Theorems 2 and 3 and Corollary 1). HDoC is -PAC. When and why: HDoC samples the other arms only until their upper confidence bounds fall below , which takes about samples (Step 7) and is unbounded when the -th and -th means tie,The same bound holds for with the sum over all arms. More precisely,where the smallest gap that matters, is the smallest distance to the threshold or half-gap between adjacent arms. By Pinsker's inequality, , so the leading term matches (d) up to the ratio , which is near 1 when means lie near 1/2. The authors expect confidence bounds built from 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 . The cost then scales with and grows only slowly with . Classifying every arm instead allocates samples in proportion to , so arms near the threshold dominate. APT reaches that allocation without knowing or , whereas confidence-bound rules need both for tuning.
An arm whose mean sits exactly at the threshold is classified only with probability of order , so is infinite with high probability. A sampling rule that prioritizes arms near can then spend almost all its budget on that arm. At practical , the term remains a visible part of HDoC's cost, and HDoC's bound says nothing when . For thresholding, the upper and lower bounds leave a wide constant gap in the exponent, 1/64 against 3 when . 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 law of the iterated logarithmfor a sum of i.i.d. mean-zero terms with variance , almost surely: the largest fluctuations exceed only by a 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.
Even a learner told every gap errs with probability about on one of problems that differ by flipping one arm. Set , , and take unit-variance Gaussian arms. In problem , arm has mean ; in problem , arm alone flips to . Each sample of arm carries KL divergence between and . Let be the event that arm is classified above 0, which is an error under . Because and differ only on arm , changing measure giveswhere is the log-likelihood ratio of arm 's samples. Under , the log-likelihood ratio of arm 's first samples has mean and standard deviation . A peeling argumentcutting the possible sample counts into ranges , bounding the deviation within each range, and adding the bounds, at the cost of a factor of about keeps within of uniformly over all counts and arms, which produces the factor.
Since the sample counts sum to , every run leaves some arm with . Apply with and . The fluctuation splits into plus , and adding to turns the 2 into 3. On the event that every arm is classified above 0, average the error probabilities over . That under-sampled arm alone contributes , and the logarithmic term combines with the from averaging to give the polynomial factor in (a). Either errs with probability at least 1/2, or every arm is classified above 0 with probability at least 1/2 under and some errs with probability at least . Shifting means to and adding to the gaps extends the bound to the general case.
APT samples the arm whose estimated is smallest, which needs no knowledge of , , or . Step 1's pigeonhole bound shows that the balancing allocation equalizes across arms. An oracle knowing the gaps would give arm exactly samples, setting for every arm. Each empirical mean then lands within of except with probability at most (computed here). That accuracy classifies every arm outside the -band. APT pursues this allocation from empirical estimates. After one pull of each arm, each round samplesand at time outputs . For an arm far from the threshold, the index APT's index , an estimate of 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 and a bound on to set its exploration constant.
On a likely event every arm receives at least samples, which is enough to classify it. Set and let be the event that for every arm at every count . Peeling over dyadic count ranges with the sub-Gaussian maximal inequalityfor partial sums of independent mean-zero -sub-Gaussian terms, : the running maximum has the tail of the final sum gives , where . On , the triangle inequality keeps within of for every arm and round. The pulls beyond the initial samples sum to , so some arm satisfies . At the last round when was pulled, its count was and its index was smallest. Write for . Since , event givesfor every arm . Rearranging yields . On , that sample count puts within of , which falls on the right side of for every arm at distance at least from . APT makes no error on .
The known-mean result (c) uses the same last-round argument. With and , the best arm's estimated gap stays near 0 so its index stays small, while each suboptimal arm's index grows like . On a likely event, each suboptimal arm therefore receives fewer than samples. Those counts sum to less than , so the best arm takes more than half the pulls and finishes as the most-sampled arm.
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 Bernoulli arms, , , and horizons up to . They test three mean profiles: three groups, an arithmetic progression, and a geometric progression away from . They compare APT against uniform allocation, the combinatorial successive-rejectsa 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 times 1/4, 1, or 256. Only UCBE at the constant suggested by its analysis matched or beat APT, and that setting requires knowing . Its other two settings fared about as poorly as uniform allocation. The paper reports log-error plots against without a table, and Gaussian arms with variance 0.25 behave the same way.
The good-arm lower bound lets the algorithm choose which good arms to report, and the cheapest choice is the arms furthest above the threshold. Fix a good arm 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 alone to , just below the threshold. Let be the probability that appears among the first reports in the original bandit. In the modified bandit, arm is bad, so it appears among the first reports with probability at most . When , Kaufmann et al.'s (2016) change-of-measure inequality givesHere the binary relative entropy , the divergence between Bernoulli laws with means and is the binary relative entropy, the same function as .
Unlike best arm identification, no single has to sit near 1. A -PAC algorithm only needs to report some good arms, so the first reports are all good with probability at least . Summing over the good arms gives with . Since , is at least the minimum of over all meeting that sum constraint. That minimization is a linear program. Its solution puts the mass on the arms with the largest divergences, which are the best arms. Evaluating a feasible point of the dual and sending yields (d).
Declaring an arm when its confidence bound crosses is -PAC for any sampling rule. Every algorithm Kano et al. compare shares this identification rule. An algorithm reports arm as good once its lower confidence boundreaches . It discards arm once the upper confidence bound the upper confidence bound ; is the same with a minus sign, the same formula with a plus sign, falls below . At any fixed sample count , arm 's -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 by . Summing over gives for a good arm's upper bound ever dropping below , and the same bound holds for a bad arm's lower bound exceeding . A union bound over all arms establishes both halves of the -PAC condition for every . The sampling rule therefore affects only speed. Every arm must be classified before , so the bound in (e) holds for every sampling rule. As a result, all methods in Step 8 stop at about the same time.
Sampling by an upper confidence bound with a bonus keeps the arms outside the top at samples each. To first order, arm needs samples before Step 6's confidence radius shrinks below 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 . Yet the current leader may be bad, or another arm may confirm faster, a tension Kano et al. call the dilemma of confidencein 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,LUCB-G instead adapts the best-arm rule and pulls the arm with the largest , whose bonus scales with . Since the run finishes within rounds with high probability, HDoC's bonus satisfies . Any arm below is therefore pulled only until drops below , which takes about samples. LUCB-G's bonus instead pulls that arm times.
The proof splits into four counts using a horizon of order and a small margin . First, each of the top arms takes at most samples to first order, plus by Hoeffding's inequality. Second, up to round , while the leading index stays at least , each remaining arm is pulled at most times. The proof bounds the remaining two expected counts separately: rounds up to where the leading index dips below , and rounds after . Dividing by , letting , and then sending yields (e).
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 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 , with three arms at 0.1, four at 0.35, 0.45, 0.55, and 0.65, and three at 0.9. At , 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 . Roughly, APT-G equalizes , so scales like . Each arm at 0.45 or 0.55 then draws 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 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 , 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 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 , HDoC's second report had higher variance, averaging samples (mean and standard deviation) against 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 , 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 grows to 50. At and 0.005, the term remains a visible part of the cost.
Terms
- Thresholding bandit
- fixed budget ; classify every arm above or below , precision
- Complexity
- ; best error
- APT
- sample ; no , or needed; error up to log terms
- Balanced allocation
- equal across arms
- Good arm identification
- report arms with one at a time, error at most
- GAI lower bound
- : only the best arms
- HDoC
- sample by ; report when ; plus 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 identifies the best arm and keeps UCB-order regret
- Arm at the threshold
- classified only with probability of order ; with high probability
Sources
- Andrea Locatelli, Maurilio Gutzeit, and Alexandra Carpentier. An Optimal Algorithm for the Thresholding Bandit Problem. ICML, 2016.
- Hideaki Kano, Junya Honda, Kentaro Sakamaki, Kentaro Matsuura, Atsuyoshi Nakamura, and Masashi Sugiyama. Good Arm Identification via Bandit Feedback. Machine Learning, 2019.
- Jean-Yves Audibert, Sébastien Bubeck, and Rémi Munos. Best Arm Identification in Multi-Armed Bandits. COLT, 2010.
Connected notes
- Direct preference optimizationLearning from human preferences · Aiming at many good answers
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 , which puts mass wherever the reference does and concentrates on the best sequences only as .
- RL and the set of solvable problemsReinforcement learning for reasoning · Aiming at many good answers
On a 0/1 reward, RL raises the chance 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@ as grows, and longer training raises pass@1 while pass@256 falls.
- Dataset distillation via driftingDataset distillation · Aiming at many good answers
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%.
- Popular and rare tokensRunning RL at scale · Aiming at many good answers
Standard policy gradients push answers in proportion to their probability and create rank bias that favors popular proofs, whereas unlikeliness rewards, pass@ objectives weighting prompts by , and RepExp's novelty bonus keep rarer solutions in play.