| Adversarial bandit (EXP3) | |
|---|---|
| number of arms | |
| an arm, one of | |
| horizon: the total number of rounds | |
| a round, | |
| reward of arm at round , in , fixed by the adversary before play; in the corrupted model, the reward after the adversary's change, which is what the learner observes | |
| arm played at round | |
| arm 's total reward over the game, | |
| largest total reward of a single arm, | |
| regret against the best arm in hindsight | |
| EXP3's weight on arm at round : starts at 1 and is multiplied by each round | |
| EXP3's total weight at round , | |
| probability that EXP3 plays arm at round , | |
| importance-weighted estimate of arm 's reward at round : if arm was played, else 0; unbiased for | |
| estimated total reward of arm , | |
| expectation in the lower-bound construction (Step 3) when arm is the good arm, paying 1 with probability while the others are fair coins | |
| expectation in the lower-bound construction (Step 3) when every arm is a fair coin | |
| number of rounds in which the algorithm plays arm (Step 3) | |
| Corrupted stochastic bandit | |
| mean of arm 's reward distribution before corruption | |
| best mean, | |
| a best arm, one with mean | |
| gap of arm , | |
| stochastic reward before corruption (the paper writes ) | |
| corruption injected at round , : the largest change the adversary makes to any arm's reward | |
| bound on the total corruption: the instance is -corrupted if on every sample path; the race does not know | |
| corruption the slow rule observes at round (Step 6): at most if the slow rule acts at round , else 0 | |
| a layer of the race, : an elimination rule picked with probability each round | |
| first layer that tolerates the corruption: the smallest with | |
| confidence radius of arm after plays; with known, (Step 5); the paper writes | |
| Constants | |
| EXP3's exploration rate in : the share of probability spread uniformly over the arms; tuned in (a) to | |
| known upper bound on used to tune in (a) | |
| advantage of the good arm in the lower bound (b): it pays 1 with probability ; set to | |
| failure probability: the bounds of EXP3.P and of (c) hold with probability at least | |
| EXP3.P's bonus scale, , Step 4 | |
| number of experts EXP4 competes with (the paper writes ) | |
| number of segments of the comparison sequence in EXP3.S, which switches arms at most times | |
| lower exponent in (d): the corruption level lies between and , with | |
| upper exponent in (d): the corruption level lies between and , with | |
| constant in the stochastic bound assumed in (d): pseudo-regret at most on every two-armed instance with gap | |
Context. Stochastic bandit rules such as 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 assume each arm's rewards are drawn independently from a fixed distribution and lean heavily on early samples. When rewards drift or someone manipulates them, those early samples mislead. Lykouris et al. (2018) point to click fraudautomated searches or clicks that imitate users in order to change which ads a platform learns to show, where bots trigger a competitor's ad without clicking so its estimated click rate drops. Auer et al. (2002) drop the statistical model altogether. An adversary fixes every arm's reward sequence in advance, and the learner competes with the best single arm in hindsight. Lykouris et al. study the middle ground, stochastic rewards perturbed by a bounded total corruption unknown to the learner.
Both papers defend against an adversary by randomizing, since an opponent who cannot predict the next play cannot target it. Auer et al.'s EXP3exponential-weight algorithm for exploration and exploitation: play each arm with probability proportional to the exponential of a multiple of its estimated total reward, mixed with a little uniform play weights each arm exponentially in an importance-weighted estimate of its total reward. Those estimates stay unbiased against any reward sequence, and expected regret stays of order , within of a universal lower bound. Lykouris et al. randomize over levels of caution instead. They run parallel elimination rulesrules that play every remaining arm in turn and discard an arm once its confidence interval lies wholly below another remaining arm's, sampled with probabilities . Under total corruption , the layer sampled at rate about sees only constant expected corruption and eliminates bad arms reliably. Regret scales linearly in without knowing , and a lower bound shows linear growth in is unavoidable for any rule that keeps logarithmic regret on clean data.
Setting. There are arms and rounds. Before play begins, an adversary fixes rewards the reward arm would pay at round , in for every arm and round . At round the learner picks the arm played at round , possibly drawn at random, possibly at random, and observes only . Write arm 's total reward for arm 's total and the largest total reward of a single arm, . Regret is the reward lost against the best single arm in hindsight,which is random through the learner's draws. The paper calls the weak regret, and EXP3 bounds its expectation . Against an unrestricted sequence of arms, an adversary can force linear regret on any learner, so this benchmark fixes one arm for all rounds. Auer et al. also bound regret against arm sequences with a limited number of switches.
EXP3 keeps a weight arm 's weight at round , starting at and multiplied each round by , where is the arm's estimated reward; arms with larger estimated totals get larger weights per arm, starting at . At round , it mixes the normalized weights with the uniform distribution at exploration rate EXP3's exploration rate, in : the share of probability spread uniformly over the arms. That gives each arm's play probability : the probability that EXP3 plays arm at round , the weights' share mixed with a uniform share :The rule draws from and forms an importance-weighted estimate EXP3's importance-weighted estimate of : for the played arm and 0 for the others for every arm, setting unplayed arms to zero:It then multiplies each weight by . The uniform component floors every probability at . That floor stops estimates from blowing up under tiny denominators and keeps sampling any arm whose early rewards were poor in case its rewards rise later.
Main results. (a) EXP3 (Auer et al., Theorem 3.1 and Corollary 3.2). Choosing balances two costs. Exploring forfeits a fraction of , while a tiny slows weight updates. For any reward assignment and any ,Given an upper bound an upper bound on known in advance, used to set ; always works, such as , setting yieldsPer-round regret thus falls like . When neither nor is known, EXP3.1 restarts EXP3 with guesses of growing by factors of 4 and achieves .
(b) Lower bound (Auer et al., Theorem 5.1). For any and any , some distribution over reward assignments forces every algorithm to sufferaveraged over rewards and the algorithm's draws. EXP3 is therefore optimal up to . Because the construction uses independent coin flips, the bound covers stochastic bandits as well. It does not clash with the regret of stochastic rules, because the quantifiers run in opposite orders. Stochastic bounds fix the gaps while grows, whereas here the best arm's advantage shrinks with . With worse arms at gap , a stochastic rule such as UCB loses at most about up to constants, since playing a worse arm every round costs . That bound peaks where the two terms meet,The lower bound's advantage hits this hardest gap up to the logarithm.
The paper's extensions reuse the same exponential-weight machinery. EXP3.P adds a confidence bonus to each estimate and achieves regret of order with probability . EXP4 competes with the best of expertsstrategies that each recommend, every round, a probability distribution over the arms; they may depend on anything seen so far at regret , logarithmic in . EXP3.S competes with any arm sequence that switches at most times, with regret . Restarting EXP3.P on doubling horizons yields EXP3.P.1, which achieves Hannan consistencythe average regret per round against every fixed strategy goes to 0 with probability 1 as the game is repeated in repeated games with unknown payoffs, driving average regret to zero with probability 1. In a two-player zero-sum game with an unknown payoff matrix, a player running EXP3.1 earns in expectation at least the game's minimax value for payoff matrix over mixed strategies : the expected payoff per round a player can guarantee whatever the opponent does per round, up to a term vanishing with .
Corrupted stochastic bandits. Lykouris et al. start from a stochastic bandit. Arm has a reward distribution on with mean the mean of arm 's uncorrupted reward distribution, a best arm an arm with the largest mean has mean , and the gap of arm . Each round, the learner picks a distribution over arms and nature draws a stochastic reward arm 's reward at round as drawn from its distribution, before the adversary changes it for every arm. The adversary observes those draws, the history, and the learner's distribution, but not the arm about to be drawnwhy: if the adversary saw the arm, or the layer behind it, it could corrupt exactly the rounds that feed the cautious layer, and subsampling (Step 6) would give no protection. It then replaces each with any . Finally, the learner draws and observes . The instance is -corruptedthe corruption summed over rounds, taking at each round the largest change to any arm, is at most on every sample path if every sample path satisfiesAs in EXP3, regret is measured on the observed rewards, and the bounds hold with probability at least for a chosen failure probability the failure probability, chosen by the learner: the bounds hold with probability at least , and they contain , so a smaller costs only logarithmically.
(c) Corruption-robust elimination (Lykouris et al., Theorems 1 to 3). When is known, widening each confidence interval by after plays yields regret , though it pays the term even on clean data. The Multi-layer Active Arm Elimination RaceLykouris et al.'s algorithm: about elimination rules run side by side, layer picked at random with probability each round, and an arm removed by a slower layer is removed from the faster ones (Step 8) needs no knowledge of . With probability , it achievesAt this recovers the stochastic rate up to one extra factor of .
(d) Linear cost of corruption (Lykouris et al., Theorem 4). Take any algorithm whose pseudo-regretthe regret in expectation against the arm with the best expected total, ; on uncorrupted data, the sum over worse arms of gap times expected number of plays on every two-armed stochastic instance with gap is at most , for a constant . For any exponents , there exist a corruption level and a -corrupted instance on which the algorithm suffers regret with constant probability. Linear dependence on is the price of logarithmic regret on clean data. The upper bound (c) matches that linear growth in , though its factors , , and logarithms are not shown to be needed.
What it means. When rewards drift arbitrarily or come from an opponent, EXP3 guarantees regret against any sequence fixed in advance. EXP3 trades away the stochastic rate, and its realized regret has large variance around its expectation. On mostly stochastic data with bounded manipulation, the layered race keeps near-stochastic regret and pays linearly in the corruption, provided the adversary cannot see which layer is drawn each round. A deterministic rule such as UCB1 has no such shield. An adaptive adversaryan adversary that may choose each round's rewards after seeing the play so far can compute its next arm and corrupt exactly that arm's reward. The race's bound multiplies each arm's term by , leaving a wide gap above the lower bound (d). Later work (Gupta et al., 2019) cut total regret to an additive term of order plus the stochastic rate up to a logarithmic factor.
Dividing by the probability of play makes every arm's estimate unbiased. Given the history, the rule plays arm with probability while the rewards are already fixed, so for every arm ,Variance is the price. Because is 0 on most rounds and when arm is played, its second moment equals , which can reach . Weighting the estimates by the play probabilities recovers the realized reward, . Because rewards are at most 1 and only arm has a nonzero estimate, . Step 2 uses both identities.
The total weight grows at most as fast as the learner's reward, and at least as fast as the best arm's estimate. Write the total weight at round and arm 's estimated total . Because , the update exponent stays at most 1, where . The mixing rule also gives . Expand with these two bounds and Step 1's identities, take logs via , and sum over rounds to obtain the upper bound below. The lower bound follows from and :Chain the two inequalities and multiply through by . Taking expectations with (Step 1) and gives . Setting to the best arm yields (a).
With learning rate , shifting the weights from uniform onto one arm costs about , and each round adds about times the estimates' second moment. By Step 1, that expected second moment iscompared with when every arm's reward is observed. Balancing at gives . Uniform exploration adds , the same order. Seeing only one arm per round multiplies the variance by and the regret by .
One slightly better arm hidden among fair coins forces regret of order . Pick one good arm uniformly at random. It pays 1 with probability , while every other arm is a fair coin. Write expectations in the construction when arm is the good arm, paying 1 with probability while every other arm is a fair coin, and when every arm is a fair coin for expectations when arm is good and when all arms are fair, and let the number of rounds in which the algorithm plays arm count arm 's plays. Under the two laws, the algorithm's observations differ only on plays of arm , each adding KL divergence . Combining the chain rule for relative entropyfor two laws of a sequence , : the divergence of the whole sequence is the sum over steps of the expected divergence of each observation given the past with Pinsker's inequality for every event : a small divergence keeps all probabilities close and caps how much more often arm can be played when it is good. Summing over arms with , so that by Cauchy-Schwarz, yields
Averaging over the random choice of good arm, the algorithm plays it times on average. Dividing the second display line by and using shows the rule misses the good arm on at least about rounds. Each missed round loses , so expected regret is at least about . Setting proves (b). Any learner must try every arm to find the good one, and over plays per arm an advantage of sits right at the noise level of each arm's sample mean.
EXP3's regret has a large spread, and a confidence bonus controls it. The variance of can approach , which at the tuned is of order for fixed . Summed over rounds, the variance reaches order , so realized regret can hit order , far above its expectation. EXP3.P adds a bonus to each arm's estimate before the exponential update, with . A martingale bound ensures that the estimated total plus times a running width exceeds every arm's true total with probability . Running Step 2's weight argument on those upper confidence bounds then gives, with probability at least ,
Corrupting early rounds can make a stochastic elimination rule discard the best arm permanently. Active arm eliminationa stochastic bandit rule that plays the remaining arms in turn and removes an arm once its confidence interval lies entirely below another remaining arm's (Even-Dar et al., 2006) cycles through surviving arms and drops an arm once its upper confidence bound falls below another arm's lower bound. It decides from the first plays and never returns to a dropped arm. An adversary who corrupts those early plays of the best arm can force it out, causing the rule to lose on every remaining round and turning corruption into linear regret.
When is known, the simplest repair widens each confidence interval to absorb the worst-case corruption. If plays of arm carry total corruption at most , the observed average stays within of the uncorrupted stochastic average. Setting arm 's confidence radius the radius of arm 's confidence interval after plays: the average reward plus or minus contains the mean with high probability tokeeps every true mean inside its interval with probability and yields regret . That repair still requires knowing in advance and pays the penalty even on clean data.
A layer run with probability sees only a constant amount of corruption. Still assuming is known, run two elimination rules side by side. A fast rule uses standard intervals, while a slow rule is chosen at random on a fraction of rounds. Write the corruption injected at round , for round 's corruption, and the corruption the slow rule observes at round : at most if the slow rule acts at round , else 0 for the corruption the slow rule observes, which is at most when chosen and 0 otherwise. Because the adversary fixes before the coin that picks the rule,The adversary adapts to the past, so the are not independent. Their conditional variances still sum to at most 2, so a Bernstein inequality for martingalesa tail bound for a sum of bounded martingale differences that scales with their summed conditional variance : with probability the sum is at most of order (Freedman, 1975) gives with probability . The slow rule operates on nearly clean data and needs only an extra interval width of order .
Propagating removals from the slow rule to the fast rule limits extra regret to a factor . Whenever the slow rule drops an arm, the fast rule drops it too. If the fast rule has eliminated every arm, it plays any arm the slow rule still keeps. With high probability, the slow rule never drops the best arm and eliminates each worse arm after about of its own plays of . The slow rule acts once every rounds on average and cycles over at most surviving arms. Arm therefore survives in the fast rule for about times that many rounds, with one extra factor in the high-probability bound. At cost per round, corrupted regret is , while on clean data both rules keep the usual .
Running about layers removes the need to know . The race runs layers of active arm elimination. Each round it picks layer with probability , giving the leftover probability to layer 1, and plays that layer's least-played surviving arm. Whenever a layer drops an arm, every faster layer drops it too, so no faster layer keeps an arm a slower layer has ruled out. Let the first layer that tolerates the corruption, the smallest with be the smallest layer with . Every layer from upward sees constant expected corruption (Step 6) and costs . Summing across about such layers yields the term of (c). Faster layers incur error only until layer removes their bad arms, so Step 7 bounds their cost with in place of , adding at most a factor of 2. As in Step 6, each round's layer is drawn at random and hidden from the adversary.
An algorithm that is fast on clean data can be misled for a stretch of length . Take two clean Bernoulli arms: arm 1 has mean and arm 2 has mean . An algorithm with pseudo-regret at most plays arm 1 only times in expectation. Split the rounds between and into disjoint intervals of geometrically growing length. For fixed , at least one interval sees only a constant expected number of plays of arm 1. Now construct the corrupted instance by giving arm 1 true mean and lowering its rewards during rounds to match draws from , using total corruption at most . The two instances coincide before round and differ afterward only when the learner plays arm 1. With constant probability the algorithm still plays arm 1 only a constant number of times across . It then loses about per round over those rounds, suffering regret , or for the fixed gap in (d).
Terms
- Weak regret
- : reward lost against the best single arm in hindsight; EXP3 bounds its expectation
- EXP3
- ; ;
- Importance weighting
- for every arm; second moment up to
- EXP3 bound
- ; tuned,
- Lower bound
- for every algorithm; one arm better by about
- EXP3.P
- confidence bonus ; regret with probability
- EXP4
- experts at regret
- -corrupted
- ; the adversary sees the learner's distribution, not its draw
- Subsampling
- a rule run with probability sees expected corruption at most 1
- Multi-layer race
- layer with probability ; removals propagate to faster layers; regret
- Linear cost of corruption
- on clean data forces on some -corrupted instance
Sources
- Peter Auer, Nicolò Cesa-Bianchi, Yoav Freund, and Robert E. Schapire. The Nonstochastic Multiarmed Bandit Problem. SIAM Journal on Computing, 2002.
- Thodoris Lykouris, Vahab Mirrokni, and Renato Paes Leme. Stochastic Bandits Robust to Adversarial Corruptions. STOC, 2018.
- Anupam Gupta, Tomer Koren, and Kunal Talwar. Better Algorithms for Stochastic Bandits with Adversarial Corruptions. COLT, 2019.
- David A. Freedman. On Tail Probabilities for Martingales. Annals of Probability, 1975.
- Eyal Even-Dar, Shie Mannor, and Yishay Mansour. Action Elimination and Stopping Conditions for the Multi-Armed Bandit and Reinforcement Learning Problems. Journal of Machine Learning Research, 2006.
Connected notes
- Direct preference optimizationLearning from human preferences · Exponential tilting
Without the KL term the best policy puts all its mass on one sequence; with it the target is , which puts mass on exactly the sequences the reference model gives mass to and moves toward the best sequences as falls.
- Scaling RL computeRunning RL at scale · Importance weighting for distribution shift
Each token's gradient carries the ratio of its probability under the trained copy to that under the copy that sampled it; CISPO caps that weight at where DAPO's clip drops the gradient of a token whose ratio has moved past the clipping range in the direction its advantage favors, which raises the fitted ceiling from 0.52 to 0.595; computing the output layer in FP32, which shrinks the kernel mismatch inside every ratio, raises the base recipe's ceiling from 0.52 to 0.61 on its own.
- Nonvacuous PAC-Bayes boundsGeneralization bounds · Exponential tilting
In a PAC-Bayes bound the KL from posterior to prior is the complexity term, and a Gaussian prior centered at the initialization makes it grow with how precisely the weights are specified and how far they move in training.
- Single Deep CFR and DREAMReinforcement learning for reasoning · Importance weighting for distribution shift
Sampling one action per decision divides each payoff by the probability of reaching it, and exploring at rate keeps that weight at most , so the regret bound still holds but grows exponentially with the number of decisions.