Stochastic Linear Bandits

Bandits where each action is a feature vector and the mean reward is linear in an unknown parameter. Stochastic contextual bandits with feature maps (and why unstructured contexts are hopeless); the stochastic linear bandit model and its special cases (finite-armed, contextual, combinatorial); LinUCB/OFUL — optimism over an ellipsoidal confidence set around the regularised least-squares estimate; the elliptical potential lemma and the O(d√n log n) regret bound; computation (the bonus form ⟨θ̂,a⟩ + √β‖a‖_{V⁻¹}, Sherman–Morrison, rarely-switching updates); kernels, generalised linear models, spectral bandits and Lipschitz contexts. Fixed finite action sets: phased elimination with G-optimal (Kiefer–Wolfowitz) exploration and O(√(dn log(nk))) regret, changing finite action sets, and misspecification. Sparse parameters: selective explore-then-commit on the hypercube with O(‖θ‖₀√(n log n)) regret, and online-to-confidence-set conversion turning a sparse online regression algorithm into OLR-UCB with O(√(dnm₀) log n) regret.

· 24 min read · 4,735 words

Corresponds to Lattimore & Szepesvári, Chapters 19, 22 and 23. The statistical machinery (confidence ellipsoids from the method of mixtures, and optimal experimental design) is in confidence-bounds-and-optimal-design-for-least-squares.

Motivation: learning transfers across actions

IntuitionThe central idea

With kk unrelated arms, every arm must be learned separately, which costs nk\sqrt{nk}. If every action is described by a feature vector a∈Rda\in\mathbb R^d and the mean reward is ⟨θ∗,a⟩\langle\theta^*,a\rangle, then every pull teaches something about every action, because each pull is a noisy measurement of θ∗\theta^*. The difficulty of the problem becomes the dimension dd, not the number of actions, which can be enormous or infinite.

ChapterSettingAlgorithmRegret
19Arbitrary bounded action sets, possibly changingLinUCB / OFULO(dnlog⁡n)O(d\sqrt n\log n)
22Fixed finite action set, ∣A∣=k\lvert\mathcal A\rvert = kPhased elimination + G-optimal designO(dnlog⁡(nk))O(\sqrt{dn\log(nk)})
23Sparse θ∗\theta^*, ∥θ∗∥0≤m0\lVert\theta^*\rVert_0\le m_0SETC (hypercube); OLR-UCB (general)O(m0nlog⁡n)O(m_0\sqrt{n\log n}); O(dnm0log⁡n)O(\sqrt{dnm_0}\log n)

Stochastic contextual bandits

DefinitionStochastic contextual bandit

In round tt the learner observes a context Ct∈CC_t\in\mathcal C, chooses At∈[k]A_t\in[k], and receives

Xt=r(Ct,At)+ηtX_t = r(C_t,A_t) + \eta_t

where r:C×[k]→Rr : \mathcal C\times[k]\to\mathbb R is the reward function and the noise is conditionally 1-subgaussian: E[eληt∣Ft]≤eλ2/2\mathbb E[e^{\lambda\eta_t}\mid\mathcal F_t]\le e^{\lambda^2/2} a.s., with Ft=σ(C1,A1,X1,…,Ct,At)\mathcal F_t = \sigma(C_1,A_1,X_1,\ldots,C_t,A_t) the information just before XtX_t is seen. Hence E[Xt∣Ft]=r(Ct,At)\mathbb E[X_t\mid\mathcal F_t] = r(C_t,A_t).

RemarkConditioning on more is harmless

If the noise is subgaussian given a larger σ-algebra G⊇Ft\mathcal G\supseteq\mathcal F_t, the tower rule gives subgaussianity given Ft\mathcal F_t. So the condition can be checked with respect to anything that contains the learner’s information.

DefinitionContextual regret

Rn=E[∑t=1nmax⁡a∈[k]r(Ct,a)−∑t=1nXt]R_n = \mathbb E\Big[\sum_{t=1}^n\max_{a\in[k]}r(C_t,a) - \sum_{t=1}^nX_t\Big]

The benchmark action At∗=arg⁡max⁡ar(Ct,a)A_t^* = \arg\max_ar(C_t,a) is random, through CtC_t.

WarningMeaningful only if actions don’t steer future contexts

No restriction is placed on how contexts arise. If a “suboptimal” action now could lead to better contexts later, this regret undervalues it. The definition makes sense when the learner’s actions don’t (greatly) affect subsequent contexts.

WarningUnstructured contexts are hopeless

Estimating r(c,a)r(c,a) separately for every pair costs Ω(nMk)\Omega(\sqrt{nMk}) in the worst case with MM contexts, since knowing r(c,⋅)r(c,\cdot) need not reveal anything about r(c′,⋅)r(c',\cdot). With MM like 21002^{100}, that is useless. Real contexts are structured: rr varies smoothly with its arguments. Compare the expert-advice view.

DefinitionFeature map and linear reward

Given a known feature map ψ:C×[k]→Rd\psi : \mathcal C\times[k]\to\mathbb R^d and unknown θ∗∈Rd\theta^*\in\mathbb R^d,

r(c,a)=⟨θ∗,ψ(c,a)⟩(19.1)r(c,a) = \langle\theta^*,\psi(c,a)\rangle \tag{19.1}

The span of {ψ(c,a)}\{\psi(c,a)\} is the feature space.

ComponentDetail
Signatureψ:C×[k]→Rd\psi : \mathcal C\times[k]\to\mathbb R^d
Examplesindicators of (visitor category, book category) combinations; the last hidden layer of a neural network trained on historical data
SmoothnessHölder: ∣r(c,a)−r(c′,a′)∣≤∥θ∗∥ ∥ψ(c,a)−ψ(c′,a′)∥∗\lvert r(c,a) - r(c',a')\rvert\le\lVert\theta^*\rVert\,\lVert\psi(c,a) - \psi(c',a')\rVert_* (dual norm)
Infinite ddNorm bounds on θ∗\theta^* play the role of finite dimension, which makes linearity far less restrictive (kernels)

The stochastic linear bandit

DefinitionStochastic linear bandit

In round tt the learner receives a decision set At⊂Rd\mathcal A_t\subset\mathbb R^d, chooses At∈AtA_t\in\mathcal A_t, and observes

Xt=⟨θ∗,At⟩+ηtX_t = \langle\theta^*,A_t\rangle + \eta_t

with ηt\eta_t conditionally 1-subgaussian given the history, At\mathcal A_t and AtA_t. Only the feature vector matters, not the identity of the action.

R^n=∑t=1nmax⁡a∈At⟨θ∗,a−At⟩  (pseudo-regret),Rn=E[R^n]\hat R_n = \sum_{t=1}^n\max_{a\in\mathcal A_t}\langle\theta^*, a - A_t\rangle\ \ (\text{pseudo-regret}), \qquad R_n = \mathbb E[\hat R_n]

Choice of At\mathcal A_tRecovers
{e1,…,ed}\{e_1, \ldots, e_d\}The finite-armed bandit with k=dk = d
{ψ(Ct,i):i∈[k]}\{\psi(C_t,i) : i\in[k]\}The contextual linear bandit
⊆{0,1}d\subseteq\{0,1\}^d (incidence vectors)Combinatorial bandits: matchings, shortest paths, spanning trees (Chapter 30)

LinUCB: optimism over a confidence set

DefinitionOptimistic index

Given a confidence set Ct⊆Rd\mathcal C_t\subseteq\mathbb R^d that probably contains θ∗\theta^*,

UCBt(a)=max⁡θ∈Ct⟨θ,a⟩,At=arg⁡max⁡a∈AtUCBt(a)(19.2–19.3)\mathrm{UCB}_t(a) = \max_{\theta\in\mathcal C_t}\langle\theta,a\rangle, \qquad A_t = \arg\max_{a\in\mathcal A_t}\mathrm{UCB}_t(a) \tag{19.2–19.3}

Known as LinRel, LinUCB or OFUL (“optimism in the face of uncertainty for linear bandits”). The book calls every such algorithm LinUCB.

IntuitionSame principle, harder confidence set

Exactly the optimism principle: act as if the world is as good as plausibly possible. But a reward now informs every action, so the confidence object is a set in Rd\mathbb R^d, not an interval per arm. It should (a) contain θ∗\theta^* with high probability and (b) be as small as possible.

DefinitionRegularised least squares

With penalty factor λ≥0\lambda\ge0,

θ^t=arg⁡min⁡θ(∑s=1t(Xs−⟨θ,As⟩)2+λ∥θ∥22)=Vt−1∑s=1tAsXs,Vt=λI+∑s=1tAsAs⊤(19.4–19.6)\hat\theta_t = \arg\min_\theta\Big(\sum_{s=1}^t(X_s - \langle\theta,A_s\rangle)^2 + \lambda\lVert\theta\rVert_2^2\Big) = V_t^{-1}\sum_{s=1}^tA_sX_s, \qquad V_t = \lambda I + \sum_{s=1}^tA_sA_s^\top \tag{19.4–19.6}

λ>0\lambda > 0 guarantees a unique minimizer even if the actions don’t span Rd\mathbb R^d.

DerivationSetting the gradient to zero (Exercise 19.1)

The objective is a strictly convex quadratic (for λ>0\lambda > 0). Its gradient is −2∑sAs(Xs−As⊤θ)+2λθ-2\sum_sA_s(X_s - A_s^\top\theta) + 2\lambda\theta; setting it to zero gives (λI+∑sAsAs⊤)θ=∑sAsXs(\lambda I + \sum_sA_sA_s^\top)\theta = \sum_sA_sX_s. See linear-transformations-and-matrices for the matrix facts.

DefinitionEllipsoidal confidence set

Ct\mathcal C_t is closed and satisfies

Ct⊆Et={θ∈Rd:∥θ−θ^t−1∥Vt−12≤βt}(19.7)\mathcal C_t\subseteq\mathcal E_t = \big\{\theta\in\mathbb R^d : \lVert\theta - \hat\theta_{t-1}\rVert^2_{V_{t-1}}\le\beta_t\big\} \tag{19.7}

with (βt)(\beta_t) increasing and β1≥1\beta_1\ge1. Here ∥x∥V2=x⊤Vx\lVert x\rVert_V^2 = x^\top Vx. The ellipsoid is centred at the estimate; its principal axes are VV‘s eigenvectors, with lengths proportional to λi−1/2\lambda_i^{-1/2}. As VtV_t grows, the ellipsoid shrinks.

IntuitionWhy an ellipsoid

With Gaussian noise, a deterministic spanning design and λ=0\lambda = 0, the vector Z=V1/2(θ^−θ∗)Z = V^{1/2}(\hat\theta - \theta^*) is standard normal in Rd\mathbb R^d, so ∥θ^−θ∗∥V2=∥Z∥2∼χd2\lVert\hat\theta - \theta^*\rVert_V^2 = \lVert Z\rVert^2\sim\chi^2_d. The radius is a χd2\chi^2_d quantile. Directions probed often (large eigenvalues of VV) are pinned down tightly. The adaptive-design version is Theorem 20.5 in the confidence-bounds note.

Regret analysis

DefinitionAssumption 19.1

  1. 1≤β1≤⋯≤βn1\le\beta_1\le\cdots\le\beta_n;
  2. mean gaps bounded: sup⁡a,b∈At⟨θ∗,a−b⟩≤1\sup_{a,b\in\mathcal A_t}\langle\theta^*, a - b\rangle\le1;
  3. actions bounded: ∥a∥2≤L\lVert a\rVert_2\le L;
  4. with probability 1−δ1-\delta, θ∗∈Ct\theta^*\in\mathcal C_t for all tt, with Ct\mathcal C_t satisfying (19.7).

TheoremTheorem 19.2 — Regret of LinUCB

Under Assumption 19.1, with probability 1−δ1-\delta,

R^n≤8nβnlog⁡det⁡Vndet⁡V0≤8dnβnlog⁡dλ+nL2dλ\hat R_n\le\sqrt{8n\beta_n\log\frac{\det V_n}{\det V_0}}\le\sqrt{8dn\beta_n\log\frac{d\lambda + nL^2}{d\lambda}}

With ∥θ∗∥2≤m2\lVert\theta^*\rVert_2\le m_2, the method of mixtures (Theorem 20.5) allows

βn=λ m2+2log⁡1δ+dlog⁡dλ+nL2dλ(19.8)\sqrt{\beta_n} = \sqrt\lambda\,m_2 + \sqrt{2\log\frac1\delta + d\log\frac{d\lambda + nL^2}{d\lambda}} \tag{19.8}

CorollaryCorollary 19.3 — Expected regret

With δ=1/n\delta = 1/n: Rn≤Cdnlog⁡(nL)R_n\le Cd\sqrt n\log(nL).

LemmaLemma 19.4 — Elliptical potential lemma

Let V0≻0V_0\succ0, ∥at∥2≤L\lVert a_t\rVert_2\le L and Vt=V0+∑s≤tasas⊤V_t = V_0 + \sum_{s\le t}a_sa_s^\top. Then

∑t=1n(1∧∥at∥Vt−1−12)≤2log⁡det⁡Vndet⁡V0≤2dlog⁡trace⁡V0+nL2ddet⁡(V0)1/d\sum_{t=1}^n\Big(1\wedge\lVert a_t\rVert^2_{V_{t-1}^{-1}}\Big)\le2\log\frac{\det V_n}{\det V_0}\le2d\log\frac{\operatorname{trace}V_0 + nL^2}{d\det(V_0)^{1/d}}

ProofDeterminants grow by 1+∥a∥V−121 + \lVert a\rVert^2_{V^{-1}} per step

Step 1: u∧1≤2log⁡(1+u)u\wedge1\le2\log(1+u) for u≥0u\ge0.

Step 2: Matrix determinant lemma. Vt=Vt−11/2(I+Vt−1−1/2atat⊤Vt−1−1/2)Vt−11/2V_t = V_{t-1}^{1/2}\big(I + V_{t-1}^{-1/2}a_ta_t^\top V_{t-1}^{-1/2}\big)V_{t-1}^{1/2}, and I+yy⊤I + yy^\top has eigenvalues 1+∥y∥21 + \lVert y\rVert^2 and 1 (repeated), so

det⁡Vt=det⁡Vt−1(1+∥at∥Vt−1−12),det⁡Vn=det⁡V0∏t=1n(1+∥at∥Vt−1−12)(19.9)\det V_t = \det V_{t-1}\big(1 + \lVert a_t\rVert^2_{V_{t-1}^{-1}}\big), \qquad \det V_n = \det V_0\prod_{t=1}^n\big(1 + \lVert a_t\rVert^2_{V_{t-1}^{-1}}\big) \tag{19.9}

Step 3: AM–GM on the eigenvalues. det⁡Vn=∏iλi≤(1dtrace⁡Vn)d≤(trace⁡V0+nL2d)d\det V_n = \prod_i\lambda_i\le\big(\frac1d\operatorname{trace}V_n\big)^d\le\big(\frac{\operatorname{trace}V_0 + nL^2}d\big)^d.

∎

IntuitionYou can’t keep being surprised

∥at∥Vt−1−12\lVert a_t\rVert^2_{V_{t-1}^{-1}} measures how new direction ata_t is relative to what has been explored. Each novel action inflates the volume det⁡V\det V, but the volume can only grow polynomially in nn, so the total novelty is O(dlog⁡n)O(d\log n). At most O(dlog⁡(1+L2/λ))O(d\log(1 + L^2/\lambda)) rounds can have novelty at least 1 (Exercise 19.3).

ProofProof of Theorem 19.2: optimism, Cauchy–Schwarz, potential

Work on the event θ∗∈Ct\theta^*\in\mathcal C_t for all tt. Let At∗A_t^* be optimal, rt=⟨θ∗,At∗−At⟩r_t = \langle\theta^*, A_t^* - A_t\rangle, and θ~t∈Ct\tilde\theta_t\in\mathcal C_t attain UCBt(At)\mathrm{UCB}_t(A_t).

Step 1: Optimism. ⟨θ∗,At∗⟩≤UCBt(At∗)≤UCBt(At)=⟨θ~t,At⟩\langle\theta^*,A_t^*\rangle\le\mathrm{UCB}_t(A_t^*)\le\mathrm{UCB}_t(A_t) = \langle\tilde\theta_t,A_t\rangle.

Step 2: Cauchy–Schwarz in the VV-geometry. Both θ~t\tilde\theta_t and θ∗\theta^* lie in Et\mathcal E_t, so

rt≤⟨θ~t−θ∗,At⟩≤∥At∥Vt−1−1∥θ~t−θ∗∥Vt−1≤2βt∥At∥Vt−1−1(19.10)r_t\le\langle\tilde\theta_t - \theta^*,A_t\rangle\le\lVert A_t\rVert_{V_{t-1}^{-1}}\lVert\tilde\theta_t - \theta^*\rVert_{V_{t-1}}\le2\sqrt{\beta_t}\lVert A_t\rVert_{V_{t-1}^{-1}} \tag{19.10}

Step 3: Truncate. Also rt≤2r_t\le2 (gaps at most 1, so differences at most 2), hence rt≤2βn(1∧∥At∥Vt−1−1)r_t\le2\sqrt{\beta_n}\big(1\wedge\lVert A_t\rVert_{V_{t-1}^{-1}}\big).

Step 4: Cauchy–Schwarz over time, then Lemma 19.4.

R^n≤n∑trt2≤2nβn∑t(1∧∥At∥Vt−1−12)(19.11)\hat R_n\le\sqrt{n\sum_tr_t^2}\le2\sqrt{n\beta_n\sum_t\big(1\wedge\lVert A_t\rVert^2_{V_{t-1}^{-1}}\big)} \tag{19.11}

∎

RemarkLarger reward ranges (Exercise 19.3)

If gaps are only bounded by BB, the at most O(dlog⁡(1+L2/λ))O(d\log(1 + L^2/\lambda)) rounds with ∥At∥V−1≥1\lVert A_t\rVert_{V^{-1}}\ge1 cost at most BB each, and the rest of the analysis is unchanged. BB enters only as an additive constant independent of nn.

Computation

FormulaThe ellipsoidal index (Exercise 19.2)

For Ct=Et\mathcal C_t = \mathcal E_t,

max⁡θ∈Et⟨θ,a⟩=⟨θ^t−1,a⟩+βt ∥a∥Vt−1−1,At=arg⁡max⁡a∈At(⟨θ^t−1,a⟩+βt∥a∥Vt−1−1)(19.13)\max_{\theta\in\mathcal E_t}\langle\theta,a\rangle = \langle\hat\theta_{t-1},a\rangle + \sqrt{\beta_t}\,\lVert a\rVert_{V_{t-1}^{-1}}, \qquad A_t = \arg\max_{a\in\mathcal A_t}\Big(\langle\hat\theta_{t-1},a\rangle + \sqrt{\beta_t}\lVert a\rVert_{V_{t-1}^{-1}}\Big) \tag{19.13}

Write θ=θ^+V−1/2u\theta = \hat\theta + V^{-1/2}u with ∥u∥≤β\lVert u\rVert\le\sqrt\beta. Then ⟨V−1/2u,a⟩=⟨u,V−1/2a⟩\langle V^{-1/2}u,a\rangle = \langle u,V^{-1/2}a\rangle is maximized by uu aligned with V−1/2aV^{-1/2}a, giving β∥a∥V−1\sqrt\beta\lVert a\rVert_{V^{-1}}.

ImportantLinUCB is UCB, generalised

Estimated reward + exploration bonus. With λ=0\lambda = 0 and At={e1,…,ed}\mathcal A_t = \{e_1, \ldots, e_d\}, VtV_t is diagonal with pull counts on the diagonal, θ^i\hat\theta_i is arm ii‘s empirical mean, and the bonus is βt/Ti(t−1)\sqrt{\beta_t/T_i(t-1)}. Choosing βt=2log⁡(⋅)\beta_t = 2\log(\cdot) recovers UCB exactly. The generic analysis gives O(dnlog⁡(⋅))O(\sqrt{dn\log(\cdot)}) here, close to the specialized analyses of Chapters 7–9. That dimension-free βt\beta_t doesn’t satisfy (19.7), but the proof doesn’t actually need it.

RemarkComputing the action in general

AtA_t solves a bilinear problem max⁡(a,θ)∈At×Ct⟨θ,a⟩\max_{(a,\theta)\in\mathcal A_t\times\mathcal C_t}\langle\theta,a\rangle (19.12), which is hard in general. Two tractable cases:

  1. Ct\mathcal C_t is the convex hull of finitely many points ϕ1,…,ϕm\phi_1, \ldots, \phi_m and linear optimisation over At\mathcal A_t is easy: compute a(ϕj)a(\phi_j) for each jj and keep the best pair.
  2. Ct=Et\mathcal C_t = \mathcal E_t and At\mathcal A_t is small: evaluate (19.13) for each arm. Rank-one Sherman–Morrison updates of Vt−1V_t^{-1} give O(kd2)O(kd^2) work per round (Exercise 19.8).

Rarely switching LinUCB (Exercise 19.4): for a fixed set of kk actions, recompute the action only when log⁡det⁡Vt\log\det V_t has grown by log⁡(1+ε)\log(1+\varepsilon) since the phase began. Using sup⁡x∥x∥A2/∥x∥B2≤det⁡A/det⁡B\sup_x\lVert x\rVert_A^2/\lVert x\rVert_B^2\le\det A/\det B for 0≺B⪯A0\prec B\preceq A, the regret bound holds with βn\beta_n replaced by (1+ε)βn(1+\varepsilon)\beta_n, while the cost falls from O(kd2n)O(kd^2n) to O(klog⁡n+d2n)O(k\log n + d^2n).

Notes and extensions

RemarkRefinements and tightness

  • Data-dependent radius: βt1/2=m2λ+2log⁡1δ+log⁡det⁡Vt−1λd\beta_t^{1/2} = m_2\sqrt\lambda + \sqrt{2\log\frac1\delta + \log\frac{\det V_{t-1}}{\lambda^d}} (19.14) is never worse than (19.8) and sometimes modestly better.
  • Worst-case flavour: the bound barely depends on θ∗\theta^* or the geometry of A\mathcal A. Instance-dependent theory is open, except for fixed finite action sets (Chapter 25).
  • Tightness: dnd\sqrt n is tight up to logs (Chapter 24), but the hard instances have infinite or exponentially large action sets. The Cauchy–Schwarz step (19.11) often loses a log (for example when rt=1/tr_t = \sqrt{1/t}), yet Li et al. (2019) built contextual sequences where both it and Lemma 19.4 are tight.
  • Few actions per round (∣At∣≤k\lvert\mathcal A_t\rvert\le k): algorithms with Rn=O(dnlog⁡3(nk))R_n = O(\sqrt{dn\log^3(nk)}) exist (next section).

RemarkBeyond plain linearity

  • Kernels: infinite-dimensional ψ\psi via a kernel κ((c,a),(c′,a′))=⟨ψ(c,a),ψ(c′,a′)⟩\kappa((c,a),(c',a')) = \langle\psi(c,a),\psi(c',a')\rangle. The dimension in Lemma 19.4 is replaced by a data-dependent effective dimension, and the confidence sets must be rebuilt (Srinivas et al.; Valko et al.).
  • Generalised linear models: Xt=μ(⟨θ∗,At⟩)+ηtX_t = \mu(\langle\theta^*,A_t\rangle) + \eta_t, for example the logistic μ(x)=1/(1+e−x)\mu(x) = 1/(1 + e^{-x}) (Filippi et al. 2010). With c1≤μ′≤c2c_1\le\mu'\le c_2 on the relevant region, a confidence set from gt(θ)=λθ+∑sμ(⟨θ,As⟩)Asg_t(\theta) = \lambda\theta + \sum_s\mu(\langle\theta,A_s\rangle)A_s gives R^n≤c2c18ndβnlog⁡(1+nL2/d)\hat R_n\le\frac{c_2}{c_1}\sqrt{8nd\beta_n\log(1 + nL^2/d)} (Exercise 19.6). The c2/c1c_2/c_1 dependence is unpleasant and probably improvable.
  • Other design principles: Thompson sampling (Chapter 36); optimisation-based asymptotically optimal algorithms for fixed action sets (very asymptotic, not practical yet); information-directed sampling, which minimizes squared expected regret divided by information gain (Russo–Van Roy; Kirschner–Krause).

TheoremSpectral bandits (Exercise 19.7)

Regularise anisotropically with V0≻0V_0\succ0 (eigenvalues λ1≤⋯≤λd\lambda_1\le\cdots\le\lambda_d). If ∥θ∗∥V0≤m\lVert\theta^*\rVert_{V_0}\le m, then with

deff=max⁡{i:(i−1)λi≤nlog⁡(1+nL2/λ1)}d_{\mathrm{eff}} = \max\Big\{i : (i-1)\lambda_i\le\frac n{\log(1 + nL^2/\lambda_1)}\Big\}

we get log⁡det⁡Vtdet⁡V0≤2defflog⁡(1+nL2/λ1)\log\frac{\det V_t}{\det V_0}\le2d_{\mathrm{eff}}\log(1 + nL^2/\lambda_1) and E[R^n]=O(deffnlog⁡(nL2))\mathbb E[\hat R_n] = O(d_{\mathrm{eff}}\sqrt n\log(nL^2)). Strong regularisation in “unlikely” directions shrinks the effective dimension, but if ∥θ∗∥V0≤m\lVert\theta^*\rVert_{V_0}\le m fails, the confidence sets are wrong and the regret degrades with max⁡(0,∥θ∗∥V0−m)\max(0,\lVert\theta^*\rVert_{V_0} - m).

Graph application (Valko et al. 2014): arms are the vertices of a graph with Laplacian L=Q⊤ΛQ\mathcal L = Q^\top\Lambda Q, and θ=Q⊤μ\theta = Q^\top\mu. Then 12∑i,jWij(μi−μj)2=∥θ∥Λ2\frac12\sum_{i,j}W_{ij}(\mu_i - \mu_j)^2 = \lVert\theta\rVert_\Lambda^2, so a small ∥θ∥Λ\lVert\theta\rVert_\Lambda means rewards vary little across strong edges. Use V0=Λ+λIV_0 = \Lambda + \lambda I.

TheoremLipschitz contexts (Exercise 19.5)

With C=[0,1]\mathcal C = [0,1] and each r(⋅,i)r(\cdot,i) LL-Lipschitz, discretize the contexts (or run Exp4 over piecewise-constant policies) to get Rn=O((Lklog⁡k)1/3n2/3)R_n = O((Lk\log k)^{1/3}n^{2/3}), and the minimax rate is Ω((Lk)1/3n2/3)\Omega((Lk)^{1/3}n^{2/3}). In [0,1]d[0,1]^d the exponent worsens with the dimension. Adaptive discretisation helps under margin conditions (Perchet–Rigollet).

ExampleLinUCB versus UCB (Exercise 19.8)

  • Two Gaussian arms as {e1,e2}\{e_1,e_2\}: LinUCB is close to, but slightly worse than, finite-armed UCB, which has sharper constants.
  • kk random unit vectors in R5\mathbb R^5, n=5000n = 5000: UCB’s regret grows with kk, while LinUCB’s stays roughly flat. Structure wins once k≫dk\gg d.

RemarkHistory

Linear bandits: Abe–Long (1999). Optimism with finitely many actions: Auer (2002). Confidence ellipsoids: Dani et al. (2008), Rusmevichientong–Tsitsiklis (2010), Abbasi-Yadkori et al. (2011). An expected O~(dn)\tilde O(d\sqrt n) holds for any action-set shape with bounded means. For the unit ball and smooth convex action sets, explore-then-commit (PEGE) is already near-optimal.


Fixed finite action sets (Chapter 22)

Setting. At=A\mathcal A_t = \mathcal A with ∣A∣=k\lvert\mathcal A\rvert = k, fixed over time; conditionally 1-subgaussian noise; all gaps Δa=max⁡b⟨θ∗,b−a⟩≤1\Delta_a = \max_b\langle\theta^*, b - a\rangle\le1. Goal: Rn=O(dnlog⁡(nk))R_n = O(\sqrt{dn\log(nk)}), better than LinUCB’s dnd\sqrt n by up to d\sqrt d when kk is moderate.

IntuitionDecouple design from data, then use fixed-design confidence widths

Adaptive data forces LinUCB’s confidence sets to pay a d\sqrt d in every direction. If each phase’s actions are chosen only from earlier phases’ data, the in-phase design is fixed, and the sharper per-direction bound ⟨θ^−θ∗,a⟩≲2∥a∥V−12log⁡(1/δ)\langle\hat\theta - \theta^*,a\rangle\lesssim\sqrt{2\lVert a\rVert^2_{V^{-1}}\log(1/\delta)} applies. A G-optimal design makes that width uniformly small over all surviving arms with only about d/ε2d/\varepsilon^2 samples (Kiefer–Wolfowitz).

AlgorithmPhased elimination with G-optimal exploration (Algorithm 12)

Input A\mathcal A, δ\delta. Set A1=A\mathcal A_1 = \mathcal A. For phases ℓ=1,2,…\ell = 1, 2, \ldots:

  1. find a G-optimal design πℓ\pi_\ell on Aℓ\mathcal A_\ell (maximize log⁡det⁡V(πℓ)\log\det V(\pi_\ell)), with support at most d(d+1)/2d(d+1)/2;
  2. set εℓ=2−ℓ\varepsilon_\ell = 2^{-\ell} and Tℓ(a)=⌈2dπℓ(a)εℓ2log⁡kℓ(ℓ+1)δ⌉T_\ell(a) = \big\lceil\frac{2d\pi_\ell(a)}{\varepsilon_\ell^2}\log\frac{k\ell(\ell+1)}\delta\big\rceil;
  3. play each a∈Aℓa\in\mathcal A_\ell exactly Tℓ(a)T_\ell(a) times;
  4. compute least squares from this phase only: θ^ℓ=Vℓ−1∑tAtXt\hat\theta_\ell = V_\ell^{-1}\sum_tA_tX_t, with Vℓ=∑aTℓ(a)aa⊤V_\ell = \sum_aT_\ell(a)aa^\top;
  5. eliminate: Aℓ+1={a∈Aℓ:max⁡b∈Aℓ⟨θ^ℓ,b−a⟩≤2εℓ}\mathcal A_{\ell+1} = \{a\in\mathcal A_\ell : \max_{b\in\mathcal A_\ell}\langle\hat\theta_\ell, b - a\rangle\le2\varepsilon_\ell\}.

TheoremTheorem 22.1 — Regret of phased elimination

With probability at least 1−δ1-\delta,

Rn≤Cndlog⁡klog⁡nδR_n\le C\sqrt{nd\log\frac{k\log n}\delta}

and with δ=O(1/n)\delta = O(1/n), E[Rn]≤Cndlog⁡(kn)\mathbb E[R_n]\le C\sqrt{nd\log(kn)}.

ProofSketch (Exercise 22.1)

Phase length: by Kiefer–Wolfowitz (g(πℓ)=dg(\pi_\ell) = d, support at most d(d+1)/2d(d+1)/2), Tℓ≤2dεℓ2log⁡kℓ(ℓ+1)δ+d(d+1)2T_\ell\le\frac{2d}{\varepsilon_\ell^2}\log\frac{k\ell(\ell+1)}\delta + \frac{d(d+1)}2, and Vℓ⪰2dεℓ2log⁡(⋅)V(πℓ)V_\ell\succeq\frac{2d}{\varepsilon_\ell^2}\log(\cdot)V(\pi_\ell), so every surviving arm’s estimate is within εℓ\varepsilon_\ell with high probability.

The optimal arm survives: a union bound over arms and phases (the kℓ(ℓ+1)k\ell(\ell+1) factor) gives P(∃ℓ:a∗∉Aℓ)≤δ/k\mathbb P(\exists\ell : a^*\notin\mathcal A_\ell)\le\delta/k.

Bad arms die on schedule: let ℓa=min⁡{ℓ:2εℓ<Δa}\ell_a = \min\{\ell : 2\varepsilon_\ell < \Delta_a\}. Then P(a∈Aℓa+1)≤δ/k\mathbb P(a\in\mathcal A_{\ell_a+1})\le\delta/k. So in phase ℓ\ell every surviving arm has gap O(εℓ)O(\varepsilon_\ell).

Sum over phases: phase ℓ\ell costs about Tℓ⋅4εℓ−1≈dεℓlog⁡(⋅)T_\ell\cdot4\varepsilon_{\ell-1}\approx\frac{d}{\varepsilon_\ell}\log(\cdot). Stopping the phase sum when ∑Tℓ\sum T_\ell reaches nn gives dnlog⁡(⋅)\sqrt{dn\log(\cdot)}, by the same balancing as in Theorem 7.2.

∎

RemarkNotes

  • A fixed action set is essential. For changing sets with ∣At∣≤k\lvert\mathcal A_t\rvert\le k, SupLinRel (Auer 2002) and SupLinUCB (Chu et al. 2011) reach O(ndlog⁡3(nk))O(\sqrt{nd\log^3(nk)}), but they need non-random action sets and a delicate decoupling device. Li et al. (2019) proved a matching lower bound Ω(dnlog⁡(n/d)log⁡k)\Omega(\sqrt{dn\log(n/d)\log k}), up to iterated-log factors. These algorithms are less practical than LinUCB or Thompson sampling.
  • Infinite kk: with Chapter 20’s confidence sets instead, the regret is O(dnlog⁡n)O(d\sqrt{n\log n}).
  • Misspecification is handled gracefully: if Xt=⟨θ,At⟩+ηt+f(At)X_t = \langle\theta,A_t\rangle + \eta_t + f(A_t) with ∥f∥∞≤ε\lVert f\rVert_\infty\le\varepsilon, then Rn=O(dnlog⁡(nk)+nεdlog⁡n)R_n = O(\sqrt{dn\log(nk)} + n\varepsilon\sqrt d\log n) (Exercise 22.2). The d\sqrt d amplification of misspecification is often unavoidable (Lattimore–Szepesvári 2019). If linearity can be tested cheaply, switching between linear and finite-armed algorithms gets (k∧d)n(\sqrt k\wedge d)\sqrt n (Ghosh et al. 2017).
  • Novelty: using Kiefer–Wolfowitz here appears to be new, adapted from adversarial linear bandits’ use of John’s ellipsoid (Bubeck et al. 2012; Part VI). With symmetrization it is much cleaner.

Sparse linear bandits (Chapter 23)

The problem. Features are designed by people who don’t know which ones matter. Too many features means large dd and slow learning; omitting a useful one means a badly wrong model. Ideally, irrelevant features should be nearly free.

DefinitionSparsity

∥θ∥0=∑iI{θi≠0}\lVert\theta\rVert_0 = \sum_i\mathbb I\{\theta_i\ne0\}, the zero-”norm”. It fails absolute homogeneity, so it isn’t a norm (Exercise 23.1).

Assumption 23.1: known m0,m2m_0, m_2 with ∥θ∗∥0≤m0\lVert\theta^*\rVert_0\le m_0 and ∥θ∗∥2≤m2\lVert\theta^*\rVert_2\le m_2; ⟨θ∗,a⟩≤1\langle\theta^*,a\rangle\le1 for all actions; noise conditionally 1-subgaussian given Ft=σ(A1,X1,…,At,Xt,At+1)\mathcal F_t = \sigma(A_1,X_1,\ldots,A_t,X_t,A_{t+1}).

WarningWhy passive sparse-regression theory doesn’t transfer

Sparse-recovery results (lasso and similar) assume a well-conditioned covariance of the actions (a small ratio of largest to smallest eigenvalue). A good bandit policy plays the optimal action most of the time, so its covariance has one dominant eigenvector pointing at a∗a^*. That is badly conditioned by design. A different approach is needed.

Elimination on the hypercube

Setting. A=[−1,1]d\mathcal A = [-1,1]^d. Coordinates can be chosen independently, so a∗=sign(θ)a^* = \mathrm{sign}(\theta): learn each sign separately. In the worst case that costs Ω(dn)\Omega(d\sqrt n) (Chapter 24), but exploring a coordinate with θi=0\theta_i = 0 costs nothing.

LemmaRademacher probing estimates one coordinate

If (Ati)i(A_{ti})_i are conditionally independent given the past Gt−1\mathcal G_{t-1}, and AtiA_{ti} is Rademacher, then

E[AtiXt∣Gt−1]=θiE[Ati2]+∑j≠iθjE[AtjAti]+E[Atiηt]=θi,V[AtiXt∣Gt−1]≤2(23.2)\mathbb E[A_{ti}X_t\mid\mathcal G_{t-1}] = \theta_i\mathbb E[A_{ti}^2] + \sum_{j\ne i}\theta_j\mathbb E[A_{tj}A_{ti}] + \mathbb E[A_{ti}\eta_t] = \theta_i, \qquad \mathbb V[A_{ti}X_t\mid\mathcal G_{t-1}]\le2 \tag{23.2}

Other coordinates contribute zero-mean noise, and the variance is bounded using ⟨θ,a⟩≤1\langle\theta,a\rangle\le1 and unit noise.

AlgorithmSelective explore-then-commit, SETC (Algorithm 13)

Each coordinate ii runs its own explore-then-commit:

  • while the confidence interval Cti\mathcal C_{ti} contains 0: play Ati∼A_{ti}\sim Rademacher and keep estimating θ^ti=1Ti(t)∑sEsiAsiXs\hat\theta_{ti} = \frac1{T_i(t)}\sum_sE_{si}A_{si}X_s;
  • once Cti⊂(0,∞)\mathcal C_{ti}\subset(0,\infty) (or (−∞,0)(-\infty,0)): commit to Ati=+1A_{ti} = +1 (or −1-1) forever.

The intervals are Ct+1,i=[θ^ti±Wti]\mathcal C_{t+1,i} = [\hat\theta_{ti}\pm W_{ti}] with Wti=2(1Ti(t)+1Ti(t)2)log⁡(n2Ti(t)+1)W_{ti} = 2\sqrt{\big(\frac1{T_i(t)} + \frac1{T_i(t)^2}\big)\log\big(n\sqrt{2T_i(t) + 1}\big)}, an anytime bound from the 1-D method of mixtures (Exercise 20.8).

TheoremTheorem 23.2 — Regret of SETC

For universal constants C,C′C, C',

Rn≤3∥θ∥1+C∑i:θi≠0log⁡n∣θi∣,Rn≤3∥θ∥1+C′∥θ∥0nlog⁡nR_n\le3\lVert\theta\rVert_1 + C\sum_{i:\theta_i\ne0}\frac{\log n}{\lvert\theta_i\rvert}, \qquad R_n\le3\lVert\theta\rVert_1 + C'\lVert\theta\rVert_0\sqrt{n\log n}

without knowing ∥θ∥0\lVert\theta\rVert_0.

ProofPer-coordinate regret decomposition

Step 1: The regret splits by coordinate.

Rn=∑i=1d(n∣θi∣−E∑tAtiθi)=∑iRni(23.3)R_n = \sum_{i=1}^d\Big(n\lvert\theta_i\rvert - \mathbb E\sum_tA_{ti}\theta_i\Big) = \sum_iR_{ni} \tag{23.3}

and Rni=0R_{ni} = 0 when θi=0\theta_i = 0.

Step 2: For θi≠0\theta_i\ne0. Let τi\tau_i be the commitment time and FiF_i the event that θi∉Cτi+1,i\theta_i\notin\mathcal C_{\tau_i+1,i}. Off FiF_i, the algorithm commits to the right sign, so Rni≤2n∣θi∣P(Fi)+∣θi∣E[I{Fic}τi]R_{ni}\le2n\lvert\theta_i\rvert\mathbb P(F_i) + \lvert\theta_i\rvert\mathbb E[\mathbb I\{F_i^c\}\tau_i].

Step 3: Exploration length. Just before committing, the interval contained both 0 and θi\theta_i, so 2W≥∣θi∣2W\ge\lvert\theta_i\rvert, which gives τi−1≤1+Clog⁡n/θi2\tau_i - 1\le1 + C\log n/\theta_i^2.

Step 4: P(Fi)≤1/n\mathbb P(F_i)\le1/n (Lemma 23.3), so Rni≤3∣θi∣+Clog⁡n/∣θi∣R_{ni}\le3\lvert\theta_i\rvert + C\log n/\lvert\theta_i\rvert. The n\sqrt n form follows by the usual small/large-gap split, per coordinate (Exercise 23.2).

∎

LemmaLemma 23.3 — The intervals are valid

P(θi∉Cτi+1,i)≤1/n\mathbb P(\theta_i\notin\mathcal C_{\tau_i+1,i})\le1/n.

ProofEach probe’s error is 2\sqrt2-subgaussian

With Sti=∑j≠iAtjθjS_{ti} = \sum_{j\ne i}A_{tj}\theta_j and Zti=Atiηt+AtiStiZ_{ti} = A_{ti}\eta_t + A_{ti}S_{ti}, while exploring θ^ti−θi=1t∑sZsi\hat\theta_{ti} - \theta_i = \frac1t\sum_sZ_{si}. Condition first on Ft−1\mathcal F_{t-1} (noise: factor eλ2/2e^{\lambda^2/2}), then on StiS_{ti} (Rademacher AtiA_{ti} is 1-subgaussian by Hoeffding’s lemma: factor eλ2Sti2/2e^{\lambda^2S_{ti}^2/2}), and use ∣Sti∣≤∥At∥∞∥θ∥1≤1\lvert S_{ti}\rvert\le\lVert A_t\rVert_\infty\lVert\theta\rVert_1\le1. So E[eλZti∣Gt−1]≤eλ2\mathbb E[e^{\lambda Z_{ti}}\mid\mathcal G_{t-1}]\le e^{\lambda^2}. Then apply the anytime bound of Exercise 20.8.

∎

Online-to-confidence-set conversion

The problem. On a general action set, coordinates can’t be probed separately. Plan: shrink LinUCB’s ellipsoid using a sparse online regression algorithm.

WarningAmbient dimension can’t be removed in general

With At={e1,…,ed}\mathcal A_t = \{e_1, \ldots, e_d\}, a linear bandit is a dd-armed bandit, and Theorem 15.2’s hard instances are 2-sparse. So Rn=Ω(dn)R_n = \Omega(\sqrt{dn}) even for very sparse θ∗\theta^*. The target is dpn\sqrt{dpn} with p=m0p = m_0, not m0nm_0\sqrt n.

DefinitionOnline linear regression

Each round: the environment picks (At,Xt)(A_t,X_t) arbitrarily and reveals AtA_t; the learner predicts X^t\hat X_t; then XtX_t is revealed and the loss is (Xt−X^t)2(X_t - \hat X_t)^2. Regret against weights θ\theta:

ρn(θ)=∑t=1n(Xt−X^t)2−∑t=1n(Xt−⟨θ,At⟩)2(23.5)\rho_n(\theta) = \sum_{t=1}^n(X_t - \hat X_t)^2 - \sum_{t=1}^n(X_t - \langle\theta,A_t\rangle)^2 \tag{23.5}

The learner has guarantee BnB_n relative to Θ\Theta if sup⁡θ∈Θρn(θ)≤Bn\sup_{\theta\in\Theta}\rho_n(\theta)\le B_n against every environment (23.6).

DerivationFrom prediction regret to a confidence set

Step 1: Algebra. If Xt=⟨θ∗,At⟩+ηtX_t = \langle\theta^*,A_t\rangle + \eta_t, expanding (Xt−X^t)2=(ηt−(X^t−⟨θ∗,At⟩))2(X_t - \hat X_t)^2 = (\eta_t - (\hat X_t - \langle\theta^*,A_t\rangle))^2 gives

Qt=∑s≤t(X^s−⟨θ∗,As⟩)2=ρt(θ∗)+2∑s≤tηs(X^s−⟨θ∗,As⟩)≤Bt+2Zt(23.8)Q_t = \sum_{s\le t}(\hat X_s - \langle\theta^*,A_s\rangle)^2 = \rho_t(\theta^*) + 2\sum_{s\le t}\eta_s(\hat X_s - \langle\theta^*,A_s\rangle)\le B_t + 2Z_t \tag{23.8}

Step 2: The cross term is a martingale. X^s\hat X_s is predictable, so ZtZ_t‘s increments are conditionally subgaussian with variance proxy (X^s−⟨θ∗,As⟩)2(\hat X_s - \langle\theta^*,A_s\rangle)^2, which sums to QtQ_t. The self-normalised bound (Theorem 20.4, one dimension) gives, uniformly in tt with probability 1−δ1-\delta, ∣Zt∣≤(1+Qt)log⁡1+Qtδ2\lvert Z_t\rvert\le\sqrt{(1 + Q_t)\log\frac{1 + Q_t}{\delta^2}}.

Step 3: Solve the implicit inequality. Qt≤Bt+2(1+Qt)log⁡1+Qtδ2Q_t\le B_t + 2\sqrt{(1 + Q_t)\log\frac{1 + Q_t}{\delta^2}} (23.9). The left side grows linearly in QtQ_t and the right side sublinearly, so

Qt≤βt(δ)=1+2Bt+32log⁡8+1+Btδ(23.10)Q_t\le\beta_t(\delta) = 1 + 2B_t + 32\log\frac{\sqrt8 + \sqrt{1 + B_t}}\delta \tag{23.10}

TheoremTheorem 23.4 — Online-to-confidence-set conversion

If θ∗∈Θ\theta^*\in\Theta and sup⁡θ∈Θρt(θ)≤Bt\sup_{\theta\in\Theta}\rho_t(\theta)\le B_t, then

Ct+1={θ:∥θ∥22+∑s=1t(X^s−⟨θ,As⟩)2≤m22+βt(δ)}\mathcal C_{t+1} = \Big\{\theta : \lVert\theta\rVert_2^2 + \sum_{s=1}^t(\hat X_s - \langle\theta,A_s\rangle)^2\le m_2^2 + \beta_t(\delta)\Big\}

contains θ∗\theta^* for all tt with probability 1−δ1-\delta. (The ∥θ∥22\lVert\theta\rVert_2^2 term, from ∥θ∗∥2≤m2\lVert\theta^*\rVert_2\le m_2, keeps the set bounded when the actions don’t span.)

FormulaThe same set as an ellipsoid (Exercise 23.5)

With Vt=I+∑sAsAs⊤V_t = I + \sum_sA_sA_s^\top and θ^t=Vt−1∑sAsX^s\hat\theta_t = V_t^{-1}\sum_sA_s\hat X_s (regression on the predictions, not the rewards),

∥θ∥22+∑s(X^s−⟨θ,As⟩)2=∥θ−θ^t∥Vt2+∑s(X^s−⟨θ^t,As⟩)2+∥θ^t∥22(23.11)\lVert\theta\rVert_2^2 + \sum_s(\hat X_s - \langle\theta,A_s\rangle)^2 = \lVert\theta - \hat\theta_t\rVert^2_{V_t} + \sum_s(\hat X_s - \langle\hat\theta_t,A_s\rangle)^2 + \lVert\hat\theta_t\rVert_2^2 \tag{23.11}

so Ct+1\mathcal C_{t+1} is an ellipsoid centred at θ^t\hat\theta_t with squared radius m22+βt−∥θ^t∥2−∑s(X^s−⟨θ^t,As⟩)2m_2^2 + \beta_t - \lVert\hat\theta_t\rVert^2 - \sum_s(\hat X_s - \langle\hat\theta_t,A_s\rangle)^2. It is nonempty with high probability, by Theorem 23.4.

AlgorithmOLR-UCB (Algorithm 14)

Each round: build Ct\mathcal C_t from Theorem 23.4 using the predictor’s past outputs; play the optimistic At=arg⁡max⁡amax⁡θ∈Ct⟨θ,a⟩A_t = \arg\max_{a}\max_{\theta\in\mathcal C_t}\langle\theta,a\rangle; feed AtA_t to the online predictor to get X^t\hat X_t; observe XtX_t and feed it back.

TheoremTheorem 23.5 — Regret of OLR-UCB

With probability 1−δ1-\delta,

R^n≤8dn(m22+βn−1(δ))log⁡(1+nd)\hat R_n\le\sqrt{8dn\big(m_2^2 + \beta_{n-1}(\delta)\big)\log\Big(1 + \frac nd\Big)}

This is Theorem 19.2 with the radius β\beta now controlled by the predictor’s regret BnB_n, not by dlog⁡nd\log n.

TheoremTheorem 23.6 — Sparse online regression (Gerchinovitz)

Some predictor achieves, against any environment with ∥At∥2≤L\lVert A_t\rVert_2\le L and ∣Xt∣≤X\lvert X_t\rvert\le X,

ρn(θ)≤cX2∥θ∥0(log⁡(e+n1/2L)+Cnlog⁡(1+∥θ∥1∥θ∥0))+(1+X2)Cn,Cn=2+log⁡2log⁡(e+n1/2L)\rho_n(\theta)\le cX^2\lVert\theta\rVert_0\Big(\log(e + n^{1/2}L) + C_n\log\Big(1 + \frac{\lVert\theta\rVert_1}{\lVert\theta\rVert_0}\Big)\Big) + (1 + X^2)C_n, \qquad C_n = 2 + \log_2\log(e + n^{1/2}L)

so sup⁡∥θ∥0≤m0,∥θ∥2≤Lρn(θ)=O(m0log⁡n)\sup_{\lVert\theta\rVert_0\le m_0,\lVert\theta\rVert_2\le L}\rho_n(\theta) = O(m_0\log n).

CorollarySparse linear bandit regret

Subgaussian noise is unbounded, but with probability 1−1/n1 - 1/n every ∣Xt∣≤1+log⁡(2n2)\lvert X_t\rvert\le1 + \log(2n^2). Plugging Bn=O(m0log⁡n⋅polylog)B_n = O(m_0\log n\cdot\mathrm{polylog}) into Theorem 23.5:

Rn=O(dnm0log⁡2n)R_n = O\big(\sqrt{dnm_0}\log^2n\big)

compared with dnd\sqrt n for LinUCB, an improvement of d/m0\sqrt{d/m_0}.

WarningCaveats

  • Not computationally efficient: no polynomial-time online regressor with logarithmic sparse regret is known, so OLR-UCB has no efficient implementation.
  • m0m_0 must be known: no algorithm gets O(∥θ∗∥0dn)O(\sqrt{\lVert\theta^*\rVert_0dn}) for all sparsity levels simultaneously (Chapter 24).
  • The ambient dd remains, unavoidably (Theorem 24.3). Recent work instead assumes nice context distributions to import high-dimensional statistics (Kim–Paik 2019; Bastani–Bayati 2020).
  • Use the tightest data-dependent BnB_n: online-learning bounds start data-dependent and are loosened for exposition. Here the tight version matters.

RemarkThe conversion is generic

Any online regression guarantee yields a confidence set, for any structural assumption on θ\theta, including the non-sparse case. Rakhlin–Sridharan (2017) show the relationship goes both ways: tail inequalities imply regret bounds and vice versa. Similar constructions appear in Gentile and coauthors’ work. SETC is from Lattimore et al. (2015); the conversion from Abbasi-Yadkori et al. (2012).


Quick reference

ObjectStatementNote
Linear banditXt=⟨θ∗,At⟩+ηtX_t = \langle\theta^*,A_t\rangle + \eta_t, At∈AtA_t\in\mathcal A_tfinite-armed, contextual, combinatorial as special cases
Ridge estimateθ^t=Vt−1∑AsXs\hat\theta_t = V_t^{-1}\sum A_sX_s, Vt=λI+∑AsAs⊤V_t = \lambda I + \sum A_sA_s^\top
Confidence ellipsoid∥θ−θ^t−1∥Vt−12≤βt\lVert\theta - \hat\theta_{t-1}\rVert^2_{V_{t-1}}\le\beta_tβ≈m2λ+2log⁡1δ+dlog⁡(⋅)\sqrt\beta\approx m_2\sqrt\lambda + \sqrt{2\log\frac1\delta + d\log(\cdot)}
LinUCB index⟨θ^,a⟩+βt∥a∥V−1\langle\hat\theta,a\rangle + \sqrt{\beta_t}\lVert a\rVert_{V^{-1}}UCB when A={ei}\mathcal A = \{e_i\}
Elliptical potential∑(1∧∥at∥V−12)≤2log⁡det⁡Vndet⁡V0≤2dlog⁡(⋅)\sum(1\wedge\lVert a_t\rVert^2_{V^{-1}})\le2\log\frac{\det V_n}{\det V_0}\le2d\log(\cdot)det⁡\det grows by 1+∥a∥V−121 + \lVert a\rVert^2_{V^{-1}}
LinUCB regret8dnβnlog⁡(⋅)=O(dnlog⁡n)\sqrt{8dn\beta_n\log(\cdot)} = O(d\sqrt n\log n)tight up to logs in the worst case
Unstructured contextsΩ(nMk)\Omega(\sqrt{nMk})why features are needed
SpectralO(deffnlog⁡n)O(d_{\mathrm{eff}}\sqrt n\log n)anisotropic regularisation
GLMc2c18ndβlog⁡(⋅)\frac{c_2}{c_1}\sqrt{8nd\beta\log(\cdot)}link-dependent factor
Fixed finite A\mathcal AO(dnlog⁡(nk))O(\sqrt{dn\log(nk)})phased elimination + G-optimal design
Changing, ∣At∣≤k\lvert\mathcal A_t\rvert\le kO(dnlog⁡3(nk))O(\sqrt{dn\log^3(nk)})SupLinUCB
Misspecification+ nεdlog⁡n+\,n\varepsilon\sqrt d\log nphased elimination
Hypercube (SETC)3∥θ∥1+C∑log⁡n∣θi∣3\lVert\theta\rVert_1 + C\sum\frac{\log n}{\lvert\theta_i\rvert}; O(∥θ∥0nlog⁡n)O(\lVert\theta\rVert_0\sqrt{n\log n})no knowledge of sparsity
ConversionQt≤1+2Bt+32log⁡8+1+BtδQ_t\le1 + 2B_t + 32\log\frac{\sqrt8 + \sqrt{1 + B_t}}\deltaregression regret → confidence set
OLR-UCBO(dnm0log⁡2n)O(\sqrt{dnm_0}\log^2n)not efficient; needs m0m_0

Facts to keep to hand

  • Linearity turns arms into directions. Every observation constrains θ∗\theta^*, so the cost scales with dd, not the number of actions. LinUCB is UCB with an ellipsoid in place of intervals.
  • The elliptical potential lemma is the engine. Novel directions inflate det⁡V\det V, which can only grow like (1+nL2/dλ)d(1 + nL^2/d\lambda)^d, so total novelty is O(dlog⁡n)O(d\log n). Cauchy–Schwarz turns that into dnβ\sqrt{dn\beta} regret.
  • Adaptive data costs a d\sqrt d; decoupling buys it back. Phases whose designs depend only on past phases can use fixed-design widths, and Kiefer–Wolfowitz makes them uniformly small with about d/ε2d/\varepsilon^2 samples.
  • Sparsity helps, but not completely. Separable action sets (the hypercube) allow ∥θ∥0n\lVert\theta\rVert_0\sqrt n. In general the ambient dd survives as dm0n\sqrt{dm_0n}, and the best-known algorithm is not efficient.
  • Online regression and confidence sets are two views of one thing. A predictor’s squared-loss regret bound plus self-normalised concentration gives a valid ellipsoid for any structural class.

References

← All notes