Foundations to Frontier
Tests
B. Statistical Learning Theory › B4 Theory of deep learning

Double Descent and Benign Overfitting

The classical U-shaped bias–variance curve is only half the story. As model size passes the interpolation threshold (parameters ≈ data points), test error spikes, then falls again: double descent (Belkin et al., 2019). Beyond the threshold, minimum-norm interpolators can fit noisy data perfectly and still predict nearly optimally, which is benign overfitting (Bartlett, Long, Lugosi and Tsigler, 2020), provided the data covariance has a long tail of small directions that soak up the noise harmlessly. This topic explains both with random-features and linear-regression theory and measures them in exercises.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

The curve that goes down, up, and down again

Textbooks say: make a model bigger and test error first drops, then rises as the model starts memorizing noise. Modern networks broke that rule: they memorize everything and still predict well. The resolution is a second act. Error peaks exactly when the model is just barely big enough to memorize. Making it even bigger lets training pick the smoothest of many perfect fits, and error descends again.

Double descent: more parameters than data, and it gets better
p = m = 20features p (log) →test MSE (log)
p = 20: training MSE 0.0078 · test MSE 0.045 · interpolating
Classical wisdom says the test error rises once the model can fit noise. It does, with a sharp peak exactly where the number of features equals the number of data points (only one interpolant exists, and it is wild). Past that point there are many interpolants and least squares picks the smallest-norm one, which gets smoother as p grows: the second descent. A small ridge penalty (raise λ) flattens the peak entirely.
Why engineers care

Double descent warns against sizing a model near the interpolation threshold: that’s the worst possible size. It also explains why very large perception models fine-tuned to zero training error on flight data can still generalize, and when they won’t (when the data lacks the right structure).

📝 Quick check (Level 0)
0/3 answered
  1. 1. The test-error peak in double descent occurs when…
  2. 2. After the peak, larger models…
  3. 3. Benign overfitting means…

Level 1: Beginner

★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.

The setup

Take m data points and a model with p features, fit by least squares. For p < m, least squares has a unique solution. At p = m it interpolates (zero training error) with a unique solution. For p > m there are infinitely many interpolants, and we take the minimum-norm one (what GD from zero gives; see B4.3).

Why the peak?

At p ≈ m the feature matrix H is square and nearly singular. Its smallest singular value is tiny, so ∥H−1y∥\|H^{-1}y\| is huge and the fit oscillates wildly to hit every noisy point. For isotropic Gaussian features the variance term is exactly

σ2pm−p−1 (p<m−1),σ2mp−m−1 (p>m+1),\sigma^2\frac{p}{m - p - 1}\ (p\lt m - 1),\qquad\sigma^2\frac{m}{p - m - 1}\ (p\gt m + 1),

which blows up on both sides of the threshold and decays as p grows past it.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Interpolation threshold for 100 data points:
  2. 2. Variance σ²·m/(p − m − 1) for σ² = 1, m = 100, p = 200:
  3. 3. Past the threshold, least squares (via GD from 0) returns…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Random-features double descent

With random ReLU features of the input and min-norm least squares, test error versus p has the classical U for p < m, a spike at p = m, and a second descent for p > m toward the kernel (p → ∞) limit. Ridge regularization with a well-chosen λ removes the spike: the peak comes from fitting noise along near-zero singular directions, which ridge damps (Mei and Montanari, 2022).

Benign overfitting in linear regression

Bartlett et al. (2020): for Gaussian x with covariance Σ (eigenvalues λᵢ), the min-norm interpolator’s excess risk is small exactly when, for some k much smaller than n,

rk=∑i>kλiλk+1≳nandkn+nRk→0,Rk=(∑i>kλi)2∑i>kλi2.r_k = \frac{\sum_{i\gt k}\lambda_i}{\lambda_{k+1}}\gtrsim n\quad\text{and}\quad\frac kn + \frac n{R_k}\to0,\quad R_k = \frac{(\sum_{i\gt k}\lambda_i)^2}{\sum_{i\gt k}\lambda_i^2}.

The picture: a few strong directions carry the signal, and a long, flat tail of many weak directions absorbs the noise. Each weak direction stores a little of the noise, so its effect on predictions is spread thin. Isotropic covariance (no tail) makes interpolation harmful.

🐍 Exercise 1: double descent with random features
Fit random-ReLU-feature regression by minimum-norm least squares for p from 10 to 1000 features with m = 100 points, locate the spike at p = m and the second descent, and show that ridge (λ = 0.1) removes the spike.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Ridge regularization near the threshold…
  2. 2. Benign overfitting needs a covariance with…
  3. 3. r_k for eigenvalues (5, 1, 1, 1, 1) and k = 1:

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Decomposing the min-norm interpolator’s risk

With y=Xθ⋆+εy = X\theta^\star + \varepsilon and θ^=X⊤(XX⊤)−1y\hat\theta = X^\top(XX^\top)^{-1}y:

θ^−θ⋆=−(I−X⊤(XX⊤)−1X)θ⋆+X⊤(XX⊤)−1ε.\hat\theta - \theta^\star = -(I - X^\top(XX^\top)^{-1}X)\theta^\star + X^\top(XX^\top)^{-1}\varepsilon.

The bias is the part of θ* the data can’t see (projected out). The variance is σ2 tr((XX⊤)−1XΣX⊤(XX⊤)−1)\sigma^2\,\mathrm{tr}\big((XX^\top)^{-1}X\Sigma X^\top(XX^\top)^{-1}\big). Split Σ into its top-k head and its tail. The tail makes XX⊤≈(∑i>kλi)I+headXX^\top\approx(\sum_{i\gt k}\lambda_i)I + \text{head}, so the tail acts like a ridge penalty of size ∑i>kλi\sum_{i\gt k}\lambda_i on the head. That yields variance of order σ2(k/n+n/Rk)\sigma^2(k/n + n/R_k). ∎ (sketch)

Implicit ridge

A long tail of weak features is equivalent to explicit ridge on the strong ones: the tail “spends” the noise. This explains why interpolation is harmless in very high-dimensional, structured data, and why it is harmful in low-dimensional or isotropic data. It is also why the optimal ridge λ can be zero or even negative in overparameterized models.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The bias of the min-norm interpolator comes from…
  2. 2. The tail of the covariance acts on the head like…
  3. 3. Variance of order σ²(k/n + n/R_k) is small when…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Double descent and benign overfitting, measured

Exercise 1 (m = 100, d = 5, noise σ = 0.3, median of 5 runs). Min-norm test MSE by p:

p 10 25 50 80 100 120 200 400 1000
min-norm 0.95 0.76 1.03 1.92 51.2 2.65 0.90 0.57 0.42
ridge λ = 0.1 0.84 0.67 0.72 0.73 0.69 0.70 0.61 0.45 0.38

The 1000-feature interpolator beats the best under-parameterized model (0.76), and ridge removes the spike entirely.

Exercise 2 (n = 100, noise variance 0.25, truth on 5 strong directions). The min-norm interpolator’s excess risk is 2.89 with isotropic d = 200 (harmful). With the 5 strong directions plus a tail of D weak directions (total tail variance 10), it is 0.311, 0.080, 0.060 and 0.038 for D = 200, 1000, 5000 and 20 000, approaching the oracle (OLS on the 5 true directions, about 0.012). The training error is exactly zero every time: the noise is memorized, yet harmlessly.

🐍 Exercise 2 (research): when is interpolation benign?
Compute the excess risk of the minimum-norm interpolator for isotropic features and for a spiked covariance with an increasingly long, flat tail. Compare with an oracle that knows the signal directions, and relate the results to the effective rank.

Double descent in AI, robotics and aerospace

  • Model sizing: avoid the interpolation threshold, or regularize (ridge, weight decay, early stopping) when you can’t.
  • Sample-wise double descent: adding data can temporarily hurt a fixed-size model near the threshold. Watch for it when growing a flight-data set.
  • Large pretrained models interpolate fine-tuning sets and still generalize when representations have the benign spectral structure.
  • Safety: benign overfitting is about average risk. Memorized noisy labels can still produce confident errors on nearby inputs.

References

  1. M. Belkin, D. Hsu, S. Ma, S. Mandal (2019). “Reconciling modern machine-learning practice and the classical bias–variance trade-off.” PNAS, 116(32).
  2. P. L. Bartlett, P. M. Long, G. Lugosi, A. Tsigler (2020). “Benign overfitting in linear regression.” PNAS, 117(48).
  3. T. Hastie, A. Montanari, S. Rosset, R. J. Tibshirani (2022). “Surprises in high-dimensional ridgeless least squares interpolation.” Annals of Statistics, 50(2).
  4. S. Mei, A. Montanari (2022). “The generalization error of random features regression: precise asymptotics and the double descent curve.” Communications on Pure and Applied Mathematics, 75.
  5. P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, I. Sutskever (2020). “Deep double descent: where bigger models and more data hurt.” ICLR.