Machine Learning
Two-Layer Neural Networks Achieve Benign Overfitting via Strategic Weight Initialization
Researchers prove that shallow ReLU networks can memorize noisy training data while still generalizing well when neurons are initialized on shrinking spherical regions.
A fundamental puzzle in deep learning is benign overfitting — the phenomenon where models fit training data perfectly, including noise, yet still perform well on unseen examples. A new theoretical study establishes this behavior for finite-width two-layer neural networks with ReLU activation functions trained using gradient flow.
The Setup#
The work examines networks on fixed-dimensional inputs uniformly distributed on a sphere. Rather than using standard random initialization, the researchers employ a carefully designed localized initialization strategy: neurons begin with Gaussian weights but are restricted to only activate within shrinking spherical caps. This data-independent approach depends solely on sample size and input dimension.
Key Results#
Under these conditions, the team proves several convergent behaviors:
- Both training risk and excess risk (the gap between training and test performance) vanish with high probability as training progresses
- The network's parameters converge, with probability approaching one, to an interpolating limit — a point that fits the training data exactly while maintaining vanishing test error
- Explicit bounds are provided on required sample size, network width, and training duration
Connection to Kernel Methods#
The theoretical analysis reveals an elegant mechanism underlying these results. The network's behavior connects to a kernel flow — a continuous evolution of learned representations. The limiting solution combines ridge regression with localized spikes that precisely fit residual training noise. This hybrid mechanism allows the network to simultaneously achieve zero training loss and good generalization.
The findings advance understanding of when and why overparameterized neural networks can memorize noisy data without sacrificing test-set performance.