Towards an Understanding of Benign Overfitting in Neural Networks

Zhu Li, Zhi-Hua Zhou, Arthur GrettonarXiv 2021

Abstract

Modern machine learning models often employ a huge number of parameters and are typically optimized to have zero training loss; yet surprisingly, they possess near-optimal prediction performance, contradicting classical learning theory. We examine how these benign overfitting phenomena occur in a two-layer neural network setting where sample covariates are corrupted with noise. We address the high dimensional regime, where the data dimension $d$ grows with the number $n$ of data points. Our analysis combines an upper bound on the bias with matching upper and lower bounds on the variance of the interpolator (an estimator that interpolates the data). These results indicate that the excess learning risk of the interpolator decays under mild conditions. We further show that it is possible for the two-layer ReLU network interpolator to achieve a near minimax-optimal learning rate, which to our knowledge is the first generalization result for such networks. Finally, our theory predicts that the excess learning risk starts to increase once the number of parameters $s$ grows beyond $O(n^2)$, matching recent empirical findings.

Introduction

Classical statistical learning theory suggests a fundamental trade-off between model complexity and generalization, typically visualized as a U-shaped risk curve. According to this paradigm, as a model's parameter count increases, it eventually begins to "overfit" by fitting the noise in the training data, leading to a degradation in test performance. However, modern deep learning practice frequently defies this logic. Large-scale neural networks often contain far more parameters than training samples and are trained to achieve zero training loss (interpolation), yet they continue to generalize exceptionally well to unseen data.

This phenomenon, known as "benign overfitting," challenges traditional notions of regularization. While recent research has successfully explained benign overfitting in linear regression and kernel methods, a rigorous mathematical understanding for neural networks has been largely missing. This paper bridges that gap by analyzing two-layer ReLU networks in a high-dimensional regime where the number of features ($d$) grows alongside the number of training samples ($n$).

Methodology and Theoretical Framework

The authors analyze the Minimum Norm Least Square (MNLS) estimator for a two-layer ReLU network. In this setup, the first-layer weights are fixed—similar to a Random Feature (RF) model—while the second-layer weights are optimized to interpolate the training data. This configuration allows for a tractable mathematical analysis while still capturing the non-linear dynamics of ReLU activations.

The core of the research involves a rigorous Bias-Variance Decomposition of the excess learning risk. To establish these bounds, the authors adopt several key assumptions:

  • High-Dimensional Regime: The data dimension $d$ scales with the number of samples $n$ (specifically $d = O(n^\alpha)$).
  • Noisy Covariates: The input data is corrupted by independent subgaussian noise, which serves as a form of implicit regularization.
  • Spectral Decay: The covariance matrix of the data exhibits eigenvalues that decay at a polynomial or exponential rate, representing the underlying signal structure.

By employing concentration inequalities for subgaussian matrices and "$\epsilon$-net" arguments, the researchers derive tight upper and lower bounds on the variance and an upper bound on the bias of the interpolator.

Key Insights

Noise as a Form of Regularization

A critical insight of this work is that covariate noise (noise in the input features) is not merely an obstacle but a source of implicit regularization. In high-dimensional spaces, this noise allows the network to "smear" or distribute the label noise across many dimensions. This prevents the noise from dominating the global prediction, allowing the model to interpolate the training set without sacrificing its ability to capture the underlying signal.

Near Minimax Optimality

The authors prove that a two-layer ReLU interpolator can achieve a learning rate of $O(\sqrt{\log n / n})$. This result is significant as it demonstrates that overparameterized networks can achieve performance nearly as good as the best possible theoretical rate (minimax optimal) for non-linear regression, providing a theoretical justification for the success of interpolation in deep learning.

The $O(n^2)$ Parameter Threshold

While the "double descent" phenomenon—where risk drops again after the interpolation threshold—is well-known, this theory predicts a more complex multiple descent behavior. Specifically, the analysis shows that the "benign" nature of overfitting is not infinite. The excess learning risk is predicted to start increasing again once the number of parameters $s$ grows beyond $O(n^2)$. This identifies a clear mathematical ceiling for overparameterization, matching recent empirical findings regarding the limits of model scaling.

Conclusion and Limitations

This paper provides the first generalization results for two-layer ReLU networks in the context of benign overfitting. It establishes that under specific high-dimensional conditions, these networks can achieve near-optimal learning rates even when fitting noisy data perfectly.

However, several limitations remain for future exploration. The analysis assumes a fixed first layer, which does not fully capture the "feature learning" that occurs when all layers are optimized via gradient descent. Additionally, the reliance on subgaussian assumptions may not account for data with "heavy tails" or significant outliers. Finally, the current framework applies to the $d < n$ regime; extending these insights to ultra-high-dimensional settings where $d > n$ remains an open challenge for the field.

Summary updated

BibTeX
@misc{li2021towards,
  author = {Zhu Li and Zhi-Hua Zhou and Arthur Gretton},
  title = {{Towards an Understanding of Benign Overfitting in Neural Networks}},
  year = {2021},
  eprint = {2106.03212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03212},
}
Figure