Lune

NeurIPS2025Top-tier venue

Benign Overfitting in Single-Head Attention

Roey Magen, Shuning Shang, Zhiwei Xu, Spencer Frei, Wei Hu, Gal Vardi

Abstract

The phenomenon of benign overfitting, where a trained neural network perfectly fits noisy training data but still achieves near-optimal test performance, has been extensively studied in recent years for linear models and fully-connected/convolutional networks. In this work, we study benign overfitting in a single-head softmax attention model, which is the fundamental building block of Transformers. We prove that under appropriate conditions, the model exhibits benign overfitting in a classification setting already after two steps of gradient descent. Moreover, we show conditions where a minimum-norm/maximum-margin interpolator exhibits benign overfitting. We study how the overfitting behavior depends on the signal-to-noise ratio (SNR) of the data distribution, namely, the ratio between norms of signal and noise tokens, and prove that a sufficiently large SNR is both necessary and sufficient for benign overfitting.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical Evidence cites Transformers learn to implement preconditioned gradient descent for in-context learning
  • Benign Overfitting in Adversarial Training for Vision Transformers cites Benign Overfitting in Two-layer Convolutional Neural Networks
  • Benign Overfitting in Adversarial Training for Vision Transformers cites Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical Evidence
  • Benign Overfitting in Adversarial Training for Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Vision Transformers provably learn spatial structure cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Provably Transformers Harness Multi-Concept Word Semantics for Efficient In-Context Learning cites Benign Overfitting in Two-layer Convolutional Neural Networks
  • Understanding and Improving Continuous LLM Adversarial Training via In-context Learning Theory cites Transformers learn to implement preconditioned gradient descent for in-context learning
  • Understanding and Improving Continuous LLM Adversarial Training via In-context Learning Theory cites Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical Evidence
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical EvidenceShaopeng Fu, Liang Ding, Jingfeng Zhang, Di WangNeurIPS 2025 · 15 citations
  2. Provably Transformers Harness Multi-Concept Word Semantics for Efficient In-Context LearningDake Bu, Wei Huang, Andi Han, Atsushi Nitanda et al.NeurIPS 2024 · 11 citations
  3. Benign Overfitting in Adversarial Training for Vision TransformersJiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang et al.ICML 2026 · 1 citation
  4. Understanding and Improving Continuous LLM Adversarial Training via In-context Learning TheoryShaopeng Fu, Di WangICLR 2026 · 1 citation
  5. Provably Learning Attention with QueriesSatwik Bhattamishra, Kulin Shah, Michael Hahn, Varun KanadeICML 2026

Builds on18

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Transformers learn to implement preconditioned gradient descent for in-context learningKwangjun Ahn, Xiang Cheng, Hadi Daneshmand, Suvrit SraNeurIPS 2023 · 324 citations
  3. A Function Space View of Bounded Norm Infinite Width ReLU Nets: The Multivariate CaseGreg Ongie, Rebecca Willett, Daniel Soudry, Nathan SrebroICLR 2020 · 172 citations
  4. Benign Overfitting in Two-layer Convolutional Neural NetworksYuan Cao, Zixiang Chen, Misha Belkin, Quanquan GuNeurIPS 2022 · 121 citations
  5. Vision Transformers provably learn spatial structureSamy Jelassi, Michael E. Sander, Yuanzhi LiNeurIPS 2022 · 115 citations

Related papers

  1. Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and GeneralizationJiarui Jiang, Wei Huang, Miao Zhang, Taiji Suzuki et al.NeurIPS 2024 · 21 citations
  2. Benign Overfitting in Token Selection of Attention MechanismKeitaro Sakamoto, Issei SatoICML 2025
  3. Benign overfitting in leaky ReLU networks with moderate input dimensionKedar Karhadkar, Erin George, Michael Murray, Guido F. Montúfar et al.NeurIPS 2024 · 5 citations
  4. From Tempered to Benign Overfitting in ReLU Neural NetworksGuy Kornowski, Gilad Yehudai, Ohad ShamirNeurIPS 2023 · 18 citations
  5. Risk Bounds for Over-parameterized Maximum Margin Classification on Sub-Gaussian MixturesYuan Cao, Quanquan Gu, Mikhail BelkinNeurIPS 2021 · 57 citations
Dusk over the sea between two cliffs drawn in fine vertical lines