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

· 28 min read · 5,561 words

Corresponds to Lattimore & Szepesvári, Chapters 27–29.

Motivation: an adversary chooses the parameter

DefinitionAdversarial linear bandit

The learner has an action set A⊂Rd\mathcal A\subset\mathbb R^d and horizon nn. An adversary fixes loss vectors y1,…,yn∈Rdy_1, \ldots, y_n\in\mathbb R^d. In round tt the learner plays a (possibly random) At∈AA_t\in\mathcal A and observes only the scalar loss Yt=⟨At,yt⟩Y_t = \langle A_t,y_t\rangle, never yty_t itself.

Rn=E[∑t=1nYt]−min⁡a∈A∑t=1n⟨a,yt⟩R_n = \mathbb E\Big[\sum_{t=1}^nY_t\Big] - \min_{a\in\mathcal A}\sum_{t=1}^n\langle a,y_t\rangle

With A={e1,…,ed}\mathcal A = \{e_1, \ldots, e_d\} this is the kk-armed adversarial bandit.

ConventionStanding assumptions (Chapter 27)

  1. Bounded losses: yt∈L={x:sup⁡a∈A∣⟨a,x⟩∣≤1}y_t\in\mathcal L = \{x : \sup_{a\in\mathcal A}\lvert\langle a,x\rangle\rvert\le1\}, the polar of the action set. The adversary’s power is defined by the geometry of A\mathcal A.
  2. A\mathcal A spans Rd\mathbb R^d. 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 d\sqrt d 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.

AlgorithmAction setRegretComputation
Exp3 + Kiefer–Wolfowitz explorationfinite, ∣A∣=k\lvert\mathcal A\rvert = k23dnlog⁡k2\sqrt{3dn\log k}O(kd+d3)O(kd + d^3) per round
Exp3 on an 1n\frac1n-coverany bounded setO(dnlog⁡(nd))O(d\sqrt{n\log(nd)})exponential in dd
Continuous exponential weightsconvex, positive volume2d3n(1+log⁡+(2n/d))2d\sqrt{3n(1 + \log^+(2n/d))}polynomial, but impractical
FTRL, barrier potentialunit ball23ndlog⁡n2\sqrt{3nd\log n}cheap
FTRL/INF (Tsallis)simplex (kk arms)8kn\sqrt{8kn}cheap

Exp3 for linear bandits (Chapter 27)

DefinitionLeast-squares importance-weighted estimator

Let PtP_t be the sampling distribution, Qt=∑aPt(a)aa⊤Q_t = \sum_aP_t(a)aa^\top and Et[⋅]=E[⋅∣Pt]\mathbb E_t[\cdot] = \mathbb E[\cdot\mid P_t]. Estimate the whole loss vector:

Y^t=Qt−1AtYt,Y^t(a)=⟨a,Y^t⟩\hat Y_t = Q_t^{-1}A_tY_t, \qquad\hat Y_t(a) = \langle a,\hat Y_t\rangle

Then Et[Y^t]=Qt−1Et[AtAt⊤]yt=Qt−1Qtyt=yt\mathbb E_t[\hat Y_t] = Q_t^{-1}\mathbb E_t[A_tA_t^\top]y_t = Q_t^{-1}Q_ty_t = y_t: it is unbiased, provided QtQ_t is invertible.

IntuitionOne scalar observation informs every action

With A={ei}\mathcal A = \{e_i\}, Qt=diag(Pt)Q_t = \mathrm{diag}(P_t), and Y^t\hat Y_t 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 AtA_t. This is the adversarial counterpart of least squares.

AlgorithmExp3 for linear bandits (Algorithm 15)

Input: finite A\mathcal A, learning rate η\eta, exploration distribution π\pi with Q(π)=∑aπ(a)aa⊤≻0Q(\pi) = \sum_a\pi(a)aa^\top\succ0, and mixing weight γ\gamma. For t=1,…,nt = 1, \ldots, n:

  1. Pt(a)=γπ(a)+(1−γ)exp⁡(−η∑s<tY^s(a))∑a′exp⁡(−η∑s<tY^s(a′))P_t(a) = \gamma\pi(a) + (1-\gamma)\dfrac{\exp(-\eta\sum_{s<t}\hat Y_s(a))}{\sum_{a'}\exp(-\eta\sum_{s<t}\hat Y_s(a'))};
  2. sample At∼PtA_t\sim P_t and observe Yt=⟨At,yt⟩Y_t = \langle A_t,y_t\rangle;
  3. set Y^t=Qt−1AtYt\hat Y_t = Q_t^{-1}A_tY_t and Y^t(a)=⟨a,Y^t⟩\hat Y_t(a) = \langle a,\hat Y_t\rangle.

TheoremTheorem 27.1 — Regret of linear Exp3

For any exploration distribution π\pi, with g(π)=max⁡a∥a∥Q(π)−12g(\pi) = \max_a\lVert a\rVert^2_{Q(\pi)^{-1}}, k=∣A∣k = \lvert\mathcal A\rvert, and suitably tuned η,γ\eta, \gamma,

Rn≤2(2g(π)+d) nlog⁡k(27.1)R_n\le2\sqrt{(2g(\pi) + d)\,n\log k} \tag{27.1}

By Kiefer–Wolfowitz (Exercise 21.6 handles non-spanning sets), some π\pi has g(π)≤dg(\pi)\le d, so Rn≤23dnlog⁡kR_n\le2\sqrt{3dn\log k}. The general form (27.1) is useful when the optimal design is expensive: trade computation for a larger gg.

ProofExp3’s potential argument, a variance of exactly dd, and boundedness from exploration

Step 1: The Exp3 template. If ηY^t(a)≥−1\eta\hat Y_t(a)\ge-1 for all aa (27.2), the proof of Theorem 11.1, with the mixture costing at most 2γn2\gamma n (Exercise 27.1), gives

Rn≤log⁡kη+2γn+η∑tE[∑aPt(a)Y^t(a)2](27.3)R_n\le\frac{\log k}\eta + 2\gamma n + \eta\sum_t\mathbb E\Big[\sum_aP_t(a)\hat Y_t(a)^2\Big] \tag{27.3}

The sharper η/2\eta/2 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 dd. ∑aPt(a)Y^t(a)2=Yt2At⊤Qt−1(∑aPt(a)aa⊤)Qt−1At=Yt2At⊤Qt−1At≤tr(AtAt⊤Qt−1)\sum_aP_t(a)\hat Y_t(a)^2 = Y_t^2A_t^\top Q_t^{-1}\big(\sum_aP_t(a)aa^\top\big)Q_t^{-1}A_t = Y_t^2A_t^\top Q_t^{-1}A_t\le\mathrm{tr}(A_tA_t^\top Q_t^{-1}). In conditional expectation this is tr(QtQt−1)=d\mathrm{tr}(Q_tQ_t^{-1}) = d, the same trace identity as in (21.5).

Step 3: Exploration bounds the estimates. Qt⪰γQ(π)Q_t\succeq\gamma Q(\pi), so Qt−1⪯Q(π)−1/γQ_t^{-1}\preceq Q(\pi)^{-1}/\gamma (Exercise 27.4: inversion reverses the Loewner order). Then ∣Yt∣≤1\lvert Y_t\rvert\le1 and Cauchy–Schwarz give

∣ηY^t(a)∣≤η∣a⊤Qt−1At∣≤η∥a∥Qt−1∥At∥Qt−1≤ηγg(π)(27.4)\lvert\eta\hat Y_t(a)\rvert\le\eta\lvert a^\top Q_t^{-1}A_t\rvert\le\eta\lVert a\rVert_{Q_t^{-1}}\lVert A_t\rVert_{Q_t^{-1}}\le\frac\eta\gamma g(\pi) \tag{27.4}

Step 4: Tune. γ=ηg(π)\gamma = \eta g(\pi) makes ∣ηY^t(a)∣≤1\lvert\eta\hat Y_t(a)\rvert\le1. Then Rn≤log⁡kη+ηn(2g(π)+d)R_n\le\frac{\log k}\eta + \eta n(2g(\pi) + d), and the best η\eta gives (27.1).

∎

WarningExploration can’t be dropped here

In the kk-armed case, Exp3 needs no extra exploration (Chapter 11). For general linear action sets, without γπ\gamma\pi the matrix QtQ_t can become nearly singular in directions the weights neglect. Then the estimates Qt−1AtYtQ_t^{-1}A_tY_t explode and regret is very poor even with an optimal η\eta (Exercise 27.8). Only a bound on (27.4) is needed, not the exactly optimal design: Kiefer–Wolfowitz makes it dd.

RemarkVariants

  • Loss ranges: if sup⁡a∣⟨a,y⟩∣≤b\sup_a\lvert\langle a,y\rangle\rvert\le b, rescale and the regret scales by bb. If ⟨a,y⟩∈[a−,b+]\langle a,y\rangle\in[a_-,b_+], shift as well (Exercises 27.2–27.3).
  • Changing action sets with identities (Note 4, Exercise 27.5): with At={a1(t),…,ak(t)}\mathcal A_t = \{a_1(t), \ldots, a_k(t)\} and a fresh exploration design each round, max⁡iE∑t⟨At−ai(t),yt⟩≤23dnlog⁡k\max_i\mathbb E\sum_t\langle A_t - a_i(t),y_t\rangle\le2\sqrt{3dn\log k}. This compares against the best fixed index ii, a weaker benchmark than the per-round optimum in stochastic linear bandits (see Contextual linear bandits).
  • Computation: O(kd+d3)O(kd + d^3) per round plus a one-off design, hopeless for combinatorial sets such as the hypercube’s corners (k=2dk = 2^d). This motivates FTRL and mirror descent, and Chapter 30.
  • Optimality: the n\sqrt n dependence is unimprovable. The linear dependence on dd 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

Warninglog⁡k\log k is objectionable for huge or infinite action sets

One fix is to run Exp3 on a finite C⊆AC\subseteq\mathcal A with sup⁡amin⁡b∈Csup⁡y∈L∣⟨a−b,y⟩∣≤1/n\sup_a\min_{b\in C}\sup_{y\in\mathcal L}\lvert\langle a - b,y\rangle\rvert\le1/n. Such a CC exists with log⁡∣C∣≤dlog⁡(6dn)\log\lvert C\rvert\le d\log(6dn) (Exercise 27.6), giving O(dnlog⁡(nd))O(d\sqrt{n\log(nd)}). But ∣C∣\lvert C\rvert is exponential in dd.

AlgorithmContinuous exponential weights

For convex A\mathcal A with positive volume and an exploration measure π\pi on A\mathcal A, sample At∼Pt=(1−γ)P~t+γπA_t\sim P_t = (1-\gamma)\tilde P_t + \gamma\pi, where

P~t(B)=∫Bexp⁡(−η∑s<tY^s(a))da∫Aexp⁡(−η∑s<tY^s(a))da(27.5)\tilde P_t(B) = \frac{\int_B\exp\big(-\eta\sum_{s<t}\hat Y_s(a)\big)da}{\int_{\mathcal A}\exp\big(-\eta\sum_{s<t}\hat Y_s(a)\big)da} \tag{27.5}

The density is ∝exp⁡(−linear)\propto\exp(-\text{linear}) 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 p(a)∝IA(a)e−f(a)p(a)\propto\mathbb I_{\mathcal A}(a)e^{-f(a)} with ff convex, there is a polynomial-time sampler given efficient access to (1) gradients ∇f(a)\nabla f(a) and (2) Euclidean projections onto A\mathcal A. (27.5) supplies the gradients. Projections are efficient given a separation oracle, which either confirms x∈Ax\in\mathcal A or returns a uu with ⟨y,u⟩>⟨x,u⟩\langle y,u\rangle > \langle x,u\rangle for all y∈Ay\in\mathcal A. 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 A\mathcal A with vol(A)>0\mathrm{vol}(\mathcal A) > 0, and Kiefer–Wolfowitz exploration,

Rn≤2d3n(1+log⁡+(2n/d))R_n\le2d\sqrt{3n\big(1 + \log^+(2n/d)\big)}

LemmaProposition 27.4 — Log-Laplace transform of a convex body

For compact convex KK with positive volume, u∈Rdu\in\mathbb R^d and x∗=arg⁡min⁡x∈K⟨x,u⟩x^* = \arg\min_{x\in K}\langle x,u\rangle,

log⁡vol(K)∫Kexp⁡(−⟨x−x∗,u⟩) dx≤d(1+log⁡+sup⁡x,y∈K⟨x−y,u⟩d)\log\frac{\mathrm{vol}(K)}{\int_K\exp(-\langle x - x^*,u\rangle)\,dx}\le d\Big(1 + \log^+\frac{\sup_{x,y\in K}\langle x - y,u\rangle}d\Big)

This plays the role of log⁡k\log k: the continuum “prior” puts enough mass near the best action (Exercise 27.11).

ProofProof of Theorem 27.3

Choosing γ=dη\gamma = d\eta keeps η∣⟨a,Y^t⟩∣≤1\eta\lvert\langle a,\hat Y_t\rangle\rvert\le1 as before. The exponential-weights argument with integrals in place of sums (Exercise 27.9) gives

Rn≤1ηE[log⁡vol(A)∫Aexp⁡(−η∑t(Y^t(a)−Y^t(a∗)))da]+3ηdn(27.6)R_n\le\frac1\eta\mathbb E\Big[\log\frac{\mathrm{vol}(\mathcal A)}{\int_{\mathcal A}\exp\big(-\eta\sum_t(\hat Y_t(a) - \hat Y_t(a^*))\big)da}\Big] + 3\eta dn \tag{27.6}

With u=η∑tY^tu = \eta\sum_t\hat Y_t, each round changes ⟨x−y,u⟩\langle x - y,u\rangle by at most 2, so sup⁡⟨x−y,u⟩≤2n\sup\langle x - y,u\rangle\le2n. Proposition 27.4 bounds the log term by d(1+log⁡+(2n/d))d(1 + \log^+(2n/d)). Then optimize η\eta.

∎


Online linear optimisation, mirror descent and FTRL (Chapter 28)

DefinitionOnline linear optimisation (full information)

A⊆Rd\mathcal A\subseteq\mathbb R^d is convex and L\mathcal L is the loss space. In round tt the learner picks at∈Aa_t\in\mathcal A, then observes the entire yt∈Ly_t\in\mathcal L. The regret against a comparator aa is Rn(a)=∑t⟨at−a,yt⟩R_n(a) = \sum_t\langle a_t - a,y_t\rangle, and Rn=max⁡aRn(a)R_n = \max_aR_n(a). Actions are deterministic.

AlgorithmMirror descent (MD) and follow-the-regularised-leader (FTRL)

Both use a learning rate η>0\eta > 0 and a convex (usually Legendre) potential/regulariser FF, and start at a1=arg⁡min⁡a∈AF(a)a_1 = \arg\min_{a\in\mathcal A}F(a).

MD:at+1=arg⁡min⁡a∈A(η⟨a,yt⟩+DF(a,at))(28.2)\text{MD:}\quad a_{t+1} = \arg\min_{a\in\mathcal A}\big(\eta\langle a,y_t\rangle + D_F(a,a_t)\big) \tag{28.2} FTRL:at+1=arg⁡min⁡a∈A(η∑s≤t⟨a,ys⟩+F(a))(28.3)\text{FTRL:}\quad a_{t+1} = \arg\min_{a\in\mathcal A}\Big(\eta\sum_{s\le t}\langle a,y_s\rangle + F(a)\Big) \tag{28.3}

  • MD makes a small step that trades the new loss against moving far (in DFD_F) 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 A\mathcal A is compact and FF is Legendre.

WarningFollow-the-leader is unstable

Without regularisation, at+1=arg⁡min⁡a∑s≤t⟨a,ys⟩a_{t+1} = \arg\min_a\sum_{s\le t}\langle a,y_s\rangle. On A=[−1,1]\mathcal A = [-1,1] with y1=12y_1 = \frac12 and then alternating ys=±1y_s = \pm1, 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 FF is Legendre with domain D⊆AD\subseteq\mathcal A, the minimisers are interior and the first-order conditions give ∇F(at+1)=∇F(at)−ηyt\nabla F(a_{t+1}) = \nabla F(a_t) - \eta y_t for MD and ∇F(at+1)=−η∑s≤tys\nabla F(a_{t+1}) = -\eta\sum_{s\le t}y_s for FTRL. With ∇F(a1)=0\nabla F(a_1) = 0 these agree, and ∇F\nabla F is invertible, so the two algorithms are identical.

The equivalence fails when FF‘s domain exceeds A\mathcal A (so projections act), or when learning rates or potentials vary over time. With ηt\eta_t, MD has ∇F(at+1)=−∑sηsys\nabla F(a_{t+1}) = -\sum_s\eta_sy_s while FTRL has −ηt∑sys-\eta_t\sum_sy_s.

ExampleFamiliar special cases

SettingMDFTRL
A=Rd\mathcal A = \mathbb R^d, F=12∥a∥2F = \frac12\lVert a\rVert^2online gradient descent at+1=at−ηyta_{t+1} = a_t - \eta y_tsame
compact A\mathcal A, F=12∥a∥2F = \frac12\lVert a\rVert^2projected OGD at+1=Π(at−ηyt)a_{t+1} = \Pi(a_t - \eta y_t)lazy projection at+1=Π(−η∑s≤tys)a_{t+1} = \Pi(-\eta\sum_{s\le t}y_s)
simplex, FF = unnormalised negentropyexponential weightssame: at+1,i=e−η∑sysi∑je−η∑sysja_{t+1,i} = \dfrac{e^{-\eta\sum_sy_{si}}}{\sum_je^{-\eta\sum_sy_{sj}}} (28.5)

Exponential weights, Hedge and Exp3 are all mirror descent with negentropy.

AlgorithmTwo-step implementation: mirror map, then projection

If FF is Legendre and ∇F(a)−ηy∈int(domF∗)\nabla F(a) - \eta y\in\mathrm{int}(\mathrm{dom}F^*) (28.6):

a~t+1=(∇F)−1(∇F(at)−ηyt)(28.7, 28.9),at+1=arg⁡min⁡a∈ADF(a,a~t+1)(28.8)\tilde a_{t+1} = (\nabla F)^{-1}\big(\nabla F(a_t) - \eta y_t\big)\quad\text{(28.7, 28.9)}, \qquad a_{t+1} = \arg\min_{a\in\mathcal A}D_F(a,\tilde a_{t+1})\quad\text{(28.8)}

Map to the dual with ∇F\nabla F (the mirror map), take a gradient step, map back with ∇F−1=∇F∗\nabla F^{-1} = \nabla F^*, then Bregman-project onto A\mathcal A. The first step is usually closed-form; the projection may be expensive. FTRL is at+1=ΠA,F(∇F−1(−η∑s≤tys))a_{t+1} = \Pi_{\mathcal A,F}\big(\nabla F^{-1}(-\eta\sum_{s\le t}y_s)\big): 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 FF be Legendre with domain DD, A\mathcal A nonempty convex with int(D)∩A≠∅\mathrm{int}(D)\cap\mathcal A\ne\emptyset, and the iterates well defined. For every a∈Aa\in\mathcal A,

Rn(a)≤F(a)−F(a1)η+∑t=1n⟨at−at+1,yt⟩−1η∑t=1nD(at+1,at)R_n(a)\le\frac{F(a) - F(a_1)}\eta + \sum_{t=1}^n\langle a_t - a_{t+1},y_t\rangle - \frac1\eta\sum_{t=1}^nD(a_{t+1},a_t)

and, if (28.6) holds,

Rn(a)≤1η(F(a)−F(a1)+∑t=1nD(at,a~t+1))R_n(a)\le\frac1\eta\Big(F(a) - F(a_1) + \sum_{t=1}^nD(a_t,\tilde a_{t+1})\Big)

For a general start, replace F(a)−F(a1)F(a) - F(a_1) by D(a,a1)D(a,a_1) (28.11). This is useful for non-stationary bandits (Chapter 31).

ProofFirst-order optimality, a three-point identity, telescoping

Step 1: Split. ⟨at−a,yt⟩=⟨at−at+1,yt⟩+⟨at+1−a,yt⟩\langle a_t - a,y_t\rangle = \langle a_t - a_{t+1},y_t\rangle + \langle a_{t+1} - a,y_t\rangle.

Step 2: Optimality of at+1a_{t+1} (Proposition 26.14): ⟨a−at+1,ηyt+∇F(at+1)−∇F(at)⟩≥0\langle a - a_{t+1},\eta y_t + \nabla F(a_{t+1}) - \nabla F(a_t)\rangle\ge0. The three-point identity for Bregman divergences turns this into

⟨at+1−a,yt⟩≤1η(D(a,at)−D(a,at+1)−D(at+1,at))\langle a_{t+1} - a,y_t\rangle\le\frac1\eta\big(D(a,a_t) - D(a,a_{t+1}) - D(a_{t+1},a_t)\big)

Step 3: Telescope. Sum over tt, drop −D(a,an+1)≤0-D(a,a_{n+1})\le0, and use D(a,a1)≤F(a)−F(a1)D(a,a_1)\le F(a) - F(a_1) (optimality of a1a_1). This gives the first bound.

Step 4: Second bound. With ηyt=∇F(at)−∇F(a~t+1)\eta y_t = \nabla F(a_t) - \nabla F(\tilde a_{t+1}), the three-point identity gives ⟨at−at+1,yt⟩=1η(D(at+1,at)+D(at,a~t+1)−D(at+1,a~t+1))\langle a_t - a_{t+1},y_t\rangle = \frac1\eta\big(D(a_{t+1},a_t) + D(a_t,\tilde a_{t+1}) - D(a_{t+1},\tilde a_{t+1})\big). Drop the last term and substitute.

∎

TheoremTheorem 28.5 — FTRL regret

For convex FF (Legendre isn’t needed) and well-defined iterates, FTRL satisfies the first bound of Theorem 28.4 (Exercise 28.5).

IntuitionBias plus stability

F(a)−F(a1)η\frac{F(a) - F(a_1)}\eta is the price of starting uncommitted: regularisation biases the iterates toward the regulariser’s minimiser. ∑⟨at−at+1,yt⟩−1η∑D(at+1,at)\sum\langle a_t - a_{t+1},y_t\rangle - \frac1\eta\sum D(a_{t+1},a_t) is the price of instability: how much the iterates jump, net of what the regulariser charges for moving. Larger η\eta means less bias and more instability.

CorollaryCorollary 28.8 — Local-norm form

If DF(at+1,at)≥12∥at+1−at∥t2D_F(a_{t+1},a_t)\ge\frac12\lVert a_{t+1} - a_t\rVert_t^2 for norms ∥⋅∥t\lVert\cdot\rVert_t, then, with diamF(A)=max⁡a,bF(a)−F(b)\mathrm{diam}_F(\mathcal A) = \max_{a,b}F(a) - F(b),

Rn≤diamF(A)η+η2∑t=1n∥yt∥t∗2R_n\le\frac{\mathrm{diam}_F(\mathcal A)}\eta + \frac\eta2\sum_{t=1}^n\lVert y_t\rVert^2_{t*}

by “optimise to bound”: max⁡x(ax−bx2/2)=a2/2b\max_x(ax - bx^2/2) = a^2/2b. 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): F=12∥a∥2F = \frac12\lVert a\rVert^2, ∥yt∥2≤1\lVert y_t\rVert_2\le1, η=1/n\eta = 1/\sqrt n. Here a~t+1=at−ηyt\tilde a_{t+1} = a_t - \eta y_t and D(at,a~t+1)=η22∥yt∥2D(a_t,\tilde a_{t+1}) = \frac{\eta^2}2\lVert y_t\rVert^2, with diam=12\mathrm{diam} = \frac12, so Rn≤12η+ηn2=nR_n\le\frac1{2\eta} + \frac{\eta n}2 = \sqrt n.
  • Simplex (Proposition 28.7): negentropy, yt∈[0,1]dy_t\in[0,1]^d, η=2log⁡(d)/n\eta = \sqrt{2\log(d)/n}. Here diam=log⁡d\mathrm{diam} = \log d, and Pinsker gives D(at+1,at)≥12∥at+1−at∥12D(a_{t+1},a_t)\ge\frac12\lVert a_{t+1} - a_t\rVert_1^2, so the dual norm is ∥y∥∞≤1\lVert y\rVert_\infty\le1 and Rn≤2nlog⁡dR_n\le\sqrt{2n\log d}.
  • Wrong regulariser (Example 28.9): F=12∥a∥2F = \frac12\lVert a\rVert^2 on the simplex uses ∥y∥22≤d\lVert y\rVert_2^2\le d and gives O(nd)O(\sqrt{nd}) instead of O(nlog⁡d)O(\sqrt{n\log d}). 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 yty_t depends on a1,y1,…,ata_1,y_1,\ldots,a_t, 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” Aˉt\bar A_t, starting at Aˉ1=arg⁡min⁡a∈A∩domFF(a)\bar A_1 = \arg\min_{a\in\mathcal A\cap\mathrm{dom}F}F(a). In each round:

  1. choose a distribution PtP_t on A\mathcal A with mean Aˉt\bar A_t and sample At∼PtA_t\sim P_t (randomised rounding, also necessary when A\mathcal A isn’t convex);
  2. observe ⟨At,yt⟩\langle A_t,y_t\rangle and build an unbiased estimate Y^t\hat Y_t with E[Y^t∣Aˉt]=yt\mathbb E[\hat Y_t\mid\bar A_t] = y_t;
  3. update Aˉt+1\bar A_{t+1} by MD or FTRL using Y^t\hat Y_t.

TheoremTheorem 28.10 — Bandit regret of MD/FTRL

With Legendre FF, convex A\mathcal A and unbiased estimates,

Rn(a)≤E[F(a)−F(Aˉ1)η+∑t⟨Aˉt−Aˉt+1,Y^t⟩−1η∑tD(Aˉt+1,Aˉt)]R_n(a)\le\mathbb E\Big[\frac{F(a) - F(\bar A_1)}\eta + \sum_t\langle\bar A_t - \bar A_{t+1},\hat Y_t\rangle - \frac1\eta\sum_tD(\bar A_{t+1},\bar A_t)\Big]

and for MD (with the analogue of (28.6) a.s.) Rn≤diamF(A)η+1η∑tE[D(Aˉt,A~t+1)]R_n\le\frac{\mathrm{diam}_F(\mathcal A)}\eta + \frac1\eta\sum_t\mathbb E[D(\bar A_t,\tilde A_{t+1})]. Proof: linearity gives E⟨At,yt⟩=E⟨Aˉt,yt⟩=E⟨Aˉt,Y^t⟩\mathbb E\langle A_t,y_t\rangle = \mathbb E\langle\bar A_t,y_t\rangle = \mathbb E\langle\bar A_t,\hat Y_t\rangle, 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 Aˉt\bar A_t and enough spread, (3) an unbiased estimator. The regret becomes diamFη+η2∑E∥Y^t∥(∇2F)−12\frac{\mathrm{diam}_F}\eta + \frac\eta2\sum\mathbb E\lVert\hat Y_t\rVert^2_{(\nabla^2F)^{-1}}: 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 A=B2d\mathcal A = B_2^d, losses ∥yt∥2≤1\lVert y_t\rVert_2\le1 and L^t−1=∑s<tY^s\hat L_{t-1} = \sum_{s<t}\hat Y_s:

  • Potential: F(a)=−log⁡(1−∥a∥)−∥a∥F(a) = -\log(1 - \lVert a\rVert) - \lVert a\rVert (a barrier at the sphere), on the shrunken ball A~={∥x∥≤r}\tilde{\mathcal A} = \{\lVert x\rVert\le r\}.
  • Mean action: Aˉt=Π(−ηL^t−11+η∥L^t−1∥)\bar A_t = \Pi\Big(\dfrac{-\eta\hat L_{t-1}}{1 + \eta\lVert\hat L_{t-1}\rVert}\Big) (Euclidean projection onto A~\tilde{\mathcal A}; Exercise 28.7).
  • Sampling: with probability 1−∥Aˉt∥1 - \lVert\bar A_t\rVert explore (Et=1E_t = 1): play UtU_t uniform on {±e1,…,±ed}\{\pm e_1, \ldots, \pm e_d\}. Otherwise play the unit vector Aˉt/∥Aˉt∥\bar A_t/\lVert\bar A_t\rVert. The mean is Aˉt\bar A_t.
  • Estimator: Y^t=dEtAt⟨At,yt⟩1−∥Aˉt∥\hat Y_t = \dfrac{dE_tA_t\langle A_t,y_t\rangle}{1 - \lVert\bar A_t\rVert}, unbiased because E[UtUt⊤]=I/d\mathbb E[U_tU_t^\top] = I/d.

TheoremTheorem 28.11 — Regret on the unit ball

With r=1−2ηdr = 1 - 2\eta d and η=log⁡(n)/(3dn)\eta = \sqrt{\log(n)/(3dn)},

Rn≤23ndlog⁡nR_n\le2\sqrt{3nd\log n}

This is a factor d\sqrt d better than continuous exponential weights, and below the stochastic lower bound Ω(dn)\Omega(d\sqrt n) (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 (1−r)n(1-r)n. Rn≤Rn(ra∗)+∑t⟨ra∗−a∗,yt⟩≤Rn(ra∗)+(1−r)nR_n\le R_n(ra^*) + \sum_t\langle ra^* - a^*,y_t\rangle\le R_n(ra^*) + (1-r)n.

Step 2: Local-norm bound. By Theorems 26.13 and 28.10, for some ZtZ_t on [Aˉt,Aˉt+1][\bar A_t,\bar A_{t+1}], Rn(ra∗)≤diamF(A~)η+η2E∑t∥Y^t∥(∇2F(Zt))−12R_n(ra^*)\le\frac{\mathrm{diam}_F(\tilde{\mathcal A})}\eta + \frac\eta2\mathbb E\sum_t\lVert\hat Y_t\rVert^2_{(\nabla^2F(Z_t))^{-1}} (28.14).

Step 3: Stability. η∥Y^t∥≤ηd1−r=12\eta\lVert\hat Y_t\rVert\le\frac{\eta d}{1-r} = \frac12, and from the closed form for Aˉt\bar A_t, 1−∥Zt∥1−∥Aˉt∥≤max⁡{1,1+η∥L^t−1∥1/2+η∥L^t−1∥}≤2\frac{1 - \lVert Z_t\rVert}{1 - \lVert\bar A_t\rVert}\le\max\big\{1,\frac{1 + \eta\lVert\hat L_{t-1}\rVert}{1/2 + \eta\lVert\hat L_{t-1}\rVert}\big\}\le2: the iterate can’t jump much closer to the boundary in one step.

Step 4: Curvature beats variance. ∇2F(a)=I1−∥a∥+aa⊤∥a∥(1−∥a∥)2⪰I1−∥a∥\nabla^2F(a) = \frac I{1 - \lVert a\rVert} + \frac{aa^\top}{\lVert a\rVert(1 - \lVert a\rVert)^2}\succeq\frac I{1 - \lVert a\rVert}, so (∇2F)−1⪯(1−∥a∥)I(\nabla^2F)^{-1}\preceq(1 - \lVert a\rVert)I. Then

Et∥Y^t∥(∇2F(Zt))−12≤d2 Et[(1−∥Zt∥)Et⟨Ut,yt⟩2(1−∥Aˉt∥)2]=d1−∥Zt∥1−∥Aˉt∥∥yt∥2≤2d\mathbb E_t\lVert\hat Y_t\rVert^2_{(\nabla^2F(Z_t))^{-1}}\le d^2\,\mathbb E_t\Big[(1 - \lVert Z_t\rVert)\frac{E_t\langle U_t,y_t\rangle^2}{(1 - \lVert\bar A_t\rVert)^2}\Big] = d\frac{1 - \lVert Z_t\rVert}{1 - \lVert\bar A_t\rVert}\lVert y_t\rVert^2\le2d

using E⟨U,y⟩2=∥y∥2/d\mathbb E\langle U,y\rangle^2 = \lVert y\rVert^2/d and P(Et=1)=1−∥Aˉt∥\mathbb P(E_t = 1) = 1 - \lVert\bar A_t\rVert.

Step 5: Total. With diamF(A~)≤log⁡11−r\mathrm{diam}_F(\tilde{\mathcal A})\le\log\frac1{1-r}: Rn≤(1−r)n+1ηlog⁡11−r+ηnd=3ηnd+1ηlog⁡12ηd≤23ndlog⁡nR_n\le(1-r)n + \frac1\eta\log\frac1{1-r} + \eta nd = 3\eta nd + \frac1\eta\log\frac1{2\eta d}\le2\sqrt{3nd\log n}.

∎

ImportantWhy the barrier potential works

Exploration happens with probability 1−∥Aˉt∥1 - \lVert\bar A_t\rVert, so the estimator’s magnitude is about d/(1−∥Aˉt∥)d/(1 - \lVert\bar A_t\rVert), which blows up near the sphere. The barrier’s Hessian blows up at the same rate, so the local norm ∥Y^∥(∇2F)−12\lVert\hat Y\rVert^2_{(\nabla^2F)^{-1}} stays about dd. That is the “magician’s hat” choice of potential. The price of bandit information on the ball is about dlog⁡n\sqrt{d\log n} (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 Y^ti=I{At=i}yti/Pti\hat Y_{ti} = \mathbb I\{A_t = i\}y_{ti}/P_{ti}, mirror descent is Exp3, and so is FTRL, since the KL projection is renormalisation. Even the bound matches: with P~t+1=arg⁡min⁡p≥0η⟨p,Y^t⟩+DF(p,Pt)\tilde P_{t+1} = \arg\min_{p\ge0}\eta\langle p,\hat Y_t\rangle + D_F(p,P_t),

DF(Pt,P~t+1)=∑iPti(e−ηY^ti−1+ηY^ti)≤η22∑iPtiY^ti2D_F(P_t,\tilde P_{t+1}) = \sum_iP_{ti}\big(e^{-\eta\hat Y_{ti}} - 1 + \eta\hat Y_{ti}\big)\le\frac{\eta^2}2\sum_iP_{ti}\hat Y_{ti}^2

(using e−x≤1−x+x2/2e^{-x}\le1 - x + x^2/2 for x≥0x\ge0, valid since Y^≥0\hat Y\ge0), whose expectation is at most η2k/2\eta^2k/2. With diamF=log⁡k\mathrm{diam}_F = \log k, this gives Rn≤2nklog⁡kR_n\le\sqrt{2nk\log k}, recovering Theorem 11.2.

TheoremTime-varying learning rates (Exercises 28.11–28.13)

  • MD with ηt\eta_t: Rn(a)≤∑tDF(at,a~t+1)ηt+∑tDF(a,at)(1ηt−1ηt−1)R_n(a)\le\sum_t\frac{D_F(a_t,\tilde a_{t+1})}{\eta_t} + \sum_tD_F(a,a_t)\big(\frac1{\eta_t} - \frac1{\eta_{t-1}}\big). The second sum needs DF(a,at)D_F(a,a_t) bounded, which fails for negentropy near the boundary.
  • FTRL with Ft=F/ηtF_t = F/\eta_t, ηt\eta_t decreasing: Rn(a)≤F(a)−min⁡Fηn+∑t(⟨at−at+1,yt⟩−DF(at+1,at)ηt)R_n(a)\le\frac{F(a) - \min F}{\eta_n} + \sum_t\big(\langle a_t - a_{t+1},y_t\rangle - \frac{D_F(a_{t+1},a_t)}{\eta_t}\big). This is the natural anytime tool, and here FTRL is preferable to MD.
  • Anytime Exp3: Rn≤log⁡kηn+k2∑tηtR_n\le\frac{\log k}{\eta_n} + \frac k2\sum_t\eta_t. With ηt=log⁡k/(kt)\eta_t = \sqrt{\log k/(kt)} both terms are at most nklog⁡k\sqrt{nk\log k}, so Rn≤2nklog⁡kR_n\le2\sqrt{nk\log k} for every nn. (Tuning worked here.) This is the anytime Exp3 needed for one-Exp3-per-context.

TheoremRemoving log⁡k\sqrt{\log k}: INF / Tsallis potential (Exercise 28.15)

FTRL on the simplex with F(a)=−2∑iaiF(a) = -2\sum_i\sqrt{a_i} and IW estimates:

  • Pti=(λ+ηL^t−1,i)−2P_{ti} = \big(\lambda + \eta\hat L_{t-1,i}\big)^{-2}, with λ\lambda the normaliser (the implicitly normalised forecaster, Audibert–Bubeck 2009);
  • ∇2F(x)=12diag(x−3/2)\nabla^2F(x) = \frac12\mathrm{diag}(x^{-3/2}) and diamF≤2k\mathrm{diam}_F\le2\sqrt k;
  • Rn≤8knR_n\le\sqrt{8kn}, matching the Ω(kn)\Omega(\sqrt{kn}) lower bound up to constants;
  • with ηt=1/t\eta_t = 1/\sqrt t, Rn=O(kn)R_n = O(\sqrt{kn}) adversarially and O(∑ilog⁡n/Δi)O(\sum_i\log n/\Delta_i) 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 F(a)=−∑ilog⁡aiF(a) = -\sum_i\log a_i and an adaptive learning rate gives Rn≤k+2k(1+E∑tytAt2)log⁡n∨kkR_n\le k + 2\sqrt{k\big(1 + \mathbb E\sum_ty_{tA_t}^2\big)\log\frac{n\vee k}k}, hence Rn=O(k(1+min⁡a∑tyta)log⁡nk)R_n = O\big(\sqrt{k(1 + \min_a\sum_ty_{ta})\log\frac nk}\big). When the best arm has small total loss, regret is much smaller than nk\sqrt{nk} (Wei–Luo 2018).

WarningBandit regret with non-oblivious losses

The full-information bounds hold for adaptive losses, but bandit regret E[max⁡aR^n(a)]\mathbb E[\max_a\hat R_n(a)] is not max⁡aE[R^n(a)]\max_a\mathbb E[\hat R_n(a)] when losses react, since min⁡a∑⟨a,yt⟩\min_a\sum\langle a,y_t\rangle is then random. Bounding the gap needs empirical-process tools and gives O(n)O(\sqrt n) only if V[R^n(a)]=O(n)\mathbb V[\hat R_n(a)] = O(n), which can fail badly (Exp3’s instability). And non-oblivious regret doesn’t capture reactivity anyway.

RemarkMore notes

  • ℓp\ell_p balls: the ℓ2\ell_2 ball gets O~(dn)\tilde O(\sqrt{dn}), while the hypercube (ℓ∞\ell_\infty) needs Θ(dn)\Theta(d\sqrt n). As n→∞n\to\infty, the optimal dimension dependence on BpdB_p^d is either dd or d\sqrt d, fully classified by Bubeck et al. (2018).
  • Price of bandit information: about d\sqrt d on the ball and the simplex (up to logs), but it can be as large as Θ(d)\Theta(d). 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 ftf_t, linearise with yt=∇ft(at)y_t = \nabla f_t(a_t), so that Rn(a)≤∑⟨at−a,yt⟩R_n(a)\le\sum\langle a_t - a,y_t\rangle. 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 inf⁡xsup⁡yf≥sup⁡yinf⁡xf\inf_x\sup_yf\ge\sup_y\inf_xf. Sion: equality holds if X,YX, Y are convex subsets of linear topological spaces (one compact), f(⋅,y)f(\cdot,y) is lower semicontinuous and quasi-convex, and f(x,⋅)f(x,\cdot) is upper semicontinuous and quasi-concave. With simplices and bilinear ff this is von Neumann’s minimax theorem.

Proof idea: let both players run no-regret algorithms against each other on f(xt,yt)f(x_t,y_t). Sublinear regret for both implies the averaged iterates xˉn,yˉn\bar x_n, \bar y_n certify inf⁡xsup⁡yf≤sup⁡yinf⁡xf+o(1)\inf_x\sup_y f\le\sup_y\inf_x f + o(1). Compactness can’t be dropped (Exercise 28.17). Minimax theorems bridge adversarial and Bayesian regret (Chapters 34, 36).

Definitions: quasi-convex means sublevel sets f−1((−∞,a))f^{-1}((-\infty,a)) are convex. Upper semicontinuous at xx means for every ε\varepsilon some neighbourhood has f≤f(x)+εf\le f(x) + \varepsilon; lower semicontinuous is the mirror condition.


Adversarial versus stochastic linear bandits (Chapter 29)

DefinitionUnified view (losses throughout)

Yt=⟨At,θ⟩+ηt  (stochastic),Yt=⟨At,θt⟩  (adversarial)Y_t = \langle A_t,\theta\rangle + \eta_t\ \ (\text{stochastic}), \qquad Y_t = \langle A_t,\theta_t\rangle\ \ (\text{adversarial})

with ηt\eta_t (conditionally) 1-subgaussian. The regrets are ∑tE⟨At,θ⟩−ninf⁡a⟨a,θ⟩\sum_t\mathbb E\langle A_t,\theta\rangle - n\inf_a\langle a,\theta\rangle and ∑tE⟨At,θt⟩−ninf⁡a⟨a,θˉn⟩\sum_t\mathbb E\langle A_t,\theta_t\rangle - n\inf_a\langle a,\bar\theta_n\rangle, with θˉn\bar\theta_n the average loss vector.

WarningThree subtleties absent in the finite-armed case

  1. Reducing stochastic to adversarial needs an augmented action set.
  2. The models restrict the variance of the noise differently, which explains the unit-ball gap: adversarial O~(dn)\tilde O(\sqrt{dn}) versus stochastic Ω(dn)\Omega(d\sqrt n).
  3. With changing action sets, the right adversarial regret has no effective algorithms yet.

Reducing stochastic linear bandits to adversarial ones

AlgorithmAugmentation reduction

Assume ∣⟨a,θ⟩+ηt∣≤1\lvert\langle a,\theta\rangle + \eta_t\rvert\le1 a.s. Absorb the noise into an extra coordinate:

Aaug={(a,1):a∈A}⊂Rd+1,θt=(θ,ηt)\mathcal A_{\mathrm{aug}} = \{(a,1) : a\in\mathcal A\}\subset\mathbb R^{d+1}, \qquad\theta_t = (\theta,\eta_t)

so that ⟨(a,1),θt⟩=⟨a,θ⟩+ηt\langle(a,1),\theta_t\rangle = \langle a,\theta\rangle + \eta_t matches the stochastic feedback exactly. Run any adversarial algorithm on Aaug\mathcal A_{\mathrm{aug}} and play the first dd coordinates.

Regret transfers: for a′=(a,1)a' = (a,1), ⟨At,θ⟩−⟨a,θ⟩=⟨At′,θt⟩−⟨a′,θt⟩\langle A_t,\theta\rangle - \langle a,\theta\rangle = \langle A_t',\theta_t\rangle - \langle a',\theta_t\rangle, so the stochastic regret is at most the adversarial regret bound BnB_n.

ImportantThe reduction changes the geometry

If A\mathcal A is the unit ball, neither Aaug\mathcal A_{\mathrm{aug}} nor its loss polar is a ball. The Ω(dn)\Omega(d\sqrt n) stochastic lower bound shows this change must empower the adversary: on the augmented set, adversarial regret is Ω(dn)\Omega(d\sqrt n). Relatedly, O(dn)O(\sqrt{dn}) is impossible on a shifted ball {(2,0,…,0)+x:∥x∥≤1}\{(2,0,\ldots,0) + x : \lVert x\rVert\le1\} (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 ∣⟨At,θ⟩+ηt∣≤C=1+4log⁡n\lvert\langle A_t,\theta\rangle + \eta_t\rvert\le C = 1 + \sqrt{4\log n} for all tt, which fails with probability at most 1/n1/n by a subgaussian tail and a union bound.

Stochastic linear bandits with parameter noise

DefinitionParameter noise

θt∼ν\theta_t\sim\nu i.i.d. with mean θ\theta, and Yt=⟨At,θt⟩Y_t = \langle A_t,\theta_t\rangle: the noise enters before the inner product. If Supp(ν)⊆L\mathrm{Supp}(\nu)\subseteq\mathcal L 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 Yt=⟨At,θ⟩+η~tY_t = \langle A_t,\theta\rangle + \tilde\eta_t with η~t=⟨At,θt−θ⟩\tilde\eta_t = \langle A_t,\theta_t - \theta\rangle (conditionally mean zero),

Vt[η~t]=At⊤ΣAt(29.3)\mathbb V_t[\tilde\eta_t] = A_t^\top\Sigma A_t \tag{29.3}

with Σ\Sigma the covariance of ν\nu. For example Σ=I\Sigma = I gives ∥At∥2\lVert A_t\rVert^2: 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 ν\nu lives on the unit sphere, tr Σ≤1\mathrm{tr}\,\Sigma\le1. For AtA_t uniform on the sphere, E[A⊤ΣA]=tr(Σ)/d≤1/d\mathbb E[A^\top\Sigma A] = \mathrm{tr}(\Sigma)/d\le1/d: the effective noise variance is about 1/d1/d, versus 1 under 1-subgaussian noise. Scaling the adversary’s vectors to the sphere of radius d\sqrt d restores variance about 1, and the regret becomes linear in dd, matching the stochastic case. The standard adversarial model generalises parameter-noise bandits, not additive-noise ones. Restricting the adversary to L\mathcal L 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: Rn=E∑⟨Aˉt−a∗,θ^t⟩R_n = \mathbb E\sum\langle\bar A_t - a^*,\hat\theta_t\rangle for unbiased θ^t\hat\theta_t. The estimator’s covariance differs from the adversarial case, so the bounds change.
  • Ball, additive noise: the Section 28.4 algorithm gets O(dnlog⁡n)O(d\sqrt{n\log n}). The variance computation grows by about dd (Exercise 29.2). For finite A\mathcal A, linear Exp3 with Kiefer–Wolfowitz gets O(dnlog⁡k)O(\sqrt{dn\log k}); for convex A\mathcal A, use continuous exponential weights.
  • Misspecification on the ball: Yt=⟨At,θ⟩+ε(At)+ηtY_t = \langle A_t,\theta\rangle + \varepsilon(A_t) + \eta_t can’t be written as ⟨At,θt⟩\langle A_t,\theta_t\rangle with θt\theta_t independent of AtA_t. Even so, tuned FTRL gets O(dnlog⁡n+εnd)O(d\sqrt{n\log n} + \varepsilon n\sqrt d) (Exercise 29.4), improving on Chapter 22 by log factors and matching the misspecification lower bounds. For finite A\mathcal A, 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 At\mathcal A_t, LinUCB controls E∑t⟨At−at∗,θ⟩=O~(dn)\mathbb E\sum_t\langle A_t - a_t^*,\theta\rangle = \tilde O(d\sqrt n) against the per-round optimum. The adversarial analogue is

Rn(Θ)=max⁡θ∈ΘE[∑t⟨At−at(θ),yt⟩],at(θ)=arg⁡max⁡a∈At⟨a,θ⟩(29.4)R_n(\Theta) = \max_{\theta\in\Theta}\mathbb E\Big[\sum_t\langle A_t - a_t(\theta),y_t\rangle\Big],\qquad a_t(\theta) = \arg\max_{a\in\mathcal A_t}\langle a,\theta\rangle \tag{29.4}

which competes with the best policy induced by a parameter. For finite Θ\Theta, Chapter 27’s methods give O(dnlog⁡∣Θ∣)O(\sqrt{dn\log\lvert\Theta\rvert}), but this is (a) inefficient for large Θ\Theta, and (b) covering a continuous Θ\Theta doesn’t transfer, because at(θ)a_t(\theta) is discontinuous in θ\theta. A meaningful bound for Θ={∥θ∥2≤1}\Theta = \{\lVert\theta\rVert_2\le1\} 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

ObjectStatementNote
Loss spaceL={x:sup⁡a∣⟨a,x⟩∣≤1}\mathcal L = \{x : \sup_a\lvert\langle a,x\rangle\rvert\le1\}polar of A\mathcal A
LS-IW estimatorY^t=Qt−1AtYt\hat Y_t = Q_t^{-1}A_tY_t, Qt=∑Pt(a)aa⊤Q_t = \sum P_t(a)aa^\topunbiased
VarianceE∑aPt(a)Y^t(a)2≤d\mathbb E\sum_aP_t(a)\hat Y_t(a)^2\le dtrace identity
Linear Exp32(2g(π)+d)nlog⁡k≤23dnlog⁡k2\sqrt{(2g(\pi) + d)n\log k}\le2\sqrt{3dn\log k}exploration γ=ηg(π)\gamma = \eta g(\pi) required
Coverlog⁡∣C∣≤dlog⁡(6dn)\log\lvert C\rvert\le d\log(6dn)O(dnlog⁡(nd))O(d\sqrt{n\log(nd)}), inefficient
Continuous EW2d3n(1+log⁡+(2n/d))2d\sqrt{3n(1 + \log^+(2n/d))}log-concave sampling
MDat+1=arg⁡min⁡η⟨a,yt⟩+DF(a,at)a_{t+1} = \arg\min\eta\langle a,y_t\rangle + D_F(a,a_t)mirror step + Bregman projection
FTRLat+1=arg⁡min⁡η∑s≤t⟨a,ys⟩+F(a)a_{t+1} = \arg\min\eta\sum_{s\le t}\langle a,y_s\rangle + F(a)dual accumulation
Equivalencesame if FF Legendre, domF⊆A\mathrm{dom}F\subseteq\mathcal A, fixed η\etadiffer with projections or ηt\eta_t
RegretF(a)−F(a1)η+∑⟨at−at+1,yt⟩−1η∑D(at+1,at)\frac{F(a) - F(a_1)}\eta + \sum\langle a_t - a_{t+1},y_t\rangle - \frac1\eta\sum D(a_{t+1},a_t)bias + stability
Local normsdiamFη+η2∑∥yt∥t∗2\frac{\mathrm{diam}_F}\eta + \frac\eta2\sum\lVert y_t\rVert^2_{t*}Hessian norms
Ball (full info)n\sqrt nquadratic potential
Simplex (full info)2nlog⁡d\sqrt{2n\log d}negentropy
Bandit MD/FTRLsample with mean Aˉt\bar A_t + unbiased Y^t\hat Y_tlinearity
Ball (bandit)23ndlog⁡n2\sqrt{3nd\log n}barrier −log⁡(1−∥a∥)−∥a∥-\log(1 - \lVert a\rVert) - \lVert a\rVert
Anytime Exp3log⁡kηn+k2∑ηt≤2nklog⁡k\frac{\log k}{\eta_n} + \frac k2\sum\eta_t\le2\sqrt{nk\log k}FTRL with F/ηtF/\eta_t
INF/Tsallis8kn\sqrt{8kn}; best of both worlds with ηt=1/t\eta_t = 1/\sqrt tF=−2∑aF = -2\sum\sqrt a
Log barrierfirst-order kL∗log⁡(n/k)\sqrt{k L^*\log(n/k)}
Augmentation(a,1)(a,1), θt=(θ,ηt)\theta_t = (\theta,\eta_t)stochastic ⇒ adversarial, geometry changes
Parameter noiseV[η~t]=At⊤ΣAt\mathbb V[\tilde\eta_t] = A_t^\top\Sigma A_tabout 1/d1/d on the sphere
Contextual adversarial(29.4)open for continuous Θ\Theta

Facts to keep to hand

  • Linear Exp3 = exponential weights + least-squares importance weighting + optimal-design exploration. The variance is always dd by the trace identity. Exploration is needed to keep the estimates bounded, and Kiefer–Wolfowitz makes its cost g(π)=dg(\pi) = d.
  • MD and FTRL are one framework. Regularise to stabilise, run in the dual via the mirror map, project back. Regret = (regulariser range)/η\eta + η\eta × (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 log⁡k\sqrt{\log k}, 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 dnlog⁡n\sqrt{dn\log n}.
  • 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 1/d1/d on the sphere. That is why the ball gets dn\sqrt{dn} adversarially but dnd\sqrt n 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)

← All notes