What Makes Position Zero Special? A Mechanistic Study of Position Zero Attention Sinks in LLMs

Runyu Peng, Ruixiao Li, Mingshu Chen, Yunhua Zhou, Qipeng Guo +3 more
2/4/2026
2 citations
cs.LGcs.CL
transformer-attention

Official code: Pryest/flash-linear-attention (0 stars, Python, MIT, last commit 2026-07-13).

Abstract

Transformers frequently allocate disproportionate attention to specific tokens, a phenomenon known as attention sinks. Causal large language models reliably form one at position zero, though its role remains debated.

Show full abstract

We approach this question from a mechanistic perspective, tracing how the position-zero sink arises from the model's internal computation. We identify a two-block subnetwork responsible for this behavior, which we term the P0-Sink Circuit, and show it arises purely from the structural properties of causal attention, requiring no semantic content. We further validate through from-scratch pre-training experiments that two proposed parameter-free methods effectively accelerate P0 sink formation, and find that earlier sink formation benefits pre-training and improves downstream performance. Both methods outperform the Transformer baseline and achieve performance comparable to Gated Attention across comprehensive settings. Code is available now at https://github.com/Pryest/flash-linear-attention.

View on arXivView PDF

Code Implementations(1)

MIT

🚀 Efficient implementations for emerging model architectures

00Python, ShellJul 13, 20264 months agoMIT

Similar Papers

Cite this paper

@article{peng2026what,
  title  = {What Makes Position Zero Special? A Mechanistic Study of Position Zero Attention Sinks in LLMs},
  author = {Runyu Peng and Ruixiao Li and Mingshu Chen and Yunhua Zhou and Qipeng Guo and Xipeng Qiu and Yucheng Lu and Chen Zhao},
  year   = {2026},
  eprint = {2603.06591},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.06591v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.06591.svg)](https://codeofpaper.com/paper/2603.06591)

Discussion