Understanding Generalization in Transformers: Error Bounds and Training Dynamics Under Benign and Harmful Overfitting
Not on the map. Why?
Abstract (arXiv)
Transformers serve as the foundational architecture for many successful large-scale models, demonstrating the ability to overfit the training data while maintaining strong generalization on unseen data, a phenomenon known as benign overfitting. However, research on how the training dynamics influence error bounds within the context of benign overfitting has been limited. This paper addresses this gap by developing a generalization theory for a two-layer transformer with labeled flip noise. Specifically, we present generalization error bounds for both benign and harmful overfitting under varying signal-to-noise ratios (SNR), where the training dynamics are categorized into three distinct stages, each with its corresponding error bounds. Additionally, we conduct extensive experiments to identify key factors that influence test errors in transformers. Our experimental results align closely with the theoretical predictions, validating our findings.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 24 of its 32 references that are in the map. First posted on arXiv 18 Feb 2025.
Builds on
24 of 32 references.
References · 24
- 2016Understanding deep learning requires rethinking generalizationcited by 1,674
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
- 2017Spectrally-normalized margin bounds for neural networkscited by 686
- 2019Benign Overfitting in Linear Regressioncited by 549
- 2019Surprises in High-Dimensional Ridgeless Least Squares Interpolationcited by 513
- 2019Two models of double descent for weak featurescited by 195
- 2018To understand deep learning we need to understand kernel learningcited by 187
- 2020Benign overfitting in ridge regressioncited by 153
- 2018Towards Understanding the Role of Over-Parametrization in Generalization of Neural Networkscited by 142
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2022Vision Transformers provably learn spatial structurecited by 93
- 2022Benign Overfitting in Two-layer Convolutional Neural Networkscited by 91
12 more
- 2017Generalization Bounds of SGLD for Non-convex Learning: Two Theoretical Viewpointscited by 82
- 2021Benign Overfitting of Constant-Stepsize SGD for Linear Regressioncited by 71
- 2020A Random Matrix Analysis of Random Fourier Features: Beyond the Gaussian Kernel, a Precise Phase Transition, and the Corresponding Double Descentcited by 70
- 2018Stability and Convergence Trade-off of Iterative Optimization Algorithmscited by 53
- 2022Benign, Tempered, or Catastrophic: A Taxonomy of Overfittingcited by 36
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2023Benign Overfitting for Two-layer ReLU Convolutional Neural Networkscited by 34
- 2024Trained Transformer Classifiers Generalize and Exhibit Benign Overfitting In-Contextcited by 15
- 2024On the Optimization and Generalization of Two-layer Transformers with Sign Gradient Descentcited by 12
- 2024Benign Overfitting in Single-Head Attentioncited by 12
- 2022Multiple Descent in the Multiple Random Feature Modelcited by 10
- 2024Initialization Matters: On the Benign Overfitting of Two-Layer ReLU CNN with Fully Trainable Layerscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.