Packing and covering numbers of multiclass Natarajan classes #
Fix sample points x : Fin m → α and a multiclass concept class C : ConceptClass α β over a
finite label alphabet β (k = Fintype.card β). A finite set P of labelings realized by C on
x is ε-separated if distinct members of P differ on at least ε m sample coordinates.
Combining the polymorphic coordinate-subsampling lemma exists_injOn_comp_of_two_mul_log_card_lt
from CslibFrontier/MachineLearning/PACLearning/Packing.lean with Natarajan's lemma
(ncard_restriction_le_natarajanSum in
CslibFrontier/MachineLearning/PACLearning/NatarajanDimension.lean) extends Dudley's sample-size-
independent packing and covering bounds from binary VC classes to arbitrary finite-alphabet
multiclass classes:
- Exponential-polynomial bound on
natarajanSum(natarajanSum_le_exp_mul_pow): for every realT ≥ 1,natarajanSum n k d ≤ exp (n / T) · (T · max 1 (k choose 2)) ^ d(and withk ≥ 2,max 1 (k choose 2) = k choose 2). - Subsampling to
natarajanSum(card_le_natarajanSum_of_two_mul_log_card_lt): when2 log |P| < ε r, somersample positions distinguish all words ofP, giving|P| ≤ natarajanSum r |β| d. - Sample-size-independent Natarajan packing bound (
card_le_div_pow_of_natarajanShatters): choosingr = ⌊2 log |P| / ε⌋ + 1andT = 4 / εyields|P| ≤ (8 · max 1 (|β| choose 2) / ε) ^ (2 d)for0 < ε ≤ 1, independent ofm. When|β| ≥ 2(card_le_div_pow_of_natarajanShatters_of_two_le), this is(8 · (|β| choose 2) / ε) ^ (2 d), which atβ = Bool(2 choose 2 = 1) specializes directly to the binary bound(8 / ε) ^ (2 d)ofcard_le_div_pow_of_le_hammingDist. - Multiclass Hamming covering numbers (
exists_covering_of_natarajanShatters): a maximal separated subset at radius⌊ε m⌋is anε m-Hamming net of(· ∘ x) '' Cobeying the same cardinality bound.
Main results #
natarajanSum_le_exp_mul_pow: exponential-polynomial upper bound onnatarajanSum.card_le_natarajanSum_of_two_mul_log_card_lt: subsampling bound forε-separated multiclass labelings.card_le_div_pow_of_natarajanShatters,card_le_div_pow_of_natarajanShatters_of_two_le,card_le_div_pow_of_hasFiniteNatarajanDim: sample-size-independent packing bounds for classes of bounded Natarajan dimension.exists_covering_of_natarajanShatters: multiclass Hamming covering-net bound on a sample.
References #
Exponential-polynomial form of Natarajan's lemma: for every real T ≥ 1,
natarajanSum n k d ≤ exp (n / T) · (T · max 1 (k choose 2)) ^ d.
Multiclass packing by natarajanSum. If every finite set N-shattered by C has size at
most d, the labelings in P ⊆ (· ∘ x) '' C pairwise differ on at least ε m of the m > 0
points x, and 2 log |P| < ε r, then P.card ≤ natarajanSum r |β| d.
Packing bound for multiclass Natarajan classes: if every finite set N-shattered by C has
at most d points, any ε-separated finite set P ⊆ (· ∘ x) '' C on m sample points (0 < ε,
ε ≤ 1) has at most (8 · max 1 (|β| choose 2) / ε) ^ (2 d) elements, independent of m.
Multiclass Natarajan packing bound for nontrivial label alphabets (2 ≤ |β|):
(P.card : ℝ) ≤ (8 · (|β| choose 2) / ε) ^ (2 d). At β = Bool (2 choose 2 = 1), this reduces
directly to (8 / ε) ^ (2 d).
Natarajan packing bound stated in terms of HasFiniteNatarajanDim.
Multiclass Hamming covering-number bound: if every finite set N-shattered by C has size at
most d, then for any m points x and scale 0 < ε ≤ 1, (· ∘ x) '' C admits an ε m-Hamming
net N ⊆ (· ∘ x) '' C of size at most (8 · max 1 (|β| choose 2) / ε) ^ (2 d).