Research map / Architectures and efficiency / Attention and transformers
Benign Overfitting in Single-Head Attention
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Shows that a single-head softmax attention classifier trained on label-noisy data exhibits benign overfitting after two gradient descent steps and under max-margin/min-norm interpolation when SNR is Omega(1/sqrt(n)), with a matching harmful-overfitting lower bound.
Problem
Whether and when attention models, the basic building block of Transformers, exhibit benign overfitting (perfectly fitting noisy labels while generalizing well) in classification, and how this depends on the signal-to-noise ratio.
Approach
Analyzes joint optimization of the attention head v and softmax attention vector p (with a fixed query) on a signal-plus-noise token distribution with label flipping, proving that GD after two steps interpolates noisy data while attending to signal tokens for clean samples and noise tokens for noisy ones, without assuming attention-probability behavior during training.
Key results
- GD with logistic loss reaches 100% training accuracy after two iterations, with test error bounded by eta plus exponentially small terms (theory), and attention focuses on signal tokens for clean samples and noise tokens for noisy samples.
- Min-norm/max-margin interpolators exhibit benign overfitting when SNR = Omega(1/sqrt(n)).
- When SNR is O(1/sqrt(n)) in the two-token case, the max-margin interpolator has clean test error at least 1/16, i.e., harmful overfitting.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Train with logistic-loss gradient descent from zero initialization for 2 iterations | Single-head softmax attention · Noisy training data | training accuracy: after the second iteration, the model interpolates the training data, achieving a training accuracy of 1 | Helped |
| Train with logistic-loss gradient descent from zero initialization for 2 iterations | Single-head softmax attention · Clean test distribution | test error: ≤ exp(-√n/2) + exp(-C₁ηd/( cρ^0.1 n^1.5)) | Helped |
| Use a sufficiently large SNR, SNR = Ω(1/√n) | Norm-constrained max-margin interpolator · Noisy test distribution | test error: η + exp(-Ω(d/ n^2))+exp(-Ω(((1 - ζ)/φ - log(n)/R)^2)) | Helped |
| Use SNR ≤ O(1/√n) | Norm-constrained max-margin interpolator · Clean test distribution, two tokens | test error: ≥ 1/16 | Hurt |
| Reduce the gradient-descent step size (ablation) | Single-head softmax attention · Noisy training and test data | iterations to benign overfitting: about 150 iterations | Hurt |
| Increase SNR above the threshold SNR² = 2.1/n (ablation) | Single-head softmax attention trained with gradient descent · Test accuracy after reaching 100% training accuracy | test accuracy: SNR² = 2.1/n | Helped |
Surprising findings
- Benign overfitting occurs after only two GD steps, with a larger step size than needed for slower convergence.
Limitations
- Analysis limited to two GD iterations and a constant number of tokens T
- Requires very high dimension d relative to n (d >= C n^2 log(n/delta))
- Min-norm results rely on norm-minimization rather than GD dynamics
Experimental setup
Datasets: synthetic Gaussian token data with label flipping
Benchmarks: synthetic test accuracy (2000 test samples)
Metrics: train accuracy test accuracy softmax attention probability
Builds on: benign overfitting in two-layer CNNs (Cao et al.) min-norm interpolation max-margin implicit bias of attention (Tarzanagh et al.)
Closest papers by meaning
- Rethinking Benign Overfitting in Two-Layer Neural Networks (ICML 2025 · similarity 0.88)
- Benign overfitting in leaky ReLU networks with moderate input dimension (NeurIPS 2024 · similarity 0.88)
- Benign Overfitting in Adversarial Training of Neural Networks (ICML 2024 · similarity 0.88)
- Benign Overfitting in Token Selection of Attention Mechanism (ICML 2025 · similarity 0.88)
- Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and Generalization (NeurIPS 2024 · similarity 0.88)
- Beyond Benign Overfitting in Nadaraya-Watson Interpolators (NeurIPS 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
