Lemma 2.20 — the regret of OMD with link ∇R⋆ is R(u) − R(w₁) plus the Bregman terms of R⋆
ProvedOnlineLearningOCO.NormalizedEG.lemma_2_20Let be a real Hilbert space, , a regularizer (taken to be off ), and let be its Fenchel conjugate. Let be a link function with , in the sense that for every :
- ;
- attains the supremum: for every (that is, , (2.8) and (2.13));
- is differentiable at with gradient .
Run Online Mirror Descent with link on linear losses , , so that . Then for every and every ,
and equality holds for every that minimizes over .
This is the general regret identity for Online Mirror Descent by duality; it reduces the analysis of a specific algorithm to bounding the Bregman divergences of the conjugate, which is how Theorem 2.22 is proved.
Formalization Note Rounds are numbered from : Lean's omdIterate g z t = g(-∑_{s<t} z s) is the paper's , and omdIterate g z 0 = g 0 is . The paper's equals off ; here is real-valued and the comparator and the minimizer range over only, which is the same statement. The phrase "" is encoded by the three hypotheses above; differentiability of is the paper's standing consequence of Lemma 2.19 and is assumed, not derived. The same lemma is also drafted, independently, by the Winnow mission of this series.
import Mathlib import Definitions.Def_OnlineLearningOCO_NormalizedEG_Duality open scoped RealInnerProductSpace
namespace OnlineLearningOCO.NormalizedEG
/-- Lemma 2.20, p. 150. Online Mirror Descent with link function `g = ∇R⋆` (where `R⋆` is the
Fenchel conjugate of `R + I_S`) has regret, against every `u ∈ S`,
`∑_{t=1}^T ⟨w_t − u, z_t⟩ ≤ R(u) − R(w_1) + ∑_{t=1}^T D_{R⋆}(−z_{1:t} ‖ −z_{1:t−1})`,
with equality for a `u ∈ S` minimizing `R(u) + ∑_t ⟨u, z_t⟩` over `S`.
"`g = ∇R⋆`" is encoded by: `g` maps into `S`; `g θ` attains the supremum defining `R⋆(θ)`
((2.8)/(2.13)); and `g θ` is the gradient of `R⋆` at `θ`. Rounds are 0-based. -/
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 (fenchelConj S R) (g θ) θ)
(T : ℕ) :
(∀ u ∈ S,
∑ t ∈ Finset.range T, ⟪omdIterate g z t - u, z t⟫ ≤
R u - R (omdIterate g z 0) +
∑ t ∈ Finset.range T,
bregman (fenchelConj S R) g (-(cumSum z (t + 1))) (-(cumSum z t))) ∧
(∀ u ∈ S,
(∀ v ∈ S, R u + ∑ t ∈ Finset.range T, ⟪u, z t⟫ ≤ R v + ∑ t ∈ Finset.range T, ⟪v, z t⟫) →
∑ t ∈ Finset.range T, ⟪omdIterate g z t - u, z t⟫ =
R u - R (omdIterate g z 0) +
∑ t ∈ Finset.range T,
bregman (fenchelConj S R) g (-(cumSum z (t + 1))) (-(cumSum z t))) := by sorry
end OnlineLearningOCO.NormalizedEG
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.