Lemma 2.20 — OMD with link : regret
ProvedOnlineLearningOCO.Winnow.lemma_2_20Let be a real Hilbert space, , (equal to off in the paper's convention), and let be its conjugate. Suppose the link function satisfies in the following sense: for every , , attains the supremum defining , and is differentiable at with gradient . Run Online Mirror Descent with link on linear losses , so . Then for every ,
and equality holds when minimizes over .
The lemma reduces the regret analysis of OMD to bounding one Bregman divergence of the conjugate per round; Theorem 2.23 applies it to the unnormalized entropy, and through it Winnow's mistake bound follows.
Formalization Note The paper's "" (via Lemma 2.19 and (2.13), cited rather than proved) is encoded by three hypotheses: , attainment of the supremum at , and HasGradientAt of with gradient . The comparator ranges over , where is finite. Rounds are numbered , and is omdIterate g z 0. A copy of this lemma is also drafted in the Normalized EG mission of the same series.
import Mathlib import Definitions.Def_OnlineLearningOCO_Winnow_OMDDuality open Finset open scoped InnerProductSpace
namespace OnlineLearningOCO.Winnow
/-- Lemma 2.20 (p. 150). Online Mirror Descent with link function `g = ∇R⋆` on linear losses
`z_t`: for every `u ∈ S`,
`∑_{t} ⟨w_t - u, z_t⟩ ≤ R(u) - R(w₁) + ∑_{t} D_{R⋆}(-z_{1:t} ‖ -z_{1:t-1})`,
with equality when `u` minimizes `R(v) + ∑_t ⟨v, z_t⟩` over `S`. Rounds are numbered from `0`.
"`g = ∇R⋆`" is encoded by: `g θ ∈ S`, `g θ` attains `sup_{w ∈ S} (⟨w, θ⟩ - R w)` (2.8), (2.13), and
`R⋆` has gradient `g θ` at every `θ`. -/
theorem lemma_2_20 {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
(S : Set E) (R : E → ℝ) (g : E → E) (z : ℕ → E)
(hgS : ∀ θ, g θ ∈ S)
(hgmax : ∀ θ, ∀ w ∈ S, ⟪w, θ⟫_ℝ - R w ≤ ⟪g θ, θ⟫_ℝ - R (g θ))
(hgrad : ∀ θ, HasGradientAt (conjOn S R) (g θ) θ) (T : ℕ) :
(∀ u ∈ S, ∑ t ∈ range T, ⟪omdIterate g z t - u, z t⟫_ℝ ≤
R u - R (omdIterate g z 0) +
∑ t ∈ range T, bregmanDiv (conjOn S R) g
(-(∑ s ∈ range (t + 1), z s)) (-(∑ s ∈ range t, z s))) ∧
(∀ u ∈ S, (∀ v ∈ S, R u + ∑ t ∈ range T, ⟪u, z t⟫_ℝ ≤ R v + ∑ t ∈ range T, ⟪v, z t⟫_ℝ) →
∑ t ∈ range T, ⟪omdIterate g z t - u, z t⟫_ℝ =
R u - R (omdIterate g z 0) +
∑ t ∈ range T, bregmanDiv (conjOn S R) g
(-(∑ s ∈ range (t + 1), z s)) (-(∑ s ∈ range t, z s))) := by sorry
end OnlineLearningOCO.Winnow
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.