Documentation

CslibFrontier.MachineLearning.UniformLearning.CIKK.Learner

Query-count step toward the CIKK learner from a dense test #

This module formalizes a per-function black-box query-count step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 5.1, p. 10:19] [CIKK16] for p = 2, not Theorem 5.1 itself: cikkLearner is noncomputable with no machine-level running-time certificate, test is an arbitrary Boolean function rather than a natural property, and hypothesis circuit size is not certified here. Machine-level runtime certification (IsOraclePPTOn) and odd p remain open on #798, and the abstract property-to-learner form of Theorem 5.1 remains open on #4635.

Let test be a Boolean function on strings of 2 ^ ℓ bits. Suppose it accepts at least a 2 ^ (ℓ + 1 - g) fraction of all strings but no output of the Nisan–Wigderson generator of the amplified function Amp(f) = glAmp f k, with k = cikkK e g and the design Design.binaryPolynomial (k n + k) ℓ. Then cikkLearner n ℓ e g h test learns f with membership queries under the uniform distribution, with error 2^{-e} and confidence 1 - 2^{-h} (Cslib.MachineLearning.UniformLearning.learns_cikkLearner).

The learner chains three stages:

  1. the Nisan–Wigderson reconstruction built from the negated test (Cslib.MachineLearning.UniformLearning.nwLearner), a weak learner for Amp(f);
  2. the reconstruction of the amplification (Cslib.MachineLearning.UniformLearning.ampLearner), a learner for f that succeeds with small probability;
  3. best-of selection (Cslib.MachineLearning.UniformLearning.QueryLearner.bestOf), which raises the confidence.

The parameters are those of CslibFrontier.MachineLearning.UniformLearning.CIKK.Parameters.

Gaps relative to [CIKK16] (tracked on #798 and #4635):

Main definitions #

Main results #

References #

@[reducible, inline]

The seed type of cikkLearner n ℓ e g h: cikkRuns e g h seeds of the amplification reconstruction (each a Nisan–Wigderson trial paired with an AmpSeed) together with cikkSamples e g h sample points in BitString n.

noncomputable def Cslib.MachineLearning.UniformLearning.cikkLearner (n ℓ e g h : ℕ) (test : BitString (2 ^ ℓ) → Bool) :
QueryLearner (Fin n) (CikkSeedType n ℓ e g h)

The CIKK learner for p = 2: best-of selection over cikkRuns e g h runs and cikkSamples e g h sample points, over the reconstruction of Amp(f) = glAmp f (cikkK e g) (cikkFixed e g fixed positions, cikkTrials e g trials, cikkMasks e g masks), over the Nisan–Wigderson reconstruction for the design Design.binaryPolynomial (k n + k) ℓ built from the negated test.

A seed consists of cikkRuns e g h seeds of the reconstruction of Amp(f), each a Nisan–Wigderson trial with an AmpSeed, and cikkSamples e g h sample points of BitString n.

theorem Cslib.MachineLearning.UniformLearning.cikkLearner_def (n ℓ e g h : ℕ) (test : BitString (2 ^ ℓ) → Bool) :
cikkLearner n ℓ e g h test = (ampLearner (nwLearner (Crypto.PRG.NisanWigderson.Design.binaryPolynomial (cikkK e g * n + cikkK e g) ℓ) fun (y : Fin (2 ^ ℓ) → Bool) => !test y) (cikkFixed e g) (cikkTrials e g) (cikkMasks e g)).bestOf (cikkRuns e g h) (cikkSamples e g h)

cikkLearner unfolded: best-of selection over the reconstruction of the amplification over the Nisan–Wigderson reconstruction built from the negated test.

noncomputable def Cslib.MachineLearning.UniformLearning.cikkSeed (n ℓ e g h : ℕ) :
PMF (CikkSeedType n ℓ e g h)

The seed distribution of cikkLearner: cikkRuns e g h independent seeds of the reconstruction of Amp(f), each a uniform Nisan–Wigderson trial with an independent uniform AmpSeed, and cikkSamples e g h independent uniform sample points.

theorem Cslib.MachineLearning.UniformLearning.learns_cikkLearner {n ℓ : ℕ} (e g h : ℕ) {test : BitString (2 ^ ℓ) → Bool} {C : PACLearning.ConceptClass (BitString n) Bool} (hdense : 2 ^ 2 ^ ℓ * 2 ^ (ℓ + 1) ≤ 2 ^ g * {y : BitString (2 ^ ℓ) | test y = true}.card) (hrej : ∀ f ∈ C, ∀ (z : Fin ((cikkK e g * n + cikkK e g) * 2 ^ Crypto.PRG.NisanWigderson.binaryFieldDegree (cikkK e g * n + cikkK e g)) → Bool), test ((Crypto.PRG.NisanWigderson.generator (Crypto.PRG.NisanWigderson.Design.binaryPolynomial (cikkK e g * n + cikkK e g) ℓ) (Circuits.Boolean.glAmp f (cikkK e g))) z) = false) :
(cikkLearner n ℓ e g h test).Learns (cikkSeed n ℓ e g h) C (1 / 2 ^ e) (1 / 2 ^ h)

A per-function black-box query-model step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 5.1, p. 10:19] [CIKK16] for p = 2, not Theorem 5.1 itself. Let the arbitrary Boolean function test accept at least 2 ^ (2 ^ ℓ) 2 ^ (ℓ + 1 - g) strings of 2 ^ ℓ bits, and no output of the Nisan–Wigderson generator of glAmp f (cikkK e g) for the design Design.binaryPolynomial (k n + k) ℓ, for any f ∈ C. Then the noncomputable cikkLearner n ℓ e g h test learns C with error 2^{-e} and confidence 1 - 2^{-h}. Running time and hypothesis size are not certified here, and test is not a natural property; the full Theorem 5.1 objective stays open on #798 and #4635.

theorem Cslib.MachineLearning.UniformLearning.queriesAtMost_cikkLearner (n ℓ e g h : ℕ) (test : BitString (2 ^ ℓ) → Bool) :
(cikkLearner n ℓ e g h test).QueriesAtMost (cikkRuns e g h * (2 ^ ℓ * 2 ^ (ℓ - 1) * cikkK e g) + cikkSamples e g h)

The learner makes at most b (2 ^ ℓ 2 ^ (ℓ - 1) k) + t queries, with b = cikkRuns e g h runs, t = cikkSamples e g h sample points and k = cikkK e g: each run makes 2 ^ ℓ 2 ^ (ℓ - 1) queries to Amp(f), each answered with k queries to f.

theorem Cslib.MachineLearning.UniformLearning.queriesAtMost_cikkLearner_two_pow (n ℓ e g h : ℕ) (test : BitString (2 ^ ℓ) → Bool) :
(cikkLearner n ℓ e g h test).QueriesAtMost ((h + 1) * 2 ^ (2 * ℓ + 10 * g + 6 * e + 59))

Closed form of the number of queries: at most (h + 1) 2 ^ (2ℓ + 10g + 6e + 59). The constant is this library's and is not tight.