Theorem 2.23 — unnormalized EG has regret
ProvedOnlineLearningOCO.Winnow.theorem_2_23exponentiated-gradientonline-convex-optimizationonline-learningp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1regret
Let and run unnormalized EG in dimension on linear losses with for all ; write for its weights. Then for every with ,
In particular, if and ,
Here is the natural logarithm and .
This is a local-norm regret bound: the second term weighs each squared loss by the current weight. It is the bound Winnow's mistake bound is derived from.
Formalization Note holds in Lean because Real.log 0 = 0, so coordinates with contribute nothing, as in the entropy convention. is written , which equals it because . The second display is stated under , needed for . Rounds are numbered .
Preamble
import Mathlib import Definitions.Def_OnlineLearningOCO_Winnow_uegWeights open Finset
Formal statement
namespace OnlineLearningOCO.Winnow
/-- Theorem 2.23 (p. 154). Unnormalized EG with parameters `η, λ > 0` on linear losses with
`η z_t[i] ≥ -1` satisfies, for every `u ≥ 0`,
`∑_t ⟨w_t - u, z_t⟩ ≤ (dλ + ∑_i u[i] log(u[i]/(eλ)))/η + η ∑_t ∑_i w_t[i] z_t[i]²`,
and, with `λ = 1/d`,
`∑_t ⟨w_t - u, z_t⟩ ≤ (1 + (log d - 1)‖u‖₁ + ∑_i u[i] log u[i])/η + η ∑_t ∑_i w_t[i] z_t[i]²`.
Rounds are numbered from `0`; `0 · log 0 = 0` through `Real.log 0 = 0`. -/
theorem theorem_2_23 {d : ℕ} (η lam : ℝ) (hη : 0 < η) (hlam : 0 < lam) (z : ℕ → Fin d → ℝ)
(hz : ∀ t i, -1 ≤ η * z t i) (u : Fin d → ℝ) (hu : ∀ i, 0 ≤ u i) (T : ℕ) :
(∑ t ∈ range T, ∑ i, (uegWeights η lam z t i - u i) * z t i ≤
((d : ℝ) * lam + ∑ i, u i * Real.log (u i / (Real.exp 1 * lam))) / η +
η * ∑ t ∈ range T, ∑ i, uegWeights η lam z t i * z t i ^ 2) ∧
(0 < d →
∑ t ∈ range T, ∑ i, (uegWeights η (1 / (d : ℝ)) z t i - u i) * z t i ≤
(1 + (Real.log d - 1) * ∑ i, u i + ∑ i, u i * Real.log (u i)) / η +
η * ∑ t ∈ range T, ∑ i, uegWeights η (1 / (d : ℝ)) z t i * z t i ^ 2) := by sorry
end OnlineLearningOCO.Winnow
Source
Shalev-Shwartz, Online Learning and Online Convex Optimization, Found. Trends Mach. Learn. 4(2) (2011) 107–194, p. 154, Theorem 2.23 (proof p. 155)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.