How Attention Sinks Emerge in Large Language Models: An Interpretability Perspective

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Peng, Runyu, Li, Ruixiao, Chen, Mingshu, Zhou, Yunhua, Guo, Qipeng, Qiu, Xipeng
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917319107674112
author Peng, Runyu
Li, Ruixiao
Chen, Mingshu
Zhou, Yunhua
Guo, Qipeng
Qiu, Xipeng
author_facet Peng, Runyu
Li, Ruixiao
Chen, Mingshu
Zhou, Yunhua
Guo, Qipeng
Qiu, Xipeng
contents Large Language Models (LLMs) often allocate disproportionate attention to specific tokens, a phenomenon commonly referred to as the attention sink. While such sinks are generally considered detrimental, prior studies have identified a notable exception: the model's consistent emphasis on the first token of the input sequence. This structural bias can influence a wide range of downstream applications and warrants careful consideration. Despite its prevalence, the precise mechanisms underlying the emergence and persistence of attention sinks remain poorly understood. In this work, we trace the formation of attention sinks around the first token of the input. We identify a simple mechanism, referred to as the P0 Sink Circuit, that enables the model to recognize token at position zero and induce an attention sink within two transformer blocks, without relying on any semantic information. This mechanism serves as the basis for the attention sink on position zero. Furthermore, by analyzing training traces from a 30B A3B MoE model trained from scratch, we find that this mechanism emerges early in training and becomes increasingly concentrated in the first two layers, suggesting a possible signal for tracking pre training convergence states.
format Preprint
id arxiv_https___arxiv_org_abs_2603_06591
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle How Attention Sinks Emerge in Large Language Models: An Interpretability Perspective
Peng, Runyu
Li, Ruixiao
Chen, Mingshu
Zhou, Yunhua
Guo, Qipeng
Qiu, Xipeng
Machine Learning
Computation and Language
Large Language Models (LLMs) often allocate disproportionate attention to specific tokens, a phenomenon commonly referred to as the attention sink. While such sinks are generally considered detrimental, prior studies have identified a notable exception: the model's consistent emphasis on the first token of the input sequence. This structural bias can influence a wide range of downstream applications and warrants careful consideration. Despite its prevalence, the precise mechanisms underlying the emergence and persistence of attention sinks remain poorly understood. In this work, we trace the formation of attention sinks around the first token of the input. We identify a simple mechanism, referred to as the P0 Sink Circuit, that enables the model to recognize token at position zero and induce an attention sink within two transformer blocks, without relying on any semantic information. This mechanism serves as the basis for the attention sink on position zero. Furthermore, by analyzing training traces from a 30B A3B MoE model trained from scratch, we find that this mechanism emerges early in training and becomes increasingly concentrated in the first two layers, suggesting a possible signal for tracking pre training convergence states.
title How Attention Sinks Emerge in Large Language Models: An Interpretability Perspective
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2603.06591