Documentation

CslibFrontier.MachineLearning.UniformLearning.CIKK.Amplification

Query-count reconstruction step for the amplification (f^k)^GL #

This module formalizes a query-count black-box reconstruction step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 4.3 and its proof, pp. 10:15–10:16] [CIKK16] for p = 2, not Theorem 4.3 itself: running time, hypothesis circuit size (see CslibFrontier.MachineLearning.UniformLearning.CIKK.Complexity), and AC⁰[2] computability of glAmp (via Definition 3.4) are not certified here. Machine-level runtime certification (IsOraclePPTOn) and odd p remain open on #798.

The amplification of Carmosino, Impagliazzo, Kabanets and Kolokolova for p = 2 is Amp(f) = (f^k)^GL = glAmp f k. Here the black-box reduction Cslib.MachineLearning.UniformLearning.QueryLearner.reduce turns a membership-query learner A for Amp(f) into one for f with these parts:

The extra seed (Cslib.MachineLearning.UniformLearning.AmpSeed) holds the masks and parity guess of the first decoder and the seed (P, b₀, v) of the second. ampLearner A s m K is the reduction, and ampSeed μ k s m K is its seed distribution.

Reconstruction step (Cslib.MachineLearning.UniformLearning.learns_ampLearner). Suppose A learns {glAmp f k | f ∈ C} with error 1/2 - γ and success probability p. Put δ₀ = γ / 2^(K+3), and assume:

Then ampLearner A s m K learns C with error ε and success probability p δ₀² / 8. It makes k queries for each query of A (Cslib.MachineLearning.UniformLearning.queriesAtMost_ampLearner).

Gaps relative to [CarmosinoImpagliazzoKabanetsKolokolova2016, Theorem 4.3] (tracked on #798):

Two interface choices are not in the source. ampLearner A s m K takes the size s of P explicitly, since the seed type contains P. ampSeed needs [NeZero k], since a trial picks a position in Fin k and the extra seed is empty when k = 0.

Main definitions #

Main results #

References #

Amp(f) is computed with k queries to f. At the point (x, r), query f at the k blocks of x, and output the inner product of the answers with r.

@[reducible, inline]

The extra seed of the reconstruction: Goldreich–Levin masks and a guess of their parities, then a direct-product seed, with a set P of s positions, a tuple b₀ of k blocks and m trials.

The extra seed is nonempty when 0 < k and s ≤ k.

def Cslib.MachineLearning.UniformLearning.ampLearner {n k : ℕ} {Ω : Type u_1} (A : QueryLearner (Fin (k * n + k)) Ω) (s m K : ℕ) :
QueryLearner (Fin n) (Ω × AmpSeed n k s m K)

The reconstruction of Amp(f) = glAmp f k. Run A, answering its queries with glAmpQuery. Decode its hypothesis h with the Goldreich–Levin candidate for the masks and guess of the seed, then with the direct-product decoder for the rest of the seed. The size s of the set P is explicit because the seed type contains P; the source leaves it implicit.

noncomputable def Cslib.MachineLearning.UniformLearning.ampSeed {n : ℕ} {Ω : Type u_1} (μ : PMF Ω) (k s m K : ℕ) [NeZero k] [Fact (s ≤ k)] :
PMF (Ω × AmpSeed n k s m K)

The seed distribution of ampLearner: a seed of A drawn from μ, and an independent uniform extra seed. It needs [NeZero k] and [Fact (s ≤ k)] because the extra seed is empty otherwise: a trial picks a position in Fin k, and P is an s-subset of Fin k.

theorem Cslib.MachineLearning.UniformLearning.eval_ampLearner {n k : ℕ} {Ω : Type u_1} (A : QueryLearner (Fin (k * n + k)) Ω) (s m K : ℕ) (f : BooleanFunction n) (ω : Ω) (masks : Fin K → BitString k) (guess : BitString K) (P : ↥(Finset.powersetCard s Finset.univ)) (b₀ : Fin k → BitString n) (v : Fin m → Circuits.Boolean.DirectProduct.Trial (BitString n) k) :
(ampLearner A s m K (ω, (masks, guess), P, b₀, v)).eval f = Circuits.Boolean.DirectProduct.dpDecode (Circuits.Boolean.glAmpCandidate ((A ω).eval (Circuits.Boolean.glAmp f k)) masks guess) false (↑P) b₀ v

Run on f, the reconstruction decodes the hypothesis of A run on glAmp f k.

theorem Cslib.MachineLearning.UniformLearning.queriesAtMost_ampLearner {n k : ℕ} {Ω : Type u_1} {A : QueryLearner (Fin (k * n + k)) Ω} {q : ℕ} (hA : A.QueriesAtMost q) (s m K : ℕ) :
(ampLearner A s m K).QueriesAtMost (q * k)

The reconstruction makes k queries to f for each query of A.

theorem Cslib.MachineLearning.UniformLearning.learns_ampLearner {n k : ℕ} {Ω : Type u_1} {s : ℕ} [NeZero k] [Fact (s ≤ k)] {A : QueryLearner (Fin (k * n + k)) Ω} {μ : PMF Ω} {C : PACLearning.ConceptClass (BitString n) Bool} {m K : ℕ} {γ ε p : ℝ} (hA : A.Learns μ ((fun (x : BooleanFunction n) => Circuits.Boolean.glAmp x k) '' C) (1 / 2 - γ) (1 - p)) (hp : p ≤ 1) (hγ : 0 < γ) (hε : 0 < ε) (hε1 : ε ≤ 1) (hsize : ↑k ≤ 2 * (γ / 2) ^ 2 * ↑(2 ^ K - 1)) (hsk : 2 * s ≤ k) (hs : 64 / ε * Real.log (512 / (ε * (γ / 2 ^ (K + 3)) ^ 2)) ≤ ↑s) (hm : 16 / (γ / 2 ^ (K + 3)) * Real.log (8 / ε) ≤ ↑m) :
(ampLearner A s m K).Learns (ampSeed μ k s m K) C ε (1 - p * ((γ / 2 ^ (K + 3)) ^ 2 / 8))

A query-model reconstruction step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 4.3 and Claim 4.4, pp. 10:15–10:16] [CIKK16] for p = 2, not Theorem 4.3 itself. Suppose A learns {glAmp f k | f ∈ C} with error 1/2 - γ and success probability p. Put δ₀ = γ / 2^(K+3), and assume k ≤ 2 (γ/2)² (2^K - 1), 2 s ≤ k, s ≥ (64/ε) log (512 / (ε δ₀²)) and m ≥ (16/δ₀) log (8/ε). Then ampLearner A s m K learns C with error ε and success probability p δ₀² / 8. Running time, hypothesis size and AC⁰[2] computability of glAmp are not certified here (the list loss, per-seed decoder, constants and choice of k are described in the module docstring); runtime certification and odd p stay open on #798.