(3.3) — Winnow:
ProvedOnlineLearningOCO.Winnow.eq_3_3mistake-boundonline-classificationonline-learningp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1winnow
Run Winnow with parameter on with and ; let be its error rounds, its surrogate losses and for , otherwise. Then for every with ,
The first inequality is the subgradient inequality for the surrogates; the second is Theorem 2.23 with specialised to Boolean comparators. Together with (3.4) it yields Theorem 3.10.
Formalization Note carries the corrected sign (the paper prints ; see the Winnow definition). The hypotheses and come from the page: needs , and Theorem 3.10 assumes , which gives . The sequence hypotheses are stated for all rounds (a finite sequence extends to an infinite one). Rounds are numbered .
Preamble
import Mathlib import Definitions.Def_OnlineLearningOCO_Winnow_Winnow open Finset
Formal statement
namespace OnlineLearningOCO.Winnow
/-- Equation (3.3) (proof of Theorem 3.10, p. 174). For Winnow with `0 < η ≤ 1/2` on instances
`x_t ∈ {0,1}^d` and labels `y_t ∈ {-1, 1}`, with `z_t = -2 y_t x_t · 1[t ∈ M]`, and for every
`u ∈ {0,1}^d` with `‖u‖₁ = k ≥ 1`,
`∑_t (f_t(w_t) - f_t(u)) ≤ ∑_t ⟨w_t - u, z_t⟩ ≤ k log(d)/η + η ∑_t ∑_i w_t[i] z_t[i]²`.
Rounds `0, …, T-1` stand for the paper's `1, …, T`. -/
theorem eq_3_3 (d k : ℕ) (hk : 1 ≤ k) (η : ℝ) (hη : 0 < η) (hη2 : η ≤ 1 / 2)
(x : ℕ → Fin d → ℝ) (hx : ∀ t i, x t i = 0 ∨ x t i = 1)
(y : ℕ → ℝ) (hy : ∀ t, y t = 1 ∨ y t = -1)
(u : Fin d → ℝ) (hu : ∀ i, u i = 0 ∨ u i = 1) (hu1 : ∑ i, u i = (k : ℝ)) (T : ℕ) :
∑ t ∈ range T, (winnowSurrogate d η x y t (winnowWeights d η x y t) -
winnowSurrogate d η x y t u) ≤
∑ t ∈ range T, ∑ i, (winnowWeights d η x y t i - u i) * winnowZ d η x y t i ∧
∑ t ∈ range T, ∑ i, (winnowWeights d η x y t i - u i) * winnowZ d η x y t i ≤
(k : ℝ) * Real.log d / η +
η * ∑ t ∈ range T, ∑ i, winnowWeights d η x y t i * winnowZ d η x y 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. 174, §3.3.2, proof of Theorem 3.10, Equation (3.3)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.