Rademacher and Gaussian Complexities: Risk Bounds and Structural Results 2: With Probability 1 − δ, Every ±1 Classifier in F Has Error ≤ Training Error + R_n(F)/2 + √(ln(1/δ)/(2n))Research Paper
Motivation
A binary classifier is judged by its misclassification probability, the chance that it mislabels a fresh example. That probability is unknown; what a learner sees is the training error, the fraction of mistakes on the sample it was trained on. A generalization bound controls the gap between the two simultaneously for every classifier in a class, so that a classifier chosen by looking at the data still has a guaranteed error. The classical bounds of Vapnik and Chervonenkis measure the class by its VC dimension, a fixed combinatorial quantity that does not depend on the data distribution, and the paper recalls evidence that such fixed complexity penalties cannot be universally effective for model selection (p. 464).
Bartlett and Mendelson's paper in the Journal of Machine Learning Research (2002) studies two data-dependent alternatives, the Rademacher and Gaussian complexities, and proves risk bounds and structural rules for them. This mission formalizes the paper's classification bound, Theorem 5(b), which replaces the VC penalty by half the Rademacher complexity of the class. The source is the published JMLR article (jmlr.org/papers/v3/bartlett02a), pp. 463–482; all page numbers below are the journal's.
Timeline. Uniform convergence of empirical frequencies with a VC-dimension rate is due to Vapnik and Chervonenkis (1971). Rademacher penalties for model selection were introduced by Koltchinskii (2001) and by Bartlett, Boucheron and Lugosi (2002), who also proved Theorem 5(a) with the maximum discrepancy. The 2002 paper proves part (b) in Appendix B (p. 480) by adapting its proof of the general risk bound, Theorem 8 (p. 467).
Setting
Let be a measurable space and a probability distribution on ; a pair is an example with label . Let be a set of -valued functions on (the classifiers), and let be an i.i.d. sample drawn from .
- The misclassification probability of is .
- The training error of is , where is the empirical measure of the sample (p. 463).
- Let be independent uniform -valued random variables, independent of the sample. The empirical Rademacher complexity of a class of real functions on at the points is
and the Rademacher complexity is with i.i.d. (Definition 2, p. 464). Note the factor and the absolute value.
- In Theorem 5, is the Rademacher complexity of itself, viewed as a class of real functions with values , under the marginal of on .
- With the 0–1 loss , the largest gap on a sample is .
Formalization targets
Goal: Theorem 5(b), p. 465
For every , with probability at least over the sample, every satisfies
The bound is uniform: the probability that some violates it is at most .
Milestones (Appendix B, p. 480)
- Bounded differences. Replacing one example changes by at most .
- McDiarmid step. With probability at least , every satisfies
- Symmetrization. .
Supporting platform items, referenced and not restated: McDiarmid's inequality for i.i.d. samples (StabGen.Uniform.mcdiarmid_inequality, open) and the symmetrization lemma in the normalization of Shalev-Shwartz and Ben-David (UnderstandingML.representativeness_le_rademacher, proved).
Significance
The result. Theorem 5(b) is a distribution-dependent risk bound for classification whose complexity term can be estimated from a single sample. The paper shows (Theorem 6, p. 465) that it is never much worse than the VC bound, since the empirical Rademacher complexity of a class is in terms of its empirical VC dimension , and it can be much better. It also serves as the template for margin bounds for large-margin classifiers, kernel machines and voting methods in Section 4 of the paper.
Formalizing it. The result is proved in the paper; no machine-checked proof is known to exist. A formal proof needs McDiarmid's inequality, a symmetrization argument with a ghost sample, and the reduction of the 0–1 loss class to the classifier class through the identity . The milestones split these, so they can be proved independently. The symmetrization milestone also corrects a printed slip (see Formalization scope).
Difficulty
The bounded-difference step and the final union of the two halves are short. The difficulty is in the symmetrization. The supremum over an uncountable class is not automatically measurable, so the expectations in the paper's chain need not exist as written; a proof must work with exactly the random variables it integrates and use only the measurability it is given. The exchange of a sample point with its ghost copy, the conditioning on the sample, and the replacement of by must each be justified on finite sign averages and product measures. The obvious shortcut, bounding the gap by the Rademacher complexity of the loss class , does not give the stated term: with the absolute value of Definition 2, the loss class's complexity is not , because contributes a sign sum that does not depend on .
Formalization scope
Lean conventions:
- Labels are the units , coerced to ; the real class of is . Sample indices are ; the sample law is the product measure .
- The Rademacher complexities take values in : the sign expectation is the exact average over the sign vectors, and the sample expectation is a lower Lebesgue integral. An unbounded class therefore has complexity , not a junk . The goal compares values in with
ENNReal.ofRealon the real terms. - "With probability at least , every in " is encoded as: the outer -measure of is at most .
Hypotheses added relative to the page, each necessary or a reading of the page:
- : at Lean's makes and the bound false.
- , as in Theorem 8 (p. 467).
- Every is measurable, and three random variables are measurable: the gap supremum , the double-sample supremum , and . The paper does not discuss measurability; these are exactly the variables the proof integrates, as in the proved platform item
UnderstandingML.representativeness_le_rademacher. They hold, for instance, for countable classes. - The two intermediate milestones assume nonempty, so that the real suprema in them are genuine.
Corrected slip: the chain on p. 480 ends "". The last equality is only "": carries an absolute value, and for the left side of that step is while . The symmetrization milestone states the chain's conclusion with , which is all Theorem 5(b) needs.
Not a valid formalization: a version with a real-valued supremum or Bochner integral for (which would read on an unbounded or non-integrable class and make the bound false or free), one that drops the absolute value or uses the normalization, or one that measures of the loss class instead of . Theorem 5(a) (maximum discrepancy, due to Bartlett, Boucheron and Lugosi) is not part of this mission.
Contributions welcome: proofs of the three milestones and the goal; the general McDiarmid inequality (the referenced open item); and reusable lemmas on measurable suprema of classifier families.
Selected references
- P. L. Bartlett, S. Mendelson, Rademacher and Gaussian Complexities: Risk Bounds and Structural Results, Journal of Machine Learning Research 3 (2002) 463–482. https://www.jmlr.org/papers/v3/bartlett02a.html
- P. L. Bartlett, S. Boucheron, G. Lugosi, Model selection and error estimation, Machine Learning 48 (2002) 85–113. https://doi.org/10.1023/A:1013999503812
- V. Koltchinskii, Rademacher penalties and structural risk minimization, IEEE Transactions on Information Theory 47(5) (2001) 1902–1914. https://doi.org/10.1109/18.930926
- C. McDiarmid, On the method of bounded differences, Surveys in Combinatorics 1989, LMS Lecture Note Series 141, 148–188. https://doi.org/10.1017/CBO9781107359949.008
- V. N. Vapnik, A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory of Probability and its Applications 16 (1971) 264–280. https://doi.org/10.1137/1116025