Documentation

CslibFrontier.MachineLearning.UniformLearning.Reduction

Black-box reductions between membership-query learners #

To learn a class C from a learner A for the transformed class amp '' C, run A, answer each of its queries amp f y by a decision tree s y that queries f, and post-process the hypothesis of A with an extra seed (UniformLearning.QueryLearner.reduce). Run on f, the reduction outputs the post-processed hypothesis of A run on amp f (UniformLearning.QueryLearner.eval_reduce). If A makes at most q queries and every s y has depth at most d, the reduction makes at most q * d (UniformLearning.QueryLearner.queriesAtMost_reduce).

The extra seed is uniform on a finite type and independent of the seed of A (UniformLearning.QueryLearner.reduceSeed). Suppose A learns amp '' C with error ε' and success probability p. Suppose also that, for every f ∈ C, post-processing turns every hypothesis with error at most ε' against amp f into one with error at most ε against f for a ρ fraction of the extra seeds. Then the reduction learns C with error ε and success probability p * ρ (UniformLearning.QueryLearner.learns_reduce).

This is the shape of the reconstruction property of black-box amplification [Carmosino, Impagliazzo, Kabanets and Kolokolova, Definition 3.4, pp. 10:10–10:11] [CIKK16]. There, a circuit approximating Amp(f) and oracle access to f give a circuit approximating f. Here the circuit is the hypothesis of A, and the oracle access is through the trees s y. As for the other query learners, only the number of queries is certified, not running time.

Main definitions #

Main results #

References #

def Cslib.MachineLearning.UniformLearning.QueryLearner.reduce {ι : Type u_1} {κ : Type u_2} {Ω : Type u_3} {T : Type u_4} (A : QueryLearner ι Ω) (s : (ι → Bool) → DecisionTree (κ → Bool) Bool) (post : ((ι → Bool) → Bool) → T → (κ → Bool) → Bool) :
QueryLearner κ (Ω × T)

A black-box reduction. Run A, answering each of its queries at a point y by the decision tree s y over the new domain, and post-process the hypothesis h of A with the extra seed τ into post h τ.

theorem Cslib.MachineLearning.UniformLearning.QueryLearner.eval_reduce {ι : Type u_1} {κ : Type u_2} {Ω : Type u_3} {T : Type u_4} (A : QueryLearner ι Ω) {s : (ι → Bool) → DecisionTree (κ → Bool) Bool} (post : ((ι → Bool) → Bool) → T → (κ → Bool) → Bool) {f : (κ → Bool) → Bool} {g : (ι → Bool) → Bool} (hs : ∀ (y : ι → Bool), (s y).eval f = g y) (ω : Ω × T) :
(A.reduce s post ω).eval f = post ((A ω.1).eval g) ω.2

Run on f, the reduction outputs the post-processed hypothesis of A run on the function g that the query trees compute.

theorem Cslib.MachineLearning.UniformLearning.QueryLearner.queriesAtMost_reduce {ι : Type u_1} {κ : Type u_2} {Ω : Type u_3} {T : Type u_4} {A : QueryLearner ι Ω} {s : (ι → Bool) → DecisionTree (κ → Bool) Bool} (post : ((ι → Bool) → Bool) → T → (κ → Bool) → Bool) {q d : ℕ} (hA : A.QueriesAtMost q) (hs : ∀ (y : ι → Bool), (s y).depth ≤ d) :
(A.reduce s post).QueriesAtMost (q * d)

If A makes at most q queries and every query tree has depth at most d, the reduction makes at most q * d queries.

noncomputable def Cslib.MachineLearning.UniformLearning.QueryLearner.reduceSeed {Ω : Type u_3} (μ : PMF Ω) (T : Type u_5) [Fintype T] [Nonempty T] :
PMF (Ω × T)

The seed distribution of reduce: a seed of the learner drawn from μ, and an independent uniform extra seed.

theorem Cslib.MachineLearning.UniformLearning.QueryLearner.learns_reduce {ι : Type u_1} {κ : Type u_2} {Ω : Type u_3} {T : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype T] [Nonempty T] {A : QueryLearner ι Ω} {μ : PMF Ω} {s : (ι → Bool) → DecisionTree (κ → Bool) Bool} {post : ((ι → Bool) → Bool) → T → (κ → Bool) → Bool} {amp : ((κ → Bool) → Bool) → (ι → Bool) → Bool} {C : PACLearning.ConceptClass (κ → Bool) Bool} {ε' ε p ρ : ℝ} (hs : ∀ f ∈ C, ∀ (y : ι → Bool), (s y).eval f = amp f y) (hA : A.Learns μ (amp '' C) ε' (1 - p)) (hp : p ≤ 1) (hρ : 0 ≤ ρ) (hpost : ∀ f ∈ C, ∀ (h : (ι → Bool) → Bool), uniformError (amp f) h ≤ ε' → ρ ≤ ↑{τ : T | uniformError f (post h τ) ≤ ε}.dens) :
(A.reduce s post).Learns (reduceSeed μ T) C ε (1 - p * ρ)

Success probabilities of a reduction multiply. Suppose the query trees compute amp f for every f ∈ C, and A learns amp '' C with error ε' and success probability p. Suppose also that, for every f ∈ C, every hypothesis with error at most ε' against amp f post-processes to error at most ε against f on a ρ fraction of the extra seeds. Then the reduction learns C with error ε and success probability p * ρ.