The VC upper bound for realizable PAC learning on countable domains #
Let C be a binary concept class on a countable domain α all of whose shattered finite sets
have at most d points. Then every consistent learner (in particular every empirical risk
minimizer) learns C to accuracy ε with confidence 1 - δ over every distribution realizable
by C from
m ≥ (8 / ε) (d log (48 / ε) + log (4 / δ))
examples [BlumerEhrenfeuchtHausslerWarmuth1989, Theorem 2.1;
ShalevShwartzBenDavid2014, Section 28.3]. Hence every class of finite VC dimension on a countable
domain is PAC learnable in the realizable setting, with realizable sample complexity
O((d log (1 / ε) + log (1 / δ)) / ε). The constants differ from those of the cited sources but
have the same form.
The proof applies the ε-net theorem (EpsilonNet.lean) to the loss class
{(x, y) ↦ [h x ≠ y] | h ∈ C} and the example distribution D. Its growth function is at most that
of C. On a realizable sample a consistent learner almost surely outputs some h ∈ C agreeing
with every example, so if error D h > ε the sample is not an ε-net for the loss class.
The domain is assumed countable with measurable singletons and the labels are Bool; the
learners are arbitrary semantic maps from samples to hypotheses, and no running time is claimed.
General domains need a measurability hypothesis on the class and are not formalized here. The
matching Ω(d / ε) lower bound of Ehrenfeucht, Haussler, Kearns and Valiant is in VCLowerBound,
and FundamentalTheorem combines the two into the realizable characterization of learnability.
Main definitions #
lossClass C: the class of misclassification indicators of the concepts ofC.
Main results #
mem_lossClass: membership in the loss class.growthFunction_lossClass_le: the loss class has at most the growth function ofC.card_le_of_setShatters_lossClass: the loss class shatters no larger finite sets thanC.IsConsistent.ae_not_isEpsNet_of_lt_error: a consistent learner with error aboveεon a realizable sample witnesses that the sample is not an ε-net for the loss class.IsConsistent.measure_pi_lt_error_mul_two_pow_le: the tail boundD^m {error D (A S) > ε} * 2 ^ ⌈εm/2⌉ ≤ 2 Π_C(2m)when8 ≤ εm.IsConsistent.measure_pi_lt_error_le_of_vcSampleSize_le: the VC upper bound for consistent learners, with the explicit sample sizevcSampleSize d ε δ.isPACLearnerFor_realizableDistributions_of_vcSampleSize_le: the correspondingIsPACLearnerForstatement.sampleComplexity_realizableDistributions_le_of_hasFiniteVCDim: the realizable sample complexity of a class of finite VC dimension is at most⌈vcSampleSize (vcDim C) ε δ⌉.isPACLearnable_realizableDistributions_of_hasFiniteVCDim: every class of finite VC dimension on a countable domain is PAC learnable in the realizable setting.
References #
The loss class of a concept class C with decidable label equality: for each h ∈ C, the
indicator of the labeled examples (x, y) that h misclassifies.
Passing to the loss class does not increase the growth function: the misclassification pattern on labeled points is determined by the labeling of their domain points.
The loss class shatters no larger finite sets than C: two labeled points of a set shattered
by lossClass C have distinct domain points, and their domain points are shattered by C.
Under a distribution realizable by C, a consistent learner whose output has error greater
than ε almost surely witnesses that the sample is not an ε-net for the loss class of C.
VC tail bound for consistent learners on a countable domain: under a distribution
realizable by C, if 8 ≤ εm then a consistent learner's output has error greater than ε with
probability at most 2 Π_C(2m) / 2 ^ ⌈εm/2⌉.
The VC upper bound for consistent learners on a countable domain
[BlumerEhrenfeuchtHausslerWarmuth1989, Theorem 2.1; ShalevShwartzBenDavid2014, Section 28.3]: if
every finite set shattered by C has at most d points, D is realizable by C, A is
consistent with C, and m ≥ (8 / ε) (d log (48 / ε) + log (4 / δ)), then the output of A on
m i.i.d. examples has error greater than ε with probability at most δ.
The VC upper bound for realizable PAC learning on a countable domain
[BlumerEhrenfeuchtHausslerWarmuth1989, Theorem 2.1]: a class whose shattered finite sets have at
most d points is (ε, δ)-PAC learnable over the distributions it realizes from
m ≥ (8 / ε) (d log (48 / ε) + log (4 / δ)) examples, by any consistent learner (by any learner
at all if the class is empty, since then no distribution is realizable).
The realizable sample complexity of a class of finite VC dimension on a countable domain is at
most ⌈(8 / ε) (vcDim C log (48 / ε) + log (4 / δ))⌉.
Finite VC dimension implies realizable PAC learnability on a countable domain [BlumerEhrenfeuchtHausslerWarmuth1989, Theorem 2.1].