ICML2025

Rethinking Benign Overfitting in Two-Layer Neural Networks

Ruichen Xu, Kexin Chen

Abstract

Recent theoretical studies (Kou et al., 2023; Cao et al., 2022) revealed a sharp phase transition from benign to harmful overfitting when the noise-to-feature ratio exceeds a threshold-a situation common in long-tailed data distributions where atypical data is prevalent. However, such harmful overfitting rarely happens in overparameterized neural networks. Further experimental results suggested that memorization is necessary for achieving near-optimal generalization error in long-tailed data distributions (Feldman & Zhang, 2020) . We argue that this discrepancy between theoretical predictions and empirical observations arises because previous feature-noise data models overlook the heterogeneous nature of noise across different data classes. In this paper, we refine the feature-noise data model by incorporating class-dependent heterogeneous noise and re-examine the overfitting phenomenon in neural networks. Through a comprehensive analysis of the training dynamics, we establish test loss bounds for the refined model. Our findings reveal that neural networks can leverage "data noise" to learn implicit features that improve the classification accuracy for long-tailed data. Our analysis also provides a training-free metric for evaluating data influence on test performance. Experimental validation on both synthetic and real-world datasets supports our theoretical results. Rethinking Benign Overfitting in Two-Layer Neural Networks Problem Setup In this section, we introduce the problem setup, including the data model, CNNs, and the training algorithm. Given the evidence that real-world datasets have heterogeneous class-dependent structures (as shown in Figure 1 ), we consider a data distribution as follows. Data distribution. We define a data distribution D that each sample (x, y) is generated as