Lemma 2.3 — the regret of FoReL is at most R(u) − R(w₁) plus its stability
ProvedOnlineLearningOCO.FoReL.lemma_2_3online-convex-optimizationonline-learningp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1regret
Let be a set, arbitrary loss functions and an arbitrary regularization function, and let be a run of Follow-the-Regularized-Leader, . Then for every horizon and every ,
The lemma reduces bounding the regret of FoReL to bounding how much consecutive predictions differ in loss; Theorem 2.11 combines it with the stability bound of Lemma 2.10.
Formalization Note No convexity, continuity or structure is assumed: the lemma holds for arbitrary and , as on the page. Rounds are 1-based.
Preamble
import Mathlib import Definitions.Def_OnlineLearningOCO_FoReL_IsFoReLRun
Formal statement
namespace OnlineLearningOCO.FoReL
/-- Lemma 2.3 (Shalev-Shwartz, FnT ML 4(2) (2011), p. 128). Let `w₁, w₂, …` be the sequence
of vectors produced by FoReL. Then for all `u ∈ S`,
`∑_{t=1}^T (f_t(w_t) − f_t(u)) ≤ R(u) − R(w_1) + ∑_{t=1}^T (f_t(w_t) − f_t(w_{t+1}))`.
No convexity or structure is needed: `f` and `R` are arbitrary real functions. -/
theorem lemma_2_3 {E : Type*} (S : Set E) (f : ℕ → E → ℝ) (R : E → ℝ) (w : ℕ → E)
(hw : IsFoReLRun S f R w) (T : ℕ) :
∀ u ∈ S,
∑ t ∈ Finset.Icc 1 T, (f t (w t) - f t u)
≤ R u - R (w 1) + ∑ t ∈ Finset.Icc 1 T, (f t (w t) - f t (w (t + 1))) := by sorry
end OnlineLearningOCO.FoReL
Source
Shalev-Shwartz, Online Learning and Online Convex Optimization, Found. Trends Mach. Learn. 4(2) (2011) 107–194, p. 128, Lemma 2.3
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.