Double Descent
Test error that falls, rises and falls again as models grow.
The test-error peak at the interpolation threshold is not folklore: for least squares it can be computed exactly, sample by sample. This lesson derives those curves, shows what moves the peak and what removes it, follows the phenomenon into random-features models and deep networks, and separates the robust lessons from artifacts of how complexity is counted.
What you’ll learn
- Recognize double descent in model size, in training time and in sample size, and explain how "effective model complexity" is meant to place all three on a single axis.
- Compute, for every finite , the expected test error of a least-squares learner that sees only of Gaussian features, whether is below or above .
- State the proportional asymptotics for isotropic and random-features models, and explain why small singular values drive the peak.
- Prove that optimally tuned ridge regression is monotone in the sample size for isotropic Gaussian data, and say where such monotonicity fails.
Three faces of the same curve
Nakkiran, Kaplun, Bansal, Yang, Barak & Sutskever (2020) trained ResNets, CNNs and transformers on image and translation tasks and found double descent along three axes: model-wise, as width grows at a fixed training time; epoch-wise, as a fixed model trains longer; and sample-wise, where adding training data to a fixed model can increase test error (developed in Learning Curves & Sample Size). Label noise made the peaks larger. To put the three on one axis they proposed a measure of the capacity of a whole training procedure, data and optimizer included.
The hypothesis is informal by the authors' own account: there is no principled choice of (they used ), and "well below" and "well above" are not quantified. One consequence they draw is that early stopping helps mainly in the narrow critical regime. The phenomenon is also older than its name. Loog, Viering, Mey, Krijthe & Tax (2020) point out that Vallet, Cailton & Refregier observed a peak in learning curves of the minimum-norm (pseudo-inverse) solution in 1989, that statistical physicists analyzed it around 1990, and that pattern-recognition work showed the same "peaking" in feature curves on real data, while the linear SVM showed none.
Under the generalized double-descent hypothesis, when is early stopping most valuable?
- When the model is far too small to fit the training data
- When the training procedure's effective model complexity is close to the number of training examples
- When the model is enormous compared with the data
- Always equally, since longer training always overfits
Show the answer
B. When the training procedure's effective model complexity is close to the number of training examples
Training longer raises the EMC. Far below or far above , more effective complexity helps, so stopping early only throws away accuracy; near the critical value, more training can push the procedure onto the peak, and stopping before it pays off. This is epoch-wise double descent.
Exact curves: least squares with weak features
The cleanest exact model separates "how many features the learner uses" from "what the world depends on". Inputs , responses with , and the learner fits only the coordinates in a set of size , by least squares when and by the minimum-norm interpolant when : , .
Unused features are noise. Write with . Independent Gaussian coordinates make independent of , with variance . For an independent test point, the risk is that noise plus the parameter error:
Below the threshold. , pure variance. The matrix is Wishart with degrees of freedom; for the standard inverse-Wishart mean gives
Above the threshold. Now the fit splits as , with the orthogonal projector onto the span of the training rows. Gaussian rows have a rotation-invariant law, so that span is a random -dimensional subspace with no preferred orientation, and on average it misses a fraction of . For the noise, use the inverse-Wishart mean of the matrix , which has degrees of freedom:
At the threshold. The smallest nonzero singular value of an Gaussian matrix is close to , so the norm of explodes as and the expected variance is infinite for . The peak is noise amplified by near-singular directions, not bias.
Take features, examples, and . The learner uses all features (, so and ). What is its expected test error? (Predicting zero scores .)
Show the answer
1.011
. It beats the null predictor although it interpolates noisy data with ten times more parameters than examples. Belkin, Hsu & Xu show that, when features are added in random order, the risk is smallest at whenever , here : with signal spread thinly over many features, the biggest model wins.
Order matters. If the signal is concentrated in a few strong features that the learner adds first, the classical sweet spot below the threshold wins; if it is spread over many weak features, the curve's minimum can sit beyond the threshold. Both shapes are real, and neither is "the" double-descent curve.
Proportional asymptotics and random features
In the well-specified isotropic model, the shape depends on the signal-to-noise ratio , compared with the null risk of predicting zero. Below the threshold, least squares beats the null predictor only for . Above it, when the interpolant is always worse than predicting zero; when it is better for and has a local minimum at (Hastie et al., 2022). In the misspecified model, adding features also adds signal ( grows with ), which is how a global minimum beyond the threshold can arise.
In the isotropic model with , at which ratio does the overparameterized risk reach its local minimum?
Show the answer
2
Setting the derivative to zero gives , so . With , the risk there is , below the null risk ; as it climbs back toward .
Random features. Mei & Montanari (2022) analyzed ridge regression on random features of inputs on the sphere, a two-layer network with a frozen first layer, in the limit with and fixed. Unlike linear regression, where only the variance blows up, both bias and variance diverge at in the ridgeless limit, so the peak survives even without label noise. For fixed the test error is minimized as , optimal eliminates the peak, and above a critical signal-to-noise ratio the global optimum is attained by extremely overparameterized interpolators: an analytically tractable model in which the biggest model is best without any special misspecification.
Epoch-wise. Advani, Saxe & Sompolinsky (2020) solved the gradient-descent dynamics of linear networks with random-matrix theory: overtraining is worst when the effective number of parameters equals the number of samples, a subspace of the weights receives no gradient and stays frozen, and good generalization in the high-dimensional regime requires small initial weights.
Optimal regularization removes the peak
For isotropic test inputs, . Write with singular values (padded with zeros when ). The Gaussian design makes uniformly random and independent of the , so is uniform on the sphere of radius and each squared coordinate averages :
Each term, as a function of , has derivative proportional to , whatever is. So one minimizes every term at once, independent of , and the minimal term simplifies:
Adding a training example adds a row to . By Cauchy interlacing, no singular value decreases, and each term above is decreasing in . Coupling the two designs row by row therefore gives the theorem.
Three caveats. The optimal depends on the unknown signal-to-noise ratio, so in practice it is chosen by cross-validation. The proof leans on isotropy: Nakkiran et al. construct non-Gaussian covariates with heteroscedastic noise for which even optimally tuned ridge is not sample-monotone, conjecture monotonicity for non-isotropic Gaussian covariates, and show that a regularizer adapted to the covariance restores it. And the same "bigger is never worse when tuned" message holds in the random-features asymptotics (Mei & Montanari, 2022).
Deep networks, and what the second descent means
In deep networks the peaks reported by Nakkiran et al. (2020) are most visible with label noise and little regularization, and Nakkiran, Venkat, Kakade & Ma (2021) showed empirically that optimally tuned regularization can mitigate them in random-feature classifiers and convolutional networks. Curth, Jeffares & van der Schaar (2023) went further for classical methods (linear regression, trees, boosting): there the parameter count secretly grows along several complexity axes at once, the second descent appears exactly where the growth switches from one axis to another, not necessarily at , and replotted against an effective number of parameters the curves fold back into the traditional convex shape. What every one of these analyses agrees on is negative but important: counting parameters does not measure how complex a fitted model really is.
Key takeaways
- Test error can rise and fall again as the model grows, as training runs longer, or as data are added; Nakkiran et al. tie all three to the moment a training procedure can just fit examples (its effective model complexity).
- With of Gaussian features, the exact risk is below the threshold and above it, with ; the peak is noise amplified by .
- In proportional asymptotics the isotropic risk is or ; misspecification and random features can put the global optimum far beyond the threshold, and in random features the bias diverges too.
- Optimally tuned ridge, with , is monotone in (and in model size for random projections) for isotropic Gaussian data, but not for every distribution.
- For trees, boosting and linear smoothers, the second descent can be an artifact of switching complexity axes (Curth et al., 2023): what survives every analysis is that parameter counts mismeasure complexity.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
In the weak-features model, , the learner uses features with , the unused features carry , and . What is the expected test error?
- About
- About
- About
- Infinite
Show the answer
C. About
, so the risk is . Ten features past the threshold, the variance factor still dominates.
In ridgeless random-features regression (Mei & Montanari), what happens at the interpolation threshold that does not happen in isotropic linear regression?
- The bias also diverges, so the peak persists even without label noise
- The variance stays bounded
- The peak moves to
- Nothing: the two models behave identically
Show the answer
A. The bias also diverges, so the peak persists even without label noise
In linear regression the bias stays bounded and the peak is pure noise amplification, so it disappears without noise. In the random-features model both bias and variance diverge at as , which is why double descent appears even for noiseless targets.
In the proof that optimally tuned ridge is sample-monotone for isotropic Gaussian data, what makes adding a training example harmless?
- More data always reduces the variance of any estimator
- The optimal shrinks to zero as grows
- Ridge ignores the new example
- The optimal does not depend on , the optimal risk decreases in every singular value of , and adding a row can only increase them (Cauchy interlacing)
Show the answer
D. The optimal does not depend on , the optimal risk decreases in every singular value of , and adding a row can only increase them (Cauchy interlacing)
With fixed at its -independent optimum, the risk is , a decreasing function of each , and interlacing gives .
Further reading
- P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak & I. Sutskever, "Deep double descent: where bigger models and more data hurt," International Conference on Learning Representations (2020).
- M. Belkin, D. Hsu & J. Xu, "Two models of double descent for weak features," SIAM Journal on Mathematics of Data Science 2(4), 1167–1180 (2020).
- T. Hastie, A. Montanari, S. Rosset & R. J. Tibshirani, "Surprises in high-dimensional ridgeless least squares interpolation," Annals of Statistics 50(2), 949–986 (2022).
- S. Mei & A. Montanari, "The generalization error of random features regression: precise asymptotics and the double descent curve," Communications on Pure and Applied Mathematics 75(4), 667–766 (2022).
- P. Nakkiran, P. Venkat, S. Kakade & T. Ma, "Optimal regularization can mitigate double descent," International Conference on Learning Representations (2021).