TL;DR
Classical learning theory says test error is U-shaped in model size: it falls while the model is too rigid, then rises as the model starts to fit noise. Modern experiments show a second descent. Once the model is big enough to fit the training data exactly, the test error peaks, and then falls again as the model keeps growing. This means the peak is not the end of the story, and that very large models can generalise well when they are trained carefully.
Builds on: Bias-Variance Tradeoff, Overfitting, Linear Regression · Leads to: the 2018 Belkin et al. paper
Where it's used
Choosing how big a network should be. Practitioners who train large neural networks on image and language data often use models with more parameters than training examples. The double-descent picture says the test error at that size can be low, not catastrophic, so the rule "keep the model smaller than the data" is not always right.
Deciding when to stop growing a model. Because the test error has a peak near the point of exact fit, a team that sweeps model sizes must check the whole curve, not just the small and very large ends. A peak at a particular size is a warning to avoid that size, or to add regularisation, rather than a sign that bigger is always worse.
Reading scaling studies. Papers that measure test error against parameter count, such as the Neural Scaling Laws work on language models, assume the error keeps falling over many orders of magnitude. Double descent is one reason those curves can keep going down after a point where the old theory would predict a rise.
How it works
Take two training points, and . We fit models that predict from and we will test them at . The data are noisy; suppose the true underlying value at is .
- One parameter: a model that cannot fit both points. Use . Least squares chooses to minimise the squared residuals. Here . Check: the fitted values are and , not exact, so the residuals are and .
- Test the one-parameter model. At it predicts . Its error against the truth is .
- Two parameters: a model that can fit both points exactly. Use . The two points give two equations, and . So and . Check: and . The training error is now zero.
- Test the interpolating model. At it predicts . Its error against the truth is , larger than the one-parameter model's . Check: the exact fit has become worse on the new point.
- Where the peak sits. The model that just fits the training points, with as many parameters as data points, is the point where the test error peaks in this kind of experiment. Going further, to three or more parameters, lets many fits reproduce the data. Which one the training method picks then matters a great deal, and that is where the second descent comes from. The math section shows how.
- schematic test error
The math
Setting
Let there be training pairs . Stack the inputs into a design matrix with rows and columns, one column per feature, and stack the labels into a vector . A linear model has coefficients and predicts for the training set. The fit minimises the sum of squared residuals .
Step 1 in symbols: the fit when there are fewer parameters than points
When and the columns of are independent, the minimiser is the ordinary least squares solution
which uses the Matrix Transpose and the Matrix Inverse. In the walkthrough, with one column, so , and . Then , as step 1 found.
Step 2 in symbols: the test error splits into bias and variance
For a test point with noise-free target , the expected squared error of the fit splits into a bias term and a variance term, plus the irreducible noise. This is the Bias-Variance Tradeoff:
The classical picture is a U-shape: bias falls and variance rises as the model grows. Double descent says that the variance term can fall again beyond the point of exact fit.
Step 3 in symbols: the fit when there are more parameters than points
When , the matrix is singular, so the formula in step 1 breaks down. There are then infinitely many that fit the training data exactly, since has many solutions. A standard choice is the one with the smallest norm:
This is the minimum-norm interpolating solution. Here is the inverse of an matrix, and it is well defined whenever the rows of are independent. The norm of is what governs the variance. Near the matrix becomes nearly singular, its inverse becomes very large, and the coefficients blow up, which is the peak. Far beyond , the coefficients spread out across many features and the norm falls again.
Step 4 in symbols: a worked matrix to see the norm fall
For points with and , and labels , take features , so . The design matrix has rows and . Then , with determinant . Its inverse times is . So . The squared norm is , far below the squared norm of the linear interpolant on the same two points. That model uses different features, so the comparison only illustrates the trend.
Worked examples
- Model: , with training points and .
- Compute .
- Compute .
- Fit: .
- Training predictions: and . Training residuals: and .
- Training mean squared error: .
- Test prediction at : , error .
Interpretation: the simple model misses both training points a little, and its error on the new point is moderate. This is the under-parameterised side of the curve.
- Model: , with the same two points.
- Solve and . Subtracting gives , so .
- Training predictions: and , so training error is .
- Test prediction at : , error .
- Compare: the exact fit has training error but test error , worse than the simpler model's .
Interpretation: the interpolating model has used up its parameters on the noise. This matches the peak in the schematic curve: test error is highest where the model can just fit the training data.
A classifier for handwritten digits takes 784 input pixels, has one hidden layer of 1000 units, and 10 outputs. The training set has 60,000 images.
- Weights from inputs to hidden: .
- Hidden biases: .
- Weights from hidden to outputs: .
- Output biases: .
- Total parameters: .
- Ratio to training images: .
- Try it: a smaller hidden layer of 100 units has parameters. What is its ratio to the training images? Answer: , so it is just past the point where it could in principle fit the training data.
Interpretation: the larger network has more than thirteen parameters per training image. In this regime the classical theory would warn of overfitting. Whether the test error is worse depends on the training method and any regularisation, which is exactly the question the double-descent experiments study.
Common mistakes and tradeoffs
It is tempting to think that a model with more parameters than training points must overfit badly. In fact the test error can fall again past the interpolation point, especially when the training method picks a smooth interpolant, such as the minimum-norm one, rather than a wild one. Parameter count alone does not decide generalisation.
It is tempting to think that the peak appears at every model size. In fact it appears near the point where the model can just fit the training data, where the number of parameters is close to the number of examples, and it is most visible when the labels are noisy. Away from that point the classical U-shape still holds.
It is tempting to think that double descent overturns the bias-variance tradeoff. In fact the decomposition still holds. What changes is that the variance term does not keep rising with model size; it can come back down once the fit is interpolating and the norm of the solution is controlled.
When it matters. It matters when models are large relative to data, and when the choice of model size is being made by measuring test error. It also matters when comparing models with different parameter counts, because the ranking can flip across the peak.
When it does not. For small models relative to data, the classical U-shape is the right picture, and standard tools work: pick the size by validation, as in Train, Validation and Test Sets.
Alternatives. L2 Regularization reduces the size of the solution directly, which lowers the peak. Early stopping during training also limits how far the fit goes. Both reduce the risk near the peak without changing the model's size.
History
Classical statistics had long described test error as a U-shaped curve in model complexity, with the bias-variance tradeoff as its explanation. Neural networks trained in the 2010s did not follow it: very large networks often generalised well, even when they could memorise the training labels. In 2017 Zhang and colleagues showed that such networks can fit random labels perfectly, which made the puzzle sharper. In 2018 Belkin, Hsu, Ma and Mandal reported, in simple models, that test error can fall again past the interpolation threshold; the paper was published in PNAS in 2019, and it used the name double descent for the pattern. Later experiments by other groups found the same shape across model size, training time and data size, which made the pattern hard to dismiss.
Recap
- Classical theory: test error is U-shaped in model size, the bias-variance tradeoff.
- The interpolation threshold, where the model can just fit the training data, is where test error peaks.
- Beyond the threshold, the minimum-norm solution keeps the coefficients from blowing up, so the error can fall again.
- The matrix in step 3 is the key: its inverse blows up near the threshold and the norm falls beyond it.
- Regularisation and early stopping lower the peak without changing the model size.
- Read next: Neural Scaling Laws for how error falls with model size over many orders of magnitude, and the 2018 paper by Belkin and colleagues for the experiments.