Sample-complexity step toward learning constant-depth circuits from random examples #
This module formalizes the sample-complexity (statistical uniform-learning) step on the
noncomputable UniformLearning.lowDegreeLearner, with degree exponent d + 1 inherited from the
library's fixed-size switching-lemma Fourier bound
(Circuits.Boolean.Unbounded.sum_fourierCoeff_sq_le_of_computes_of_depth_le), toward
[LMN93] and O'Donnell, Section 4.5, Theorem 4.31; both
quasipolynomial machine running-time certification and the sharper source degree exponents
(O(log (g / ε)) ^ d in [LMN93] and O(log (g / ε)) ^ (d - 1) · log (1 / ε) in
O'Donnell, Theorem 4.31) stay open on
#2131.
By Circuits.Boolean.Unbounded.sum_fourierCoeff_sq_le_of_computes_of_depth_le, a function in
UniformLearning.circuitClass n d g (computed by a circuit of negations and unbounded fan-in
conjunctions and disjunctions with Circuit.depth ≤ d and Circuit.size ≤ g) has Fourier weight
at most 2 g / 2 ^ s above degree t whenever s ≥ 2 and t + 1 ≥ 2 max 8 (2 s) (16 s + 1) ^ d.
Taking 2 ^ s ≥ 4 g / ε bounds that weight by ε / 2, so UniformLearning.lowDegreeLearner_learns
gives the sample bound UniformLearning.lowDegreeLearner_learns_circuitClass. Setting
s = max 2 ⌈log₂ ⌈4 g / ε⌉⌉ yields the closed-form degree t = UniformLearning.lmnDegree d g ε
(O(log (g / ε)) ^ (d + 1) for fixed d) in UniformLearning.lowDegreeLearner_learns_lmnDegree,
with m ≥ (4 N / ε) log (2 N / δ) uniform random examples for N ≤ (n + 1) ^ t the number of sets
of at most t coordinates (BitString.card_filter_card_le_le_pow).
Scope and deviations (tracked on
#2131).
Circuit.depth counts every gate on a path, negations included, and the upstream Fourier bound
Circuits.Boolean.Unbounded.sum_fourierCoeff_sq_le_of_computes applies d fixed-size restriction
stages each keeping a 1 / (16 s + 1) fraction of free bits together with a hypergeometric
sampling factor of s, producing exponent d + 1 rather than d [LMN93] or
d - 1 with δ-random restrictions O'Donnell, Section 4.5. In addition,
lowDegreeLearner is a noncomputable real-valued learner and only the number of examples, the
error and the confidence are certified here, not machine running time.
Main definitions #
Cslib.MachineLearning.UniformLearning.circuitClass: Boolean functions computed by unbounded fan-in AND/OR/NOT circuits of all-gate depth at mostdand size at mostg.Cslib.MachineLearning.UniformLearning.lmnDegree: closed-form degree bound with exponentd + 1for the sample-complexity step oncircuitClass n d g(sharper exponents open on #2131).
Main results #
Cslib.MachineLearning.UniformLearning.lowDegreeLearner_learns_circuitClass,Cslib.MachineLearning.UniformLearning.lowDegreeLearner_learns_lmnDegree: sample-complexity steps onlowDegreeLearnerwith degree exponentd + 1toward [LMN93] and O'Donnell, Theorem 4.31 (running time and sharper exponents open on #2131).
References #
The functions of n bits computed by circuits of negations and unbounded fan-in conjunctions
and disjunctions of all-gate depth (Circuit.depth, counting negations) at most d with at most
g gates.
Sample-complexity (statistical uniform-learning) step on the noncomputable lowDegreeLearner,
with degree exponent d + 1 inherited from the library's switching-lemma Fourier bound
Circuits.Boolean.Unbounded.sum_fourierCoeff_sq_le_of_computes_of_depth_le, toward
[LMN93] and O'Donnell, Theorem 4.31; quasipolynomial machine
running-time certification and the sharper source degree exponents (O(log (g / ε)) ^ d in
[LMN93] and O(log (g / ε)) ^ (d - 1) · log (1 / ε) in
O'Donnell, Theorem 4.31) are not proved here and stay open on
#2131. Let s ≥ 2 with
4 g ≤ ε 2 ^ s, let t + 1 ≥ 2 max 8 (2 s) (16 s + 1) ^ d, and let N be the number of sets of
at most t of the n coordinates. From m ≥ (4 N / ε) log (2 N / δ) uniform random examples,
lowDegreeLearner of degree t learns circuitClass n d g (where C.depth ≤ d counts negations)
with error ε and confidence 1 - δ; only the number of examples, the error and the confidence
are certified.
Explicit degree 2 max 8 (2 s) (16 s + 1) ^ d - 1 (with s = max 2 ⌈log₂ ⌈4 g / ε⌉⌉) for the
sample-complexity step on circuitClass n d g, inherited from
Circuits.Boolean.Unbounded.sum_fourierCoeff_sq_le_of_computes_of_depth_le; for fixed d this has
exponent d + 1 (O(log (g / ε)) ^ (d + 1)), weaker than O(log (g / ε)) ^ d in
[LMN93] and O(log (g / ε)) ^ (d - 1) · log (1 / ε) in
O'Donnell, Section 4.5 (tracked on
#2131).
Closed-form-degree sample-complexity (statistical uniform-learning) step on the noncomputable
lowDegreeLearner at t = lmnDegree d g ε (with degree exponent d + 1 inherited from
Circuits.Boolean.Unbounded.sum_fourierCoeff_sq_le_of_computes_of_depth_le) toward
[LMN93] and O'Donnell, Theorem 4.31; quasipolynomial machine
running-time certification and the sharper source degree exponents stay open on
#2131. From
m ≥ (4 N / ε) log (2 N / δ) uniform random examples, where N ≤ (n + 1) ^ t is the number of
sets of at most t of the n coordinates, lowDegreeLearner learns circuitClass n d g (with
negations counted in d) with error ε and confidence 1 - δ; only the number of examples, the
error and the confidence are certified.