Research map / Architectures and efficiency / Attention and transformers
A Mechanistic Account of Attention Sinks in GPT-2: One Circuit, Broader Implications for Mitigation
Yuval Ran-Milo, Hila Ofek, Shahar Mendel
Tel Aviv University
Read the paperPlace an idea next to itCheck your own paper ↗
9measured effects
6improved
3no clear effect
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| keep learned query bias b_Q (removing it zeroes the term) (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .251 when nullified | Improved |
| keep first positional encoding at position 1 (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .017 when PE_1 replaced | Improved |
| keep first-layer MLP-transformed positional signal (EPE) at position 1 (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .035 when EPE swapped | Improved |
| swap raw positional embedding between positions 1 and 2 (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .557 | No clear effect |
| nullify BOS token embedding (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .561 | No clear effect |
| keep MLP blocks (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .283 when all MLPs skipped | Improved |
| keep positional embeddings (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .099 when removed | Improved |
| keep W_k columns at massive-activation coordinates of EPE_1 (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .367 when zeroed | Improved |
| zero three random W_k columns (ablation) | GPT-2 sink circuit · GPT-2 124M, 300 examples | BOS-attention: .563 -> .563 | No clear effect |
Open problems this paper states
- “GPT-2 is small, so the mechanism could change with scale.” → Mechanisms are shown only at small scale, with larger models untested. (an open problem in attention head mechanisms)
- “Analysis focuses on a GPT-2-style model with learned query biases and absolute positional encodings, leaving mechanisms in RoPE or ALiBi models unexplored.” → Results are tied to one architecture or position encoding. (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
- What are you sinking? A geometric approach on attention sink (NeurIPS 2025 · similarity 0.92)
- Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing prevention (NeurIPS 2026 · similarity 0.90)
- On the Emergence of Position Bias in Transformers (ICML 2025 · similarity 0.90)
- Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers (NeurIPS 2025 · similarity 0.88)
- On the Nature of Attention Sink that Shapes Decoding Strategy in Omni-LLMs (NeurIPS 2026 · similarity 0.88)
- Circuit Component Reuse Across Tasks in Transformer Language Models (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.