Documentation

Learning.DualHelly

The dual Helly lower bound for learners whose hypotheses lie in a class #

A learner of the realizable mistake-bound model (Cslib.MachineLearning.OnlineLearning.MistakeBound) is proper in H here when its hypothesis after every history that the concept class C realizes lies in a class H. Such a learner makes at least K - 1 mistakes on the sequences C realizes, where K is the dual Helly number of C relative to H: the least k such that every set of labelled examples that no member of H agrees with holds at most k examples that no member of C agrees with. The bound is stated in Hanneke, Livni and Moran (2021, "Online learning with simple predictors and a combinatorial characterization of minimax in 0/1 games", COLT, §2 Remark 1; arXiv 2102.01646). The adversary presents, at each round, an example of an H-unrealizable set on which the current hypothesis is wrong.

Main definitions #

Main results #

The learner's hypothesis after every history C realizes lies in H.

Equations
Instances For

    One more round adds one mistake exactly when the learner's prediction after the history is wrong.

    theorem DualHelly.exists_mistakes_eq {α : Type u_1} {A : Cslib.MachineLearning.OnlineLearning.MistakeBound.OnlineLearner α} {C H : Cslib.MachineLearning.PACLearning.ConceptClass α Bool} (hA : HypothesesIn A C H) {S : Set (α × Bool)} (hS : ∀ g ∈ H, ∃ p ∈ S, g p.1 ≠ p.2) {m : ℕ} (hm : ∀ (T : Finset (α × Bool)), ↑T ⊆ S → T.card ≤ m → ∃ c ∈ C, ∀ p ∈ T, c p.1 = p.2) :

    The dual Helly lower bound. Let S be a set of labelled examples that every member of H gets wrong somewhere, and every at most m of whose examples some concept of C fits. A learner whose hypotheses after the histories C realizes lie in H makes exactly m mistakes on some sequence of m examples of S that C realizes: at each round the hypothesis lies in H, so it gets some example of S wrong, and that example is presented next.

    theorem DualHelly.le_mistakeBound {α : Type u_1} {A : Cslib.MachineLearning.OnlineLearning.MistakeBound.OnlineLearner α} {C H : Cslib.MachineLearning.PACLearning.ConceptClass α Bool} (hA : HypothesesIn A C H) {S : Set (α × Bool)} (hS : ∀ g ∈ H, ∃ p ∈ S, g p.1 ≠ p.2) {m : ℕ} (hm : ∀ (T : Finset (α × Bool)), ↑T ⊆ S → T.card ≤ m → ∃ c ∈ C, ∀ p ∈ T, c p.1 = p.2) :

    The dual Helly lower bound, against the mistake bound. In the setting of DualHelly.exists_mistakes_eq, the learner's mistake bound on C is at least m.

    theorem DualHelly.exists_stream_mistakes_eq {α : Type u_1} {A : Cslib.MachineLearning.OnlineLearning.MistakeBound.OnlineLearner α} {C H : Cslib.MachineLearning.PACLearning.ConceptClass α Bool} (hA : HypothesesIn A C H) {c : α → Bool} (hc : c ∈ C) (hcH : ∀ g ∈ H, ∃ (x : α), g x ≠ c x) :
    ∃ (x : ℕ → α), ∀ (n : ℕ), Cslib.MachineLearning.OnlineLearning.MistakeBound.mistakes A (List.map (fun (t : ℕ) => (x t, c (x t))) (List.range n)) = n

    The case of an infinite dual Helly number. A learner whose hypotheses after the histories C realizes lie in H, against a concept c of C that no member of H equals, errs at every round on some stream of instances labelled by c: the adversary presents, at each round, an instance on which the current hypothesis differs from c.

    theorem DualHelly.exists_mistakes_eq_nonvacuous :
    HypothesesIn (fun (x : List (Fin 2 × Bool)) (x_1 : Fin 2) => true) Set.univ {fun (x : Fin 2) => true, fun (x : Fin 2) => false} ∧ (∀ g ∈ {fun (x : Fin 2) => true, fun (x : Fin 2) => false}, ∃ p ∈ {(0, true), (1, false)}, g p.1 ≠ p.2) ∧ ∀ (T : Finset (Fin 2 × Bool)), ↑T ⊆ {(0, true), (1, false)} → T.card ≤ 1 → ∃ c ∈ Set.univ, ∀ p ∈ T, c p.1 = p.2

    The hypotheses of DualHelly.exists_mistakes_eq hold together, at the two-point domain with C all four functions to Bool, H the two constant functions, S the two examples (0, true) and (1, false), m = 1, and the learner predicting the constant true.

    theorem DualHelly.exists_stream_mistakes_eq_nonvacuous :
    HypothesesIn (fun (x : List ((Fin 2 → Bool) × Bool)) (v : Fin 2 → Bool) => v 0) {fun (v : Fin 2 → Bool) => v 0, fun (v : Fin 2 → Bool) => v 1} {fun (v : Fin 2 → Bool) => v 0} ∧ (fun (v : Fin 2 → Bool) => v 1) ∈ {fun (v : Fin 2 → Bool) => v 0, fun (v : Fin 2 → Bool) => v 1} ∧ ∀ g ∈ {fun (v : Fin 2 → Bool) => v 0}, ∃ (x : Fin 2 → Bool), g x ≠ (fun (v : Fin 2 → Bool) => v 1) x

    The hypotheses of DualHelly.exists_stream_mistakes_eq hold together, at the domain Fin 2 → Bool with C the two coordinate functions, H the first coordinate alone, c the second coordinate, and the learner always predicting the first coordinate.