Context. After Zhang et al., the program was to apply uniform convergence only to the networks SGD actually reaches, measured by norms of the learned weights, margins or PAC-Bayes posteriors. These bounds were known to be numerically large; this paper finds that on MNIST they can even grow with the sample size while the test error falls, and asks whether the tool itself is at fault. It constructs settings where gradient descent provably reaches test error at most while every two-sided uniform convergence bound, even one over only the hypotheses the algorithm outputs on typical samples, is at least . An overparameterized learner can output a function that is simple on typical inputs plus a component that memorizes its training set. That component has almost no effect on fresh data but makes each learned hypothesis fail completely on a "mirror" sample that is itself a typical draw, and uniform convergence, which needs one set of typical samples common to all hypotheses, cannot exclude the mirrors. The linear example is the regime of benign overfitting with one strong signal direction plus many weak, equal-variance noise directions: its one-step classifier is essentially the minimum-norm interpolant there, so the mechanism that makes interpolation benign is the one that defeats uniform convergence.
Setting. Binary labels, a real-valued hypothesis , and the ramp loss (1 if , on , 0 if ), with test and training averages and . The generalization error is the smallest value with . The tightest algorithm-dependent uniform convergence bound keeps a set of samples with , restricts the class to the algorithm's outputs on it, and is the smallest value for which some such set satisfies Any VC, Rademacher or covering bound on a class containing the algorithm's outputs upper bounds it. The linear example: , uniform on , for a fixed with , and independent of . Starting from , one gradient step of size 1 on with gives, for any batch size,
Theorem 3.1 (uniform convergence fails for the linear classifier). For any , and , if , then for the loss , while . For every , , and the appendix shows that the usual route then cannot certify anything below , whatever . The same lower bound holds for a hypothesis-specific bound on alone, as long as it must hold for all samples in .
Other results. (1) An infinite-width network with frozen hidden weights, exponential activations and one trained output layer gives the same conclusion, with a proof, when grows only like . (2) A wide two-layer ReLU network trained by SGD on two concentric spheres in (radii 1 and 1.1) misclassifies, at every tested, the whole sample obtained by projecting each training point onto the other sphere and flipping its label, while its test error falls like ; this part is empirical. (3) Two standard derandomized PAC-Bayes bounds are lower bounded through , in the linear example by and .
On MNIST the norms in the bounds, and so the bounds, grow with the sample size. A depth-5, width-1024 ReLU network is trained by SGD until 99% of the training points have margin at least 10, which fixes the margin term. From to 32,768 the test error falls like , while the distance from initialization grows at least like , the product of spectral norms grows polynomially, and so does the distance between the weights learned from two independent samples with the same initialization. That last distance lower bounds the diameter of the region SGD explores, so recentering the bounds at a better point than the initialization would not help. The spectrally normalized bounds of Neyshabur et al. and Bartlett et al. grow like and are far above 1 throughout, and still like with the median margin. With squared loss, which stops at a finite distance, the norms still grow, so cross-entropy pushing the weights to infinity is not the cause; other widths and larger batches help only partly, and pseudo-overfitting (bumps at the training points that inflate margins) is not the main cause, since mean train and test margins converge. The paper blames the uniform convergence step itself.
If each learned hypothesis has a typical mirror sample on which it always errs, no uniform bound can be small. Uniform convergence may discard a set of samples of mass , but it must be the same set for every hypothesis. Suppose the algorithm generalizes, yet each errs everywhere on a bad sample , where maps to itself. Since has the law of , , and a union bound shows that for any the four good events occur together with positive probability: Any in this event puts and , so the supremum in the definition is at least . The rest of the paper realizes with gradient descent.
The linear classifier generalizes because its memorizing part has almost no effect on fresh points. On a training point the output is by a chi-square tail bound and Hoeffding, so training margins are large and almost all of each comes from memorizing the sample. On a fresh , is independent of , so with given the sample, and the error is about , at most once . So is what keeps the memorization from affecting test points: the noise vectors are nearly orthogonal (Gram matrix close to ), and fits each label through its own direction without pointing where a test point is likely to be. It also makes essentially the minimum-norm interpolant, ; in my simulation (, , ) the cosine between the two is 0.997, both have about 4% test error, and both misclassify all of the bad sample of Step 4.
Negating the noise gives a typical sample on which is always wrong. Let . The same expansion with the sign of flipped gives so with high probability misclassifies every point of and for every . Since is a centered Gaussian independent of , negation preserves , and . Step 2 then gives whenever , and no better-chosen class avoids this, even one that fixes at its learned value and truncates to any set of mass .
The argument uses two-sidedness, and the extensions follow from it. At the pair the empirical error exceeds the test error, which a hypothetical one-sided bound on allows; existing techniques bound the absolute deviation, and the paper notes it is not known how to make them one-sided. A hypothesis-dependent bound fails too, since the bound for must hold on every , including . The PAC-Bayes KL form is itself two-sided, so derandomizing it, by adding perturbation terms or by sandwiching the margin loss of a perturbed between losses of , gives a deterministic bound lower bounded through , with the constants of item (3). Bounds on a stochastic network concern a different classifier and are not covered.
The same failure appears in networks. For the exponential network, one gradient step on the output layer gives a kernel machine in which each training point adds a term , playing the role of ; the bad sample negates every coordinate except the noise, , and Steps 3 and 4 go through with only of order . For the ReLU network on spheres there is no formula: the bad sample has law by rotation invariance and is measured to be misclassified entirely, so Step 2 applies. Two-dimensional slices show the boundary bent around each training point so that its projection falls on the wrong side. The claim depends on the setup: it needs enough width or input dimension relative to , and with outer radius 2 SGD separates the spheres cleanly and is classified correctly.
Consequences and limits. The paper conjectures that SGD on a wide network learns in some feature space, where gives a simple boundary a uniform bound could certify and is sample-specific noise, negligible on test points; bounds that succeed on compressed, stochastic or further optimized networks may work by suppressing . Restricting the class to what the algorithm's implicit bias allows is then not enough, because the bias itself includes memorization. The paper points to algorithmic stability and new tools instead, and the benign-overfitting analyses, which compute one estimator's risk directly, are a route of that kind. Limits: the result concerns two-sided bounds and leaves open one-sided ones and runs with explicit regularization; in the linear example the generalization error grows with (it is of order ), which the appendix addresses, in a sketch; the learner is a single gradient step; and the ReLU evidence is a measurement in one tuned setup. For norm-based bounds the MNIST result means that a bound that grows with while the error falls does not track generalization.
Terms
- high-probability gap between test and training loss of the learned
- smallest uniform bound over the algorithm's own outputs on one set of mass
- ramp loss: 1 below margin 0, linear to 0 at margin
- the signal coordinates; the only part of the input correlated with the label
- isotropic noise coordinates, ;
- one-step classifier; memorizes the sample
- bad sample: noise negated (linear), or projected to the other sphere with flipped label (ReLU)
- Two-sided bound
- controls ; the argument needs the side
- Pseudo-overfitting
- output bumps at training points that inflate train margins; ruled out on MNIST
- Distance between solutions
- for two samples, same initialization; grows like
- conjecture
- simple part plus sample-specific part that is small on test points
Quiz
- In the proof, why can the bad sample not be placed in the excluded set of mass ?Negating preserves , so for any . A union bound then finds with both and kept, and has error 1 on but small test error.
- Why does a hypothesis-dependent bound, one that may depend on the learned weights, still fail in the linear example?Being uniform over samples is enough for the argument: for most , both and lie in , and the bound evaluated on must cover a gap near 1. Uniformity over hypotheses is not needed.
- Why does the linear example connect to benign overfitting in the min-norm sense?The full Gram matrix is about , which has as an eigenvector with eigenvalue 36, so , a multiple of the one-step solution. Many weak noise directions fitting the labels without affecting test predictions is the benign-overfitting mechanism, and here it is also what defeats uniform convergence.
Sources
- Vaishnavh Nagarajan and J. Zico Kolter. Uniform convergence may be unable to explain generalization in deep learning. NeurIPS, 2019.
- Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2017.
- Behnam Neyshabur, Srinadh Bhojanapalli, and Nathan Srebro. A PAC-Bayesian Approach to Spectrally-Normalized Margin Bounds for Neural Networks. ICLR, 2018.
- Peter Bartlett, Dylan J. Foster, and Matus Telgarsky. Spectrally-normalized margin bounds for neural networks. NeurIPS, 2017.