High-Dimensional Probability & Concentration

VC dimension and uniform laws of large numbers

/ Vapnik-Chervonenkis: VAP-nik chair-vo-NEN-kis /

VC dimension answers the question at the heart of statistical learning: when does the empirical average of a quantity converge to its true mean not just for one fixed function, but UNIFORMLY over an entire class of functions at once? This uniform convergence is what makes learning from data possible — it is the guarantee that the hypothesis minimizing training error also has near-minimal true error — and the Vapnik-Chervonenkis dimension is the combinatorial parameter that controls when it holds and how fast.

Fix a class F of {0,1}-valued functions (or, geometrically, a family of sets). For a finite sample of points, the class shatters that sample if F can realize every one of the 2^m possible labelings of the m points. The VC dimension of F is the size of the largest sample that F can shatter — the breakpoint beyond which F can no longer realize all labelings. The combinatorial miracle, the Sauer-Shelah lemma, is that once the VC dimension is a finite d, the number of distinct labelings F can produce on any m points grows only POLYNOMIALLY, like O(m^d), rather than exponentially as 2^m. This polynomial growth is exactly what tames a union bound over an a-priori-infinite class. Combining it with a symmetrization step (compare the empirical process to a 'ghost sample' and inject random Rademacher signs) and a concentration inequality (McDiarmid for the supremum, Hoeffding on the symmetrized process) yields the VC inequality: with probability at least 1 - delta, sup over f in F of |empirical mean of f - true mean of f| <= C sqrt((d log(m/d) + log(1/delta)) / m). Because the bound holds uniformly over all f, it is a UNIFORM law of large numbers; classes for which the supremum converges to 0 almost surely are called Glivenko-Cantelli classes, and finite VC dimension is the canonical sufficient condition.

This is the theoretical foundation of generalization in machine learning: it explains why a model from a low-complexity class trained on m samples will generalize, and it pins the sample complexity at m ~ d / eps^2 to learn to accuracy eps. The honest caveats matter for practice. VC dimension is a worst-case, distribution-FREE quantity — it bounds uniform convergence for the worst possible data distribution, so it can be wildly pessimistic for benign data, and data-dependent complexity measures (Rademacher complexity, which is exactly the chaining quantity above) often give much tighter bounds. VC theory in its classical form is for binary classification; real-valued losses need the fat-shattering dimension or pseudo-dimension. And finite VC dimension is sufficient but the rate sqrt(d/m) is for the worst case — margin-based and localized analyses can beat it. The deepest modern caveat: very large models (deep networks) can have enormous or infinite VC dimension yet generalize well, so VC dimension is not the whole story of generalization, only one rigorous and historically foundational piece of it.

Half-lines on R, the sets (-infinity, a], have VC dimension 1: a single point can be labeled both ways by varying a, but no two points can be shattered (you cannot make the left point 0 and the right point 1). Axis-aligned rectangles in R^2 have VC dimension 4. By Sauer-Shelah, a class of VC dimension d labels m points in at most O(m^d) ways, so uniform convergence holds at rate sqrt(d/m).

Finite VC dimension turns an infinite class into an effectively polynomial one.

VC dimension is distribution-FREE and worst-case, so it can be far too pessimistic for real data; Rademacher complexity (a chaining quantity) gives data-dependent, often much tighter bounds. Classical VC theory is for binary classification — real-valued losses need fat-shattering/pseudo-dimension, and large neural nets generalize despite huge VC dimension.

Also called
Vapnik-Chervonenkis dimensionGlivenko-Cantelli classuniform convergenceVC 維度