Abstract

A learner is shown labelled examples and must then label examples it has not seen. Learning theory asks what a finite training set can guarantee about the unseen ones. The classical statistical answer, built between 1971 and 1997, is a set of precise theorems: if the training examples are independent draws from the distribution on which the model will later be judged, and the learner chooses from a class of finite VC dimension, then training error tracks true error, with a sample size that grows with the VC dimension. Boosting extends this picture, and online mistake bounds drop the distributional assumption at the price of other conditions, namely honest labels and a correct rule in the class. The distribution-based guarantees assume independent sampling and that the test distribution is the training distribution, and an adversary who corrupts the sampling or shifts the test data can break either. Kearns and Li’s malicious-error model gives a worst-case limit on the corruption any learner can tolerate. Networks that fit random labels in some runs and generalise on real labels in others, and double descent, show that capacity-based explanations are incomplete.

The problem of induction made precise

A learner receives a training sample S of m labelled examples (x, y). Each x is a point in some domain X (an email, a binary, a network flow) and each y is a label (spam or not, malicious or not). The learner outputs a hypothesis h, a rule that assigns a label to any x. The task is to make h correct on points it has not seen.

Three quantities carry the whole theory.

  • The training error L_S(h) is the fraction of the m training examples that h labels wrongly. The learner can compute it.
  • The true error L_D(h) is the probability that h labels a fresh example wrongly, where fresh examples are drawn from a distribution D over labelled points. If D is known this is a calculation; from a finite sample it can only be estimated, and a learner does not know D.
  • The hypothesis class H is the set of rules the learner is allowed to output: all intervals on a line, all linear separators, all neural networks of a given architecture.

The standard formalisation, used in the textbook of Shalev-Shwartz and Ben-David, assumes that the training examples are drawn independently from D, so the sample is independent and identically distributed (i.i.d.).1 The same D then generates the examples on which the learner will be judged. The theory’s central quantity is the gap between L_S(h) and L_D(h), the generalisation gap. A rule that does well on the sample and badly on D has overfitted.

Two settings are distinguished. In the realizable case some hypothesis in H has true error zero, so the labels really are generated by a rule the learner could in principle find. In the agnostic case no such hypothesis is assumed, and the learner aims to be nearly as good as the best member of H. The sampled labels may then be noisy, and the guarantee concerns loss against the sampling distribution; it is the clean target risk only if the sampling is clean.1

Empirical risk minimisation and a finite class

The simplest learner is empirical risk minimisation (ERM): output a hypothesis in H with the lowest training error. For a finite class H in the realizable case, the textbook proves a bound that a reader can check by hand. Call a hypothesis bad if its true error exceeds ε. A given bad hypothesis is consistent with m independent examples with probability at most (1 − ε)^m, which is at most e^(−εm). A union bound over the at most |H| bad hypotheses shows that, with probability at least 1 − δ, ERM returns a hypothesis with error at most ε as soon as

m ≥ ln(|H|/δ) / ε.1

A worked example (Corollary 2.3 of the textbook). Let H contain 2^20 hypotheses, about a million, as in an abstract class whose rules are specified by distinct 20-bit strings (a 20-bit encoding gives at most that many distinct rules). Take ε = 0.05 and δ = 0.01. Then ln(2^20 / 0.01) = 13.86 + 4.61 = 18.47, and dividing by 0.05 gives 369.4, so 370 examples suffice. The sample size grows with the logarithm of the class size, so doubling the number of candidate rules costs about 14 extra examples at these settings (ln 2 / 0.05 = 13.9).

The agnostic version has a similar flavour. For a single hypothesis selected without looking at the sample on which it is evaluated, Hoeffding’s inequality gives, with probability at least 1 − δ,

L_D(h) ≤ L_S(h) + sqrt( ln(2/δ) / (2m) ).

The condition is that the predictor does not depend on the evaluation sample. Which was built first by the calendar is immaterial. A description language or prior chosen in advance supports a different, weighted bound (Section 7.3 of the textbook), not this one.1

No learner works for every distribution

Before any positive result, a negative one. The no-free-lunch theorem in the textbook states that for any learning algorithm for binary classification and any training size m smaller than half the size of the domain, there is a distribution D and a labelling rule f with L_D(f) = 0 such that, with probability at least 1/7 over the sample, the algorithm’s output has true error at least 1/8.1 The proof averages over all labelings of a set of 2m points to show that some fixed labelling, chosen before the sample is drawn, defeats the algorithm with that probability. The target cannot be picked separately after each realised sample, and the averaging is how the existence of a bad fixed target is established.

The textbook draws the moral that every learner must be tailored to a task through some prior knowledge, typically the choice of hypothesis class.1 Wolpert’s 1996 paper “The Lack of A Priori Distinctions Between Learning Algorithms” (Neural Computation 8(7), pages 1341 to 1390) is the standard citation for a related result about off-training-set (OTS) error. Its abstract says that, loosely speaking, for any two algorithms A and B there are “as many” targets (or priors over targets) for which A has lower expected OTS error than B as vice versa, for loss functions such as zero-one loss,; the paper’s subsection on uniform averaging weights this comparison by the associated probability of error, so it is a weighted off-training-set comparison, not a count of targets. The abstract also says that one cannot conclude that low empirical error, small VC dimension and a large training set imply, with high probability, small OTS error.2

Uniform convergence and VC dimension

A finite hypothesis class is the easy case. Neural networks, linear classifiers and decision trees are infinite classes, and the bound ln(|H|/δ)/ε is useless for them. Vapnik and Chervonenkis solved this in a 1971 paper in Theory of Probability and Its Applications, volume 16, pages 264 to 280.3

What the paper proves

Bernoulli’s law of large numbers says that the relative frequency of one event converges to its probability. The 1971 paper asks for the frequencies of all events in a class S to converge to their probabilities at once, uniformly over the class, from the same sample. The authors observe that “even in the simplest of examples” such uniform convergence need not hold, so criteria are needed for telling when it does.3 In learning terms, events correspond to the sets of points on which a hypothesis errs, and uniform convergence means that the training error of every hypothesis in H is close to its true error simultaneously. If that holds, ERM works, because the hypothesis with the best training error cannot have a much worse true error.

The paper’s tool is the growth function. For a sample of r points, count how many distinct subsets of the sample the events in S can pick out. The growth function m^S(r) is the maximum of this count over all samples of size r. It is at most 2^r, the number of subsets.

Theorem 1 of the paper states that the growth function is either identically 2^r or else is bounded by the power function r^n + 1, where n is the first sample size at which the count falls below 2^n.3 There is no middle ground: a class either picks out every subset of arbitrarily large samples, or its growth is polynomial. That n is what is now called the VC dimension, up to an off-by-one convention.

Theorem 2 is the quantitative bound. For a sample of size l with l at least 2/ε², the probability that the relative frequency of at least one event in the class differs from its probability by more than ε is at most

4 · m^S(2l) · e^(−ε² l / 8).3

The factor m^S(2l) counts the effective number of distinct events (the polynomial growth replaces the finite class size |H|) and the exponential factor is the cost of each. The corollary is that finite n suffices for convergence. The paper then derives a necessary and sufficient condition for uniform convergence for a given distribution, which depends on the distribution, in contrast to the distribution-free sufficient condition.3

Shattering and VC dimension

The modern definitions state the same idea in terms of hypotheses. A set C of points is shattered by H if H realises every possible labelling of C. The VC dimension of H is the size of the largest shattered set, or infinity if arbitrarily large sets are shattered. To show VCdim(H) = d one must exhibit one shattered set of size d and show that no set of size d + 1 is shattered.1

Worked examples, each checkable on paper.

  1. Thresholds on a line, h_a(x) = 1 if x < a. One point is shattered (put the threshold on either side of it). Two points c1 < c2 are not: the labelling (c1 = 0, c2 = 1) would need a threshold to the left of c1 and to the right of c2 at once. VC dimension 1.1
  2. Intervals on a line, h_{a,b}(x) = 1 if a ≤ x ≤ b. Any two points are shattered: all four labellings are achievable by choosing the interval to cover none, one or both. Three points c1 < c2 < c3 are not: the labelling (1, 0, 1) would need an interval that contains c1 and c3 but not c2. VC dimension 2, as the textbook states.1
  3. Half-planes in the plane (a line and a side of it). Three points in general position are shattered, since a line can separate any subset of a triangle’s corners from the rest. Four points are not. The set of points labelled 1 by a half-plane is convex, so if three of the four are collinear, labelling the middle one 0 and the outer two 1 is impossible; the same argument excludes a point lying inside the triangle of the other three. If no three are collinear and the four form a convex quadrilateral, labelling one diagonal pair 1 and the other 0 is impossible, because the two diagonals cross (the XOR pattern). VC dimension 3.
  4. Half-spaces in d dimensions. The textbook states that the VC dimension of halfspaces with an offset is d + 1 and proves it in Section 9.1.3; example 3 is the case d = 2.1 Homogeneous halfspaces, whose boundary passes through the origin, have VC dimension d (Theorem 9.2).1

Note what the VC dimension is not. It does not count parameters and it does not count the cardinality of the class. Thresholds on the real line form an infinite class with VC dimension 1 (Section 6.3.1). In the realizable case they are learnable from a sample whose size depends only on ε and δ. The textbook’s argument (Lemma 6.1) is easiest to follow for an atomless marginal, with i.i.d. examples labelled by a true threshold a. Choose a0 < a < a1 so that each side interval has probability mass ε (if a side has total mass at most ε, it needs no sample point). An ERM threshold lies between the largest positive and smallest negative sample points, so it errs on at most one side of a*, and its error is at most ε whenever the sample has a point in each side interval. Each side interval is missed with probability (1 − ε)^m ≤ e^(−εm), so the failure probability is at most 2e^(−εm), which is at most δ when m ≥ ln(2/δ)/ε. The textbook states the bound for the general case.1 With ε = 0.05 and δ = 0.01 that is 106 examples.

Sauer’s lemma

How fast does the growth function actually grow when the VC dimension is a finite d? The Sauer–Shelah–Perles lemma says that for every m, the growth function of a class with VC dimension at most d satisfies τ_H(m) ≤ Σ_{i=0..d} C(m, i), and for m > d + 1 this is at most (em/d)^d.1 It was proved independently by Sauer (in response to a question of Erdős) and by Shelah, with Perles.1

The shape of the bound

Combining Sauer’s lemma with the symmetrisation argument gives the quantitative theorem, stated in the textbook as the fundamental theorem of statistical learning. For a class of VC dimension d < ∞ with the 0–1 loss, the sample size needed for uniform convergence, and for agnostic PAC learning, is of order (d + ln(1/δ)) / ε², with absolute constants on the upper and lower bounds.1 For realizable PAC learning the textbook’s upper bound for ERM is (d log(1/ε) + log(1/δ)) / ε, which is a sufficient sample size for ERM. Hanneke (2016) removed the logarithmic factor and showed that (d + log(1/δ)) / ε is the optimal order for general realizable PAC learning, achieved by a majority vote of classifiers trained on overlapping subsets of the data, not by ERM.4

The textbook states the equivalences: for binary classification with 0–1 loss, uniform convergence, PAC learnability, agnostic PAC learnability and success of every ERM rule are all equivalent to finite VC dimension.1 This theorem, which assembles the work of Vapnik and Chervonenkis and of Blumer, Ehrenfeucht, Haussler and Warmuth, is the sense in which the VC dimension “characterises” learnability.1

Blumer et al. give a concrete realizable-case sample size of m = max( (4/ε) log2(2/δ), (8d/ε) log2(13/ε) ) for ERM, under the measurability conditions of the paper.5 For half-planes (d = 3), ε = 0.05 and δ = 0.01, the first term is 80 × 7.64 = 611.5 and the second is 480 × 8.02 = 3,850.7, so 3,851 examples suffice. For intervals (d = 2), ε = 0.1, δ = 0.05, the terms are 212.9 and 1,123.6, so 1,124 examples suffice. The 1971 bound gives larger numbers: with intervals, whose growth function at 2l points is 1 + l(2l + 1), ε = 0.1, and l = 20,000, the bound 4 · m(2l) · e^(−ε² l/8) evaluates to about 0.0444. So 20,000 examples suffice for the stated deviation of 0.1 with probability at least 95.6%. An upper bound does not show that fewer examples are insufficient. (The 1971 bound covers deviation in either direction for every event simultaneously, a stronger statement than the realizable one.) The theorems are about scaling, and the constants are loose.

PAC learning

Valiant’s “A Theory of the Learnable” appeared in Communications of the ACM 27(11), pages 1134 to 1142, in November 1984.6

The definition

Valiant frames learning as the acquisition of a program without explicit programming, and asks which classes can be learned from a chosen information-gathering protocol in a polynomial (“feasible”) number of steps.6 A class of programs is learnable if there is a deduction algorithm that runs in time polynomial in a single adjustable parameter h, in the parameters that quantify the size of the program to be learned, and in the number of variables. For every program in the class and every distribution D over the examples, the output must meet two conditions: the failure probability is at most 1/h, and the program output never outputs one when it should not (no false positives) while missing at most a 1/h fraction of the probability mass of positive examples.6 The one parameter h therefore plays the role that two parameters play later. The distribution is arbitrary: the paper says there are “no other assumed restrictions” on D beyond its being a distribution over the positive examples.6

Later formulations separate the two roles into an accuracy ε and a confidence δ. A class is probably approximately correct (PAC) learnable if there is an algorithm such that for every ε and δ in (0, 1), every distribution D and every target rule in the class, given a sufficiently large i.i.d. sample from D labelled by the target, the algorithm returns with probability at least 1 − δ a hypothesis with true error at most ε.1 The “probably” is the confidence, and the “approximately” is the accuracy; the textbook explains that both are unavoidable because a random sample may be uninformative.1 Efficient PAC learning adds that the sample size and the running time are polynomial in 1/ε, 1/δ and the size of the problem.

Valiant showed that learning is possible for three classes of Boolean expressions. Conjunctive normal form expressions with a bounded number of literals per clause (k-CNF) are learned from positive examples alone, with no oracle calls. Monotone disjunctive normal form expressions are learned using both the examples and the paper’s ORACLE, which answers questions about partial assignments. Read-once expressions, in which each variable occurs just once, are learned with stronger oracles and without positive examples.6 He also read his own results with caution: they “can be negatively interpreted to suggest that the class of learnable concepts even within the propositional calculus is severely circumscribed.”6

Sample complexity and the VC dimension

PAC learning has two resources, samples and computation, and the first is settled by the VC dimension. Blumer, Ehrenfeucht, Haussler and Warmuth (Journal of the ACM 36(4), pages 929 to 965, October 1989) extended Valiant’s model to concept classes defined by regions of Euclidean space. Their abstract states that “the essential condition for distribution-free learnability is finiteness of the Vapnik-Chervonenkis dimension.”5 The textbook’s bibliographic remarks credit the definition of VC dimension and its relation to uniform convergence to Vapnik and Chervonenkis (1971), and the link to PAC learnability to Blumer et al. (1989).1 The sample bound quoted above, with its d/ε · log(1/ε) term, is theirs, and a lower bound of order d/ε matches the upper bound up to the log factor.5

A class with infinite VC dimension is not PAC learnable: for any training size m, there is a shattered set of size 2m, and the no-free-lunch argument applies on it.1 Finite VC dimension is therefore necessary and sufficient for sample-efficient distribution-free learning of binary classes. It does not supply an efficient learning algorithm.

Computation: when finding a consistent hypothesis is hard

Finite VC dimension tells you that a good hypothesis exists in the data; it does not tell you how to find one in polynomial time. Blumer et al. prove that a class is properly polynomial-time learnable if and only if there is a randomised polynomial-time algorithm that finds a hypothesis consistent with a sample (with some success probability) and the VC dimension of the class grows only polynomially with problem size.5 They note the consequence that if the problem of finding a consistent hypothesis in a class is NP-hard, then, unless RP = NP, the class is not properly polynomial-time learnable.5

Learnability can also fail because of cryptography, and this tie matters for security readers. Valiant’s paper, in its discussion of the limits, notes “circumstantial evidence from cryptography” that the whole class of functions computable by polynomial-size circuits is not learnable. His argument takes a cryptographic scheme that is immune to chosen-plaintext attack in a specific sense: even if the values of the encryption function are known for polynomially many dynamically chosen inputs, it is computationally infeasible to deduce an algorithm for the function or for an approximation to it. That is, he says, equivalent to the function not being learnable, and so “The conjectured existence of good cryptographic functions that are easy to compute therefore implies that some easy-to-compute functions are not learnable.”6 The conditional is stated within his model and for that notion of security; standard encryption security definitions and learnability are different properties, and the argument is not a statement about every secure scheme. The textbook gives a related construction: from a family of trapdoor one-way functions it builds a hypothesis class (the inverses) with small sample complexity that is not efficiently learnable under the assumption that such functions exist. It also reports that, under a cryptographic assumption, learning intersections of halfspaces, with the number of halfspaces growing with the dimension, is hard even when the learner may output any efficiently evaluable hypothesis (credited to Klivans and Sherstov, 2006, under a lattice-based assumption).1 These hardness results are conditional on the stated assumptions.

The standing of one-way functions and the other hardness assumptions behind these results is the subject of What fell and what stands: P vs NP and its neighbours after the autumn 2026 complexity results.

Boosting

The question

Kearns and Valiant posed the question in 1988: if a learner can only do slightly better than random guessing on every distribution (a weak learner), can its output be combined into an arbitrarily accurate (strong) learner? Schapire’s survey states that Kearns and Valiant were the first to pose it and that Schapire gave the first provable polynomial-time boosting algorithm in 1989, the initial result.7 The journal paper followed in 1990, and the textbook dates the solution to that year: the question “was raised by Kearns and Valiant in 1988 and solved in 1990 by Robert Schapire, then a graduate student at MIT.”1

Schapire 1990

“The strength of weak learnability” appeared in Machine Learning 5(2), pages 197 to 227, in June 1990. Its abstract states that a concept class is learnable (strongly learnable) if the learner can output, with high probability, a hypothesis that is correct on all but an arbitrarily small fraction of the instances, and weakly learnable if it can produce a hypothesis that performs only slightly better than random guessing. “In this paper, it is shown that these two notions of learnability are equivalent,” with a construction that converts a weak learning algorithm into one that achieves arbitrarily high accuracy.8

Schapire’s own later survey says that a year after his 1989 result Freund developed a much more efficient boosting algorithm which, “although optimal in a certain sense, nevertheless suffered from certain practical drawbacks.”7

AdaBoost and its training-error bound

Freund and Schapire’s “A decision-theoretic generalization of on-line learning and an application to boosting” appeared in the Journal of Computer and System Sciences 55(1), pages 119 to 139, in 1997.9 Its AdaBoost algorithm (the name is short for adaptive boosting) maintains a distribution over the training examples, starting uniform. In each round it asks the weak learner for a hypothesis h_t that is good on that distribution, computes its weighted error ε_t, gives it the weight α_t = ½ ln((1 − ε_t)/ε_t), and then increases the weight of the examples that h_t got wrong. The final hypothesis is a weighted majority vote of the weak hypotheses.1 The specific advance over earlier boosting algorithms is that the weak learner’s advantage need not be supplied in advance: Schapire’s overview says earlier algorithms required a lower bound on the weak learners’ edge to be known beforehand, and that the name “Ada” refers to adapting to the individual error rates.7

The training-error bound is short. Suppose that in every round the weighted error of the weak hypothesis under the current distribution is at most ½ − γ, an edge of γ over guessing. Then after T rounds the training error of the combined hypothesis is at most exp(−2γ²T).1 Freund and Schapire’s Theorem 6 gives the general bound in terms of the individual round errors.9 Schapire’s overview notes that the bound makes the training error drop exponentially fast and, combined with the generalisation bounds, shows that AdaBoost is a boosting algorithm in the Kearns–Valiant sense.7

A worked example. Take 1,000 training examples and weak hypotheses whose weighted error is at most 0.4 in every round, an edge of γ = 0.1. The upper bound is below 1/1,000, which for 1,000 examples means zero training errors, once exp(−0.02 T) < 0.001, that is T > ln(1,000)/0.02 = 345.4. After 346 rounds the bound therefore guarantees a perfect fit to the training set. The cost of a smaller edge is quadratic: halving γ to 0.05 multiplies the required number of rounds by four.

Margins, and why the explanation is contested

The training-error bound says nothing about the test error. A VC upper bound for a combination of T weak hypotheses worsens as T grows, which permits overfitting as boosting continues but does not predict that test error increases. Empirically, as Schapire’s chapter “Explaining AdaBoost” reports, AdaBoost’s test error often keeps falling after the training error reaches zero; “such resistance to overfitting is typical of boosting, although ... boosting certainly can overfit.”10 The margins explanation of Schapire and coauthors proposes a way out. The margin of a training example is the weighted fraction of votes for the correct label minus the weighted fraction for the wrong one, so it measures confidence. While the training error stays at zero, the distribution of margins continues to change. In the example Schapire reports, after five rounds the training error is zero but 7.7% of examples have margin below 0.5, and by round 100 none does. The chapter says the increase in margins appears to correlate with better test performance; it does not give a monotonicity guarantee for individual examples, and the example is not a causal test of the explanation.10 Generalisation bounds in terms of the margin distribution are the theoretical content of the explanation, and they still depend on the complexity of the base class of weak hypotheses.10

The same chapter reports a complication. Breiman’s arc-gv algorithm maximised the smallest margin and produced larger margins, but its test performance was slightly worse. Reyzin and Schapire suggested that more aggressive margin maximisation produces more complex weak hypotheses and that, in some cases, a higher minimum margin comes with a worse overall margin distribution.10 The margins story is therefore a partial explanation that the field still discusses, and Belkin and coauthors note in 2019 that margin theory applies to classification but “does not apply to regression, and also does not predict the second descent beyond the interpolation threshold.”11

Online learning and mistake bounds

A model with no distribution

In PAC learning, the adversary is nature: it picks D, once, and then the sample is drawn at random. In online learning the adversary is an opponent. Learning proceeds in rounds: the environment presents x_t, the learner predicts a label, the environment reveals the true label, and the learner updates. The performance measure is the total number of mistakes over the whole sequence, with no assumption that the sequence is random. The textbook formalises this: a class H is online learnable if some algorithm has a finite mistake bound M_A(H), the supremum of its mistakes over all sequences labelled by a member of H.1

Littlestone’s “Learning Quickly When Irrelevant Attributes Abound: A New Linear-Threshold Algorithm” appeared in Machine Learning 2(4), pages 285 to 318, in April 1988. Its abstract describes “incremental learning” in which “the learner responds to each example according to a current hypothesis” and then updates, with the number of mistakes as the quality measure. It presents an algorithm for learning disjunctions whose mistake count “grows only logarithmically with the number of irrelevant attributes in the examples” while remaining computationally efficient in time and space.12

The halving algorithm and a worked bound

The simplest online learner assumes a finite class H containing the true rule (the realizable case). The Halving algorithm keeps the set of hypotheses consistent with every example so far (the version space) and predicts the majority vote of that set. Every time it makes a mistake, at least half the version space is eliminated, because the majority was wrong. Since the version space never becomes empty and starts with |H| members, the number of mistakes is at most log2|H|.1 With the 2^20 hypotheses of the earlier example, Halving makes at most 20 mistakes, however long the sequence is and however an adversary orders it. Compare the Consistent algorithm, which picks any hypothesis consistent so far and can be forced to make |H| − 1 mistakes.1 In the online setting, the choice of which consistent hypothesis to use matters, while in PAC any ERM hypothesis will do.

The Littlestone dimension

For infinite classes, mistake bounds need a replacement for the VC dimension. The textbook presents Littlestone’s dimension through a game: the environment builds a complete binary tree of instances, where each node is an instance and the two branches are the two possible labels, and the class shatters the tree if for every path from the root there is a hypothesis in the class that agrees with all labels on the path. Ldim(H) is the depth of the deepest shattered tree. The Standard Optimal Algorithm makes at most Ldim(H) mistakes on any realizable sequence, and no deterministic algorithm can guarantee fewer, so Ldim(H) is the optimal worst-case deterministic mistake bound; online learnability in this model is characterised by finite Ldim.1

Weighted majority and the bridge to boosting

The Weighted-Majority algorithm, due to Littlestone and Warmuth (1994) and to Vovk (1990), handles prediction with expert advice when no expert need be perfect. In the textbook’s full-information version there are d experts. In each round the learner picks a distribution over them, then receives a cost vector with entries in [0, 1], and each expert’s weight is multiplied by e^(−η·cost). With the horizon T known in advance, T > 2 ln d and η = sqrt(2 ln(d)/T), Theorem 21.11 bounds the learner’s expected total cost above that of the best single expert by sqrt(2 ln(d) T).1 The result is a comparative regret bound on the costs actually observed. It makes no assumption that costs are random or that any expert is correct. It is a bound on expected cost, and this article does not claim it for an adversary who sets the costs after seeing the learner’s sampled choice.

AdaBoost uses the same kind of multiplicative update, with the weights placed on the training examples instead of the experts. The Freund and Schapire paper is titled for this connection: “on-line learning” joined to “an application to boosting”.9 Their later overview says that boosting is “closely related to linear programming and online learning” through a game-theoretic view.13

What the adversary can and cannot do

The mistake-bound model has an exact operational requirement: the true label is revealed after every prediction, and some rule in the class labels every example correctly. Under those conditions a deterministic algorithm can guarantee at most Ldim(H) mistakes on any sequence an adversary chooses, with no assumption about where the inputs come from.

The limits are as exact. The guarantee depends on realizability and on honest labels. If an adversary can both choose the inputs and lie about the labels, a class with a mistake bound has no protection, because the bound counts mistakes relative to the labels the environment reveals. Weighted-majority-style algorithms drop realizability and bound the regret against the best expert instead, which tolerates some label noise, but a regret bound against a poor set of experts is a weak guarantee. A finite mistake budget gives no round by which all the mistakes have occurred, and it cannot certify labels that are latent or never revealed. As an example with delayed feedback, a detector that learns from incidents it failed to catch receives the label only after the incident is found, which is outside the immediate-feedback model.

The modern puzzle: networks that fit random labels

What Zhang et al. found

The VC lower bound is worst-case and distribution-free: it says a class that can realise any labelling of a sample cannot be guaranteed to generalise across all distributions from that many examples. Zhang, Bengio, Hardt, Recht and Vinyals posted “Understanding deep learning requires rethinking generalization” to arXiv on 10 November 2016. They report that state-of-the-art convolutional networks trained with stochastic gradient methods “easily fit a random labeling of the training data,” that this is “qualitatively unaffected by explicit regularization,” and that it occurs even when real images are replaced by completely unstructured random noise.14 They tested Inception-style networks, AlexNet and multilayer perceptrons on CIFAR-10 and Inception V3 on ImageNet. On CIFAR-10, Table 1 reports 100% training accuracy on random labels for the Inception configurations and the deeper multilayer perceptron, 99.82% for AlexNet and 99.34% for the one-hidden-layer perceptron; Section 3 reports that AlexNet with weight decay failed to converge on random labels. In the Figure 1 runs with partially corrupted labels the networks fit the corrupted training set at each corruption level tested, and as the corruption approached complete random labelling the test error approached 90%, near the chance level for ten classes. On ImageNet the paper reports a random-label top-1 training accuracy of 95.20% (Table 2), short of a perfect fit, and about 90% with explicit regularisers turned on.14 They add a construction: a two-layer ReLU network with 2n + d parameters can express any labelling of any sample of n distinct points in d dimensions. The distinctness is needed, because repeated inputs cannot receive conflicting labels.14

The consequence for the theory is as follows. When both training and test labels are independent and uniform, test error is exactly at chance; the empirical runs were near chance. Training error there is zero or near zero, so a bound that depends only on the class, the training error and the sample size cannot certify low test error. The same bound would apply to the real-label run, which is why such bounds do not explain it. A small two-sided generalisation gap is also different from having low error: chance accuracy with a zero training error is a large gap. Zhang et al. state that these observations rule out VC dimension, Rademacher complexity and uniform stability, as commonly applied, as explanations of why networks generalise on real labels.14 The networks nevertheless do generalise on real data. The data and the training procedure, therefore, carry the information that the class alone does not.

Double descent

Belkin, Hsu, Ma and Mandal posted “Reconciling modern machine learning practice and the bias-variance trade-off” on 28 December 2018. The classical picture says test error is U-shaped in model capacity: too little capacity underfits and too much overfits. They argue that this is the left part of a larger curve. When capacity grows past the interpolation threshold, where the model first fits the training data exactly, test error rises to a peak and then falls again, typically going below the risk achieved at the best point of the classical regime; they call this curve double descent.11 They show the curve for random Fourier features on MNIST, with the threshold at N = n features for n = 10^4 training points, and for a fully connected network on MNIST with n = 4·10^3, where the threshold is observed at n·K parameters for K classes (an observation about that experiment, not a general law). They report similar behaviour for boosted trees and random forests.11

Their proposed mechanism is norm-based. Beyond the threshold, many interpolating predictors exist and training selects among them; larger classes contain interpolators of smaller norm, and the smallest-norm interpolator is a form of Occam’s razor, the smoothest function that fits the data. This is a proposal for the settings and norms they studied, not a general result.11 The argument is empirical and supported by theory in specific models.11

What explanations are on offer

No single explanation has won. The cited sources support the following account.

  • Implicit regularisation. Zhang et al. discuss that the optimiser, stochastic gradient descent, may act as an implicit regulariser, and note that for linear models it reaches a small-norm solution, under the data and optimisation conditions given in their Section 5.14 Belkin et al. suggest that common training algorithms may have a small-norm inductive bias compatible with double descent.11
  • Margin and norm-based bounds. Margin-based bounds replace the raw parameter count by margin quantities, but the margin bound for boosting still depends on the complexity of the base class,10 and Belkin et al.’s norm mechanism is a proposed explanation, not a generalisation bound free of parameter dependence.11
  • Benign overfitting. Bartlett, Long, Lugosi and Tsigler (arXiv, 26 June 2019) characterise, for linear regression, when the minimum-norm interpolating prediction rule has near-optimal prediction accuracy. Their result is in terms of two notions of effective rank of the data covariance, and requires that the number of directions in parameter space unimportant for prediction significantly exceeds the sample size.15 It is a statement about linear regression only.
  • Doubts about uniform convergence itself. Nagarajan and Kolter (arXiv, 13 February 2019) report that existing uniform-convergence bounds for deep networks can increase with the size of the training set. They give examples of overparameterised linear classifiers and networks trained by gradient descent where two-sided uniform convergence provably yields only a vacuous guarantee, even restricted to the classifiers gradient descent actually outputs.16 The impossibility is for two-sided uniform convergence in those examples.
  • PAC-Bayes. Dziugaite and Roy optimised a PAC-Bayes bound directly and obtained nonvacuous generalisation bounds for deep stochastic neural network classifiers with millions of parameters trained on tens of thousands of examples.17 The classifiers in those bounds are stochastic, so the result does not directly cover a single deterministic network.

The disagreement is real. Zhang et al. argue that capacity-based explanations as commonly applied do not suffice. Nagarajan and Kolter show that two-sided uniform convergence can be vacuous in their examples. Dziugaite and Roy show that nonvacuous bounds exist for stochastic deep classifiers. Belkin et al. keep classical ideas (norm, Occam) but change the object they are applied to, and they do not establish vacuity of architecture-wide bounds. Bartlett et al. prove a classical-style statement in a special case. Whether a bound applies to a deterministic network on real data at scale is not settled by these sources. For the relation of this puzzle to model size, data and compute in practice, see Scaling laws and compute: a reader on why bigger kept working, and what it costs, which covers double descent and the empirical scaling curves.

Security: where the assumptions fail

The distribution-based results above (VC bounds, PAC learning, the generalisation analysis of boosting, held-out estimates) have the form “if the examples are independent draws from a distribution D, and the learner is evaluated on D, then ...”. The first condition is a statement about the data source. The second is a statement about the future. Online mistake bounds drop the distributional assumption but assume honest, immediate labels and a correct rule in the class, and the malicious-error model below allows corrupted training examples explicitly. A security setting contains someone who wants to break these conditions.

Poisoned training data: the malicious-error model

Kearns and Li’s “Learning in the Presence of Malicious Errors” (SIAM Journal on Computing 22(4), pages 807 to 837, August 1993, with a preliminary version at the 1988 ACM Symposium on the Theory of Computing) extends the PAC model so that the examples are generated partly by an adversary with unbounded computational power and access to the entire history of the learning algorithm’s computation. The abstract calls it “a worst-case model of errors.”18 The learner has two oracles, POS_MAL and NEG_MAL, for positive and negative examples, with separate clean class-conditional distributions D+ and D−. With probability 1 − β a call returns a point drawn from the true distribution, but “with probability β, a point x ... about which absolutely no assumptions can be made is returned”, possibly “dynamically and maliciously chosen by an adversary who has knowledge of” the target, the distributions and the internal state of the learner. The learner must output a hypothesis whose error on each class-conditional distribution is below ε.18 The paper remarks that the assumptions about the adversary can be removed, giving a stronger fixed-fraction model in which the adversary may modify any fixed fraction of the sample; that is a separate model from the per-call corruption probability, and the realised number of corrupted examples in a sample is random in the first.18

Kearns and Li credit Valiant with initiating the study of learning with such errors, in a setting where an error of arbitrary nature occurs with a fixed probability on each request for an example. Their own paper studies the optimal malicious error rate E_MAL(C), the largest β tolerated by any learning algorithm for a class C, whatever its running time.18

Theorem 1 is the central limit. For any “distinct” representation class (one containing two targets and four points that realise the four combinations of positive and negative labels the paper lists), the tolerable malicious error rate must satisfy β < ε/(1 + ε), where ε is the accuracy required of each class-conditional error. It is a worst-case necessary condition, and the paper notes that all the classes it studies are distinct.18 The proof is the method of induced distributions. The adversary is designed so that when either of two different targets c1 and c2 is the truth, the oracles behave identically, so the learner cannot tell which target it faces. No single hypothesis can meet the error criteria in both indistinguishable worlds, even if the hypothesis lies outside the target class.18 The authors give the intuition: “if we desire 90 percent accuracy from the hypothesis, there must be less than about 10 percent error.”18

Put numbers on it, in the model’s terms. For accuracy ε = 0.1 on each class-conditional distribution the exact cutoff is β = 0.1/1.1 = 1/11, approximately 9.09%: if the corruption probability on each oracle call is at least that, no algorithm, however much data or computation it has, can guarantee error below 0.1 on both classes against a worst-case adversary on a distinct class. For ε = 0.01 the cutoff is 0.01/1.01, approximately 0.99%; at or above it, error below 0.01 on each class cannot be guaranteed. As an illustration, 1% of 10,000 examples is 100 corrupted points, but the model fixes a corruption probability per call, not an exact count. At or above the cutoff, in the per-call model, the impossibility holds whatever the sample size.

Positive results are of the same order as the limit. Theorem 7 shows that a β-tolerant Occam algorithm, one whose hypothesis disagrees with at most an ε/2 fraction of each of the positive and negative samples, is ε-good with high probability when β < ε/4. So for finite classes an exhaustive search tolerates a rate within a constant factor of the optimal one. Kearns and Li also give polynomial-time algorithms for specific classes and note that for some classes, monomials for example, the polynomial-time algorithms tolerate only a rate that shrinks with the number of variables n, leaving a gap to the absolute bound.18 The malicious model differs from random classification noise. Angluin and Laird’s classification-noise model flips the labels of ordinary sampled examples independently with a fixed probability below 1/2, whereas Kearns and Li’s oracles return class-conditional examples that an adversary may replace.19 Kearns and Li report that for the class of k-DNF expressions a polynomial-time algorithm tolerates a classification-noise rate that is a constant below 1/2, independent of ε, whereas in the malicious model the rate must be below ε.18 A defender who has measured only random label noise in their data has measured something different.

Practitioners now study this problem under the name data poisoning. Biggio, Nelson and Laskov (arXiv, 27 June 2012) describe poisoning attacks against support vector machines that inject specially crafted training points to raise test error, and say the motivation is that “most learning algorithms assume that their training data comes from a natural or well-behaved distribution” and that this “does not generally hold in security-sensitive settings.”20 Gu, Dolan-Gavitt and Garg (arXiv, 22 August 2017) show that an outsourced or downloaded model can be backdoored so that it has state-of-the-art performance on the user’s training and validation samples yet “behaves badly on specific attacker-chosen inputs”, for example a street-sign classifier that reads a stop sign with a sticker as a speed limit.21 The validation samples did not trigger the backdoor, so clean held-out accuracy was high. This shows that ordinary validation can miss trigger-conditioned failures; the paper does not claim that the validation distribution gives triggered inputs zero probability. The outsourced-training setup is also outside the particular oracle model of Kearns and Li. For the catalogue of documented attacks on deployed ML systems, including poisoning incidents, see MITRE ATLAS: what the AI attack matrix knows, and how it knows it.

Test-time evasion and the identical-distribution assumption

Adversarial examples violate the identical-distribution assumption in one interpretation. Szegedy et al. (arXiv, 21 December 2013) report that one can “cause the network to misclassify an image by applying a certain imperceptible perturbation, which is found by maximizing the network’s prediction error.”22 Goodfellow, Shlens and Szegedy (arXiv, 20 December 2014) describe adversarial examples as inputs formed by small but intentionally worst-case perturbations of dataset examples that cause the model to give an incorrect answer with high confidence, and note that they generalise across architectures and training sets.23 That transferability is a reason to distinguish white-box threat models, in which the attacker knows the model, from limited-access ones.

In learning-theory terms, one reading is that the attacker is sampling from a distribution D’ that is not D, chosen by looking at the trained model h. The i.i.d. guarantee says nothing about D’. The error under D can be small while the error on such a shifted distribution is large, which adversarial examples illustrate. A second formalisation keeps the clean base inputs drawn from D and defines robust error by allowing a perturbation of each example. Schmidt, Santurkar, Tsipras, Talwar and Madry (arXiv, 30 April 2018) analyse robust learning in that way as a generalisation problem and show that, in a simple natural data model, the sample complexity of robust learning can be significantly larger than that of standard learning, an information-theoretic gap “irrespective of the training algorithm or the model family”, with experiments on image datasets suggesting a similar gap there.24 A model can be accurate by the standard guarantee and still need much more data to be robust.

Distribution shift without an adversary

Departures from the training distribution do not require an attacker. Recht, Roelofs, Schmidt and Shankar (arXiv, 1 June 2018) built a new CIFAR-10 test set ensuring it was “as close to the original data distribution as possible”. The preprint’s abstract reports accuracy drops of 4% to 10% (percentage points) for a broad range of models; its discussion of the whole model set gives drops of up to 15 points, and the authors’ expanded ICML 2019 paper reports 3% to 15% on CIFAR-10.2526 Because models that were better on the original set showed smaller drops, they concluded in the preprint that the drop is likely not due to overfitting from adaptivity, and instead is evidence that accuracy numbers are “brittle and susceptible to even minute natural variations in the data distribution.”25 The result establishes nothing about how much damage an adversary could do. Fresh-test-set checks for language-model benchmarks are covered in Evaluating AI systems: what benchmarks measure and how they fail, and the arrangements around held-out problem sets in Measuring research mathematics: FrontierMath, First Proof and what each score actually answers.

Reading an ML security product’s accuracy claim

Items 1, 2 and 7 are calculations from the cited bounds; the others are recommendations drawn from the cited results.

  1. Was the predictor chosen without looking at the test data? The Hoeffding bound L_D(h) ≤ L_S(h) + sqrt(ln(2/δ)/(2m)) applies to a predictor selected without inspecting the evaluation sample, whose observations meet the sampling assumptions.1 For m = 1,000 test examples and δ = 0.05, the half-width is sqrt(3.689/2,000) = 0.043, so a measured error of 1% is compatible with a true error of up to about 5.3% (the bound is loose for small error rates, but it is the one the textbook gives). With m = 10,000 the half-width is 0.0136.
  2. How many candidates were compared, and were they fixed in advance? For a fixed list of k candidate predictors chosen independently of the test data, even when the winner is picked on that set, replacing δ by δ/k covers all k by a union bound. For k = 50 and m = 1,000 the half-width rises from 0.043 to sqrt(ln(2 × 50/0.05)/2,000) = 0.062. This does not cover candidates created adaptively after looking at test results; Dwork et al. study such adaptive reuse of a holdout.27
  3. What population does the test split target? A random split of one collection supports the independence assumption only if the rows are independent, which duplicates, groups and temporal dependence can violate. A time split targets the future population and a group split targets unseen groups; state which, and which observations can be treated as independent. Recht et al. show that even a deliberately matched new test set can cost several points of accuracy, in the range of 3 to 15 points across their reported studies.2526
  4. Could the training data have been influenced by the party you are defending against? In the Kearns–Li model, for a distinct class, the tolerable corruption probability per oracle call is below ε/(1 + ε) when error below ε is demanded of each class-conditional distribution, as a worst-case necessary condition.18 A training pipeline that ingests attacker-submittable data (user reports, public repositories, honeypot traffic, crowd-sourced labels) may therefore be pushed past what any learner can tolerate in that model. A vendor’s measured 99% aggregate accuracy says nothing about the fraction of corruption its pipeline tolerates. Ask what fraction of the training data an outsider can influence, and what is done about it.
  5. Does the evaluation include an adaptive attacker, and with what access? A test set drawn from the old distribution estimates performance against the old distribution. Performance under adversarial perturbation or poisoning requires an evaluation with an explicit attacker model; the assumptions differ by study. Szegedy et al. use access to the trained model to generate adversarial inputs and study transfer to other models.22 Biggio et al. assume knowledge of the learning algorithm and the training data in their poisoning analysis.20 Transfer results such as Goodfellow et al.’s bear on limited-access threat models.23 Schmidt et al. show that robust accuracy can need much more data than standard accuracy, so a claim of high robust accuracy from a modest dataset deserves scrutiny.24
  6. What is the sample, in independent observations, not in rows? The count m in the bound is the number of independent examples. Many rows from the same incident, user or malware family are dependent, and correlation does not supply a generally valid plug-in effective sample size. Ask how the split was made: by row, by user, by family or by time, and what the independent unit is.
  7. What does zero errors tell you? For a fixed classifier and independent Bernoulli trials, with no errors on m test examples, the one-sided exact binomial 95% upper confidence limit on the error rate p is the p at which (1 − p)^m = 0.05.28 For m = 1,000 that is p = 1 − 0.05^(1/1000) = 0.0030, about 3/m. When the claim is about misses, the denominator is the number of malware-positive examples: with 300 positives the limit is about 0.994%, and with 500 it is about 0.597%.
  8. Is the model class rich enough to fit noise? For a class that can memorise, high training accuracy alone cannot certify low population risk, as the random-label experiments show.14 Held-out accuracy is one way to estimate risk, subject to items 1 to 3.

A held-out test set gives an estimate of error for a predictor chosen independently of it, under the sampling assumptions, and distribution-free guarantees do not quantify every possible departure from the model.

Annotated reference list

  1. Vapnik and Chervonenkis, Theory of Probability and Its Applications 16(2), 264 to 280, 1971 (trans. B. Seckler). Theorem 1: the growth function is 2^r or at most r^n + 1. Theorem 2: P(deviation > ε) ≤ 4·m(2l)·e^(−ε²l/8) for l ≥ 2/ε². Theorem 4 gives a distribution-dependent necessary and sufficient condition. The constants are loose; the Sauer–Shelah–Perles lemma and symmetrisation tighten the treatment. https://courses.grainger.illinois.edu/ece544na/fa2014/vapnik71.pdf (opens in a new tab).3
  2. Valiant, “A theory of the learnable”, Communications of the ACM 27(11), 1134 to 1142, November 1984. Defines learnability with a single parameter h (failure probability and missed positive mass at most 1/h, no false positives); learns k-CNF from positive examples, monotone DNF with examples and an oracle, read-once expressions with stronger oracles; argues from cryptography that some easy functions are not learnable. Later work separated the parameter into ε and δ and added the agnostic setting. https://web.mit.edu/6.435/www/Valiant84.pdf (opens in a new tab).6
  3. Blumer, Ehrenfeucht, Haussler and Warmuth, Journal of the ACM 36(4), 929 to 965, October 1989 (DOI 10.1145/76359.76371). Finite VC dimension is the essential condition for distribution-free learnability, with sample size max((4/ε)log2(2/δ), (8d/ε)log2(13/ε)); Theorem 3.1.1 characterises proper polynomial-time learnability. Hanneke (2016) later settled the optimal order for realizable learning. https://www.ccs.neu.edu/home/vip/teach/MLcourse/4_boosting/materials/Blumer_VCdim_learnability.pdf (opens in a new tab).5
  4. Littlestone, Machine Learning 2(4), 285 to 318, April 1988 (DOI 10.1023/A:1022869011914). Mistake bounds for learning disjunctions that grow logarithmically with the number of irrelevant attributes. The textbook later characterised optimal mistake bounds by the Littlestone dimension. Archived abstract page: https://web.archive.org/web/20250505185516/https://link.springer.com/article/10.1023/A:1022869011914 (opens in a new tab).12
  5. Schapire, “The strength of weak learnability”, Machine Learning 5(2), 197 to 227, June 1990 (DOI 10.1007/BF00116037). Weak and strong PAC learnability are equivalent, by an explicit construction; the initial result dates from 1989 and the journal paper from 1990. Freund’s more efficient algorithm and then AdaBoost followed. Archived abstract page: https://web.archive.org/web/20250106141719/https://link.springer.com/article/10.1007/BF00116037 (opens in a new tab).8
  6. Freund and Schapire, Journal of Computer and System Sciences 55(1), 119 to 139, 1997. Introduces AdaBoost, whose advance is that the weak learner’s advantage need not be known in advance; Theorem 6 bounds the training error in terms of the round errors; the paper connects boosting to on-line prediction. The margins explanation and its qualifications came later. https://cseweb.ucsd.edu/~yfreund/papers/adaboost.pdf (opens in a new tab).9
  7. Kearns and Li, SIAM Journal on Computing 22(4), 807 to 837, August 1993 (DOI 10.1137/0222052). The malicious-error model (preliminary version at STOC 1988, DOI 10.1145/62212.62238), building on Valiant’s earlier work on errors: Theorem 1 gives β < ε/(1 + ε) for distinct classes and Theorem 7 gives tolerance β < ε/4 for Occam algorithms. Later poisoning and backdoor work (Biggio et al. 2012, Gu et al. 2017) studies concrete settings. https://www.cis.upenn.edu/~mkearns/papers/malicious.pdf (opens in a new tab).18
  8. Wolpert, Neural Computation 8(7), 1341 to 1390, October 1996 (DOI 10.1162/neco.1996.8.7.1341). A weighted off-training-set comparison finds no a priori distinction between algorithms, for losses such as zero-one; it also argues that low empirical error, small VC dimension and a large sample do not by themselves imply small off-training-set error with high probability. The textbook proves a separate no-free-lunch theorem for binary classification. https://people.sabanciuniv.edu/~berrin/cs512/reading/Wolp96.pdf (opens in a new tab).2
  9. Vapnik, “An overview of statistical learning theory”, IEEE Transactions on Neural Networks 10(5), 988 to 999, 1999 (DOI 10.1109/72.788640). An overview by the originator of the VC theory; its content is not described here. The link is a bibliographic record. https://api.crossref.org/works/10.1109/72.788640 (opens in a new tab).29
  10. Zhang, Bengio, Hardt, Recht and Vinyals, arXiv 1611.03530, 10 November 2016. In the stated configurations, networks fit random labels and random inputs exactly or nearly exactly, and explicit regularisation did not prevent it in the runs reported (Sections 2 and 3, Table 1); a two-layer network with 2n + d parameters fits any labelling of n distinct points (Section 4). Nagarajan and Kolter later argued that two-sided uniform convergence can be vacuous in specific examples. https://arxiv.org/abs/1611.03530 (opens in a new tab).14
  11. Belkin, Hsu, Ma and Mandal, arXiv 1812.11118, 28 December 2018. Double descent in test risk around the interpolation threshold, shown for random Fourier features, networks, boosted trees and random forests, with a norm-based proposal for the mechanism. Bartlett et al. (2019) proved benign overfitting for minimum-norm interpolation in linear regression. https://arxiv.org/abs/1812.11118 (opens in a new tab).11
  12. Shalev-Shwartz and Ben-David, Understanding Machine Learning, Cambridge University Press, 2014. Source of the standard statements used here: Corollary 2.3, Theorem 5.1, Lemma 6.1, Lemma 6.10, Theorems 6.7 and 6.8, Theorem 9.2, Theorem 10.2, Theorem 21.11 and Chapter 21. https://www.cs.huji.ac.il/~shais/UnderstandingMachineLearning/understanding-machine-learning-theory-algorithms.pdf (opens in a new tab).1

Conclusion

A training set guarantees something specific and conditional. If the examples are independent draws from the distribution on which the model will later be judged, and the hypothesis class has finite VC dimension, then training error tracks true error. For uniform convergence and agnostic PAC learning the sample size scales as (d + log(1/δ))/ε². For realizable PAC learning the older ERM upper bound carries an extra log(1/ε) factor, and Hanneke’s later result gives (d + log(1/δ))/ε as the optimal order. Finite VC dimension does not supply an efficient learner. Boosting shows that a barely-better-than-chance learner can be amplified, with an exponential upper bound on training error under a per-round edge condition and a generalisation story, margins, that is still partly open. Online mistake bounds remove the distributional assumption at the price of honest, immediate labels and a correct rule in the class.

The theory also states where it stops. In the Kearns–Li model, for distinct classes, a worst-case adversary corrupting each oracle call with probability β ≥ ε/(1 + ε) makes error below ε on both class-conditional distributions impossible to guarantee, whatever the sample size. Adversarial examples and distribution shift can break the identical-distribution assumption at test time. Zhang et al. show that bounds depending only on the class cannot explain why networks that fit random labels also generalise on real labels, and the explanations on offer (implicit regularisation, norm and margin bounds, PAC-Bayes) are partial and contested. For a practitioner, the useful habit is to ask of any accuracy figure which population it was measured on, how the predictor was chosen relative to the test data, and what an adversary who controlled part of the data or the inputs could have done to it.

Footnotes

  1. Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014 (author-hosted PDF). Cited for the definitions of PAC and agnostic PAC learnability, Corollary 2.3, Theorem 5.1 (No-Free-Lunch), Hoeffding’s inequality, Section 7.3 (weighted bounds), Sections 6.1 to 6.3 (thresholds, intervals), Lemma 6.10 (Sauer-Shelah-Perles), Theorems 6.7 and 6.8 (fundamental theorem), Section 9.1.3 and Theorem 9.2 (halfspaces), Chapter 8 (hardness of learning), Theorem 10.2 (AdaBoost) and Chapter 21 (Halving, Littlestone dimension, mistake bounds, Theorem 21.11). https://www.cs.huji.ac.il/~shais/UnderstandingMachineLearning/understanding-machine-learning-theory-algorithms.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23 ↩24 ↩25 ↩26 ↩27 ↩28 ↩29 ↩30 ↩31 ↩32
  2. David H. Wolpert, The Lack of A Priori Distinctions Between Learning Algorithms, Neural Computation 8(7), 1341 to 1390, October 1996, DOI 10.1162/neco.1996.8.7.1341. Abstract and proofs read in the full paper https://people.sabanciuniv.edu/~berrin/cs512/reading/Wolp96.pdf (opens in a new tab); bibliographic record https://api.crossref.org/works/10.1162/neco.1996.8.7.1341 (opens in a new tab) ↩1 ↩2
  3. V. N. Vapnik and A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory of Probability and Its Applications 16(2), 264 to 280, 1971 (translated by B. Seckler). Theorems 1 and 2 and the introduction. https://courses.grainger.illinois.edu/ece544na/fa2014/vapnik71.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  4. Steve Hanneke, The Optimal Sample Complexity of PAC Learning, Journal of Machine Learning Research 17 (2016) 1 to 15, Theorem 2. https://jmlr.csail.mit.edu/papers/volume17/15-389/15-389.pdf (opens in a new tab) ↩
  5. Anselm Blumer, Andrzej Ehrenfeucht, David Haussler and Manfred K. Warmuth, Learnability and the Vapnik-Chervonenkis dimension, Journal of the ACM 36(4), 929 to 965, October 1989, DOI 10.1145/76359.76371 (course-hosted copy of the journal version; sample bound in the introduction, Theorem 3.1.1 and the discussion after it). https://www.ccs.neu.edu/home/vip/teach/MLcourse/4_boosting/materials/Blumer_VCdim_learnability.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  6. L. G. Valiant, A Theory of the Learnable, Communications of the ACM 27(11), 1134 to 1142, November 1984. Abstract, Section 3 (definition of learnability) and the discussion of cryptography. https://web.mit.edu/6.435/www/Valiant84.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  7. Robert E. Schapire, A Brief Introduction to Boosting, Proceedings of the Sixteenth International Joint Conference on Artificial Intelligence (IJCAI), 1999. History of the weak-learning question and the AdaBoost algorithm and training-error bound. https://www.ijcai.org/Proceedings/99-2/Papers/103.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  8. Robert E. Schapire, The strength of weak learnability, Machine Learning 5(2), 197 to 227, June 1990, DOI 10.1007/BF00116037 (abstract page, Internet Archive snapshot of 6 January 2025). https://web.archive.org/web/20250106141719/https://link.springer.com/article/10.1007/BF00116037 (opens in a new tab) ↩1 ↩2
  9. Yoav Freund and Robert E. Schapire, A decision-theoretic generalization of on-line learning and an application to boosting, Journal of Computer and System Sciences 55(1), 119 to 139, 1997 (Theorem 6 and the publication data are in this legible copy). https://homepages.math.uic.edu/~lreyzin/papers/FreundS97.pdf (opens in a new tab) and the author-hosted PDF https://cseweb.ucsd.edu/~yfreund/papers/adaboost.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  10. Robert E. Schapire, Explaining AdaBoost, in Empirical Inference, Springer, 2013 (author-hosted PDF). The margins explanation, the margin-distribution example and the discussion of arc-gv. http://www.schapire.net/papers/explaining-adaboost.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  11. Mikhail Belkin, Daniel Hsu, Siyuan Ma and Soumik Mandal, Reconciling modern machine learning practice and the bias-variance trade-off, arXiv 1812.11118, 28 December 2018. https://arxiv.org/abs/1812.11118 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  12. Nick Littlestone, Learning Quickly When Irrelevant Attributes Abound: A New Linear-Threshold Algorithm, Machine Learning 2(4), 285 to 318, April 1988, DOI 10.1023/A:1022869011914 (abstract page, Internet Archive snapshot of 5 May 2025). https://web.archive.org/web/20250505185516/https://link.springer.com/article/10.1023/A:1022869011914 (opens in a new tab) ↩1 ↩2
  13. Yoav Freund and Robert E. Schapire, A Short Introduction to Boosting, Journal of the Japanese Society for Artificial Intelligence, 1999 (author-hosted PDF). The remark that the game-theoretic view relates boosting to linear programming and online learning. https://cseweb.ucsd.edu/~yfreund/papers/IntroToBoosting.pdf (opens in a new tab) ↩
  14. Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht and Oriol Vinyals, Understanding deep learning requires rethinking generalization, arXiv 1611.03530, 10 November 2016. https://arxiv.org/abs/1611.03530 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  15. Peter L. Bartlett, Philip M. Long, Gabor Lugosi and Alexander Tsigler, Benign Overfitting in Linear Regression, arXiv 1906.11300, 26 June 2019 (abstract). https://arxiv.org/abs/1906.11300 (opens in a new tab) ↩
  16. Vaishnavh Nagarajan and J. Zico Kolter, Uniform convergence may be unable to explain generalization in deep learning, arXiv 1902.04742, 13 February 2019 (abstract). https://arxiv.org/abs/1902.04742 (opens in a new tab) ↩
  17. Gintare Karolina Dziugaite and Daniel M. Roy, Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Data, 2017 (abstract). https://proceedings.mlr.press/r15/dziugaite17a.html (opens in a new tab) ↩
  18. Michael Kearns and Ming Li, Learning in the Presence of Malicious Errors, SIAM Journal on Computing 22(4), 807 to 837, August 1993 (publication data from the Crossref record, DOI 10.1137/0222052; preliminary version in the Proceedings of the 20th ACM Symposium on the Theory of Computing, 1988; author-hosted PDF read for the model, Theorems 1 and 7 and Corollary 13). https://www.cis.upenn.edu/~mkearns/papers/malicious.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
  19. Dana Angluin and Philip Laird, Learning from Noisy Examples, Machine Learning 2(4), 343 to 370, 1988 (author-hosted copy; classification noise process). https://homepages.math.uic.edu/~lreyzin/papers/angluin88b.pdf (opens in a new tab) ↩
  20. Battista Biggio, Blaine Nelson and Pavel Laskov, Poisoning Attacks against Support Vector Machines, arXiv 1206.6389, 27 June 2012 (abstract). https://arxiv.org/abs/1206.6389 (opens in a new tab) ↩1 ↩2
  21. Tianyu Gu, Brendan Dolan-Gavitt and Siddharth Garg, BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain, arXiv 1708.06733, 22 August 2017 (abstract). https://arxiv.org/abs/1708.06733 (opens in a new tab) ↩
  22. Christian Szegedy and coauthors, Intriguing properties of neural networks, arXiv 1312.6199, 21 December 2013 (abstract). https://arxiv.org/abs/1312.6199 (opens in a new tab) ↩1 ↩2
  23. Ian J. Goodfellow, Jonathon Shlens and Christian Szegedy, Explaining and Harnessing Adversarial Examples, arXiv 1412.6572, 20 December 2014 (abstract). https://arxiv.org/abs/1412.6572 (opens in a new tab) ↩1 ↩2
  24. Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar and Aleksander Madry, Adversarially Robust Generalization Requires More Data, arXiv 1804.11285, 30 April 2018 (abstract). https://arxiv.org/abs/1804.11285 (opens in a new tab) ↩1 ↩2
  25. Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt and Vaishaal Shankar, Do CIFAR-10 Classifiers Generalize to CIFAR-10?, arXiv 1806.00451, 1 June 2018 (abstract). https://arxiv.org/abs/1806.00451 (opens in a new tab) ↩1 ↩2 ↩3
  26. Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt and Vaishaal Shankar, Do ImageNet Classifiers Generalize to ImageNet?, Proceedings of the 36th International Conference on Machine Learning, 2019 (abstract and introduction; reports 3% to 15% drops on CIFAR-10). https://proceedings.mlr.press/v97/recht19a/recht19a.pdf (opens in a new tab) ↩1 ↩2
  27. Cynthia Dwork and coauthors, Generalization in Adaptive Data Analysis and Holdout Reuse, arXiv 1506.02629, 8 June 2015 (abstract). https://arxiv.org/abs/1506.02629 (opens in a new tab) ↩
  28. NIST Dataplot reference manual, EXACT BINOMIAL, exact binomial confidence limits. https://itl.nist.gov/div898/software/dataplot/refman2/auxillar/exacbino.htm (opens in a new tab) ↩
  29. Vladimir N. Vapnik, An overview of statistical learning theory, IEEE Transactions on Neural Networks 10(5), 988 to 999, 1999, DOI 10.1109/72.788640. Bibliographic record (Crossref). https://api.crossref.org/works/10.1109/72.788640 (opens in a new tab) ↩