atlas

Research map / Architectures and efficiency / Attention and transformers

Benign Overfitting in Token Selection of Attention Mechanism

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 0 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.

Theoretical analysis of one-layer softmax token selection trained by gradient descent under label noise, showing benign overfitting depends on SNR and that generalization can be delayed exponentially after fitting training data.

Problem

Understanding how attention learns to select tokens, and whether the resulting solutions generalize, when training data contain label noise (benign vs harmful overfitting).

Approach

Analyzes gradient descent on the key-query matrix and tunable token of a one-layer attention model with a fixed linear head, under a data model with relevant, weakly relevant (confusing) and irrelevant tokens plus label noise; tracks attention gaps via a function g(x)=2x+2sinh(x-log T) to show SNR-dependent regimes (not overfitting, benign overfitting) and exponentially delayed generalization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase training size from n=20 to n=1000Final attention weights on MNIST · MNIST testaccuracyHelped
decrease training size from n=1000 to n=20Final attention weights on CIFAR-10 · CIFAR-10 traintraining lossHelped
increase training size from n=20 to n=1000Final attention weights on CIFAR-10 · CIFAR-10 testaccuracyNo clear effect
increase training size from n=20 to n=1000Final attention weights on PneumoniaMNIST · PneumoniaMNIST testaccuracyHelped
increase training size from n=20 to n=200Final attention weights on BreastMNIST · BreastMNIST traintraining lossHurt
decrease training size from n=1000 to n=20Final attention weights on AG-news · AG-news traintraining lossNo clear effect
increase training size from n=20 to n=1000Final attention weights on AG-news · AG-news testaccuracyHurt
decrease training size from n=1000 to n=20Final attention weights on TREC · TREC traintraining lossHelped

Surprising findings

Limitations

Experimental setup

Datasets: MNIST CIFAR-10 PneumoniaMNIST BreastMNIST AG-news TREC

Benchmarks: MNIST CIFAR-10 PneumoniaMNIST BreastMNIST AG-news TREC

Metrics: training loss test accuracy softmax probability dynamics loss heat-map over d and signal norm

Baselines: Tarzanagh et al. max-margin attention Jiang et al. ViT benign overfitting Kim et al. attention generalization

Builds on: implicit bias of attention (max-margin token separator) benign overfitting in linear and two-layer models Li et al. ViT benign overfitting analysis

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