Documentation

CslibFrontier.MachineLearning.StatisticalQuery.LowerBound

Lower bounds for statistical query learning #

A concept class with many almost uncorrelated concepts cannot be learned from few statistical queries of coarse tolerance [BFJ+94]. Let f i ∈ C for i ∈ κ have pairwise correlations |corr D (f i) (f j)| ≤ γ under D, and let A learn C under D with tolerance τ and error ε using at most q queries, where γ < τ ^ 2 and γ < (1 - 2 ε) ^ 2. Then |κ| ≤ q (1 - γ) / (τ ^ 2 - γ) + (1 - γ) / ((1 - 2 ε) ^ 2 - γ) (StatisticalQuery.LearnsStateless.card_le_of_abs_corr_le).

The proof is the argument of Szörényi, as presented in Reyzin, Theorem 12. Write a query as φ (x, y) = g x + k x · (±1 value of y), where k has |k| ≤ 1, and answer it by E_D [g], which ignores the target. This answer is within τ of the truth for every f i except those with |E_D [k · f i]| > τ, and by Bessel's inequality for the almost orthogonal f i there are at most (1 - γ) / (τ ^ 2 - γ) of these (InnerProductGeometry.card_mul_sq_sub_le_of_le_abs_inner, applied to the vectors √(D x) · f i x of ℝ^X). Run A against these target-independent answers. Along the run it makes at most q queries, and every f i outside the at most q (1 - γ) / (τ ^ 2 - γ) exceptional ones for those queries sees only valid answers (OracleComp.interpret_id_congr). Hence the single hypothesis h that A returns has error at most ε, that is correlation at least 1 - 2 ε, for each such f i, and by the same inequality at most (1 - γ) / ((1 - 2 ε) ^ 2 - γ) concepts correlate that well with h.

The bound assumes only LearnsStateless, so it applies to every learner (Learns.learnsStateless) and to queries with values in [-1, 1], which include the predicates of [Kea98]. When only the one-sided bound corr D (f i) (f j) ≤ γ holds, the first term doubles (StatisticalQuery.LearnsStateless.card_le_of_corr_le). Take γ = 1 / d for d = |κ|, so that the one-sided variant of the statistical query dimension Reyzin, Definition 11, which drops the absolute value, is at least d (StatisticalQuery.sqDimOneSided in CslibFrontier/MachineLearning/StatisticalQuery/Dimension.lean). Requiring accuracy τ, that is 1 - 2 ε ≥ τ, as in Reyzin, Theorem 12, gives d τ ^ 2 - 1 ≤ 2 q + 1 (StatisticalQuery.LearnsStateless.card_mul_sq_sub_one_le_two_mul_add_one). For exact learning, the special case ε = 0, this sharpens to Reyzin's query count d τ ^ 2 - 1 ≤ 2 q (StatisticalQuery.LearnsStateless.card_mul_sq_sub_one_le_two_mul).

Main results #

References #

Functions as vectors #

Splitting a query #

The adversary argument #

The lower bounds #

theorem Cslib.MachineLearning.StatisticalQuery.LearnsStateless.card_le_of_abs_corr_le {X : Type} [Fintype X] {κ : Type} [Fintype κ] {D : PMF X} {C : PACLearning.ConceptClass X Bool} {A : Algorithm X} {τ ε : ℝ} (hA : LearnsStateless A D C τ ε) {q : ℕ} (hq : OracleComp.IsQueryBounded A q) {f : κ → X → Bool} (hf : ∀ (i : κ), f i ∈ C) {γ : ℝ} (hcorr : ∀ (i j : κ), i ≠ j → |corr D (f i) (f j)| ≤ γ) (hτ : 0 ≤ τ) (hε0 : 0 ≤ ε) (hε : ε ≤ 1 / 2) (hγτ : γ < τ ^ 2) (hγε : γ < (1 - 2 * ε) ^ 2) :
↑(Fintype.card κ) ≤ ↑q * ((1 - γ) / (τ ^ 2 - γ)) + (1 - γ) / ((1 - 2 * ε) ^ 2 - γ)

Statistical query lower bound [BFJ+94] [Szo09]. If the concepts f i ∈ C, i ∈ κ, have pairwise correlations of absolute value at most γ under D, and A learns C under D with tolerance τ ≥ 0 and error ε ∈ [0, 1/2] using at most q queries, where γ < τ ^ 2 and γ < (1 - 2 ε) ^ 2, then |κ| ≤ q (1 - γ) / (τ ^ 2 - γ) + (1 - γ) / ((1 - 2 ε) ^ 2 - γ).

theorem Cslib.MachineLearning.StatisticalQuery.LearnsStateless.card_le_of_corr_le {X : Type} [Fintype X] {κ : Type} [Fintype κ] {D : PMF X} {C : PACLearning.ConceptClass X Bool} {A : Algorithm X} {τ ε : ℝ} (hA : LearnsStateless A D C τ ε) {q : ℕ} (hq : OracleComp.IsQueryBounded A q) {f : κ → X → Bool} (hf : ∀ (i : κ), f i ∈ C) {γ : ℝ} (hcorr : ∀ (i j : κ), i ≠ j → corr D (f i) (f j) ≤ γ) (hτ : 0 ≤ τ) (hε0 : 0 ≤ ε) (hε : ε ≤ 1 / 2) (hγτ : γ < τ ^ 2) (hγε : γ < (1 - 2 * ε) ^ 2) :
↑(Fintype.card κ) ≤ 2 * ↑q * ((1 - γ) / (τ ^ 2 - γ)) + (1 - γ) / ((1 - 2 * ε) ^ 2 - γ)

Statistical query lower bound, one-sided correlations. If the concepts f i ∈ C, i ∈ κ, have pairwise correlations at most γ under D, and A learns C under D with tolerance τ ≥ 0 and error ε ∈ [0, 1/2] using at most q queries, where γ < τ ^ 2 and γ < (1 - 2 ε) ^ 2, then |κ| ≤ 2 q (1 - γ) / (τ ^ 2 - γ) + (1 - γ) / ((1 - 2 ε) ^ 2 - γ).

theorem Cslib.MachineLearning.StatisticalQuery.LearnsStateless.card_mul_sq_sub_one_le_two_mul {X : Type} [Fintype X] {κ : Type} [Fintype κ] {D : PMF X} {C : PACLearning.ConceptClass X Bool} {A : Algorithm X} {τ : ℝ} (hA : LearnsStateless A D C τ 0) {q : ℕ} (hq : OracleComp.IsQueryBounded A q) {f : κ → X → Bool} (hf : ∀ (i : κ), f i ∈ C) (hcorr : ∀ (i j : κ), i ≠ j → corr D (f i) (f j) ≤ 1 / ↑(Fintype.card κ)) (hκ : 2 ≤ Fintype.card κ) (hτ : 0 ≤ τ) :
↑(Fintype.card κ) * τ ^ 2 - 1 ≤ 2 * ↑q

The statistical query dimension bound for exact learning: the special case ε = 0 of Reyzin, Theorem 12, which assumes only accuracy τ (LearnsStateless.card_mul_sq_sub_one_le_two_mul_add_one). If C contains d ≥ 2 concepts with pairwise correlations at most 1 / d under D, so that the one-sided variant of the statistical query dimension Reyzin, Definition 11 of C under D, which drops the absolute value, is at least d, then a learner learning C exactly under D from at most q queries of tolerance τ ≥ 0 has d τ ^ 2 - 1 ≤ 2 q, Reyzin's query count.

theorem Cslib.MachineLearning.StatisticalQuery.LearnsStateless.card_mul_sq_sub_one_le_two_mul_add_one {X : Type} [Fintype X] {κ : Type} [Fintype κ] {D : PMF X} {C : PACLearning.ConceptClass X Bool} {A : Algorithm X} {τ ε : ℝ} (hA : LearnsStateless A D C τ ε) {q : ℕ} (hq : OracleComp.IsQueryBounded A q) {f : κ → X → Bool} (hf : ∀ (i : κ), f i ∈ C) (hcorr : ∀ (i j : κ), i ≠ j → corr D (f i) (f j) ≤ 1 / ↑(Fintype.card κ)) (hτ : 0 ≤ τ) (hε0 : 0 ≤ ε) (hετ : τ ≤ 1 - 2 * ε) :
↑(Fintype.card κ) * τ ^ 2 - 1 ≤ 2 * ↑q + 1

The statistical query dimension bound for weak learning Reyzin, Theorem 12. If C contains d concepts with pairwise correlations at most 1 / d under D, and A learns C under D from at most q queries of tolerance τ ≥ 0 with accuracy τ, that is with error ε ≥ 0 where 1 - 2 ε ≥ τ, so that every hypothesis has correlation at least τ with the target, then d τ ^ 2 - 1 ≤ 2 q + 1.