SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

VC dimension

The VC dimension (Vapnik-Chervonenkis dimension) of a class H of functions from a domain X to {0,1} is the size of the largest finite set C in X that H shatters, or infinity if arbitrarily large sets are shattered. H shatters C if H realises every one of the possible labellings of C.2 Thresholds on a line have dimension 1, intervals on a line 2, and half-spaces with an offset in ℝᵈ have dimension d + 1.2

Vapnik and Chervonenkis introduced the underlying quantity in a 1971 paper on uniform convergence of relative frequencies to probabilities over a whole class S of events from one sample.1 For samples of r points, the growth function mˢ(r) is the largest number of distinct subsets of such a sample that events in S can pick out; it is at most 2ʳ. Theorem 1 states that mˢ(r) is either identically 2ʳ or is majorised by rⁿ + 1, where n is the first r at which mˢ(r) differs from 2ʳ.1 Theorem 2 states that for sample size l at least 2/ε², the probability that the relative frequency of at least one event in S differs from its probability by more than ε is at most 4 mˢ(2l) exp(−ε²l/8).1 The textbook credits the definition of the VC dimension and its relation to uniform convergence to this paper, and the relation to PAC learnability to Blumer, Ehrenfeucht, Haussler and Warmuth (1989).2

The Sauer-Shelah-Perles lemma (Lemma 6.10 of the textbook) states that if VCdim(H) is at most d, the growth function satisfies τ(m) ≤ the sum of C(m,i) for i from 0 to d, which is at most (em/d)ᵈ for m greater than d + 1.2 The fundamental theorem of statistical learning (Theorems 6.7 and 6.8) states that for binary classification with 0-1 loss, finite VC dimension is equivalent to uniform convergence, to PAC learnability, to agnostic PAC learnability and to success of any empirical risk minimiser. With VCdim(H) = d, the agnostic sample complexity is between constants times (d + log(1/δ))/ε².2 A class with infinite VC dimension is not PAC learnable (Theorem 6.6).2

What later work changed: the theorem concerns binary classification and some other losses, and the textbook notes it does not hold for all learning tasks; generalisations such as the fat-shattering dimension address some regression problems.2 Finite VC dimension also says nothing about efficient computation, whereas Valiant's PAC definition requires polynomial running time.3

Assumptions: training examples are independent draws from one distribution that also generates the test examples, and the bound is worst case over all distributions on the domain.12

Source · On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities (opens in a new tab) · Theory of Probability and Its Applications 16(2), 264-280 (V. N. Vapnik and A. Ya. Chervonenkis, trans. B. Seckler); course-hosted copy

References

  1. On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities (opens in a new tab) · Theory of Probability and Its Applications 16(2), 264-280 (V. N. Vapnik and A. Ya. Chervonenkis, trans. B. Seckler); course-hosted copy · Published 1971. Theorem 1 (growth function), Theorem 2 (uniform deviation bound). ↩ ↩ ↩ ↩
  2. Understanding Machine Learning: From Theory to Algorithms (opens in a new tab) · Cambridge University Press (S. Shalev-Shwartz and S. Ben-David); author-hosted PDF · 2014 textbook. Definition 3.1, Definitions 6.3 and 6.5, Theorems 6.6 to 6.8, Lemma 6.10. ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩
  3. A Theory of the Learnable (opens in a new tab) · Communications of the ACM 27(11), 1134-1142 (L. G. Valiant) · November 1, 1984 · Section 3 defines learnability; the closing discussion links learnability to cryptography. ↩

Research articles

See what connects to it on the map of ideas →

See also