Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Also read in: Online Learning Book. This is the same chapter and the same Lean nodes.
Teaching chapter 07 of 10 · Canonical route compiled
7. EXP3 and adversarial concentration
The scoped canonical generated EXP3 route compiles from exponential-weight potentials and importance-weighted conditional moments through horizon-tuned expected and best-arm high-probability endpoints, plus a distinct fixed-process all-positive-prefix realized-regret event and a sparse-loss extension.
How to read the status. It describes this page's canonical local Lean route, not completion of the cited textbook chapter or every extension listed below.
Orientation
Who should read this. Read Foundations first; later sections use the Probability layer heavily.
Learning goals
Connect the one-step exponential-potential inequality to deterministic Hedge regret.
See why positive exploration makes importance-weighted estimators legal.
Track predictable variance, realized deviation, comparator regret, and sparsity failures into explicit probability events.
Textbook crosswalk
Read the mathematics before the Lean interface
The Book Map is a curated formalization curriculum anchored in Bandit Algorithms, not a chapter-for-chapter reproduction of one book. Visible page labels use the numbered pages of its free online edition; source buttons use the PDF viewer's physical page index, which includes front matter and can therefore be larger. Companion papers cover algorithm-specific results.
Importance weighting makes the bandit observation unbiased, while exponential weights controls the resulting estimated-loss regret.
Model
An adversarial k-armed bandit with a fixed reward table x in [0,1]^(n×k).
Assumptions
The policy is the textbook EXP3 construction and compares with the best fixed arm in hindsight.
Algorithm parameters
Horizon n, arm count k, and learning rate η = √(2 log k/(nk)).
Regret notion
Expected adversarial pseudo-regret R_n against the best fixed arm.
Guarantee
R_n ≤ √(2nk log k).
Source mathematical statement.Formula renderer unavailable; readable fallback: With the textbook learning rate, EXP3 has expected adversarial regret at most the square root of two times horizon, arm count, and log arm count.\[\eta=\sqrt{\frac{2\log k}{nk}}\quad\Longrightarrow\quad R_n\le\sqrt{2nk\log k}.\]Swipe to read the full formula →
BanditRLlib relationship. The local generated predictable process uses its own tuning constants and also compiles separate fixed-horizon, all-time, realized-regret, and sparse-loss extensions.
The mathematical content is restated in this site's notation; wording is ours. See online p. 156 in the linked source for the original statement and full assumptions.
Natural-language and Lean side by side
The mathematical readings are explanatory summaries. The exact generated Lean statement and its source link remain authoritative for hypotheses, types, constants, and indexing.
A curated route through definitions, key bridges, and canonical terminals stays visible. 4 additional dependency, extension, or research-frontier notes are grouped below.
Plain-English statement. For nonnegative estimated losses, exponential weights has pathwise regret at most a log-cardinality term divided by the learning rate plus the learning rate times the mixed squared loss.
Mathematical reading.Formula renderer unavailable; readable fallback: For nonnegative estimated losses, exponential weights has pathwise regret at most a log-cardinality term divided by the learning rate plus the learning rate times the mixed squared loss.\(\sum_t\langle p_t,\hat\ell_t\rangle-\sum_t\hat\ell_t(a)\le\frac{\log K}{\eta}+\eta\sum_t\langle p_t,\hat\ell_t^2\rangle.\)Swipe to read the full formula →
Intuition
The log potential can neither fall below the comparator weight nor rise faster than the second-order exponential bound permits.
Why it is needed
This deterministic theorem is the algorithmic core reused by expected and high-probability EXP3 consumers.
Place in the proof
It sits between the potential algebra and probability-specific moment transport.
Proof and Lean reading notes
Proof idea
Bound each exponential update by a quadratic inequality, telescope the log normalizer, and compare the final normalizer with one fixed arm's weight.
Lean reading notes
The theorem is pathwise and does not itself mention a probability measure. Unbiasedness and integrability enter later.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem hedge_regret_le_log_card_div_add_eta_mul_mixedSquaredLoss_of_nonneg {Action : Type u} (arms : Finset Action) (harms : arms.Nonempty) (eta : Real) (heta : 0 < eta) (loss : Nat -> Action -> Real) (T : Nat) (hloss : forall t, t < T -> forall a, a ∈ arms -> 0 <= loss t a) (comparator : Action) (hcomparator : comparator ∈ arms) : (Finset.range T).sum (fun t => mixedLoss arms eta loss t) - cumulativeLoss loss T comparator <= Real.log arms.card / eta + eta * (Finset.range T).sum (fun t => mixedSquaredLoss arms eta loss t)
Plain-English statement. With the repository's tuned learning and exploration rates, the generated predictable EXP3 process has expected regret bounded by an explicit square-root expression.
Mathematical reading.Formula renderer unavailable; readable fallback: With the repository's tuned learning and exploration rates, the generated predictable EXP3 process has expected regret bounded by an explicit square-root expression.\(\mathbb E R_T\le4\sqrt{KT\log K}\) in the theorem's normalized finite-arm setting.Swipe to read the full formula →
Intuition
The tuning balances the potential term, second-moment term, and the price of forced exploration.
Why it is needed
It demonstrates a complete expected-regret route from the generated adaptive trajectory, not only a deterministic Hedge inequality.
Place in the proof
This is the clean expected endpoint before the later Bernstein and sparsity-sensitive high-probability branches.
Proof and Lean reading notes
Proof idea
Combine the Hedge theorem with conditional importance-weighted moment identities and exploration-bias control, then optimize the scalar parameters.
Lean reading notes
The exact constant and off-by-one horizon convention are governed by the displayed Lean statement. The schematic formula summarizes the leading shape only.
Plain-English statement. At any supplied positive horizon, the generated EXP3 process with the theorem's Bernstein-square tuning has a realized-regret tail against the best supported arm obtained by a finite comparator union.
Mathematical reading.Formula renderer unavailable; readable fallback: At any supplied positive horizon, the generated EXP3 process with the theorem's Bernstein-square tuning has a realized-regret tail against the best supported arm obtained by a finite comparator union.\(\Pr\{R_T^{\mathrm{real}}(a_T^\star)\ge b(K,T,\delta)\}\le\delta.\)Swipe to read the full formula →
Intuition
First control regret to each supported comparator at confidence delta divided by the number of arms, then union the finite family and choose the best cumulative-loss arm.
Why it is needed
This is the chapter's fixed-window best-arm endpoint and makes comparator aggregation visible rather than silently replacing a fixed-comparator theorem by a minimum.
Place in the proof
It sits above the fixed-comparator Bernstein-square realized tail and beside, not above, the separate fixed-process all-positive-prefix branch.
Proof and Lean reading notes
Proof idea
Set the armwise confidence share, build horizon-dependent eta and gamma, apply the fixed-comparator generated-law tail to every arm, take a finite union, and rewrite the comparator minimum as best supported-arm cumulative loss.
Lean reading notes
The exact statement requires a probability prior, Standard Borel nonempty environment/action, finite nonempty decidable arms with K at least two, predictable unit losses, positive horizon, and 0<delta<=1. The eta, gamma, and trajectory law depend on T. The identifier allHorizon means the theorem can be instantiated at each horizon, not that one fixed policy is simultaneously controlled at all horizons.
Plain-English statement. For one generated EXP3 process and one supported comparator, realized selected-loss regret is below the sum of its predictable-regret and sampling-deviation budgets at every positive prefix, except on an event of outer mass at most delta.
Mathematical reading.Formula renderer unavailable; readable fallback: For one generated EXP3 process and one supported comparator, realized selected-loss regret is below the sum of its predictable-regret and sampling-deviation budgets at every positive prefix, except on an event of outer mass at most delta.\(R^{\mathrm{real}}_{n+1}(a)=R^{\mathrm{pred}}_{n+1}(a)+D_{n+1},\qquad \mu(\exists n:\ R^{\mathrm{real}}_{n+1}(a)\ge B^{\mathrm{pred}}_n+B^{\mathrm{dev}}_n)\le\delta.\)Swipe to read the full formula →
Intuition
Realized regret has two sources: the exponential-weights decision rule can lose against the comparator in predictable loss, and sampled actions can deviate from those predictable losses. If neither component fails, their sum cannot fail.
Why it is needed
This closes the same-process all-positive-prefix realized-regret composition instead of leaving the algorithmic and martingale halves as unrelated confidence statements.
Place in the proof
It is the current fixed-parameter, supported-comparator all-positive-prefix terminal of the EXP3 chapter.
Proof and Lean reading notes
Proof idea
Prove the finite-prefix regret decomposition exactly, allocate delta/2 to each accepted all-time event family, include the combined failure set in their union, apply outer-measure monotonicity and subadditivity, and normalize the two half budgets.
Lean reading notes
The theorem keeps one prior, eta, gamma, loss process, generated trajectory law, and comparator across all prefixes. It does not claim horizon-dependent tuning, best-arm minimization, a sublinear confidence sequence, optional stopping, or ideal EXP3.P.
Plain-English statement. For one generated EXP3 trajectory, the event that the selected-loss deviation crosses its scheduled predictable-variance radius at any positive prefix while that prefix stays within its variance budget has probability at most delta.
Mathematical reading.Formula renderer unavailable; readable fallback: For one generated EXP3 trajectory, the event that the selected-loss deviation crosses its scheduled predictable-variance radius at any positive prefix while that prefix stays within its variance budget has probability at most delta.\(\mu\!\left(\exists n\ge0:\ D_{n+1}\ge r(v_n,\delta/2^{n+1}),\ V_{n+1}\le v_n\right)\le\delta.\)Swipe to read the full formula →
Intuition
Every positive prefix receives a geometric share of the failure budget. The shares sum exactly to delta, so the countable union of prefix failures remains controlled.
Why it is needed
This supplies an honest all-time event for the realized-versus-predictable EXP3 variance route, while keeping the precise fixed-trajectory and variance-cap assumptions visible.
Place in the proof
It sits above the fixed-prefix exponential tail, the scheduled quadratic union lemma, and the geometric confidence schedule; later regret theorems may consume the resulting all-time event.
Proof and Lean reading notes
Proof idea
Instantiate the generic scheduled-union theorem with unit variance scale and tilt cap, use the generated EXP3 fixed-tilt tail at prefix n+1, and discharge the total budget with the exact ENNReal sum of geometric confidence shares.
Lean reading notes
This is countable outer-measure subadditivity for one generated process. It is not a Ville/Doob maximal inequality, a mixture boundary, optional stopping, a self-normalized theorem, or a general Freedman theorem.
Plain-English statement. On one generated EXP3 trajectory, realized selected loss minus predictable selected loss stays below its scheduled radius at every positive prefix, except on a failure event of outer mass at most delta.
Mathematical reading.Formula renderer unavailable; readable fallback: On one generated EXP3 trajectory, realized selected loss minus predictable selected loss stays below its scheduled radius at every positive prefix, except on a failure event of outer mass at most delta.\(\mu(\exists n\ge0:\ D_{n+1}\ge r(n+1,\delta/2^{n+1}))\le\delta.\)Swipe to read the full formula →
Intuition
The selected loss lies in the unit interval, so its one-step centered conditional variance is at most one. Summing that deterministic budget removes the variance-good side condition from the preceding theorem.
Why it is needed
This turns the variance-conditioned all-time deviation statement into the pure realized-versus-predictable deviation event needed by a realized-regret composition.
Place in the proof
It is the second same-process all-positive-prefix node in Chapter 7, above the predictable-variance tail and below the realized-regret terminal.
Proof and Lean reading notes
Proof idea
Prove the centered second moment is at most one, sum the bound through prefix n+1, identify the variance-conditioned event with the pure deviation event under this linear budget, and reuse the accepted geometric all-time tail.
Lean reading notes
The fixed eta, gamma, prior, action type, and predictable loss process are shared by every prefix. This is a countable scheduled-union result, not a Ville/Doob maximal inequality, optional-stopping theorem, or general Freedman boundary.
Plain-English statement. For one fixed generated EXP3 process and one supported comparator, predictable regret satisfies its scheduled finite-prefix bound simultaneously at every positive prefix outside one geometrically budgeted failure event.
Mathematical reading.Formula renderer unavailable; readable fallback: For one fixed generated EXP3 process and one supported comparator, predictable regret satisfies its scheduled finite-prefix bound simultaneously at every positive prefix outside one geometrically budgeted failure event.\(\mu(\exists n\ge0:\ R^{\mathrm{pred}}_{n+1}(a)\ge B^{\mathrm{pred}}_{n})\le\delta.\)Swipe to read the full formula →
Intuition
Each finite-prefix potential-and-comparator proof already has a tail bound. Giving prefix n+1 a geometric share makes their countable union affordable without changing the underlying process or comparator.
Why it is needed
Realized regret needs both an algorithmic predictable-regret certificate and a sampling-deviation certificate on the same trajectory. This theorem supplies the first component for every prefix.
Place in the proof
It runs in parallel with the pure realized-deviation node and feeds the Chapter 7 realized-regret terminal.
Proof and Lean reading notes
Proof idea
Specialize the compiled fixed-horizon predictable-regret theorem at n+1, retain its internal two-event confidence split, bound the countable union termwise, and close the total outer budget with the exact geometric ENNReal sum.
Lean reading notes
The comparator must have positive prior support, and eta and gamma stay fixed as n varies. The resulting scheduled budget is not advertised as a horizon-tuned sublinear rate or a best-arm minimum.
Plain-English statement. Under predictable sparse losses, the probability that best-arm realized regret crosses the tuned all-horizon threshold is at most delta plus the supplied sparsity-failure probability.
Mathematical reading.Formula renderer unavailable; readable fallback: Under predictable sparse losses, the probability that best-arm realized regret crosses the tuned all-horizon threshold is at most delta plus the supplied sparsity-failure probability.\(\Pr\{R_T^{\mathrm{real}}\ge b(K,S,T,\delta)\}\le\delta+\varepsilon.\)Swipe to read the full formula →
Intuition
A variance-sensitive martingale bound handles the regular sparse regime, while a separate event explicitly accounts for violations of the sparsity model.
Why it is needed
Keeping the failure event visible prevents a conditional sparsity assumption from being disguised as an unconditional theorem.
Place in the proof
This is one of the deepest compiled adversarial high-probability endpoints.
Proof and Lean reading notes
Proof idea
Combine double predictable/pathwise variance control, tuned exploration and learning rates, best-arm comparison, an all-horizon tail argument, and monotonicity with the sparsity-failure measure bound.
Lean reading notes
The theorem's let-bound parameters are part of its formal API. The event difference and ENNReal probability arithmetic are visible in the exact statement.
Open the canonical completion definition and blockers
Complete in the canonical adversarial finite-arm scope when the exponential-potential and deterministic Hedge route, positive-support importance weighting, conditional first/second moments, measurable recursive generated trajectory, predictable-loss transport, and exploration bias compile; the same public canary must type (i) the horizon-dependent tuned expected bound, (ii) the horizon-dependent fixed-window best-supported-arm realized tail, (iii) one fixed prior/arms/loss/eta/gamma/comparator process with predictable and realized-deviation parents, exact decomposition, and an all-positive-prefix realized-regret outer-probability terminal, and (iv) the separately labelled sparse/variance-sensitive endpoint with its failure budget explicit.
Remaining blockers
No remaining blocker inside this canonical scope: Tests/BookMapChaptersSevenAndEightCanary.lean gives full-conclusion applications for the tuned expected, per-horizon best-arm, fixed-process all-prefix, and sparse terminals. The items below are explicit extensions rather than hidden chapter requirements.
Chapter implementation status
The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.
The process parameters eta and gamma and the comparator are fixed across prefixes. The theorem is not a horizon-varying tuned sublinear all-time guarantee, a best-arm minimum, or an ideal EXP3.P theorem.
The tuned expected and fixed-window best-arm theorems rebuild eta, gamma, and the generated law from the queried horizon; they are not a single horizon-free policy or simultaneous anytime theorem.
The geometric all-prefix theorem instead fixes eta, gamma, prior, arms, loss, and one supported comparator; its scheduled radius is not a tuned sublinear confidence sequence or a best-arm minimum.
Ville/Doob or mixture boundaries, optional stopping, ideal EXP3.P, contextual/delayed EXP3, and one universal theorem subsuming every hypothesis regime remain extensions. The sparse theorem retains its supplied sparsity-failure probability.