The statistical query dimension characterizes weak learning #
The statistical query dimension sqDim D C of a concept class C under a distribution D is the
largest d such that C contains d concepts whose pairwise correlations under D have absolute
value at most 1 / d Reyzin, Definition 11. [BlumEtAl1994, Definition 2] uses the
threshold 1 / d ^ 3 instead; its dimension d₃ and this one d₁ satisfy
d₃ ≤ d₁ < (d₃ + 1) ^ 3, so polynomial boundedness does not depend on the normalization. The
one-sided variant sqDimOneSided D C bounds the correlations only from above,
corr D f g ≤ 1 / d. This is the hypothesis that Szörényi's argument for the lower bound of
Reyzin, Theorem 12 uses. It is at least sqDim D C (sqDim_le_sqDimOneSided) and at
most 18 (sqDim D C + 1) ^ 3 (sqDimOneSided_le), so the two notions are polynomially related.
The dimension controls weak learning from statistical queries [BlumEtAl1994, §5]:
- Lower bound. A learner using
qqueries of toleranceτwhose hypotheses have correlation at leastτwith the target (1 - 2 ε ≥ τ) hassqDimOneSided D C · τ ^ 2 ≤ 2 q + 2(LearnsStateless.sqDimOneSided_mul_sq_le), hencesqDim D C · τ ^ 2 ≤ 2 q + 2(LearnsStateless.sqDim_mul_sq_le), from the bound ofCslibFrontier/MachineLearning/StatisticalQuery/LowerBound.lean. This is one weaker than the countd τ ^ 2 ≤ 2 q + 1of Reyzin, Theorem 12: a hypothesis with errorε > 0may correlate with one more concept of the family. - Upper bound. For
d = sqDim D Cthere is a learner making at mostdqueries, each a correlational queryE_D [g (x) · y](in±1values) for a conceptg ∈ C, that learnsCunderDwith toleranceτand error1/2 - 1/(2 (d + 1)) + τ, for everyτ(exists_learns_sqDim). This is Reyzin, Observation 23, the analogue of [BlumEtAl1994, Theorem 13] for the threshold1 / d. - Characterization. For a sequence of classes
C nunder distributionsD n,sqDim (D n) (C n)is polynomially bounded if and only ifsqDimOneSided (D n) (C n)is, if and only ifC nis weakly learnable from polynomially many statistical queries of inverse-polynomial tolerance with inverse-polynomial advantage over1/2, if and only if this holds with correlational queries (tfae_polynomiallyBounded_sqDim).
The upper bound uses a family G ⊆ C of maximum size whose pairwise correlations have absolute
value at most 1 / (d + 1). It has at most d members, since otherwise d + 1 of them would
witness sqDim D C ≥ d + 1, and every c ∈ C has correlation of absolute value more than
1 / (d + 1) with some member of G, since otherwise G ∪ {c} would be a larger such family
(exists_cover_sqDim). The learner corrLearner asks for the correlation of the target with each
member of G, takes the member g whose answer has the largest absolute value, and returns g if
that answer is nonnegative and the negation of g otherwise. Its hypothesis has correlation more
than 1 / (d + 1) - 2 τ with the target; it need not lie in C. Reyzin's sketch of
Observation 23 takes the family that realizes the dimension, at threshold 1 / d; we choose the
family at threshold 1 / (d + 1), which gives the correlation bound the argument needs.
All learners here are deterministic and the bounds count queries only, not running time. The
domain X is finite and the distribution D is fixed and known to the learner.
Main definitions #
Cslib.MachineLearning.StatisticalQuery.sqDim: the statistical query dimension.Cslib.MachineLearning.StatisticalQuery.sqDimOneSided: its one-sided variant.Cslib.MachineLearning.StatisticalQuery.corrQuery: the correlational query of a concept.Cslib.MachineLearning.StatisticalQuery.askCorr: ask one correlational query.Cslib.MachineLearning.StatisticalQuery.corrHypothesis: the concept, or its negation, with the answer of largest absolute value.Cslib.MachineLearning.StatisticalQuery.corrLearner: ask the correlations with a list of concepts and return the best one or its negation.
Main results #
Cslib.MachineLearning.StatisticalQuery.exists_finset_card_eq_sqDim,Cslib.MachineLearning.StatisticalQuery.le_sqDim,Cslib.MachineLearning.StatisticalQuery.sqDim_le_ncard: the dimension is attained and bounded by the size of the class.Cslib.MachineLearning.StatisticalQuery.exists_cover_sqDim: at mostsqDim D Cconcepts ofCcoverCwith correlations of absolute value more than1 / (sqDim D C + 1).Cslib.MachineLearning.StatisticalQuery.isQueryBounded_corrLearner,Cslib.MachineLearning.StatisticalQuery.queriesSatisfy_corrLearner,Cslib.MachineLearning.StatisticalQuery.learns_corrLearner: the correlational learner makes one correlational query per concept and learns a covered class.Cslib.MachineLearning.StatisticalQuery.exists_learns_sqDim: the weak learner from the statistical query dimension.Cslib.MachineLearning.StatisticalQuery.LearnsStateless.sqDimOneSided_mul_sq_le,Cslib.MachineLearning.StatisticalQuery.LearnsStateless.sqDim_mul_sq_le: the lower bounds.Cslib.MachineLearning.StatisticalQuery.sqDim_le_sqDimOneSided,Cslib.MachineLearning.StatisticalQuery.sqDimOneSided_le: the two dimensions are polynomially related.Cslib.MachineLearning.StatisticalQuery.tfae_polynomiallyBounded_sqDim: the characterization of weak learning.
References #
The statistical query dimension #
The statistical query dimension of C under D: the largest d such that C contains
d distinct concepts whose pairwise correlations under D have absolute value at most 1 / d
Reyzin, Definition 11, for a fixed distribution.
[BlumEtAl1994, Definition 2] uses the threshold 1 / d ^ 3 instead. Its dimension d₃ and this
one d₁ satisfy d₃ ≤ d₁ < (d₃ + 1) ^ 3. A d₃-family is a d₁-family, since
1 / d ^ 3 ≤ 1 / d. Any k = d₃ + 1 members of a d₁-family with d₁ ≥ k ^ 3 would have
pairwise correlations of absolute value at most 1 / k ^ 3. So polynomial boundedness does not
depend on the normalization; this elementary relation is not formalized. The one-sided variant
sqDimOneSided is at least this dimension and at most 18 (sqDim D C + 1) ^ 3
(sqDim_le_sqDimOneSided, sqDimOneSided_le).
A family of d concepts of C with pairwise correlations of absolute value at most 1 / d
shows d ≤ sqDim D C.
The statistical query dimension is attained: C contains sqDim D C concepts with pairwise
correlations of absolute value at most 1 / sqDim D C.
The statistical query dimension is at most the number of concepts.
A larger class has a larger statistical query dimension.
A nonempty class has statistical query dimension at least 1.
The one-sided variant #
The one-sided statistical query dimension of C under D: the largest d such that C
contains d distinct concepts whose pairwise correlations under D are at most 1 / d. This
variant of Reyzin, Definition 11 drops the absolute value. Szörényi's argument for the
lower bound of Reyzin, Theorem 12 uses only this upper bound on the correlations, so
the lower bound holds for it (LearnsStateless.sqDimOneSided_mul_sq_le). It is at least
sqDim D C (sqDim_le_sqDimOneSided) and at most 18 (sqDim D C + 1) ^ 3
(sqDimOneSided_le).
A family of d concepts of C with pairwise correlations at most 1 / d shows
d ≤ sqDimOneSided D C.
The one-sided statistical query dimension is attained.
The one-sided statistical query dimension is at most the number of concepts.
The statistical query dimension is at most the one-sided one.
Covering a class by almost uncorrelated concepts #
At most sqDim D C concepts of C cover C: every concept of C has correlation of absolute
value more than 1 / (sqDim D C + 1) with one of them. They form a family of maximum size whose
pairwise correlations have absolute value at most 1 / (sqDim D C + 1).
The correlational learner #
The correlational query of the concept g: the product of the ±1 values of g (x) and of
the label. Its expectation is the correlation of the target with g
(expect_corrQuery).
Ask for the correlation of the target with g, and return g with the answer.
The hypothesis chosen from the answered concepts: a concept g whose answer a has the
largest absolute value, if a ≥ 0, and the negation of g otherwise (the constant false if
there are no answers).
Ask for the correlation of the target with each concept of gs and return a concept whose
answer has the largest absolute value, or its negation if that answer is negative.
The correlational learner makes one query for each concept of the list.
Every query of the correlational learner is the correlational query of a concept of the list.
The correlational learner learns a covered class. If every concept c ∈ C has
correlation of absolute value more than γ with some concept of gs, then corrLearner gs learns
C under D with tolerance τ and error (1 - γ) / 2 + τ.
The weak learner and the lower bound #
Weak learning from the statistical query dimension Reyzin, Observation 23,
the analogue of [BlumEtAl1994, Theorem 13] for the threshold 1 / d. For
d = sqDim D C there is a learner making at most d queries, each the correlational query of a
concept of C, that learns C under D with tolerance τ and error 1/2 - 1/(2 (d + 1)) + τ,
for every τ. Its hypotheses are concepts of C or their negations.
The statistical query dimension lower bound, one-sided form Reyzin, Theorem 12
(a quantitative form of [BlumEtAl1994, Theorem 12]). A learner learning C under D from at most
q queries of tolerance τ ≥ 0 with error ε ≥ 0, where 1 - 2 ε ≥ τ, has
sqDimOneSided D C · τ ^ 2 ≤ 2 q + 2. This is
one weaker than Reyzin's count d τ ^ 2 ≤ 2 q + 1, because a hypothesis with error ε > 0 may
correlate with one more concept of the family; for exact learning see
LearnsStateless.card_mul_sq_sub_one_le_two_mul.
The statistical query dimension lower bound (a quantitative form of
[BlumEtAl1994, Theorem 12]): a learner learning
C under D from at most q queries of tolerance τ ≥ 0 with error ε ≥ 0, where
1 - 2 ε ≥ τ, has sqDim D C · τ ^ 2 ≤ 2 q + 2
(LearnsStateless.sqDimOneSided_mul_sq_le and sqDim_le_sqDimOneSided).
The one-sided statistical query dimension is polynomial in the statistical query
dimension: sqDimOneSided D C ≤ 18 (sqDim D C + 1) ^ 3. The weak learner of
exists_learns_sqDim with tolerance τ = 1 / (3 (d + 1)) has accuracy τ, so the one-sided lower
bound LearnsStateless.sqDimOneSided_mul_sq_le applies with d queries.
The characterization of weak learning #
The statistical query dimension characterizes weak learning [BlumEtAl1994, §5]
(see Reyzin, Theorem 12 and Observation 23). For concept classes C n on finite
domains X n under distributions D n, the following are equivalent:
- the statistical query dimension
sqDim (D n) (C n)is polynomially bounded inn; - the one-sided dimension
sqDimOneSided (D n) (C n)is polynomially bounded inn; - there are polynomially bounded
qandpand learners for eachnmaking at mostq nqueries, each the correlational query of a concept ofC n, that learnC nunderD nwith tolerance1 / (p n + 1)and error1/2 - 1 / (p n + 1), against adaptive answers; - the same with arbitrary statistical queries, against fixed answer functions only.
So weak learnability with polynomially many queries, inverse-polynomial tolerance and inverse-polynomial advantage does not depend on the choice between statistical and correlational queries, or between adaptive and fixed answers, and polynomial boundedness of the dimension does not depend on whether correlations are bounded in absolute value.