Theorem 3.10 — Winnow makes at most mistakes, and on separable -disjunctions
ProvedOnlineLearningOCO.Winnow.theorem_3_10Let be positive integers with and . Run Winnow with parameter on with and ; let be the rounds on which it errs and . Then for every with ,
In particular, if for all (the sequence is labelled by the -literal monotone disjunction with relevant variables ), then Winnow run with makes
mistakes.
Compared with the Perceptron's on the same problem, the dependence on the dimension is logarithmic rather than linear.
Formalization Note Winnow is the corrected algorithm (update ; the paper prints the opposite sign, under which the theorem is false — see the Winnow definition). Three hypotheses the page leaves implicit are explicit: (Winnow's parameter), (at the factor is undefined), and (the theorem fails for : , , , satisfies the margin condition, yet the first round is an error). is . The particular case is about the run with (winnowMistakes d (1/4) …), a different run from the general one, and its margin condition is required on the rounds considered. is natural. The sequence hypotheses are stated for all rounds; rounds are numbered .
import Mathlib import Definitions.Def_OnlineLearningOCO_Winnow_Winnow open Finset
namespace OnlineLearningOCO.Winnow
/-- Theorem 3.10 (p. 174). Winnow with parameter `0 < η < 1/2` on instances `x_t ∈ {0,1}^d` and
labels `y_t ∈ {-1, 1}`; `M` is the set of rounds on which it errs and
`f_t(w) = 1[t ∈ M] [1 - y_t (2⟨w, x_t⟩ - 1)]_+`. For every `u ∈ {0,1}^d` with `‖u‖₁ = k ≥ 1`,
`|M| ≤ ∑_t f_t(w_t) ≤ (1/(1 - 2η)) (∑_t f_t(u) + k log(d)/η)`;
and if `y_t (2⟨u, x_t⟩ - 1) ≥ 1` for all `t`, the run with `η = 1/4` has `|M| ≤ 8 k log d`.
Rounds `0, …, T-1` stand for the paper's `1, …, T`. -/
theorem theorem_3_10 (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 : ℕ) :
((winnowMistakes d η x y T).card : ℝ) ≤
∑ t ∈ range T, winnowSurrogate d η x y t (winnowWeights d η x y t) ∧
∑ t ∈ range T, winnowSurrogate d η x y t (winnowWeights d η x y t) ≤
(1 / (1 - 2 * η)) *
(∑ t ∈ range T, winnowSurrogate d η x y t u + (k : ℝ) * Real.log d / η) ∧
((∀ t < T, 1 ≤ y t * (2 * ∑ i, u i * x t i - 1)) →
((winnowMistakes d (1 / 4) x y T).card : ℝ) ≤ 8 * (k : ℝ) * Real.log d) := by sorry
end OnlineLearningOCO.Winnow
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.