The Optimal Sample Complexity of PAC Learning: The Optimal Realizable Sample Complexity BoundResearch Paper
Motivation
The sample complexity of a learning problem is the number of labelled examples needed to learn to a prescribed accuracy with a prescribed confidence. In Valiant's probably approximately correct (PAC) model it is the basic quantity of statistical learning theory: it says how much data is necessary and sufficient, as a function of the complexity of the hypothesis class, when the target concept belongs to that class (the realizable case).
For a class of Vapnik–Chervonenkis (VC) dimension the answer was known up to a logarithmic factor for about 25 years:
- 1982–1989. Vapnik (1982) and Blumer, Ehrenfeucht, Haussler and Warmuth (J. ACM 1989) showed that any learner that outputs a classifier consistent with the sample succeeds with examples.
- 1989. Ehrenfeucht, Haussler, Kearns and Valiant (Inform. Comput. 1989) together with Blumer et al. proved the lower bound for every learner.
- 1994. Haussler, Littlestone and Warmuth (Inform. Comput. 1994) showed with a variant of the one-inclusion graph predictor, which is sometimes better but also does not match the lower bound.
- 2007–2015. The gap was closed for restricted classes, such as intersection-closed classes (Auer and Ortner 2007; Darnstädt 2015), but not for classes such as linear separators.
- 2015. Simon (COLT 2015) analysed a majority vote of consistent classifiers trained on disjoint parts of the data and reduced the logarithmic factor to a very slowly growing function of .
- 2016. Hanneke (JMLR 17(38), 2016; arXiv:1507.00473) removed the logarithmic factor for every class, with an explicit learner: a majority vote of consistent classifiers trained on recursively constructed, overlapping subsamples.
Setting
Let be a set with a -algebra and . A classifier is a measurable map ; the concept space is a set of classifiers with . A finite sequence is shattered by if every labelling is realized by some ; the VC dimension is the largest such , assumed finite (then ).
A data set is a finite sequence of pairs in , and is the set of with for all . For a probability measure and a target , the error of is , where . A learning algorithm maps data sets to classifiers.
For , the sample complexity (Definition 1) is the least such that some algorithm satisfies, for every probability measure on and every , with independent with law ,
and if there is no such .
The learner of the paper uses three ingredients. A sample-consistent learner returns an element of whenever that set is nonempty. The majority vote is . The subsample algorithm returns if ; otherwise it splits into a head of points and three blocks of points, and returns the concatenation of , and . The learned classifier is .
Formalization targets
Goal: Theorem 2 with its explicit constant
The paper states Theorem 2 as with a numerical constant; its proof establishes the bound above with , and that explicit form is the goal. Improving the constant would give a stronger theorem; this statement stays valid.
Milestones, in attack order
- Lemma 4 (Blumer et al. 1989): with probability , every has .
- Lemma 5: for , .
- Structure of : every subsample satisfies , and the number of subsamples does not depend on .
- The Chernoff event : if , then with probability at least of i.i.d. points fall in .
- The bound (8) and its comparison with .
- Majority averaging: for three equal-size committees.
- Claim (9): with probability , .
- Sample size (10): is -PAC from examples.
Significance
Together with the classical lower bound, Theorem 2 gives : the realizable PAC sample complexity is determined up to a numerical constant by the VC dimension alone. It settles a question open since 1989, shows that the factor in the classical bounds is an artifact of empirical risk minimization rather than of the learning problem, and supplies an explicit, simple learner that attains the optimal rate. Later work on optimal learners (majority votes over bagged or subsampled ERMs, optimal learning in other settings) builds on this construction.
The result is proved on paper. To our knowledge no proof assistant contains it, and the formal libraries lack parts of its infrastructure: the classical bound for consistent learners (Lemma 4), multiplicative Chernoff bounds for empirical counts, and conditioning on independent parts of an i.i.d. sample. This mission produces a machine-checked statement of the optimal bound with the paper's explicit constant, a verified formal model of the learner, and reusable components for these three.
Difficulty
The obvious approach is to sharpen the analysis of a single consistent classifier, as in the classical bound. Decades of effort along these lines did not remove the factor, and the paper removes it only by aggregating many classifiers. The error of a majority vote is not controlled by the errors of its voters one at a time. The proof controls the probability that two voters trained on overlapping subsamples err at the same point, which requires tracking which parts of the sample are independent of which trained classifiers through a recursion of depth . In a formal development the difficult parts are the conditional-independence bookkeeping for random subsamples of a product measure, the induction over the sample size with a data set that varies with the level, and the numerical constants, which are tight (the key comparison is ).
Formalization scope
- Representation. Labels are
Bool(truefor ); data sets are lists and is concatenation; is a set of measurable functions with ; the VC dimension is a supremum in , assumed equal to a natural number . The i.i.d. sample is the product measure on . "With probability at least " is stated as a bound on the outer measure of the failure event. takes values in , so the goal is stated as , which is equivalent. Ties in the majority vote go to , as printed. - Algorithms. quantifies over deterministic algorithms that output measurable classifiers, chosen before and and seeing only the labelled sample. The paper also admits randomized algorithms (footnote 2), which can only lower , so the goal implies the paper's statement.
- Measurability. The paper assumes that every event in its probability claims is measurable (p. 3). The formalization makes this explicit with two hypotheses: the class is well-behaved (the event of Lemma 4 and the double-sample event of Blumer et al. are null-measurable for every distribution), and the base learner is jointly measurable in the sample and the point. Both hold for every countable class of measurable classifiers, with returning the first consistent classifier of an enumeration. Without the first hypothesis Lemma 4 fails for some classes of VC dimension 1.
- Ruled out. The following formalizations would make the goal trivial or weaker, and are not used here:
- a sample complexity whose algorithm may depend on or , which gives ;
- a goal with an existential constant or a ceiling in place of and the floor;
- measurability hypotheses that no infinite class satisfies;
- milestones 7–8 stated for an arbitrary family of subsamples instead of the algorithm .
- Needed infrastructure. VC theory for consistent learners (Lemma 4, via the double-sample argument), multiplicative Chernoff bounds for binomial counts, and conditioning of product measures on coordinate blocks. These are reusable beyond this mission. Contributions welcome: a proof of Lemma 4, the Chernoff milestone, the numerical milestone 5, and the majority-vote averaging step, each of which is independent of the others.
Selected references
- S. Hanneke, The Optimal Sample Complexity of PAC Learning, Journal of Machine Learning Research 17(38):1–15, 2016. arXiv:1507.00473v4
- A. Blumer, A. Ehrenfeucht, D. Haussler, M. K. Warmuth, Learnability and the Vapnik–Chervonenkis dimension, Journal of the ACM 36(4):929–965, 1989. doi:10.1145/76359.76371
- A. Ehrenfeucht, D. Haussler, M. Kearns, L. Valiant, A general lower bound on the number of examples needed for learning, Information and Computation 82(3):247–261, 1989. doi:10.1016/0890-5401(89)90002-3
- H. U. Simon, An almost optimal PAC algorithm, Proceedings of the 28th Conference on Learning Theory (COLT), PMLR 40:1552–1563, 2015. proceedings.mlr.press/v40/Simon15a
- D. Haussler, N. Littlestone, M. K. Warmuth, Predicting {0,1}-functions on randomly drawn points, Information and Computation 115(2):248–292, 1994. doi:10.1006/inco.1994.1097
- P. Auer, R. Ortner, A new PAC bound for intersection-closed concept classes, Machine Learning 66(2–3):151–163, 2007. doi:10.1007/s10994-006-8638-3
- V. Vapnik, Estimation of Dependences Based on Empirical Data, Springer, 1982.