Benign Overfitting
When perfectly fitting noise does no harm.
A predictor that fits every noisy label exactly can still predict almost optimally. Bartlett, Long, Lugosi and Tsigler pinned down when this happens for linear regression: the noise needs somewhere harmless to go. This lesson computes the mechanism in a model you can check by hand, states the theorem with its effective ranks, and follows the idea to kernels, nearest neighbors, classification and neural networks.
What you’ll learn
- Split the excess risk of the minimum-norm interpolant into bias and variance, and write the variance through the covariance spectrum.
- Derive the "implicit ridge plus noise sponge" mechanism in a two-scale covariance model.
- Define the effective ranks and , state the Bartlett–Long–Lugosi–Tsigler theorem with its conditions, and decide which spectra are benign.
- Classify interpolating methods as benign, tempered or catastrophic, and compare regression with classification and with neural networks.
Where the noise goes
Let live in or a separable Hilbert space, with covariance and eigenvalues , and let with noise variance . With samples and more directions than samples, the minimum-norm interpolant is , which fits every noisy label exactly. Its excess risk is . When is it small?
Substitute and let , the projection onto the span of the training inputs. The interpolant keeps the part of the inputs can see, and adds fitted noise:
Averaging over the noise (independent of , mean zero, variance ) removes the cross term:
In the eigenbasis of , write the -th column of the data as , with having standardized independent entries. Then and are both sums over directions:
Each direction contributes according to its own variance , but through a Gram matrix to which all directions contribute. A direction with tiny adds little to prediction error ( is tiny), yet many such directions together can add a lot to , which is exactly what can make small.
A two-scale model you can compute
Take strong directions with variance 1, where all the signal lives, and a flat tail of weak directions with variance each, so the tail's total variance is . Think .
The tail acts like a ridge penalty. The tail's Gram matrix is , an average of independent rank-one matrices with mean ; by the law of large numbers it is close to a multiple of the identity:
So the interpolant's strong-direction part is ridge regression on the strong features alone, with penalty (use the identity ). With , each strong coefficient is shrunk by the factor :
Strong directions pay ordinary estimation variance. Each of a strong direction sits in an eigendirection of with eigenvalue about , so it contributes about , as if parameters had been estimated:
The tail is a sponge. A tail direction sees eigenvalues near , so it contributes ; summed over the directions:
Altogether the excess risk is about , which vanishes when , and : few strong directions, a tail with far more directions than samples, and a tail whose total variance is small next to . The noise is fitted exactly but spread so thinly over the tail that new predictions barely notice it.
In the two-scale model take samples and a tail of directions of variance . By what factor does the implicit ridge shrink the strong-direction coefficients?
Show the answer
0.909
The implicit penalty is , so the factor is ; the squared bias factor is . With strong directions the noise factor is . In simulations of this kind of model these approximations are accurate once is much larger than .
The theorem
Three ratios do all the work. controls the bias: a tail whose total variance is large next to acts as too strong a ridge and flattens the signal (a matching lower bound shows this condition is needed up to a logarithm). is the price of estimating the strong directions. measures the noise parked in the tail, and it is negligible only when the tail's effective dimension dwarfs the sample size. The authors call a sequence of covariances benign when all three tend to zero; the two-scale model of the previous step is the simplest example.
Which spectra are benign?
Summability. For , or with , : infinite total variance, so and the bias condition fails.
Too fast. For , , so . Reaching needs of order , and the variance term stays bounded away from zero: the tail is too thin to hide the noise.
Just right. For , , comparing sums with integrals gives and , hence
So , and both variance terms vanish, though only like : benign, but barely. Benign overfitting in a fixed infinite-dimensional space needs a very particular spectrum, which is why the finite-dimensional case (2), a decaying signal part plus a small isotropic floor in dimension much larger than , is the more generic route.
In example (2) (a few strong directions plus an isotropic floor on coordinates), which scaling is benign?
- and
- and
- and
- and
Show the answer
C. and
Here and , which is and not exponentially small: a tail with many more directions than samples and small total variance, exactly the two-scale picture.
Beyond linear regression
Kernels. A kernel interpolant of minimal RKHS norm is a minimum-norm linear interpolant in the kernel's feature space, so the same quantities govern it, with the kernel's eigenvalues playing the role of 's spectrum. The theorem above assumes independent coordinates, which kernel features lack; Tsigler & Bartlett's (2020) version without that assumption covers kernel regression. Liang & Rakhlin (2020) showed it can generalize when the input dimension grows with , through an implicit regularization from high dimensionality, the curvature of the kernel and eigenvalue decay of the data. In constant dimension the picture flips: minimum-norm interpolation with the Laplace kernel is not consistent, for any bandwidth, even one chosen from the data (Rakhlin & Zhai, 2019).
Local interpolation. Benign overfitting does not need high dimension if the interpolation is local enough. Belkin, Hsu & Mitra (2018) proved consistency or near-consistency for simplicial interpolation and for nearest-neighbor schemes with weights singular at the data points, with optimal rates for the latter; Belkin, Rakhlin & Tsybakov (2019) showed that interpolating rules, Nadaraya–Watson smoothing with a singular kernel among them, can achieve optimal rates in nonparametric regression.
| Setting | Result |
|---|---|
| Classification vs regression (Muthukumar, Narang, Subramanian, Belkin, Hsu & Sahai, 2021) | with enough overparameterization every training point becomes a support vector, so the hard-margin SVM equals the minimum-norm interpolant of the labels; there are regimes where this interpolant generalizes for the 0–1 loss but approaches the null risk for the squared loss |
| Two-layer networks (Frei, Chatterji & Bartlett, 2022) | networks trained to interpolation by gradient descent on the logistic loss, on well-separated log-concave class conditionals with a constant fraction of adversarially corrupted labels, reach minimax-optimal test error: benign overfitting with nonlinear model and dynamics |
| Uniform convergence (Koehler, Zhou, Sutherland & Srebro, 2021) | a uniform bound over interpolators in terms of Gaussian width recovers the consistency of minimum-norm interpolation for Gaussian data and gives consistency of minimum--norm interpolation (basis pursuit) |
| Taxonomy (Mallinar, Simon, Abedsoltan, Pandit, Belkin & Nakkiran, 2022) | kernels with power-law spectra, including Laplace and ReLU neural tangent kernels, overfit in a tempered way; deep networks trained to interpolate noisy labels were tempered, early-stopped ones benign |
Key takeaways
- For the minimum-norm interpolant, the noise term is : weak directions add little to prediction error but much to the Gram matrix.
- In a two-scale model the interpolant is ridge regression on the strong directions with implicit penalty , and the excess risk is about .
- Bartlett, Long, Lugosi and Tsigler: up to constants and a factor, the noise costs and the bias is controlled by ; covariances are benign when all three ratios vanish.
- In infinite dimension only spectra like with are benign, and only at rate about ; a decaying signal plus a small isotropic floor in dimension is the generic benign case.
- Kernels can overfit benignly in high dimension but not in fixed dimension (Laplace kernel); local interpolating rules can be consistent; deep networks trained to interpolation look tempered.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
A covariance has eigenvalues . What are and ?
- ,
- ,
- ,
- ,
Show the answer
D. ,
, so and . Both count "effectively equal directions", and both sit between 1 and the rank 5; a flat spectrum would give exactly 5 for both, and in general .
In the bound , which term measures the noise absorbed by the weak tail directions, and when is it small?
- , which shrinks as the tail's effective rank grows far beyond
- ; it is small when there are few strong directions
- ; it is small when the tail has few directions
- Neither: the noise is not absorbed, it is removed
Show the answer
A. , which shrinks as the tail's effective rank grows far beyond
The tail contributes : the noise is spread over the tail, and a tail of effective rank dilutes it. The term is the ordinary price of estimating the strong directions.
Muthukumar et al. (2021) compared classification and regression in overparameterized linear models with Gaussian features. Which of their findings is correct?
- The hard-margin SVM never interpolates
- With enough overparameterization, every training point is a support vector, so the SVM coincides with the minimum-norm interpolant of the labels, and the same solution can generalize well for 0–1 loss while failing for squared loss
- Classification and regression always generalize equally well
- The minimum-norm interpolant is always worse than the SVM for classification
Show the answer
B. With enough overparameterization, every training point is a support vector, so the SVM coincides with the minimum-norm interpolant of the labels, and the same solution can generalize well for 0–1 loss while failing for squared loss
When all points end up on the margin, the SVM's constraints hold with equality, which is exactly interpolation of the labels. Evaluated by sign agreement, such solutions can be good while their squared error approaches that of predicting zero: the loss used to evaluate matters.
In the experiments of Mallinar et al. (2022), what did deep networks trained to zero training error on noisy labels look like as the sample size grew?
- Benign: test error approached the Bayes error
- Catastrophic: test error approached chance
- Tempered: test error converged to a value above the Bayes error that grew with the noise level, while early-stopped networks behaved benignly
- Their test error kept falling to zero regardless of noise
Show the answer
C. Tempered: test error converged to a value above the Bayes error that grew with the noise level, while early-stopped networks behaved benignly
Their networks neither diverged nor became optimal: noisy training labels left a lasting, bounded excess error, the tempered regime. Benign overfitting may therefore be the wrong idealization for interpolating deep networks, though it does describe linear and some kernel and two-layer models.
Further reading
- P. L. Bartlett, P. M. Long, G. Lugosi & A. Tsigler, "Benign overfitting in linear regression," Proceedings of the National Academy of Sciences 117(48), 30063–30070 (2020).
- T. Liang & A. Rakhlin, "Just interpolate: kernel 'ridgeless' regression can generalize," Annals of Statistics 48(3), 1329–1347 (2020).
- V. Muthukumar, A. Narang, V. Subramanian, M. Belkin, D. Hsu & A. Sahai, "Classification vs regression in overparameterized regimes: does the loss function matter?," Journal of Machine Learning Research 22(222), 1–69 (2021).
- N. Mallinar, J. B. Simon, A. Abedsoltan, P. Pandit, M. Belkin & P. Nakkiran, "Benign, tempered, or catastrophic: toward a refined taxonomy of overfitting," Advances in Neural Information Processing Systems 35 (2022).
- M. Belkin, D. Hsu & P. Mitra, "Overfitting or perfect fitting? Risk bounds for classification and regression rules that interpolate," Advances in Neural Information Processing Systems 31 (2018).