Local Rademacher Complexities II: Local Rademacher Averages of the Classification Loss Class Are Bounded by Weighted Empirical Risk Minimization (Theorem 6.3)Research Paper
Motivation
Local Rademacher averages measure the complexity of a learning problem only near the functions that matter, such as those with small empirical error, rather than over the whole function class. Bartlett, Bousquet and Mendelson (Local Rademacher complexities, Ann. Statist. 33 (2005)) show that error bounds for empirical risk minimization are governed by the fixed point of a sub-root upper bound on such local averages, and that these bounds give fast rates ( rather than ) under variance conditions. A bound is only useful in practice if it can be computed from the data. For classification with the discrete loss, the paper's Corollary 6.2 states the bound in terms of a localized empirical Rademacher average . That average is a supremum over a constrained subclass, and it is not obvious how to evaluate it.
Theorem 6.3 of the paper answers this. An upper bound on can be computed by any algorithm that minimizes a weighted empirical classification error. A similar reduction was known for the global Rademacher average of a classification class: Bartlett, Boucheron and Lugosi (Model selection and error estimation, Machine Learning 48 (2002)) observed that the empirical Rademacher average equals one half minus an expected empirical risk minimum with random labels, and Lemma 6.4 of the paper is adapted from their argument. Theorem 6.3 shows that localization and the use of star-hulls keep this reduction intact.
Setting
Fix inputs in a set () and labels . Everything below is deterministic given this sample. A classifier is a function , and is a class of classifiers. The discrete loss is . For a vector write
so is the empirical risk of .
A sign vector plays the role of Rademacher signs, and is the average over all sign vectors. The empirical Rademacher average of the loss functions of the classifiers with empirical risk at most is
For , and , the empirical local Rademacher complexity of the classification loss class is
In Corollary 6.2, . The parameter comes from the star-hull of the loss class: rescaling a loss function by turns the constraint into .
For a sign vector and a multiplier , the weighted empirical risk minimum is
It is the smallest weighted training error when the labels are corrupted to and example has weight .
Formalization targets
Goal: Theorem 6.3
If some has , then
The multiplier is kept general, and the term appears on both sides as printed.
Milestones
- Lemma 6.4. For every with a feasible classifier,
- Weak duality (proof of Theorem 6.3). With and , for every ,
- The identity for (proof of Theorem 6.3, corrected).
Significance
The theorem turns a quantity defined by a supremum over a data-dependent subclass into one computable by a standard learning primitive. For each sign vector and each multiplier , is the value of a weighted classification problem, which any weighted empirical risk minimizer solves. The expectation over signs can be estimated by repeated sampling. The paper notes that is Lipschitz in , so a finite grid of values suffices, and that a sub-root upper bound on can then be read off. Combined with Corollary 6.2, this yields error bounds for empirical risk minimization in classification that are computable from the training data and that localize: they depend only on the classifiers with small empirical error.
The result is proved in the paper. It has not been formalized; as far as a search of the Prove2Me catalog shows, neither the classification loss class nor exists as a formal object. This mission produces machine-checked statements of the theorem and of its three proof steps. These cover the exact identity between Rademacher averages of the discrete loss class and random-label empirical risk minimization, and a Lagrangian duality bound for constrained empirical risk minimization.
Difficulty
The obvious route is to apply Lemma 6.4 and then exchange the constrained minimum for a Lagrangian. Each step has a point where a careless argument fails.
- Lemma 6.4 needs a change of variables on sign vectors () that preserves the uniform average. It also needs the identity on , which fails off .
- The Lagrangian step gives only weak duality. The bound is an inequality, and attempts to prove equality in Theorem 6.3 fail in general.
- The identity for rests on . This holds only for arguments, while is when and . Those terms carry weight zero, and the bookkeeping has to show this.
- Passing the per-, per- inequalities through the outer supremum and the average requires every supremum and minimum to be over a nonempty, bounded set. This is where the feasibility hypothesis is used.
Formalization scope
- Representation. Inputs are
xs : Fin n → Xfor an arbitrary typeX. Labels and signs are real vectorsFin n → ℝ. Classifiers are functionsX → ℝwith values in , a class is aSet (X → ℝ), and the discrete loss is defined on all real pairs. Sign vectors are indexed byFin n → Boolthrough the publishedUnderstandingML.signVec. Every , on both sides of every statement, is the finite average over these vectors; no probability measure is used. The empirical Rademacher average is the publishedUnderstandingML.rademacherapplied to the set of loss vectors. - Suprema and minima. Every supremum and minimum is Lean's real
⨆/⨅over a subtype. The hypotheses make each index set nonempty and each family bounded, so these are true suprema and minima. The conventionReal.sign 0 = 0is used where the paper's sign is undefined; it affects only weight-zero terms. - Added hypotheses. Each of these is implicit on the page:
- ;
- (for the inequality reverses);
- (otherwise the range of is empty);
- (Corollary 6.2's "fix ");
- a classifier with in the goal, and a feasible classifier in Lemma 6.4 and in the weak duality step (the page's minima presuppose one);
- a nonempty in the identity.
- Corrections of the print. The last display of the proof on p. 30 ends each line with . From the page's own definition , the constant is , which is the form Theorem 6.3's term requires. The milestone states the corrected identity.
- No trivialization. Without the feasibility hypothesis, Lean would evaluate the empty-class Rademacher average and the unbounded -minimum to the junk value , and the goal would compare junk values. The feasibility hypothesis rules this out. The goal is the inequality between the two expressions for as printed; it is not restated through , or Lemma 6.4.
- Contributions welcome. A reusable lemma that the uniform average over is invariant under coordinatewise sign flips would serve beyond this mission, as would general facts about real infima over finite-valued families. Proofs of the three milestones, and of the goal from them, are the main targets.
Selected references
- P. L. Bartlett, O. Bousquet, S. Mendelson, Local Rademacher complexities, Annals of Statistics 33(4), 1497–1537, 2005. arXiv:math/0508275v1 (cited version): https://arxiv.org/abs/math/0508275, DOI https://doi.org/10.1214/009053605000000282 — §6.2, Corollary 6.2 and Theorem 6.3 (pp. 28–29), Lemma 6.4 (p. 29), proof of Theorem 6.3 (p. 30).
- P. L. Bartlett, S. Boucheron, G. Lugosi, Model selection and error estimation, Machine Learning 48, 85–113, 2002. https://doi.org/10.1023/A:1013999503812
- P. L. Bartlett, S. Mendelson, Rademacher and Gaussian complexities: risk bounds and structural results, Journal of Machine Learning Research 3, 463–482, 2002. https://www.jmlr.org/papers/v3/bartlett02a.html
- S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 26 (the Rademacher complexity reused here). https://doi.org/10.1017/CBO9781107298019