atlas

Research map / Architectures and efficiency / Attention and transformers

Transformers Learn Faster with Semantic Focus

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign

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 empirically and theoretically (via softmax input-stability and Lipschitz constants) that input-dependent top-k sparse attention speeds up convergence and improves generalization of transformers on ListOps and NNCH tasks, while input-agnostic sparse attention gives no consistent benefit.

Problem

Sparse attention in transformers is usually viewed only as a speed-up of full attention; it is unclear whether sparsity can improve learning convergence and in-distribution generalization compared with full attention.

Approach

Link the Lipschitz constant of the training loss (and hence SGD convergence and algorithmic-stability generalization) to the input-stability of softmax, and show that input-dependent heavy-hitter (top-k) attention reduces the softmax semantic dispersion and increases separation, improving these constants, whereas input-agnostic regular sparsity does not.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace full attention with top-k heavy-hitter attentionTransformer · ListOpsiterations to 95% training accuracy: 167\sstd{18} -> 122\sstd{ 8}Helped
Replace full attention with top-k heavy-hitter attentionTransformer · MissingDupsiterations to 95% training accuracy: 96\sstd{21} -> 48\sstd{10}Helped
Replace full attention with top-k heavy-hitter attentionTransformer · EvenPairsiterations to 95% training accuracy: 53\sstd{15} -> 6\sstd{3}Helped
Replace full attention with top-k heavy-hitter attentionTransformer · ListOps, best holdout accuracyaccuracy: 35.09\sstd{0.60} -> 36.25\sstd{0.29}Helped
Replace full attention with top-k heavy-hitter attentionTransformer · ListOps, final holdout accuracyaccuracy: 28.92\sstd{1.40} -> 31.33\sstd{0.85}Helped
Replace full attention with top-k heavy-hitter attentionTransformer · MissingDups and EvenPairsbest and final holdout accuracy: 100.00\sstd{0.00} -> 100.00\sstd{0.00}; 99.98\sstd{0.02} -> 99.95\sstd{0.06}; 100.00\sstd{ 0.00} -> 100.00\sstd{ 0.00}No clear effect
Use input-agnostic banded or block-local attention instead of full attention (ablation)Transformer · ListOps, MissingDups, and EvenPairstraining convergence and holdout accuracyHurt
Add global tokens to input-agnostic banded or block-local attention (ablation)Transformer · NNCH taskstraining convergenceHelped
Vary the top-k attention mask size (ablation)Transformer · ListOps, MissingDups, and EvenPairsholdout accuracyNo clear effect
Replace ReLU with GELU or Mish in the MLP (ablation)Full-attention and top-k Transformer · ListOps, EvenPairs, and MissingDupstraining convergence and generalizationNo clear effect
Vary the number of transformer blocks (ablation)Full-attention and top-k Transformer · ListOpstraining convergenceNo clear effect
Increase the number of attention heads (ablation)Full-attention and top-k Transformer · ListOpstraining convergenceHelped

Surprising findings

Limitations

Experimental setup

Datasets: ListOps (LRA) NNCH tasks (Parity, Even Pairs, Missing Duplicates, Cycle Navigation, Stack Manipulation, Modular Arithmetic with Bracke

Benchmarks: ListOps Parity Even Pairs Missing Duplicates Stack Manipulation Modular Arithmetic Solve Equation Cycle Navigation

Metrics: training cross-entropy training accuracy held-out accuracy iterations to 95% training accuracy estimated Lipschitz constant

Baselines: full softmax attention banded attention block-local attention global tokens Adam

Builds on: top-k attention algorithmic stability generalization bounds Neural Networks and Chomsky Hierarchy benchmark Long-range Arena

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