Documentation

CslibFrontier.MachineLearning.StatisticalQuery.Parity

Parities are not learnable from statistical queries #

Under the uniform distribution on the cube ι → Bool, distinct parities parityOn S and parityOn T are uncorrelated: their ±1 values are the characters of S and T, which are orthonormal (Cslib.BitString.expect_chi_mul_chi). With the 2 ^ n parities as the almost orthogonal family, γ = 0, the statistical query lower bound (StatisticalQuery.LearnsStateless.card_le_of_abs_corr_le) gives the following. A learner that learns a class containing the parities on n bits under the uniform distribution, with tolerance τ > 0 and error ε ∈ [0, 1/2), using at most q queries, has 2 ^ n ≤ q / τ ^ 2 + 1 / (1 - 2 ε) ^ 2 (StatisticalQuery.LearnsStateless.two_pow_card_le_of_parityOn_mem). So it needs 2 ^ {Ω(n)} queries or tolerance 2 ^ {-Ω(n)}. This is Kearns's theorem that parities are not efficiently learnable from statistical queries [Kearns1998, Theorem 5], in the quantitative form of [BFJ+94].

Main results #

References #

The correlation under the uniform distribution on the cube is the average of the product of the ±1 values.

Under the uniform distribution, distinct parities are uncorrelated and a parity has correlation 1 with itself.

theorem Cslib.MachineLearning.StatisticalQuery.LearnsStateless.two_pow_card_le_of_parityOn_mem {ι : Type} [Fintype ι] [DecidableEq ι] {C : PACLearning.ConceptClass (ι → Bool) Bool} {A : Algorithm (ι → Bool)} {τ ε : ℝ} (hA : LearnsStateless A (Probability.PMF.uniformOfFintype (ι → Bool)) C τ ε) {q : ℕ} (hq : OracleComp.IsQueryBounded A q) (hC : ∀ (S : Finset ι), parityOn S ∈ C) (hτ : 0 < τ) (hε0 : 0 ≤ ε) (hε : ε < 1 / 2) :
2 ^ Fintype.card ι ≤ ↑q / τ ^ 2 + 1 / (1 - 2 * ε) ^ 2

Parities are not learnable from statistical queries [Kearns1998, Theorem 5] [BFJ+94]. A learner that learns, under the uniform distribution on n-bit strings, a class containing every parity parityOn S, with tolerance τ > 0 and error ε ∈ [0, 1/2) using at most q queries, has 2 ^ n ≤ q / τ ^ 2 + 1 / (1 - 2 ε) ^ 2.