45.07.04 · mathematical-statistics / 07-statistical-learning-theory

The Fundamental Theorem of Statistical Learning

shipped3 tiersLean: none

Anchor (Master): Shalev-Shwartz & Ben-David 2014 Understanding Machine Learning (Cambridge) ch. 6 and ch. 28 (the full fundamental theorem with the quantitative sample-complexity bounds, the symmetrisation/ghost-sample proof, and the matching VC lower bounds); Vapnik & Chervonenkis 1971 Theory Probab. Appl. 16 (the original uniform-convergence theorem and its necessity); Blumer, Ehrenfeucht, Haussler & Warmuth 1989 J. ACM 36 (learnability and the Vapnik-Chervonenkis dimension — the realizable-case characterisation and rate)

Intuition Beginner

Two earlier ideas now meet. The first is a promise: every rule on your menu has a measured error close to its true error, so the rule that looks best really is near-best. The second is a number: the largest set of points your menu can tag in every possible yes/no pattern. The surprise of this unit is that these are the same thing. A menu keeps its promise exactly when that number is finite, and it breaks the promise exactly when the number is infinite. There is no in-between case to worry about.

So learnability stops being a vague worry and becomes one yes/no question. Can your family of rules learn from data at all? Look at its number. If the number is finite, the family can learn, picking the empirically best rule works, and you can write down how many examples you need. If the number is infinite, no amount of data is enough and no method rescues you. One dial controls the entire outcome.

The dial also tells you the price. A family with number needs roughly examples for each unit of accuracy you demand, give or take. Double the number and you roughly double the data. Ask for a tighter error and the data needed grows in a known way. The whole subject collapses to: find the number, then read off both whether you can learn and how much it costs.

Visual Beginner

Picture a single dial labelled with the family's number. Turn it to any finite setting and four lamps light up together: "can learn", "best-looking rule works", "errors are trustworthy", "data cost is known". Turn it to the infinite setting and all four lamps go dark at once. The lamps are never mixed — they share one switch, and that switch is the number.

        dial = capacity number d
   d finite ............... d infinite
   [on] can learn          [off] cannot learn
   [on] best rule works    [off] best rule fails
   [on] errors trusted     [off] errors useless
   [on] data cost known    [off] no budget works
   four lamps, ONE switch
Family's number Can it learn? Does fitting the data work? Data you need
finite, equal to yes yes about per unit of accuracy
infinite no no no amount suffices

The picture teaches the lesson: four good things arrive together or not at all, decided by one count.

Worked example Beginner

Take the family of thresholds on a line: each rule picks a cutoff and says yes above it. From earlier work its number is — it can tag one point in both patterns but cannot tag two points in the order yes-then-no. We use the theorem to read off everything else.

Step 1. Decide learnability. The number is , which is finite, so the theorem says thresholds can learn, the best-looking cutoff on the data is a good choice, and the measured errors are trustworthy. All four good things are on.

Step 2. Read the agnostic data cost. The rule of thumb for the noisy case is about divided by accuracy squared. With , an accuracy of , and a modest confidence amount of , the count is about examples.

Step 3. Read the realizable data cost. When the data are clean (some threshold is exactly right), the cost is cheaper: about divided by accuracy, not accuracy squared. The single power of accuracy in the denominator is why clean data costs far less.

Step 4. Compare. Going from clean to noisy data swapped one over accuracy for one over accuracy squared, a jump from a few dozen to a few hundred examples at accuracy .

What this tells us: once you know the number is , you know thresholds are learnable and you can estimate the data budget for both the clean and the noisy setting without any further theory.

Check your understanding Beginner

Formal definition Intermediate+

The setting is the binary-classification specialisation of 45.07.02 and 45.07.03: a domain , label set , a hypothesis class , the loss , true risk , empirical risk , and an ERM rule .

The four properties the theorem equates are the following.

Definition (uniform-convergence property). has the UC property if there is with, for all and all , whenever [Shalev-Shwartz Ben-David 2014].

Definition (agnostic-PAC learnability; ERM success). is agnostically PAC learnable if some learner and sample bound satisfy for , all . ERM success is the same statement with . The realizable versions add the assumption that some has and replace the comparison risk by .

Definition (finite VC dimension). has finite VC dimension if , where is the largest size of a shattered set, with growth function as in 45.07.03.

Sample-complexity quantities. The sample-complexity function is the least for which a learner meets the PAC guarantee; is the least for the UC guarantee. The theorem pins both to of explicit expressions in .

Counterexamples to common slips Intermediate+

  • "The equivalence holds for every loss and label set." It is proved for binary classification with loss. For real-valued prediction or general losses, learnability can hold without uniform convergence (some convex stochastic optimization problems are learnable by a stable algorithm yet ERM is not a uniform learner), so the four-way equivalence is special to the binary setting.
  • "Agnostic and realizable rates are the same." The realizable rate is , with a single power of ; the agnostic rate is , with . Clean data is genuinely cheaper, by a factor of order up to the log.
  • "Finite VC dimension means the class is finite." An infinite class — thresholds, halfspaces, intervals — has finite VC dimension. Finiteness of is finiteness of capacity, measured by shattering, not of cardinality.

Key theorem with proof Intermediate+

The signature result is the equivalence of learnability with finite VC dimension, together with the quantitative sample complexity. The non-routine direction is that finite VC dimension forces uniform convergence; this is the analytic engine, and the proof is symmetrisation followed by the Sauer-Shelah growth bound.

Theorem (Fundamental theorem of statistical learning). Let be a class of functions under loss. The following are equivalent:

(i) has the uniform-convergence property; (ii) any ERM rule is a successful agnostic-PAC learner for ; (iii) is agnostically PAC learnable; (iv) any ERM rule is a successful PAC learner for in the realizable case; (v) is PAC learnable (realizable case); (vi) .

Moreover, when there are absolute constants with

in the agnostic case, and

in the realizable case. [Shalev-Shwartz Ben-David 2014]

Proof. The implications and are the content of 45.07.02: uniform convergence makes the three-inequality ERM excess-risk chain valid, and an agnostic learner is in particular a realizable one. The implications and are the contrapositive of the No-Free-Lunch corollary of 45.07.02: if then for every there is a -point set shattered by , and feeding it to the No-Free-Lunch construction defeats every learner at every sample size, so is neither agnostically nor realizably learnable. It remains to prove , which closes the cycle, and to establish the rates.

Assume . Fix , , and , and write . The first step replaces the unknown true risk by a second independent ghost sample . A standard symmetrisation inequality (proved in the Full proof set) gives, for ,

The right side involves only the doubled sample of points. Introduce independent Rademacher signs that swap the -th points of and ; since and are i.i.d., swapping does not change the joint law, so the probability equals its average over . Conditioned on the points, the supremum over ranges over only distinct labelings; a union bound over those, with a Hoeffding tail for each fixed labeling under the random signs, yields

Combining, . By the Sauer-Shelah lemma of 45.07.03, for , so

The polynomial prefactor is of order and is overpowered by once , at which point the right side drops below . Hence has the UC property, establishing and closing the equivalence.

For the agnostic rate, converts the UC radius into excess risk at the cost of halving , giving the upper bound after the sharpened chaining of 45.07.03 removes the spurious ; the matching lower bound is the No-Free-Lunch construction on a shattered -set. For the realizable rate the -net theorem replaces the two-sided uniform deviation by a one-sided consistency statement, removing one power of and producing , with the matching lower bound.

Bridge. This theorem is the foundational reason the whole PAC/VC apparatus is one subject rather than four: it shows that the analytic uniform-convergence property of 45.07.02, the algorithmic success of ERM, the abstract learnability of the class, and the combinatorial finiteness of the VC dimension of 45.07.03 are a single condition wearing four faces, and the bridge is the symmetrisation step that converts into a ghost sample so that Sauer-Shelah can act. This is exactly the substitution that lets the cardinality of the finite-class union bound be replaced by the growth function , and it generalises the finite-class theorem to every class of finite capacity. It builds toward the distribution-dependent refinement of 45.07.05, where the worst-case growth function is replaced by the Rademacher complexity that adapts to , and the central insight reappears: learnability is concentration of a supremum over an effective count. Putting these together, the No-Free-Lunch lower bound of 45.07.02 and the Sauer-Shelah upper bound of 45.07.03 meet here as the two halves of one equivalence, and this is exactly the closing of the cycle the chapter was built to reach.

Exercises Intermediate+

Advanced results Master

The equivalence is the hinge between four developments: the precise quantitative bounds with matching lower bounds, the symmetrisation machinery that proves the upper direction, the realizable-case sharpening through -nets, and the necessity direction that turns the characterisation into an equivalence rather than a one-way sufficiency.

Theorem 1 (quantitative fundamental theorem). For a binary class of VC dimension under loss there are absolute constants such that the agnostic sample complexity is and the realizable sample complexity is , the realizable lower bound being . The agnostic upper bound is tight without a factor — the chaining / Dudley-entropy refinement removes the logarithm that a crude union bound over leaves — while the realizable upper bound retains a that is necessary for some classes and removable for others (the gap to the lower bound is a genuine and studied phenomenon) [Shalev-Shwartz Ben-David 2014]. These are the optimal distribution-free rates: no learner does asymptotically better against the worst distribution.

Theorem 2 (symmetrisation and the growth-function bound). For any class and ,

The first inequality is the ghost-sample reduction; the second is the Rademacher-swap union bound over the labelings realised on the doubled sample, each controlled by Hoeffding under the random signs [Vapnik Chervonenkis 1971]. This is the Vapnik-Chervonenkis route: the worst-case growth function is the only data-dependent quantity, and its logarithm is the effective dimension counted by the bound.

Theorem 3 (-net theorem and the realizable rate). If and is an i.i.d. sample of size , then with probability the sample is an -net: every with errs on at least one sample point. Consequently any consistent learner (ERM in the realizable case) returns a hypothesis of true risk [Blumer Ehrenfeucht Haussler Warmuth 1989]. The single power of is the structural reason realizable learning is cheaper than agnostic learning: a consistency event has an tail, not .

Theorem 4 (necessity: uniform convergence forces finite VC dimension). If then for all , so does not vanish, and the symmetrised bound is vacuous; concretely, the No-Free-Lunch averaging over the labelings of a shattered -set produces, for every learner and every , a distribution with excess risk with probability [Shalev-Shwartz Ben-David 2014]. Hence finite VC dimension is not merely sufficient but necessary for uniform convergence and for learnability, which is what upgrades the Vapnik-Chervonenkis sufficiency theorem and the Blumer-Ehrenfeucht-Haussler-Warmuth realizable bound into a full characterisation.

Synthesis. The foundational reason the subject closes is that one combinatorial integer governs an analytic property, an algorithmic property, and an abstract one, and every result here is that single fact read through a different lens. This is exactly the meeting of the No-Free-Lunch lower bound of 45.07.02 and the Sauer-Shelah upper bound of 45.07.03: the former shows infinite VC dimension defeats every learner at every scale, the latter shows finite VC dimension forces the growth function polynomial, and putting these together learnability becomes a zero-one property switched by whether is finite. The agnostic and realizable rates are dual readings of the same growth-function tail — two-sided risk estimation gives , one-sided consistency through the -net gives — and the symmetrisation step is the central insight that makes both possible, since it is what replaces the unknown true risk by a ghost sample on which only labelings survive. The cardinality of the finite-class union bound generalises first to the growth function and here to the VC dimension, and the bridge upward at every level is the same substitution; the distribution-dependent sharpening that replaces the worst-case growth function by the Rademacher complexity of 45.07.05 is the next reading of the identical principle, that learnability is the concentration of a supremum over an effective count.

Full proof set Master

Proposition 1 (symmetrisation / ghost-sample inequality). Let be a class under loss, independent, and . For , .

Proof. On the event select a witness , measurable in , with . Independently of , by Chebyshev applied to the empirical mean , whose variance is ,

When both and hold, the triangle inequality gives , so . Integrating, , which is the claim.

Proposition 2 (growth-function tail). With the notation of Proposition 1, , hence .

Proof. Condition on the multiset of points . Let be independent uniform ; swapping the -th point of with the -th point of when preserves the joint distribution of because the points are i.i.d. Thus , where . Conditioned on , the value of depends on only through its labeling of the points, of which there are at most . For each fixed labeling, is an average of independent mean-zero terms in scaled appropriately; Hoeffding's inequality gives . A union bound over the labelings and taking yields the first inequality; combining with Proposition 1 gives the second.

Proposition 3 (: finite VC dimension implies uniform convergence). If then has the uniform-convergence property with .

Proof. By Sauer-Shelah 45.07.03, for . Proposition 2 gives . Taking logarithms, the right side is once . At one has , so , and for a large enough absolute constant the inequality holds. Hence with probability for all such , the UC property.

Proposition 4 (-net theorem; realizable rate). If and , then with probability over every with errs on at least one point of . Hence in the realizable case any consistent learner outputs with with probability .

Proof. Let be the bad hypotheses; the failure event is that some is consistent with . A double-sample symmetrisation as in Proposition 1 (one-sided, comparing with a ghost ) bounds the probability that some is consistent on yet errs on points of by , because for a fixed bad labeling the random swap places its errors on the side with the required deficit with probability . By Sauer-Shelah this is , which falls below at the stated . On the complementary event no bad hypothesis is consistent with , so a consistent (which exists in the realizable case, as some has and is consistent) has .

Proposition 5 (lower bounds; necessity). For a class with (possibly ), agnostic learning requires and realizable learning requires ; if no finite sample suffices for either.

Proof. Take a shattered set of size (of arbitrary size if ). Restricting all distributions to , every labeling of is realised in , so on is the full class of binary functions on points. The No-Free-Lunch averaging argument of 45.07.02 over the labelings, with the points carrying slightly biased label noise of magnitude , forces any learner to incur excess risk with probability unless in the agnostic case (the term from estimating near-balanced coins to accuracy , the term from a single coin) and in the realizable case (deterministic labels, where one consistent-but-wrong hypothesis survives until relevant points are seen). For the bound is unbounded in , so no finite works.

Connections Master

This unit is the capstone of the chapter opened by 45.07.02 and 45.07.03. The uniform-convergence property and the bias-complexity decomposition of 45.07.02 supply implications and the No-Free-Lunch lower bound that gives ; the Sauer-Shelah lemma of 45.07.03 supplies the growth bound that closes . The two earlier units are the analytic and combinatorial halves whose meeting is this equivalence, and the symmetrisation proof here is what joins them.

The destination from here is the distribution-dependent refinement of the chapter, the Rademacher-complexity bounds of 45.07.05: the worst-case growth function that controls the uniform deviation in this unit is replaced by the empirical Rademacher complexity , which adapts to the actual distribution and recovers the VC bound through Massart's finite-class lemma and Sauer-Shelah as its worst case. The fundamental theorem is the distribution-free skeleton that the Rademacher theory fleshes out.

The lower-bound half rests on the No-Free-Lunch and averaging machinery already proved in 45.07.02: the matching agnostic bound is that construction applied to a shattered -set with -biased noise, so the optimality of the rate is inherited directly from the adversary argument of the prerequisite unit rather than reproved.

The symmetrisation and ghost-sample technique that drives the upper bound is the same empirical-process device that underlies the VC-Donsker theory and the uniform laws of large numbers of 45.05.03: there a VC class of functions is shown -Donsker because Sauer-Shelah controls the metric entropy, and the doubled-sample randomisation here is the finite-sample shadow of that limit theorem. The Hoeffding and bounded-differences tails feeding both are the concentration spine of 40.07.05, which provides the per-labeling exponential bound that the union over labelings rests on.

Historical & philosophical context Master

The sufficiency half of the theorem — that a bound on the growth function yields uniform convergence of empirical frequencies to probabilities, with finiteness of the capacity (later named the VC dimension) the operative condition — was proved by Vladimir Vapnik and Alexey Chervonenkis in their 1971 paper, which also established the necessity of sublinear log-growth, making their result a characterisation of uniform convergence rather than a one-way bound [Vapnik Chervonenkis 1971]. The symmetrisation argument with a second independent sample is theirs.

The recasting of this analysis in the probably-approximately-correct framework introduced by Leslie Valiant in 1984 was carried out by Anselm Blumer, Andrzej Ehrenfeucht, David Haussler and Manfred Warmuth in their 1989 Journal of the ACM paper, which proved that a concept class is PAC learnable in the realizable case if and only if it has finite VC dimension, supplied the -net theorem as the technical core of the realizable upper bound, and gave the matching lower bounds [Blumer Ehrenfeucht Haussler Warmuth 1989]. Their realizable rate and its lower bound are the source of the realizable-versus-agnostic rate gap recorded here. The agnostic-case rate and the textbook assembly of all six conditions into the single named theorem are due to Shalev-Shwartz and Ben-David (2014) [Shalev-Shwartz Ben-David 2014], building on the agnostic-PAC extension of Haussler and the empirical-process refinements of Talagrand and Dudley.

Bibliography Master

@article{vapnikchervonenkis1971,
  author  = {Vapnik, Vladimir N. and Chervonenkis, Alexey Ya.},
  title   = {On the uniform convergence of relative frequencies of events to their probabilities},
  journal = {Theory of Probability and Its Applications},
  volume  = {16},
  number  = {2},
  pages   = {264--280},
  year    = {1971}
}

@article{blumer1989,
  author  = {Blumer, Anselm and Ehrenfeucht, Andrzej and Haussler, David and Warmuth, Manfred K.},
  title   = {Learnability and the {Vapnik}-{Chervonenkis} dimension},
  journal = {Journal of the ACM},
  volume  = {36},
  number  = {4},
  pages   = {929--965},
  year    = {1989}
}

@book{shalevshwartzbendavid2014,
  author    = {Shalev-Shwartz, Shai and Ben-David, Shai},
  title     = {Understanding Machine Learning: From Theory to Algorithms},
  publisher = {Cambridge University Press},
  year      = {2014}
}

@book{mohri2018,
  author    = {Mohri, Mehryar and Rostamizadeh, Afshin and Talwalkar, Ameet},
  title     = {Foundations of Machine Learning},
  edition   = {2},
  publisher = {MIT Press},
  year      = {2018}
}

@article{haussler1992,
  author  = {Haussler, David},
  title   = {Decision theoretic generalizations of the {PAC} model for neural net and other learning applications},
  journal = {Information and Computation},
  volume  = {100},
  number  = {1},
  pages   = {78--150},
  year    = {1992}
}

@article{valiant1984,
  author  = {Valiant, Leslie G.},
  title   = {A theory of the learnable},
  journal = {Communications of the ACM},
  volume  = {27},
  number  = {11},
  pages   = {1134--1142},
  year    = {1984}
}

@book{vapnik1998,
  author    = {Vapnik, Vladimir N.},
  title     = {Statistical Learning Theory},
  publisher = {Wiley-Interscience},
  year      = {1998}
}