atlas

Research map / Architectures and efficiency / Attention and transformers

Benign Overfitting in Single-Head Attention

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Theory of self-attention dynamics · 1 citations (OpenAlex)

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with logistic-loss gradient descent from zero initialization for 2 iterationsSingle-head softmax attention · Noisy training datatraining accuracy: after the second iteration, the model interpolates the training data, achieving a training accuracy of 1Helped
Train with logistic-loss gradient descent from zero initialization for 2 iterationsSingle-head softmax attention · Clean test distributiontest 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 distributiontest 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 tokenstest error: ≥ 1/16Hurt
Reduce the gradient-descent step size (ablation)Single-head softmax attention · Noisy training and test dataiterations to benign overfitting: about 150 iterationsHurt
Increase SNR above the threshold SNR² = 2.1/n (ablation)Single-head softmax attention trained with gradient descent · Test accuracy after reaching 100% training accuracytest accuracy: SNR² = 2.1/nHelped

Surprising findings

Limitations

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

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy