Reproduce double descent: as you add samples, the min-norm least-squares test error peaks twice. Where is the interpolation threshold, and what creates the second peak?

The Problem: A team reproducing double descent sweeps the training-set size from 10 to 600 for a min-norm least-squares fit on 200 features (40 standardized, 160 left unscaled at variance 0.0025, label noise standard deviation 1). The averaged test error spikes near n = 40 and again near n = 200, and before the plot goes into a report they must say which spike is the interpolation threshold, what creates the other one, and how to flatten both.
Answer
For min-norm least squares on features, the interpolation threshold is
, the last sample size at which the pseudo-inverse can still fit every noisy label exactly. There the design matrix is square with a smallest singular value near zero, so the coefficient norm explodes and the variance term
diverges. A second peak needs a second scale in the features. When
directions have large variance and the other
are tiny, the tiny block acts as an implicit ridge
on the strong block. The strong block then hits its own threshold at
, the effective number of parameters, while training error is still zero, and that peak grows taller as
shrinks. Both peaks are label noise being interpolated through near-singular directions, so ridge tuned per sample size flattens them.
(1) Threshold Equals Rank: For generic features the pseudo-inverse interpolates every label while , so the threshold is
, or more generally the rank of the feature covariance. It is the sample size where training error first leaves zero.
(2) Variance, Not Bias, Blows Up: Near the noise projected onto the smallest singular direction is amplified by the inverse of a near-zero singular value. The expected excess risk is infinite for
within one of
.
(3) More Data Can Hurt: On the left flank every new row is one more constraint the interpolator must satisfy using ever-weaker directions, so adding samples raises error. This sample-wise non-monotonicity is model-wise double descent read along the other axis of the ratio .
(4) The Second Peak Needs Two Scales: Isotropic features give exactly one peak. With 40 unit-variance and 160 tiny-variance columns, the tiny block adds roughly to the Gram matrix, a weak implicit ridge on the strong block.
(5) Location Tracks Effective Parameters: The strong block reaches its own threshold at , the count of directions whose variance dominates the tail, even though training error is still zero there. Its height scales like
, so a heavier tail smooths it away.
(6) Noise Is The Fuel: Both spikes scale with . With clean labels and a well-specified model they nearly vanish, while omitted features act as extra noise and revive them.
(7) Tuned Ridge Removes Both: Choosing per sample size gives a smooth, near-monotone curve. Standardizing all 200 features removes only the extra peak and leaves the one at
.
Mathematical Formulation:
Where:
is the fitted coefficient vector,
the design matrix with
samples and
features, and
the noisy labels. Both lines equal the pseudo-inverse solution
.
is the excess test risk (test MSE minus the noise floor),
the true coefficients,
the feature covariance, and
the label-noise variance.
- The two
lines are exact for isotropic Gaussian features, the first for
and the second for
. The second holds for any
, because ordinary least squares is invariant to invertible reparameterizations of the features.
holds the strong columns (variance 1) and
the weak columns (variance
), and
is the
identity.
is the implicit ridge contributed by the weak block, equal to its total variance. In the scenario
,
, and
.
Worked Example (d = 200, k = 40, unit-norm signal, noise variance 1):
The first two lines are exact for this anisotropic design, because above the threshold the risk only knows and
. The last two are heuristics for the two-scale design. At
the smallest eigenvalues of
crowd toward zero along the Marchenko-Pastur edge, so a ridge of only 0.4 caps the variance near 5 instead of infinity. Between the peaks the risk splits into an OLS-like strong part
and a weak part
, in which 160 tiny features interpolate the leftover
noise dimensions. That weak term grows from about 0.6 at
to about 7.4 at
, which is more data hurting in its plainest form.
To reproduce the curve, draw Gaussian rows with column standard deviations 1 for 40 features and 0.05 for 160, and set to a unit vector on the strong block. Fit
np.linalg.pinv(X) @ y for each and score the exact excess risk
rather than a finite test set, averaging 60 draws per
. Log training error as well, because it is the only measurement that locates the threshold unambiguously. It stays at zero through
and turns positive right after.

Figure 1: Left, the min-norm excess risk averaged over 60 draws spikes at n = 40 and again at n = 200, while ridge with its penalty tuned per sample size stays smooth. Right, the n = 40 spike lives only in the strong block, while near n = 200 both blocks blow up and the weak block carries most of the variance.
The two spikes look alike on a test-error plot but differ in every diagnostic that matters. That is why the interpolation threshold has to be read from training error and parameter count, not from the tallest bump. Above the variance splits between the blocks exactly in proportion to their sizes, 40 to 160. Below it, the extra spike is a hidden threshold of the strong subspace that the training curve never shows.
| Property | Spike near n = 40 (extra peak) | Spike at n = 200 (threshold) |
|---|---|---|
| Location rule | n close to k, the count of high-variance directions (effective parameters) | n equal to d, the full column rank of the design |
| What goes near-singular | The 40 strong columns alone | The whole square 200 by 200 design |
| Training error on each side | Zero on both sides, the model still interpolates | Zero below, positive above |
| Height set by | Implicit ridge of 0.4 from the weak block, finite at about 5 | Nothing, expected risk diverges at n = d |
| Present with isotropic features | No | Yes |
| Removed by | Standardizing features, a heavier weak tail, or tuned ridge | Tuned ridge, or keeping n well away from d |
Leave a Reply