Documentation

CslibFrontier.MachineLearning.UniformLearning.NonadaptiveCircuit

Non-adaptive learners computed by small circuits #

A membership-query learner has a circuit of size S with q queries (UniformLearning.QueryLearner.HasCircuit) when, on every seed, it queries q points fixed by the seed and computes its hypothesis at x from the answers and x by a De Morgan circuit with at most S gates. This is the learner-level form of learning by circuits with non-adaptive membership queries Chen et al., Definition 3, p. 12. The oracle-circuit form, one round of q oracle gates on fixed words followed by that circuit, is UniformLearning.QueryLearner.HasCircuit.exists_oracleCircuit.

The definition differs from the source's in the following ways.

The size of every hypothesis is at most S + 2 (UniformLearning.QueryLearner.HasCircuit.complexity_eval_le), since fixing the answers costs the two constants. A learner built from point lists by UniformLearning.QueryLearner.ofNonadaptive has a circuit when its hypothesis does (UniformLearning.QueryLearner.hasCircuit_ofNonadaptive).

Main definitions #

Main results #

References #

A non-adaptive learner computed by a small circuit: on every seed ω, the learner's hypothesis at x is computed from the answers of the target at q points fixed by ω, followed by x, with a De Morgan circuit of at most S gates. Exposed: clients build and take apart the witnesses.

theorem Cslib.MachineLearning.UniformLearning.QueryLearner.HasCircuit.mono {n : ℕ} {Ω : Type u_1} {A : QueryLearner (Fin n) Ω} {q S : ℕ} (hA : A.HasCircuit q S) {S' : ℕ} (h : S ≤ S') :
A.HasCircuit q S'
theorem Cslib.MachineLearning.UniformLearning.QueryLearner.HasCircuit.pad {n : ℕ} {Ω : Type u_1} {A : QueryLearner (Fin n) Ω} {q S : ℕ} (hA : A.HasCircuit q S) {q' : ℕ} (h : q ≤ q') :
A.HasCircuit q' S

More queries: the extra points are queried and ignored.

Every hypothesis is small: fixing the answers of a circuit with at most S gates costs the two constants.

theorem Cslib.MachineLearning.UniformLearning.QueryLearner.hasCircuit_ofNonadaptive {n : ℕ} {Ω : Type u_1} {points : Ω → List (BitString n)} {hyp : BooleanFunction n → Ω → BooleanFunction n} (hhyp : ∀ (ω : Ω) (g g' : BooleanFunction n), (∀ x ∈ points ω, g x = g' x) → hyp g ω = hyp g' ω) {q S : ℕ} (hF : ∀ (ω : Ω), ∃ (pts : Fin q → BitString n) (F : BooleanFunction (q + n)), Circuits.complexity Circuits.Boolean.interpretation (Circuits.single F) ≤ S ∧ ∀ (f : BooleanFunction n) (x : BitString n), hyp f ω x = F (Fin.append (fun (i : Fin q) => f (pts i)) x)) :
(ofNonadaptive points hyp).HasCircuit q S

The non-adaptive learner of a list of points has a circuit when its hypothesis is computed from the answers at q points and the input by a circuit with at most S gates, provided the hypothesis reads the target only at the listed points.