Documentation

CslibFrontier.MachineLearning.UniformLearning.LowDegreeClasses

Sample-complexity steps for classes learned by the low-degree algorithm #

This module proves the sample-complexity (statistical uniform-learning) steps on the noncomputable UniformLearning.lowDegreeLearner toward [O'Donnell, Section 3.4, Corollaries 3.32–3.35] [OD14]; none of the corollaries' machine running-time bounds (n ^ O(K / ε), n ^ O(√n / ε), poly(n ^ (1 / η), 1 / ε), n ^ O(log (s / ε))) is certified here, and computational/machine running-time certification stays open on #2131.

Combining UniformLearning.lowDegreeLearner_learns with spectral-concentration bounds from total influence or noise sensitivity O'Donnell, Propositions 3.2 and 3.3 and from small decision trees O'Donnell, Proposition 3.17 yields four sample-complexity steps:

In each case the certified sample bound is (4 N / ε) log (2 N / δ) for N ≤ (n + 1) ^ t the number of sets of at most t coordinates; lowDegreeLearner is noncomputable over ℝ, and machine-level running-time certification remains open on #2131.

Usage #

For decision trees, a function f : (ι → Bool) → Bool enters UniformLearning.decisionTreeClass ι s through a tree t with t.Computes f and t.leafCount ≤ s; any tree may be used, including one that repeats a query. Choose the degree t with 2 s ≤ ε 2 ^ (t + 1), for instance t = ⌈log₂ (s / ε)⌉, and the number of examples m from the bound in UniformLearning.lowDegreeLearner_learns_decisionTreeClass, for instance its Nat.ceil. The checked client CslibFrontierTests/UniformLearningDecisionTree.lean puts the conjunction of two of three bits in the class of trees with three leaves and applies the sample step at degree 3 with error and confidence 1 / 2.

Main results #

References #

theorem Cslib.MachineLearning.UniformLearning.lowDegreeLearner_learns_totalInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {K ε δ : ℝ} {t m : ℕ} (hε : 0 < ε) (hδ : 0 < δ) (ht : 2 * K ≤ ε * (↑t + 1)) (hm : 4 * ↑{S : Finset ι | S.card ≤ t}.card / ε * Real.log (2 * ↑{S : Finset ι | S.card ≤ t}.card / δ) ≤ ↑m) :
Learns (lowDegreeLearner ι t m) {f : (ι → Bool) → Bool | (BitString.totalInfluence fun (x : ι → Bool) => BitString.signVal (f x)) ≤ K} ε δ

Sample-complexity (statistical uniform-learning) step on the noncomputable lowDegreeLearner toward O'Donnell, Corollary 3.32; the corollary's n ^ O(K / ε) running time is not certified and stays open on #2131. With ε (t + 1) ≥ 2 K, lowDegreeLearner of degree t from m ≥ (4 N / ε) log (2 N / δ) uniform random examples learns the Boolean functions whose total influence, read as signs, is at most K, with error ε and confidence 1 - δ; only the number of examples, the error and the confidence are certified.

theorem Cslib.MachineLearning.UniformLearning.lowDegreeLearner_learns_monotone {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ε δ : ℝ} {t m : ℕ} (hε : 0 < ε) (hδ : 0 < δ) (ht : 2 * √↑(Fintype.card ι) ≤ ε * (↑t + 1)) (hm : 4 * ↑{S : Finset ι | S.card ≤ t}.card / ε * Real.log (2 * ↑{S : Finset ι | S.card ≤ t}.card / δ) ≤ ↑m) :
Learns (lowDegreeLearner ι t m) {f : (ι → Bool) → Bool | Monotone f} ε δ

Sample-complexity (statistical uniform-learning) step on the noncomputable lowDegreeLearner toward O'Donnell, Corollary 3.33; the corollary's n ^ O(√n / ε) running time is not certified and stays open on #2131. With ε (t + 1) ≥ 2 √n, lowDegreeLearner of degree t from m ≥ (4 N / ε) log (2 N / δ) uniform random examples learns the monotone Boolean functions of n coordinates, with error ε and confidence 1 - δ; only the number of examples, the error and the confidence are certified.

theorem Cslib.MachineLearning.UniformLearning.lowDegreeLearner_learns_noiseSensitivity_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {η ε δ : ℝ} {t m : ℕ} (hε : 0 < ε) (hδ : 0 < δ) (hη : η ≤ 1 / 2) (ht : 1 ≤ η * (↑t + 1)) (hm : 4 * ↑{S : Finset ι | S.card ≤ t}.card / ε * Real.log (2 * ↑{S : Finset ι | S.card ≤ t}.card / δ) ≤ ↑m) :
Learns (lowDegreeLearner ι t m) {f : (ι → Bool) → Bool | BitString.noiseSensitivity η f ≤ ε / 6} ε δ

Sample-complexity (statistical uniform-learning) step on the noncomputable lowDegreeLearner toward O'Donnell, Corollary 3.34 (via the 3 NS_η[f] tail bound of BitString.sum_fourierCoeff_sq_le_three_mul_noiseSensitivity); the corollary's poly(n ^ (1 / η), 1 / ε) running time is not certified and stays open on #2131. For a noise rate η ≤ 1 / 2 with η (t + 1) ≥ 1, lowDegreeLearner of degree t from m ≥ (4 N / ε) log (2 N / δ) uniform random examples learns the Boolean functions of noise sensitivity at most ε / 6 at rate η, with error ε and confidence 1 - δ; only the number of examples, the error and the confidence are certified.

theorem Cslib.MachineLearning.UniformLearning.lowDegreeLearner_learns_decisionTreeClass {ι : Type u_1} [Fintype ι] [DecidableEq ι] {s t m : ℕ} {ε δ : ℝ} (hε : 0 < ε) (hδ : 0 < δ) (ht : 2 * ↑s ≤ ε * 2 ^ (t + 1)) (hm : 4 * ↑{S : Finset ι | S.card ≤ t}.card / ε * Real.log (2 * ↑{S : Finset ι | S.card ≤ t}.card / δ) ≤ ↑m) :

Sample-complexity (statistical uniform-learning) step on the noncomputable lowDegreeLearner toward O'Donnell, Corollary 3.35; the corollary's running time n ^ O(log (s / ε)) is not certified and stays open on #2131. With 2 s ≤ ε 2 ^ (t + 1), lowDegreeLearner of degree t from m ≥ (4 N / ε) log (2 N / δ) uniform random examples learns the functions computed by decision trees with at most s leaves, with error ε and confidence 1 - δ; only the number of examples, the error and the confidence are certified. The book's size is the number of leaves of a tree that never repeats a query; here s bounds leafCount of any tree, which gives the same class because pruning removes repeated queries without adding leaves (DecisionTree.leafCount_prune_le).