Adversarial Linear Bandits
Adversarial linear bandits, in which an adversary picks loss vectors and the learner sees only the scalar loss of the action it played. Exp3 for linear action sets uses least-squares importance-weighted estimates Q_t⁻¹A_tY_t and needs mixed-in Kiefer–Wolfowitz exploration, giving O(√(dn log k)) regret; continuous exponential weights over convex action sets (log-concave sampling) gives O(d√(n log n)). Online linear optimisation is solved by mirror descent and follow-the-regularised-leader (FTRL); the two coincide for Legendre potentials, both run as a mirror-map step followed by a Bregman projection, and both obey the regret bounds diam_F/η plus a local dual-norm term, recovering online gradient descent and exponential weights as special cases. Applying them to bandits uses unbiased estimates and randomised rounding. On the unit ball, FTRL with the potential −log(1−‖a‖)−‖a‖ gets O(√(dn log n)). Also covered: anytime Exp3, the √(kn) INF/Tsallis algorithm, log-barrier first-order bounds, Sion's minimax theorem via no-regret learning, and how adversarial and stochastic linear bandits relate (an augmented reduction, parameter noise and why the unit-ball rates differ, and the open problem of contextual adversarial regret).
Corresponds to Lattimore & Szepesvári, Chapters 27–29.
Motivation: an adversary chooses the parameter
DefinitionAdversarial linear bandit
The learner has an action set and horizon . An adversary fixes loss vectors . In round the learner plays a (possibly random) and observes only the scalar loss , never itself.
With this is the -armed adversarial bandit.
ConventionStanding assumptions (Chapter 27)
- Bounded losses: , the polar of the action set. The adversary’s power is defined by the geometry of .
- spans . This is only for convenience (Exercises 27.7, 27.10).
IntuitionWhat carries over and what doesn’t
The algorithms combine exponential weights with optimal design, and later with convex analysis. But stochastic intuitions mislead here: the unit-ball rates differ by a factor of between the two models, and Chapter 29 explains why. The setting is also computationally demanding, since the number of actions is often exponential or infinite.
| Algorithm | Action set | Regret | Computation |
|---|---|---|---|
| Exp3 + Kiefer–Wolfowitz exploration | finite, | per round | |
| Exp3 on an -cover | any bounded set | exponential in | |
| Continuous exponential weights | convex, positive volume | polynomial, but impractical | |
| FTRL, barrier potential | unit ball | cheap | |
| FTRL/INF (Tsallis) | simplex ( arms) | cheap |
Exp3 for linear bandits (Chapter 27)
DefinitionLeast-squares importance-weighted estimator
Let be the sampling distribution, and . Estimate the whole loss vector:
Then : it is unbiased, provided is invertible.
IntuitionOne scalar observation informs every action
With , , and is the usual importance-weighted estimator. In general, the observed loss is “back-projected” through the second-moment matrix of the sampling distribution, so it updates the estimate of every action that shares a direction with . This is the adversarial counterpart of least squares.
AlgorithmExp3 for linear bandits (Algorithm 15)
Input: finite , learning rate , exploration distribution with , and mixing weight . For :
- ;
- sample and observe ;
- set and .
TheoremTheorem 27.1 — Regret of linear Exp3
For any exploration distribution , with , , and suitably tuned ,
By Kiefer–Wolfowitz (Exercise 21.6 handles non-spanning sets), some has , so . The general form (27.1) is useful when the optimal design is expensive: trade computation for a larger .
ProofExp3’s potential argument, a variance of exactly , and boundedness from exploration
Step 1: The Exp3 template. If for all (27.2), the proof of Theorem 11.1, with the mixture costing at most (Exercise 27.1), gives
The sharper form isn’t used. It would need estimates bounded by 1 in a way that costs too much elsewhere.
Step 2: The variance is at most . . In conditional expectation this is , the same trace identity as in (21.5).
Step 3: Exploration bounds the estimates. , so (Exercise 27.4: inversion reverses the Loewner order). Then and Cauchy–Schwarz give
Step 4: Tune. makes . Then , and the best gives (27.1).
∎
WarningExploration can’t be dropped here
In the -armed case, Exp3 needs no extra exploration (Chapter 11). For general linear action sets, without the matrix can become nearly singular in directions the weights neglect. Then the estimates explode and regret is very poor even with an optimal (Exercise 27.8). Only a bound on (27.4) is needed, not the exactly optimal design: Kiefer–Wolfowitz makes it .
RemarkVariants
- Loss ranges: if , rescale and the regret scales by . If , shift as well (Exercises 27.2–27.3).
- Changing action sets with identities (Note 4, Exercise 27.5): with and a fresh exploration design each round, . This compares against the best fixed index , a weaker benchmark than the per-round optimum in stochastic linear bandits (see Contextual linear bandits).
- Computation: per round plus a one-off design, hopeless for combinatorial sets such as the hypercube’s corners (). This motivates FTRL and mirror descent, and Chapter 30.
- Optimality: the dependence is unimprovable. The linear dependence on is optimal for some action sets and not others: the unit ball does better.
- History: Bubeck et al. (2012) used John’s ellipsoid for exploration, which is right only when it is centred. Kiefer–Wolfowitz is the centred version.
Continuous exponential weights
Warning is objectionable for huge or infinite action sets
One fix is to run Exp3 on a finite with . Such a exists with (Exercise 27.6), giving . But is exponential in .
AlgorithmContinuous exponential weights
For convex with positive volume and an exploration measure on , sample , where
The density is on a convex set: log-concave. The idea goes back to Cover’s universal portfolios (a wealth-weighted average over a continuum of strategies). It was applied to linear bandits by Hazan et al. (2016).
TheoremTheorem 27.2 — Sampling log-concave densities (Bubeck et al. 2015)
If with convex, there is a polynomial-time sampler given efficient access to (1) gradients and (2) Euclidean projections onto . (27.5) supplies the gradients. Projections are efficient given a separation oracle, which either confirms or returns a with for all . The authors warn that these samplers are not practical, especially with theoretically justified parameters (Lovász–Vempala survey).
TheoremTheorem 27.3 — Regret of continuous exponential weights
For compact convex with , and Kiefer–Wolfowitz exploration,
LemmaProposition 27.4 — Log-Laplace transform of a convex body
For compact convex with positive volume, and ,
This plays the role of : the continuum “prior” puts enough mass near the best action (Exercise 27.11).
ProofProof of Theorem 27.3
Choosing keeps as before. The exponential-weights argument with integrals in place of sums (Exercise 27.9) gives
With , each round changes by at most 2, so . Proposition 27.4 bounds the log term by . Then optimize .
∎
Online linear optimisation, mirror descent and FTRL (Chapter 28)
DefinitionOnline linear optimisation (full information)
is convex and is the loss space. In round the learner picks , then observes the entire . The regret against a comparator is , and . Actions are deterministic.
AlgorithmMirror descent (MD) and follow-the-regularised-leader (FTRL)
Both use a learning rate and a convex (usually Legendre) potential/regulariser , and start at .
- MD makes a small step that trades the new loss against moving far (in ) from the current point.
- FTRL plays the best action in hindsight for the regularised cumulative loss.
Well-definedness isn’t automatic (Exercise 28.2). It holds when is compact and is Legendre.
WarningFollow-the-leader is unstable
Without regularisation, . On with and then alternating , the leader flips between the endpoints every round and is always wrong: linear regret (Exercise 28.4). FTL fails because the environment is adversarial and the action set has sharp corners. If either is missing it can be fine (Huang et al. 2017). With bandit feedback it also fails for lack of exploration (Exercises 4.12–4.13). Regularisation is stabilisation.
TheoremWhen MD and FTRL coincide
If is Legendre with domain , the minimisers are interior and the first-order conditions give for MD and for FTRL. With these agree, and is invertible, so the two algorithms are identical.
The equivalence fails when ‘s domain exceeds (so projections act), or when learning rates or potentials vary over time. With , MD has while FTRL has .
ExampleFamiliar special cases
| Setting | MD | FTRL |
|---|---|---|
| , | online gradient descent | same |
| compact , | projected OGD | lazy projection |
| simplex, = unnormalised negentropy | exponential weights | same: (28.5) |
Exponential weights, Hedge and Exp3 are all mirror descent with negentropy.
AlgorithmTwo-step implementation: mirror map, then projection
If is Legendre and (28.6):
Map to the dual with (the mirror map), take a gradient step, map back with , then Bregman-project onto . The first step is usually closed-form; the projection may be expensive. FTRL is : FTRL accumulates losses in the dual space; MD re-anchors at each projected iterate. They agree until the first projection, then diverge.
Regret analysis
TheoremTheorem 28.4 — Mirror descent regret
Let be Legendre with domain , nonempty convex with , and the iterates well defined. For every ,
and, if (28.6) holds,
For a general start, replace by (28.11). This is useful for non-stationary bandits (Chapter 31).
ProofFirst-order optimality, a three-point identity, telescoping
Step 1: Split. .
Step 2: Optimality of (Proposition 26.14): . The three-point identity for Bregman divergences turns this into
Step 3: Telescope. Sum over , drop , and use (optimality of ). This gives the first bound.
Step 4: Second bound. With , the three-point identity gives . Drop the last term and substitute.
∎
TheoremTheorem 28.5 — FTRL regret
For convex (Legendre isn’t needed) and well-defined iterates, FTRL satisfies the first bound of Theorem 28.4 (Exercise 28.5).
IntuitionBias plus stability
is the price of starting uncommitted: regularisation biases the iterates toward the regulariser’s minimiser. is the price of instability: how much the iterates jump, net of what the regulariser charges for moving. Larger means less bias and more instability.
CorollaryCorollary 28.8 — Local-norm form
If for norms , then, with ,
by “optimise to bound”: . Theorem 26.13 often supplies the norm (the Hessian at an intermediate point, key inequality). Exercise 28.6.
ExampleMatching the regulariser to the geometry
- Unit ball (Proposition 28.6): , , . Here and , with , so .
- Simplex (Proposition 28.7): negentropy, , . Here , and Pinsker gives , so the dual norm is and .
- Wrong regulariser (Example 28.9): on the simplex uses and gives instead of . The potential should match the geometry of the action set and the loss space.
RemarkNon-oblivious losses
Theorems 28.4–28.5 never used obliviousness. They hold when depends on , which is essential, since bandit loss estimates depend on past actions. (But see the warning on bandit regret below.)
From full information to bandits
AlgorithmOnline stochastic mirror descent / FTRL (Algorithm 16)
Keep a “mean action” , starting at . In each round:
- choose a distribution on with mean and sample (randomised rounding, also necessary when isn’t convex);
- observe and build an unbiased estimate with ;
- update by MD or FTRL using .
TheoremTheorem 28.10 — Bandit regret of MD/FTRL
With Legendre , convex and unbiased estimates,
and for MD (with the analogue of (28.6) a.s.) . Proof: linearity gives , so the bandit regret is the expected full-information regret on the estimated losses, and the bounds hold for adaptively chosen losses.
IntuitionThe recipe
Choose (1) a potential matched to the geometry, (2) a sampling scheme with mean and enough spread, (3) an unbiased estimator. The regret becomes : the estimator’s variance measured in the regulariser’s local geometry. A good potential makes the curvature large exactly where the estimates are large.
Linear bandits on the unit ball
AlgorithmFTRL on the ball (Algorithm 17)
With , losses and :
- Potential: (a barrier at the sphere), on the shrunken ball .
- Mean action: (Euclidean projection onto ; Exercise 28.7).
- Sampling: with probability explore (): play uniform on . Otherwise play the unit vector . The mean is .
- Estimator: , unbiased because .
TheoremTheorem 28.11 — Regret on the unit ball
With and ,
This is a factor better than continuous exponential weights, and below the stochastic lower bound (Theorem 24.2). There is no contradiction: see Stochastic linear bandits with parameter noise.
ProofShrink, apply the local-norm bound, use the barrier’s curvature
Step 1: Shrinking costs . .
Step 2: Local-norm bound. By Theorems 26.13 and 28.10, for some on , (28.14).
Step 3: Stability. , and from the closed form for , : the iterate can’t jump much closer to the boundary in one step.
Step 4: Curvature beats variance. , so . Then
using and .
Step 5: Total. With : .
∎
ImportantWhy the barrier potential works
Exploration happens with probability , so the estimator’s magnitude is about , which blows up near the sphere. The barrier’s Hessian blows up at the same rate, so the local norm stays about . That is the “magician’s hat” choice of potential. The price of bandit information on the ball is about (compare Proposition 28.6).
Notes and exercises on FTRL/MD
TheoremExp3 is mirror descent (Exercises 28.9–28.10)
On the simplex with negentropy and , mirror descent is Exp3, and so is FTRL, since the KL projection is renormalisation. Even the bound matches: with ,
(using for , valid since ), whose expectation is at most . With , this gives , recovering Theorem 11.2.
TheoremTime-varying learning rates (Exercises 28.11–28.13)
- MD with : . The second sum needs bounded, which fails for negentropy near the boundary.
- FTRL with , decreasing: . This is the natural anytime tool, and here FTRL is preferable to MD.
- Anytime Exp3: . With both terms are at most , so for every . (Tuning worked here.) This is the anytime Exp3 needed for one-Exp3-per-context.
TheoremRemoving : INF / Tsallis potential (Exercise 28.15)
FTRL on the simplex with and IW estimates:
- , with the normaliser (the implicitly normalised forecaster, Audibert–Bubeck 2009);
- and ;
- , matching the lower bound up to constants;
- with , adversarially and stochastically: best of both worlds (Zimmert–Seldin 2019; very hard).
See Example 26.10 for this potential’s dual.
TheoremFirst-order bounds via the log barrier (Exercise 28.14)
FTRL with and an adaptive learning rate gives , hence . When the best arm has small total loss, regret is much smaller than (Wei–Luo 2018).
WarningBandit regret with non-oblivious losses
The full-information bounds hold for adaptive losses, but bandit regret is not when losses react, since is then random. Bounding the gap needs empirical-process tools and gives only if , which can fail badly (Exp3’s instability). And non-oblivious regret doesn’t capture reactivity anyway.
RemarkMore notes
- balls: the ball gets , while the hypercube () needs . As , the optimal dimension dependence on is either or , fully classified by Bubeck et al. (2018).
- Price of bandit information: about on the ball and the simplex (up to logs), but it can be as large as . Dimension dependence in general is not well understood.
- Choosing potentials: there is no characterisation. In full information, any achievable regret is nearly achieved by MD with some potential (Srebro et al. 2011), which doesn’t help construct potentials. “Universal” potentials exist but it is unclear what matters, especially for bandits.
- Naming: “mirror descent” is often used in bandit papers for what is really FTRL. Keep both in mind; one is sometimes easier to analyse.
- Online convex optimisation: with convex losses , linearise with , so that . Quadratic MD is then gradient descent (Zinkevich 2003; Shalev-Shwartz; Hazan).
- History: MD is from Nemirovsky–Yudin (1983); FTRL is regularised risk minimisation (Gordon 1999; Shalev-Shwartz 2007); FTPL is from Hannan (1957) and Kalai–Vempala (2002); MD was first used for bandits by Abernethy et al. (2008).
TheoremMinimax theorems from no-regret learning (Notes 13–14, Exercise 28.16)
Always . Sion: equality holds if are convex subsets of linear topological spaces (one compact), is lower semicontinuous and quasi-convex, and is upper semicontinuous and quasi-concave. With simplices and bilinear this is von Neumann’s minimax theorem.
Proof idea: let both players run no-regret algorithms against each other on . Sublinear regret for both implies the averaged iterates certify . Compactness can’t be dropped (Exercise 28.17). Minimax theorems bridge adversarial and Bayesian regret (Chapters 34, 36).
Definitions: quasi-convex means sublevel sets are convex. Upper semicontinuous at means for every some neighbourhood has ; lower semicontinuous is the mirror condition.
Adversarial versus stochastic linear bandits (Chapter 29)
DefinitionUnified view (losses throughout)
with (conditionally) 1-subgaussian. The regrets are and , with the average loss vector.
WarningThree subtleties absent in the finite-armed case
- Reducing stochastic to adversarial needs an augmented action set.
- The models restrict the variance of the noise differently, which explains the unit-ball gap: adversarial versus stochastic .
- With changing action sets, the right adversarial regret has no effective algorithms yet.
Reducing stochastic linear bandits to adversarial ones
AlgorithmAugmentation reduction
Assume a.s. Absorb the noise into an extra coordinate:
so that matches the stochastic feedback exactly. Run any adversarial algorithm on and play the first coordinates.
Regret transfers: for , , so the stochastic regret is at most the adversarial regret bound .
ImportantThe reduction changes the geometry
If is the unit ball, neither nor its loss polar is a ball. The stochastic lower bound shows this change must empower the adversary: on the augmented set, adversarial regret is . Relatedly, is impossible on a shifted ball (Shamir 2015). So the recommendation is: for stochastic environments, run an adversarial algorithm on the augmented set. If unsure, running on the original set usually works but may need different tuning (Exercises 29.2–29.3).
RemarkUnbounded noise (Note 1)
For Gaussian noise, work on the event that for all , which fails with probability at most by a subgaussian tail and a union bound.
Stochastic linear bandits with parameter noise
DefinitionParameter noise
i.i.d. with mean , and : the noise enters before the inner product. If it is directly an adversarial instance, with no augmentation (Exercise 29.1). Combined with Chapter 24’s techniques, this is the standard way to prove adversarial lower bounds.
FormulaThe noise variance depends on the action
Writing with (conditionally mean zero),
with the covariance of . For example gives : short actions are quiet. In the standard stochastic model, short actions carry full-size noise, which an adversary can exploit.
ImportantWhy the unit-ball rates differ
If lives on the unit sphere, . For uniform on the sphere, : the effective noise variance is about , versus 1 under 1-subgaussian noise. Scaling the adversary’s vectors to the sphere of radius restores variance about 1, and the regret becomes linear in , matching the stochastic case. The standard adversarial model generalises parameter-noise bandits, not additive-noise ones. Restricting the adversary to limits its control over the learner’s signal-to-noise ratio.
RemarkAdversarial algorithms on stochastic problems (Notes 2–4)
- MD/FTRL analyses apply to stochastic linear bandits: for unbiased . The estimator’s covariance differs from the adversarial case, so the bounds change.
- Ball, additive noise: the Section 28.4 algorithm gets . The variance computation grows by about (Exercise 29.2). For finite , linear Exp3 with Kiefer–Wolfowitz gets ; for convex , use continuous exponential weights.
- Misspecification on the ball: can’t be written as with independent of . Even so, tuned FTRL gets (Exercise 29.4), improving on Chapter 22 by log factors and matching the misspecification lower bounds. For finite , the Exp3 analysis breaks: the bias isn’t controlled by the exploration design.
Contextual linear bandits
WarningThe right adversarial benchmark is open
With changing action sets , LinUCB controls against the per-round optimum. The adversarial analogue is
which competes with the best policy induced by a parameter. For finite , Chapter 27’s methods give , but this is (a) inefficient for large , and (b) covering a continuous doesn’t transfer, because is discontinuous in . A meaningful bound for is a “fascinating challenge”. Exercise 27.5’s bound (actions with identities, best fixed index) is a different and weaker objective, like Exp4’s best-expert benchmark.
Quick reference
| Object | Statement | Note |
|---|---|---|
| Loss space | polar of | |
| LS-IW estimator | , | unbiased |
| Variance | trace identity | |
| Linear Exp3 | exploration required | |
| Cover | , inefficient | |
| Continuous EW | log-concave sampling | |
| MD | mirror step + Bregman projection | |
| FTRL | dual accumulation | |
| Equivalence | same if Legendre, , fixed | differ with projections or |
| Regret | bias + stability | |
| Local norms | Hessian norms | |
| Ball (full info) | quadratic potential | |
| Simplex (full info) | negentropy | |
| Bandit MD/FTRL | sample with mean + unbiased | linearity |
| Ball (bandit) | barrier | |
| Anytime Exp3 | FTRL with | |
| INF/Tsallis | ; best of both worlds with | |
| Log barrier | first-order | |
| Augmentation | , | stochastic ⇒ adversarial, geometry changes |
| Parameter noise | about on the sphere | |
| Contextual adversarial | (29.4) | open for continuous |
Facts to keep to hand
- Linear Exp3 = exponential weights + least-squares importance weighting + optimal-design exploration. The variance is always by the trace identity. Exploration is needed to keep the estimates bounded, and Kiefer–Wolfowitz makes its cost .
- MD and FTRL are one framework. Regularise to stabilise, run in the dual via the mirror map, project back. Regret = (regulariser range)/ + × (loss size in the local dual norm). Choosing the potential to match the geometry is everything: quadratic for the ball, negentropy for the simplex, Tsallis to remove , barriers for bandit variance.
- Bandits via MD/FTRL need only a sampling distribution with the right mean and an unbiased estimator. Good potentials put curvature exactly where the estimator is large (the barrier on the ball), which gives .
- Adversarial ≠ harder version of stochastic, geometrically. Stochastic reduces to adversarial only on an augmented set. The adversarial model really generalises parameter noise, where noise shrinks with the action and is about on the sphere. That is why the ball gets adversarially but stochastically.
References
- Lattimore & Szepesvári, Bandit Algorithms — Chapters 27–29
- Shalev-Shwartz, Online Learning and Online Convex Optimization (2012); Hazan, Introduction to Online Convex Optimization (2016)
- Bubeck & Cesa-Bianchi, Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems (2012)