Sam Babichenko

Reading notes / Bandits and exploration

Dueling bandits and the von Neumann winner

Yue et al., 2009; Dudík et al., 2015

Duels
KKnumber of arms; in the search example, the candidate rankers
TTnumber of rounds, the horizon
(at,bt)(a_t,b_t)the pair of arms dueled in round tt; they may be the same arm
P(a≻b)P(a\succ b)probability that arm aa beats arm bb in a duel, P(a≻b)=12+ε(a,b)P(a\succ b)=\tfrac{1}{2}+\varepsilon(a,b); fixed, with duels independent
ε(a,b)\varepsilon(a,b)margin of arm aa over arm bb, ε(a,b)=P(a≻b)−12\varepsilon(a,b)=P(a\succ b)-\tfrac{1}{2}; skew-symmetric, ε(b,a)=−ε(a,b)\varepsilon(b,a)=-\varepsilon(a,b)
εij\varepsilon_{ij}margin ε(i,j)\varepsilon(i,j) for arms numbered in Yue et al.'s order; positive when i<ji\lt j
1≻2≻⋯≻K1\succ2\succ\dots\succ KYue et al.'s total order of the arms, by which they are numbered; arm 1 is best
RTR_Tstrong regret over TT rounds, RT=∑t(ε(1,at)+ε(1,bt))R_T=\sum_t\big(\varepsilon(1,a_t)+\varepsilon(1,b_t)\big): the margins by which arm 1 would beat both arms shown
Interleaved Filter
b^\hat bincumbent: the arm that Interleaved Filter currently duels against every remaining arm
b′b'challenger that beats the incumbent b^\hat b with confidence; it ends the round and becomes the incumbent
P^t\hat P_tfraction of the first tt duels of a match between arms ii and jj that arm ii won
ctc_tconfidence half-width after tt duels of a match, ct=log⁡(1/δ)/tc_t=\sqrt{\log(1/\delta)/t}
nnnumber of duels each match of a round has reached when the round ends
SSin Step 4, the number of duels the challenger b′b' won against the incumbent b^\hat b in the round
S′S'in Step 4, the number of duels the incumbent b^\hat b won against arm kk in the round
HK−1H_{K-1}harmonic number HK−1=∑i<K1/iH_{K-1}=\sum_{i\lt K}1/i, between ln⁡K\ln K and ln⁡K+1\ln K+1
qjq_jlower-bound instance in which arm jj is best and every better arm wins with probability 12+ε\tfrac{1}{2}+\varepsilon (Step 5)
djd_jnumber of duels that involve arm jj during the TT rounds (Step 5)
Von Neumann winner and context
EEmargin matrix, K×KK\times K with entries Eab=ε(a,b)E_{ab}=\varepsilon(a,b); skew-symmetric, E⊤=−EE^\top=-E
EtE_tmargin matrix of round tt in the contextual problem, drawn with the context and hidden from the learner; its entries are εt(a,b)\varepsilon_t(a,b)
wwrow player's probability vector over the arms, w(a)≥0w(a)\ge0, ∑aw(a)=1\sum_aw(a)=1; a von Neumann winner if ∑aw(a) ε(a,b)≥0\sum_aw(a)\,\varepsilon(a,b)\ge0 for every arm bb
uucolumn player's probability vector over the arms
val\mathrm{val}value of the zero-sum game with payoff matrix EE, val=max⁡wmin⁡uw⊤Eu\mathrm{val}=\max_w\min_uw^\top Eu; zero, because EE is skew-symmetric
xtx_tcontext of round tt, shown to the learner before it picks the duel
π\pia policy: a rule that maps each context xx to an arm π(x)\pi(x)
π′\pi'a second policy, the opponent of π\pi in a duel of policies
Π\Pipolicy class, finite but typically exponentially large, such as all decision trees of a given size
M(π,π′)M(\pi,\pi')expected margin of policy π\pi over π′\pi' on a random context, M(π,π′)=E[ε(π(x),π′(x))]M(\pi,\pi')=\mathbb E[\varepsilon(\pi(x),\pi'(x))]
WWprobability distribution over the policies in Π\Pi; a contextual von Neumann winner if ∑πW(π)M(π,π′)≥0\sum_\pi W(\pi)M(\pi,\pi')\ge0 for every π′\pi'
RegT\mathrm{Reg}_Tregret against the best policy in hindsight, RegT=max⁡π∈Π∑t(εt(π(xt),at)+εt(π(xt),bt))\mathrm{Reg}_T=\max_{\pi\in\Pi}\sum_t\big(\varepsilon_t(\pi(x_t),a_t)+\varepsilon_t(\pi(x_t),b_t)\big)
oto_tcentered outcome of round tt, ot=1[at wins]−12o_t=\mathbb 1[a_t\text{ wins}]-\tfrac{1}{2}, with mean εt(at,bt)\varepsilon_t(a_t,b_t)
mmnumber of exploration rounds of uniformly random duels
ε^i\hat\varepsilon_ione-duel estimate of round ii's margin matrix: K2oiK^2o_i on the dueled pair (ai,bi)(a_i,b_i) and 0 elsewhere; unbiased
M^\hat Mestimated policy matrix from the mm exploration rounds, M^(π,π′)=1m∑iε^i(π(xi),π′(xi))\hat M(\pi,\pi')=\frac{1}{m}\sum_{i}\hat\varepsilon_i(\pi(x_i),\pi'(x_i))
vπv_\pipolicy vector in RmK\mathbb R^{mK}, vπ(i,a)=1[π(xi)=a]/mv_\pi(i,a)=\mathbb 1[\pi(x_i)=a]/\sqrt{m}: which arm π\pi picks on each exploration context
BBmK×mKmK\times mK block-diagonal matrix whose ii-th K×KK\times K block is ε^i\hat\varepsilon_i, so that vπ⊤Bvπ′=M^(π,π′)v_\pi^\top Bv_{\pi'}=\hat M(\pi,\pi')
CCpolicy hull: the convex hull of the policy vectors vπv_\pi; each point is a mixture of policies
NNnumber of oracle calls an algorithm makes; its output mixes at most NN policies
Constants
ε12\varepsilon_{12}margin of the best arm over the second best, ε(1,2)\varepsilon(1,2); sets IF's rate Klog⁡T/ε12K\log T/\varepsilon_{12} in result (a)
ε\varepsiloncommon margin of the lower-bound instances in result (a)
δ\deltafailure probability; 1/(TK2)1/(TK^2) in Interleaved Filter
γ\gammaapproximation level in result (c): the output wins with probability at least 12−γ2\tfrac{1}{2}-\tfrac{\gamma}{2}
LLL=ln⁡(∣Π∣/δ)L=\ln(|\Pi|/\delta), the logarithm of the class size, which sets the sample sizes in result (c)
Paper symbols
b1,…,bKb_1,\dots,b_KYue et al.'s names for the arms 1,…,K1,\dots,K
b∗b^*Yue et al.'s name for the best arm, arm 1
P(a,b)P(a,b)what Dudík et al. write for 2ε(a,b)2\varepsilon(a,b)
ϵ\epsilonDudík et al.'s symbol for the approximation level γ\gamma
ρ\rhoDudík et al.'s symbol for the opposing policy π′\pi'

Context. Some feedback is reliable only as a comparison. A search engine can merge the outputs of two rankers into one merged into a single result list that alternates documents from two rankings, so that a user's clicks show which ranking the user preferred (Radlinski et al., 2008) list so clicks show which ranker the user preferred. Absolute scores for a single ranker are noisy and lack a natural scale. A a bandit in which each round pits two arms against each other in a duel and reveals only which of the two won keeps the exploration-exploitation problem of a multi-armed bandit, but each round pits two arms against each other and reveals only the winner. Both the best arm and the reward lost, summed over rounds, against always playing the best arm; for duels it has to be defined from comparison probabilities. Reading note: UCB and Thompson sampling must then be defined from comparisons alone.

Yue et al. (2009) assume a total order over the arms with two regularity conditions and define regret against the top arm. Their Interleaved Filter matches a regret lower bound up to a constant factor. Dudík et al. (2015) add a the side information observed before a choice, such as a description of the user and the query. Reading note: Contextual bandits, such as user and query, and drop the total order. Comparisons pooled across a population can cycle, leaving no single arm that beats all others. Dudík et al. target the a probability distribution over arms (or policies) such that an arm drawn from it wins a duel against every fixed arm with probability at least 12\tfrac{1}{2}. Reading note: Nash learning from human feedback and self-play preference optimization, a probability distribution over arms or rules that map each context to an arm, and learn it over policy classes too large to enumerate.

Under a total order, learning from duels costs about as much as learning from numeric scores. Regret scales as the number of arms times the logarithm of the horizon, divided by the best arm's smallest winning margin. Eliminating weak arms early and focusing duels on strong contenders achieves this rate. Without the order the target becomes a randomized choice. An arm drawn from the von Neumann winner beats any fixed arm with probability at least one half. Such a distribution always exists because the comparison margins form a symmetric a two-player game in which one player's gain is the other's loss; here each player picks a distribution over arms and the first receives the expected margin of its arm over the other's of value zero. In Dudík et al.'s web search ranker comparisons, an arm beating all others is often absent, yet the von Neumann winner mixes at most five rankers.

Setting. There are the number of arms; in the search example, the candidate rankers arms. In each of the number of rounds, the horizon rounds, the learner picks a pair the two arms dueled in round tt; they may be the same arm, possibly the same arm twice, and observes which arm wins. Duels are independent. Arm aa beats arm bb with fixed probability P(a≻b)P(a\succ b)=12+ε(a,b){}=\tfrac{1}{2}+\varepsilon(a,b), where the ε(a,b)=P(a≻b)−12\varepsilon(a,b)=P(a\succ b)-\tfrac{1}{2}, in (−12,12)(-\tfrac{1}{2},\tfrac{1}{2}): how far the duel is from a coin flip, positive when aa is the likelier winner ε(a,b)\varepsilon(a,b) is skew-symmetric, ε(b,a)=−ε(a,b)\varepsilon(b,a)=-\varepsilon(a,b). Yue et al. assume a total order 1≻2≻⋯≻K1\succ2\succ\dots\succ K, so arm 1 is best and εij\varepsilon_{ij}=ε(i,j)>0{}=\varepsilon(i,j)\gt0 whenever i<ji\lt j. For every triple i<j<ki\lt j\lt k, they also assumeεik≥max⁡(εij,εjk),εik≤εij+εjk.\begin{aligned}\varepsilon_{ik}&\ge\max(\varepsilon_{ij},\varepsilon_{jk}),\\\varepsilon_{ik}&\le\varepsilon_{ij}+\varepsilon_{jk}.\end{aligned}The first condition, why: under it a better arm is at least as likely as a worse one to beat the incumbent (Step 3), the best arm's smallest margin is ε12\varepsilon_{12} (Step 2), and arms behind a beaten incumbent can be discarded (Step 4), requires wider gaps in the order to carry at least as large a margin. The second, the why: it bounds the cost of the second arm of a duel in strong regret, which charges both arms (Step 2); the weak-regret bound needs only transitivity, caps how fast margins add along the order. Both hold under the comparison probabilities of the form θi/(θi+θj)\theta_i/(\theta_i+\theta_j), or equivalently σ(si−sj)\sigma(s_i-s_j) with logistic σ\sigma and scores si=log⁡θis_i=\log\theta_i (Bradley and Terry, 1952). Reading notes: InstructGPT, Nash learning from human feedback and self-play preference optimization, where P(i≻j)=θi/(θi+θj)P(i\succ j)=\theta_i/(\theta_i+\theta_j) for strengths θi>0\theta_i\gt0. They also hold when each arm draws a unit-variance Gaussian utility with its own mean and the larger draw wins.

Yue et al. measure RT=∑t=1T(ε(1,at)+ε(1,bt))R_T=\sum_{t=1}^T\big(\varepsilon(1,a_t)+\varepsilon(1,b_t)\big): the sum over rounds of the margins by which the best arm, arm 1, would beat each of the two arms dueled; a round costs nothing only when both are arm 1 by summing arm 1's margins over both dueled arms:RT=∑t=1T(ε(1,at)+ε(1,bt)).R_T=\sum_{t=1}^T\big(\varepsilon(1,a_t)+\varepsilon(1,b_t)\big).In the search setting, ε(1,at)\varepsilon(1,a_t) is the fraction of users preferring the best ranker to ata_t, minus one half. They also bound the same sum with only the smaller of the two margins in each round, min⁡(ε(1,at),ε(1,bt))\min(\varepsilon(1,a_t),\varepsilon(1,b_t)), which charges only the smaller margin in each round, and obtain the same rates.

Dudík et al. drop the order and collect all margins into a K×KK\times K skew-symmetric matrix the margin matrix, with entries Eab=ε(a,b)E_{ab}=\varepsilon(a,b); skew-symmetric, E⊤=−EE^\top=-E, with E⊤=−EE^\top=-E, assuming nothing else. A an arm a∗a^* that beats every other arm, ε(a∗,b)>0\varepsilon(a^*,b)\gt0 for all b≠a∗b\ne a^*; Yue et al.'s arm 1 is one, an arm beating every other, then need not exist. A probability vector a probability vector over the KK arms, w(a)≥0w(a)\ge0 and ∑aw(a)=1\sum_aw(a)=1 over the arms is a von Neumann winner if∑a=1Kw(a) ε(a,b)≥0for every arm b.\sum_{a=1}^Kw(a)\,\varepsilon(a,b)\ge0\quad\text{for every arm }b.An arm drawn from ww then beats any fixed arm bb, and hence any randomized opponent, with probability at least 12\tfrac{1}{2}.

In the contextual setting, each round independently draws a context the context of round tt, shown to the learner before it picks the duel and a hidden margin matrix the margin matrix of round tt, hidden from the learner; εt(a,b)\varepsilon_t(a,b) is its entry from a fixed unknown distribution. The learner sees only xtx_t before choosing the duel. Each policy π\pi in a finite, typically huge class the policy class, finite but typically exponentially large, such as all decision trees of a given size maps contexts to arms. Two policies duel by playing their arms on a random context. Their expected margins form the ∣Π∣×∣Π∣|\Pi|\times|\Pi| policy matrixM(π,π′)=E[ε(π(x),π′(x))].M(\pi,\pi')=\mathbb E\big[\varepsilon(\pi(x),\pi'(x))\big].A contextual von Neumann winner is a distribution a probability distribution over the policies in Π\Pi over Π\Pi that satisfies the von Neumann condition with M(π,π′)M(\pi,\pi') in place of ε(a,b)\varepsilon(a,b). Regret compares the dueled arms against the best policy in hindsight:RegT=max⁡π∈Π∑t=1T(εt(π(xt),at)+εt(π(xt),bt)),\begin{aligned}\mathrm{Reg}_T=\max_{\pi\in\Pi}\sum_{t=1}^T\big(&\varepsilon_t(\pi(x_t),a_t)\\&+\varepsilon_t(\pi(x_t),b_t)\big),\end{aligned}where εt\varepsilon_t is the margin under EtE_t. With one context, a policy is an arm, and under Yue et al.'s assumptions arm 1 maximizes every round's term, giving RegT=RT\mathrm{Reg}_T=R_T. That equality is derived here from strong stochastic transitivity; Dudík et al. state agreement up to constant factors.

Main results. (a) IF2's regret is optimal under a total order (Yue et al., Theorems 2 and 4). Interleaved Filter (IF) maintains an incumbent arm the incumbent, the arm that Interleaved Filter currently duels against every remaining arm and duels it in parallel against every other surviving arm. IF drops an arm once b^\hat b beats it with confidence. A challenger that beats b^\hat b with confidence becomes the new incumbent. IF2 also prunes every arm that the beaten incumbent was ahead of, confident or not. Once one arm remains, the learner duels it against itself. For why: it gives log⁡(TK)≤2log⁡T\log(TK)\le2\log T, which turns the log⁡(TK)\log(TK) length of a match into log⁡T\log T (Step 2), IF2 achieves, under both strong and weak regret,E[RT]=O(Kε12log⁡T),\mathbb E[R_T]=O\Big(\frac{K}{\varepsilon_{12}}\log T\Big),where ε12\varepsilon_{12} is the margin between arms 1 and 2. Every algorithm suffers regret Ω(Klog⁡T/ε)\Omega(K\log T/\varepsilon) on instances whose margins all equal the common margin of the lower-bound instances, which is then also ε12\varepsilon_{12}, so this rate is tight up to a constant factor. Without IF2's extra pruning, IF1 has expected regret O((Klog⁡K/ε12)log⁡T)O((K\log K/\varepsilon_{12})\log T).

(b) A von Neumann winner always exists (Dudík et al., Proposition 1). Consider the zero-sum game where the row player chooses a distribution ww, the column player chooses a distribution the column player's probability vector over the arms, and the row player earns w⊤Euw^\top Eu. A distribution ww is a von Neumann winner of EE if and only if it is a a strategy that maximizes the payoff the row player can guarantee, min⁡uw⊤Eu\min_uw^\top Eu of this game. Because this symmetric game has value 0, every margin matrix admits a von Neumann winner. Whenever a Condorcet winner exists, it is the unique von Neumann winner.

(c) Learning over a huge policy class (Dudík et al., Theorems 2, 4 and 5). Fix a failure probability a failure probability; the guarantees hold with probability 1−δ1-\delta. Interleaved Filter uses δ=1/(TK2)\delta=1/(TK^2) and write LL=ln⁡(∣Π∣/δ){}=\ln(|\Pi|/\delta). Two copies of a contextual bandit algorithm (Beygelzimer et al., 2011) that keeps a weight on every policy in Π\Pi and, with probability 1−δ1-\delta, collects reward within 12KTL12\sqrt{KTL} of the best policy for rewards in [−1,1][-1,1], even when an adversary picks the rewards dueling each other achieve RegT=O(KTL)\mathrm{Reg}_T=O(\sqrt{KTL}) with probability 1−δ1-\delta, even against adversarial contexts and margins. Each copy, however, must keep a weight for every policy. To avoid enumerating Π\Pi, Dudík et al. assume a a routine that, given a cost ci(a)c_i(a) for each arm on each of mm recorded contexts, returns the policy with the least total cost ∑ici(π(xi))\sum_ic_i(\pi(x_i)); any cost-sensitive multiclass learner can play this role. Reading note: Contextual bandits, a cost-sensitive multiclass learner over recorded contexts. Fix a target approximation level the approximation level of the computed distribution: it wins against every policy with probability at least 12−γ2\tfrac{1}{2}-\tfrac{\gamma}{2} and run the number of exploration rounds of uniformly random duels rounds of uniformly random duels, withm=O(K2γ2L).m=O\Big(\frac{K^2}{\gamma^2}L\Big).With probability 1−δ1-\delta, each of their two oracle algorithms makes the number of oracle calls an algorithm makes; its output mixes at most NN policies calls and returns a mixture of at most NN policies that beats every policy in Π\Pi with probability at least 12−γ2\tfrac{1}{2}-\tfrac{\gamma}{2}. Their call counts are N=O(K6L/γ4)N=O(K^6L/\gamma^4) and N=O(K8/γ4)N=O(K^8/\gamma^4), respectively. For horizon T≥KT\ge K, tuning mm and then exploiting the output yields RegT=O(K2/3T2/3L1/3)\mathrm{Reg}_T=O(K^{2/3}T^{2/3}L^{1/3}) with probability 1−δ1-\delta.

Consequences and limits. Under a total order, dueling regret matches the classical Klog⁡T/εK\log T/\varepsilon rate for scored arms with uniform gap ε\varepsilon, because IF places its duels selectively. A weak incumbent is expensive per duel and must be dethroned quickly, while weak challengers must leave early. IF therefore puts O(log⁡K)O(\log K) incumbents in expectation through O(K)O(K) matches each, and every other arm through at most O(log⁡K)O(\log K) matches. A knockout tournament, by contrast, can spend arbitrarily many duels separating two nearly equal bad arms. Every such duel pays regret, so the tournament can exceed the optimal bound by an arbitrary factor.

The total order is the fragile assumption. Among search rankers, larger subsets lose their Condorcet winner steadily until none exists for the full set (Step 7). Condorcet-based algorithms then have no target, while the von Neumann winner remains well-defined. The von Neumann winner is also invariant to clones. Duplicating an arm only splits its weight between the arm and its copy, whereas duplicates can overturn both the the arm that beats the largest number of other arms and the the arm with the highest probability of beating an arm drawn uniformly at random (Step 6). That stability matters for policy classes, which routinely contain many policies that act identically.

Dudík et al. do not run their learning algorithms in experiments. Their oracle call counts, O(K6L/γ4)O(K^6L/\gamma^4) and O(K8/γ4)O(K^8/\gamma^4), are already steep at ten arms, and both methods rely on uniform exploration. The authors note that large production systems often permit only fixed exploration anyway, because adaptive exploration needs a real-time feedback loop that existing infrastructure may lack. The same preference game underlies fine-tuning a language model toward the policy that no other policy beats more than half the time under a learned preference model, a Nash equilibrium of the comparison game (Munos et al., 2024). Reading note: Nash learning from human feedback and self-play preference optimization (Munos et al., 2024), with language-model responses as arms and a judge's comparisons as duels.

Step 1

Each match finds the better arm with probability 1−δ1-\delta, after a number of duels set by its margin. IF sets δ=1/(TK2)\delta=1/(TK^2). After tt duels between arms ii and jj, it tracks arm ii's win fraction the fraction of the first tt duels of a match that arm ii won and the confidence interval P^t±ct\hat P_t\pm c_t, with ctc_t=log⁡(1/δ)/t{}=\sqrt{\log(1/\delta)/t}. By Hoeffding's inequality, this interval misses P(i≻j)P(i\succ j) with probability at most 2e−2tct2=2δ2≤δ2e^{-2tc_t^2}=2\delta^2\le\delta. The match ends once 12\tfrac{1}{2} leaves the interval, naming the true winner with probability at least 1−δ1-\delta. The half-width drops below εij/2\varepsilon_{ij}/2 after O(log⁡(TK)/εij2)O(\log(TK)/\varepsilon_{ij}^2) duels. Any interval containing P(i≻j)P(i\succ j) then excludes 12\tfrac{1}{2}, so the match has stopped with high probability. Across at most K2K^2 matches, a union bound keeps the chance of any mistake at 1/T1/T or less. A wrong final arm costs O(T)O(T) regret, so mistakes add O(1)O(1) to expected regret, leaving regret on the clean event to bound.

Step 2

Every match costs regret of order log⁡T/ε12\log T/\varepsilon_{12}, however bad the incumbent. Incumbent jj duels all surviving arms in parallel, so the round ends no later than its match against arm 1. By Step 1, that takes O(log⁡(TK)/ε1j2)O(\log(TK)/\varepsilon_{1j}^2) duels. Under weak regret, each duel costs at most ε1j\varepsilon_{1j}, so every match costsε1j⋅O(log⁡(TK)ε1j2)=O(log⁡(TK)ε1j)=O(log⁡Tε12),\begin{aligned}\varepsilon_{1j}\cdot O\Big(\frac{\log(TK)}{\varepsilon_{1j}^2}\Big)&=O\Big(\frac{\log(TK)}{\varepsilon_{1j}}\Big)\\&=O\Big(\frac{\log T}{\varepsilon_{12}}\Big),\end{aligned}using log⁡(TK)≤2log⁡T\log(TK)\le2\log T for T≥KT\ge K and ε1j≥ε12\varepsilon_{1j}\ge\varepsilon_{12} from transitivity. A bad incumbent is costly per duel but exits quickly; a near-best incumbent lingers, yet each duel costs little. Strong regret also charges the opponent ii. If ii is better than jj, transitivity gives ε1i≤ε1j\varepsilon_{1i}\le\varepsilon_{1j}, at most doubling the per-duel cost. If ii is worse than jj, the triangle inequality gives ε1j+ε1i≤2ε1j+εji≤3max⁡(ε1j,εji)\varepsilon_{1j}+\varepsilon_{1i}\le2\varepsilon_{1j}+\varepsilon_{ji}\le3\max(\varepsilon_{1j},\varepsilon_{ji}). The match ends no later than when arm 1 beats jj or jj beats ii, taking at most O(log⁡(TK)/max⁡(ε1j,εji)2)O(\log(TK)/\max(\varepsilon_{1j},\varepsilon_{ji})^2) duels. Multiplying gives at most three times the weak-regret bound, since max⁡(ε1j,εji)≥ε1j≥ε12\max(\varepsilon_{1j},\varepsilon_{ji})\ge\varepsilon_{1j}\ge\varepsilon_{12}.

Step 3

The incumbent changes O(log⁡K)O(\log K) times, which gives IF1's bound. Each round installs a strictly better incumbent. Under strong stochastic transitivity, a better arm is at least as likely as a worse one to win the round. The worst case for the round count is therefore a random walk that jumps from the current incumbent to a uniformly random better arm. Started at arm KK, that walk visits any arm i<Ki\lt K with probability 1/i1/i, since its first jump into {1,…,i}\{1,\dots,i\} lands uniformly on those ii arms. These visit indicators are independent across ii. The round count equals one plus the number of visited arms below KK, giving mean 1+HK−11+H_{K-1}, where the harmonic number ∑i=1K−11/i\sum_{i=1}^{K-1}1/i, between ln⁡K\ln K and ln⁡K+1\ln K+1 is about ln⁡K\ln K. By a Chernoff bound, the count is O(log⁡K)O(\log K) with high probability. Each round plays at most K−1K-1 matches, so IF1 runs O(Klog⁡K)O(K\log K) matches and Step 2 yields IF1's bound.

Step 4

Removing the arms that were merely behind a beaten incumbent is safe and leaves O(K)O(K) matches. When a challenger the arm that beats the incumbent with confidence and ends the round beats incumbent b^\hat b with confidence after the number of duels each match of the round has reached when the round ends duels per match, IF2 also prunes every arm kk trailing b^\hat b. Suppose such an arm kk were actually better than b′b'. Transitivity then makes kk at least as likely to beat b^\hat b as b′b' is, so P(b′≻b^)+P(b^≻k)=1+P(b′≻b^)−P(k≻b^)≤1P(b'\succ\hat b)+P(\htmlData{gr=g26}{\hat b}\succ k)=1+P(b'\succ\hat b)-P(k\succ\hat b)\le1. Write the number of duels b′b' won against b^\hat b in the round for b′b''s wins over b^\hat b and the number of duels b^\hat b won against arm kk in the round for b^\hat b's wins over kk; then E[S+S′]≤n\mathbb E[S+S']\le n. Yet the round ended with S−n/2>nlog⁡(1/δ)S-n/2\gt\sqrt{n\log(1/\delta)} and S′>n/2S'\gt n/2, soS+S′−n>nlog⁡(1/δ).S+S'-n\gt\sqrt{n\log(1/\delta)}.Hoeffding's inequality bounds the probability of this event by δ\delta.

Pruning also cuts total matches to O(K)O(K). An arm facing a better incumbent trails it at round's end with probability at least 12\tfrac{1}{2} minus half the chance of a tie (see the technical notes). IF2 prunes any trailing arm when the incumbent falls, so each arm plays O(1)O(1) expected matches against better incumbents. To count matches against worse incumbents, sum over incumbents instead. Starting at arm KK gives at most K−1K-1 such matches in round 1. Under Step 3's dominance, each later incumbent j<Kj\lt K is visited with probability at most 1/j1/j and faces at most j−1j-1 better arms. Those later rounds contribute at most ∑j=2K−1(j−1)/j<K\sum_{j=2}^{K-1}(j-1)/j\lt K expected matches. Across all arms, IF2 plays O(K)O(K) matches in expectation, and Step 2 gives result (a).

Step 5

Each worse arm must be dueled about log⁡T/ε2\log T/\varepsilon^2 times, which gives the lower bound. Consider instances the lower-bound instances; qjq_j is the instance in which arm jj is best where arm jj is best in qjq_j, the remaining arms keep their index order, and every better arm wins with probability 12+ε\tfrac{1}{2}+\htmlData{gr=g28}{\varepsilon}. Under q1q_1, every duel involving an arm other than arm 1 costs at least ε\varepsilon. Any algorithm whose regret grows slower than every power of TT across all instances must distinguish q1q_1 from each qjq_j. By a change-of-measure inequality (Karp and Kleinberg, 2007), the TT-round history distributions under q1q_1 and qjq_j must have total Kullback-Leibler divergence Ω(log⁡T)\Omega(\log T). Those two instances differ only in duels involving arm jj, and each such duel contributes at most KL(12+ε ∥ 12−ε)≤16ε2\mathrm{KL}(\tfrac{1}{2}+\varepsilon\,\|\,\tfrac{1}{2}-\varepsilon)\le16\varepsilon^2 for ε≤0.47\varepsilon\le0.47. Write the number of duels that involve arm jj during the TT rounds for the number of duels involving arm jj. Then16ε2 Eq1[dj]≥KL(q1∥qj)=Ω(log⁡T),Eq1[RT]≥ε∑j≥2Eq1[dj]=Ω(Klog⁡Tε).\begin{aligned}16\varepsilon^2\,\mathbb E_{q_1}[d_j]&\ge\mathrm{KL}(q_1\|q_j)\\&=\Omega(\log T),\\\mathbb E_{q_1}[\htmlData{gr=gn3}{R_T}]&\ge\varepsilon\sum_{j\ge2}\mathbb E_{q_1}[d_j]\\&=\Omega\Big(\frac{K\log T}{\varepsilon}\Big).\end{aligned}

Step 6

A von Neumann winner exists because a symmetric zero-sum game has value zero. For Dudík et al.'s game, set val=max⁡wmin⁡uw⊤Eu\mathrm{val}=\max_w\min_uw^\top Eu over probability vectors. Skew-symmetry gives w⊤Ew=0w^\top Ew=0, so the column player can hold the row player to 0 by copying ww. Hence val≤0\mathrm{val}\le0. Applying for any matrix AA, max⁡wmin⁡uw⊤Au=min⁡umax⁡ww⊤Au\max_w\min_uw^\top Au=\min_u\max_ww^\top Au over probability vectors w,uw,u: with mixed strategies, the order of play does not matter (von Neumann, 1928) and w⊤Eu=−u⊤Eww^\top Eu=-u^\top Ew givesval=min⁡umax⁡ww⊤Eu=−max⁡umin⁡wu⊤Ew=−val,\begin{aligned}\mathrm{val}&=\min_u\max_ww^\top Eu\\&=-\max_u\min_wu^\top Ew=-\mathrm{val},\end{aligned}so val=0\mathrm{val}=0. Any maxmin strategy ww therefore satisfies w⊤Eu≥0w^\top Eu\ge0 against every uu, which is the von Neumann condition.

With three arms that beat each other in a cycle with probability 1, as in rock-paper-scissors, no Condorcet winner exists. Against any arm, the uniform distribution wins, ties, and loses with probability 13\tfrac{1}{3} each, giving win probability 12\tfrac{1}{2}. Suppose these three arms also beat every other arm, and add an exact copy of the first. The copy gives the arm that beats the first arm an extra win. Under all three tie-scoring conventions the paper considers, that leaves the arm beaten by the first arm strictly behind, so it stops being a Copeland winner. The von Neumann winner instead splits the first arm's 13\tfrac{1}{3} share between it and its copy, keeping equal weight on all three behaviors.

Step 7

Among search rankers a Condorcet winner is often missing, and von Neumann winners are small. Dudík et al. evaluate the 136 single-feature rankers from the the Microsoft Learning to Rank datasets: web queries whose candidate documents are described by 136 numeric features and labeled for relevance learning-to-rank dataset. They compare pairs via interleaving in which each slot of the merged list is filled from one of the two rankings chosen at random, each ranking drawing documents with probabilities that fall with rank (Hofmann et al., 2011) with clicks simulated by an informational click model, mimicking a user exploring a broad topic. As subset size grows, the probability that a random subset has a Condorcet winner drops roughly linearly. It falls from near 1 for a few rankers to about one half at 80 and zero for all 136 (read from the plot).

Across more than a million sampled preference matrices, no von Neumann winner put weight on more than five rankers. Most put weight on one or three, and fewer than 0.03% put weight on five. Over 99.9% placed weight on at least one Copeland winner, though disagreement is possible. In a five-arm appendix example, the fourth arm is both the Copeland and Borda winner. The von Neumann winner is uniform over the first three arms and ignores the fourth.

Step 8

Two no-regret learners dueling each other have low regret, at a cost that grows with the size of the policy class. Run a row copy and a column copy of Exp4.P over Π\Pi. Each round, both copies observe xtx_t, the row copy picks ata_t, and the column copy picks btb_t. With centered outcome oto_t=1[at wins]−12{}=\mathbb 1[a_t\text{ wins}]-\tfrac{1}{2}, the row copy receives oto_t and the column copy receives −ot-o_t. Each copy treats the other as an adversary, which Exp4.P handles. Apply Exp4.P's guarantee against any fixed policy π\pi, use a sum of TT martingale differences, each bounded by cc, exceeds c2Tln⁡(1/δ)c\sqrt{2T\ln(1/\delta)} with probability at most δ\delta (Azuma, 1967) to replace π\pi's realized duel outcomes by expected margins, and invoke skew-symmetry for the column copy. With probability 1−δ1-\delta,∑tot≥∑tεt(π(xt),bt)−O(KTL),−∑tot≥∑tεt(π(xt),at)−O(KTL).\begin{aligned}\textstyle\sum_to_t&\ge\textstyle\sum_t\varepsilon_t(\pi(\htmlData{gr=g22}{x_t}),b_t)\\&\quad-O(\sqrt{KTL}),\\-\textstyle\sum_to_t&\ge\textstyle\sum_t\varepsilon_t(\pi(x_t),a_t)\\&\quad-O(\sqrt{KTL}).\end{aligned}Adding the two inequalities cancels ∑tot\sum_to_t and gives RegT=O(KTL)\mathrm{Reg}_T=O(\sqrt{KTL}). Averaging the row copy's distributions over mm rounds produces a mixture beating every policy with probability at least 12−γ2\tfrac{1}{2}-\tfrac{\gamma}{2} for γ=O(KL/m)\gamma=O(\sqrt{KL/m}). Because Exp4.P stores a weight per policy, its time and memory scale linearly in ∣Π∣|\Pi|, ruling out classes like all decision trees.

Step 9

Uniformly random duels estimate every entry of the policy matrix at once. The learner spends mm rounds dueling pairs (ai,bi)(a_i,b_i) drawn uniformly from all K2K^2 ordered pairs, recording centered outcomes oio_i as in Step 8. Each ordered pair appears with probability 1/K21/K^2, so inverse-probability weighting by K2K^2 and averaging over the mm rounds givesε^i(a,b)=K2oi 1[(a,b)=(ai,bi)],M^(π,π′)=1m∑i=1mε^i(π(xi),π′(xi)).\begin{aligned}\hat\varepsilon_i(a,b)&=K^2o_i\,\mathbb 1[(a,b)=(a_i,b_i)],\\\hat M(\pi,\htmlData{gr=gn6}{\pi'})&=\frac{1}{m}\sum_{i=1}^m\hat\varepsilon_i(\pi(x_i),\pi'(x_i)).\end{aligned}Each the one-duel estimate of round ii's margin matrix: K2oiK^2o_i on the dueled pair and 0 elsewhere is unbiased for round ii's entire margin matrix with variance of order K2K^2. Each M^(π,π′)=1m∑i=1mε^i(π(xi),π′(xi))\hat M(\pi,\pi')=\frac{1}{m}\sum_{i=1}^m\hat\varepsilon_i(\pi(x_i),\pi'(x_i)), the estimate of M(π,π′)M(\pi,\pi') from the mm exploration rounds: each round's one-duel estimate ε^i\hat\varepsilon_i, read at the arms the two policies pick on that round's context is therefore unbiased for M(π,π′)M(\pi,\pi'). a tail bound for a sum of independent bounded terms that scales with their variance: deviations of order Vln⁡(1/δ)\sqrt{V\ln(1/\delta)} plus ln⁡(1/δ)\ln(1/\delta) times the bound on each term, for total variance VV and a union bound over all ∣Π∣2|\Pi|^2 policy pairs control every entry simultaneously with m=O((K2/γ2)L)m=O((K^2/\gamma^2)\htmlData{gr=g32}{L}) rounds, a sample size that grows only logarithmically in ∣Π∣|\Pi|. Any approximate maxmin strategy for M^\hat M is then an approximate von Neumann winner for MM, losing at most twice the uniform estimation error.

Step 10

A classification oracle solves the estimated game over the policy hull. Although M^\hat M is ∣Π∣×∣Π∣|\Pi|\times|\Pi|, it is built from only mm small K×KK\times K matrices. Represent each policy π\pi by the vector the policy vector, in RmK\mathbb R^{mK}, with entries vπ(i,a)=1[π(xi)=a]/mv_\pi(i,a)=\mathbb 1[\pi(x_i)=a]/\sqrt{m}: which arm π\pi picks on each exploration context with entries vπ(i,a)=1[π(xi)=a]/mv_\pi(i,a)=\mathbb 1[\pi(x_i)=a]/\sqrt{m}, and form the mK×mKmK\times mK block-diagonal matrix the mK×mKmK\times mK block-diagonal matrix whose ii-th K×KK\times K block is ε^i\hat\varepsilon_i whose ii-th block is ε^i\hat\varepsilon_i. The two 1/m1/\sqrt{m} factors supply the 1/m1/m average, so vπ⊤Bvπ′=M^(π,π′)v_\pi^\top Bv_{\pi'}=\hat M(\pi,\pi'). Let the policy hull, the convex hull of the policy vectors vπv_\pi; each point is a mixture of policies be the convex hull of the policy vectors; its points are mixtures of policies, and the maxmin problem over M^\hat M becomesmax⁡w∈C min⁡u∈C w⊤Bu.\max_{w\in C}\ \min_{u\in C}\ w^\top Bu.Minimizing a linear function c⋅wc\cdot \htmlData{gr=g21}{w} over CC reduces to finding the vertex vπv_\pi with smallest ∑i=1mc(i,π(xi))\sum_{i=1}^m c(i,\pi(x_i)), a single classification-oracle call.

SparringFPL pits two copies of an online learner (Kalai and Vempala, 2003) that plays the decision with the least total past loss after adding a small random perturbation to that loss against each other. Each step calls the oracle on perturbed cumulative losses, and the algorithm returns the uniform mixture of the row copy's NN policies. ProjectedGD takes gradient steps for the row player against oracle for the column player, the strategy that minimizes the row player's payoff against the row player's current strategy, projecting back onto CC via a short subgame solved with oracle calls. Both algorithms achieve the guarantees of result (c) in O(mKN)O(mKN) time outside the oracle. ProjectedGD uses fewer oracle calls whenever KK is small relative to L\sqrt{L}.

Terms

Dueling bandit
each round duels two arms and reveals only the winner
Margin ε(a,b)\varepsilon(a,b)
P(a≻b)−12P(a\succ b)-\tfrac{1}{2}; antisymmetric
Strong regret RTR_T
∑t(ε(1,at)+ε(1,bt))\sum_t\big(\varepsilon(1,a_t)+\varepsilon(1,b_t)\big), the best arm's margins over both arms shown
Transitivity and triangle inequality
εik≥max⁡(εij,εjk)\varepsilon_{ik}\ge\max(\varepsilon_{ij},\varepsilon_{jk}) and εik≤εij+εjk\varepsilon_{ik}\le\varepsilon_{ij}+\varepsilon_{jk} for i<j<ki\lt j\lt k
Interleaved Filter
an incumbent duels every remaining arm; confident losers leave; a confident winner becomes the incumbent
IF2 pruning
when the incumbent loses, also drop every arm it was ahead of
Optimal rate
O((K/ε12)log⁡T)O((K/\varepsilon_{12})\log T) for IF2, against Ω(Klog⁡T/ε)\Omega(K\log T/\varepsilon) for any algorithm
Condorcet winner
an arm that beats every other arm; may not exist
Von Neumann winner
ww with ∑aw(a)ε(a,b)≥0\sum_aw(a)\varepsilon(a,b)\ge0 for all bb; a maxmin strategy of a value-0 game, so it always exists
Uniform-exploration estimate
K2oiK^2o_i on the dueled pair, 0 elsewhere; unbiased for the round's margin matrix
Oracle algorithms
m=O(K2L/γ2)m=O(K^2L/\gamma^2) rounds; O(K6L/γ4)O(K^6L/\gamma^4) or O(K8/γ4)O(K^8/\gamma^4) classification-oracle calls

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