Research map / Architectures and efficiency / Attention and transformers
Characterizing the Expressivity of Local Attention in Transformers
Jiaoda Li, Ryan Cotterell
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Add positional encoding
add RoPE or sinusoidal positional encoding to global-only · formal languages · accuracy Hurt
What 733 accepted papers report for this change
- 590 improved
- 67 no clear effect
- 9 mixed
- 67 hurt
- Learning-Augmented Scalable Linear Assignment Problem Optimization via Neural Dual Warm-Starts ICML 2026 · add positional encodings to features (d=13 -> d=21) · Block-structured, N=4096 · speedupImproved
- Mesh Based Simulations with Spatial and Temporal awareness ICML 2026 · use learned positional embedding, learnable relative bias or weighted adjacency instead of RoPE · Aneurysm · RMSEHurt
- Sparse ActionGen: Accelerating Diffusion Policy with Real-time Pruning ICML 2026 · add sinusoidal positional encoding to the pruner · Robomimic Tool Hang · success rate (%): 28 -> 54Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add local attention heads (hybrid, k=1) to global attention | transformer · WikiText-2 | perplexity: -69.7, -15.2, -11.5 across positional encodings | Improved |
| increase local window size (ablation) | hybrid transformer · WikiText-2 | perplexity | Hurt |
| local-only instead of global-only attention | transformer · WikiText-2 | perplexity | Improved |
| add local attention to global attention | transformer (NoPE) · formal languages, length 41-500 | longest perfect length | Improved |
| use window k=2 or 4 instead of k=1 (ablation) | local/hybrid transformer (NoPE) · formal languages | accuracy | Hurt |
| add RoPE or sinusoidal positional encoding to global-only (ablation) | global-only transformer · formal languages | accuracy | Hurt |
| use RoPE with larger local windows (ablation) | local-only/hybrid transformer · formal languages | accuracy | Mixed |
| use any attention on languages beyond the hybrid fragment (ablation) | all variants · bounded Dyck / right-deterministic polynomial | accuracy | No clear effect |
Open problems this paper states
- “Uses only a lightweight language modeling setup due to limited compute, so natural-language results may change at larger scale.” → Mechanisms are shown only at small scale, with larger models untested. (an open problem in attention head mechanisms)
Open problems in attention head mechanisms
Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?
- Mechanisms are shown only at small scale, with larger models untested. · 19 papers state it
- Theory covers only one-layer or attention-only transformers. · 14 papers state it
- Findings come from synthetic or toy tasks that may not match natural language. · 12 papers state it
Closest papers by meaning
- Characterizing the Expressivity of Fixed-Precision Transformer Language Models (NeurIPS 2025 · similarity 0.89)
- Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages (NeurIPS 2024 · similarity 0.89)
- Unveiling Induction Heads: Provable Training Dynamics and Feature Learning in Transformers (NeurIPS 2024 · similarity 0.88)
- How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Bias (ICML 2025 · similarity 0.88)
- Stack Attention: Improving the Ability of Transformers to Model Hierarchical Patterns (ICLR 2024 · similarity 0.88)
- Memorization Capacity of Multi-Head Attention in Transformers (ICLR 2024 · similarity 0.88)
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.