On the Existence and Behaviour of Secondary Attention Sinks
Jeffrey T. H. Wong, Cheng Zhang, Louis Mahon, Wayne Luk, Anton Isopoussu, Yiren Zhao
TL;DR
This paper identifies secondary sinks, a class of attention sinks that arise in the middle layers of decoder-only transformers and persist for a limited number of layers, distinct from the BOS sink. It shows that these sinks are produced by specific middle-layer MLP modules whose outputs align with the BOS sink direction, and that the sink strength and lifetime scale with the $ extit{l_2}$-norm of these MLP outputs, forming discrete sink levels that vary with model size. The work demonstrates a compensatory relationship where the BOS sink weakens in middle layers as secondary sinks emerge, with larger models exhibiting more deterministic sink-level structure. These findings illuminate how attention distributions are shaped across depth and model scale, with potential implications for pretraining, post-training, and generation dynamics in large language models.
Abstract
Attention sinks are tokens, often the beginning-of-sequence (BOS) token, that receive disproportionately high attention despite limited semantic relevance. In this work, we identify a class of attention sinks, which we term secondary sinks, that differ fundamentally from the sinks studied in prior works, which we term primary sinks. While prior works have identified that tokens other than BOS can sometimes become sinks, they were found to exhibit properties analogous to the BOS token. Specifically, they emerge at the same layer, persist throughout the network and draw a large amount of attention mass. Whereas, we find the existence of secondary sinks that arise primarily in middle layers and can persist for a variable number of layers, and draw a smaller, but still significant, amount of attention mass. Through extensive experiments across 11 model families, we analyze where these secondary sinks appear, their properties, how they are formed, and their impact on the attention mechanism. Specifically, we show that: (1) these sinks are formed by specific middle-layer MLP modules; these MLPs map token representations to vectors that align with the direction of the primary sink of that layer. (2) The $\ell_2$-norm of these vectors determines the sink score of the secondary sink, and also the number of layers it lasts for, thereby leading to different impacts on the attention mechanisms accordingly. (3) The primary sink weakens in middle layers, coinciding with the emergence of secondary sinks. We observe that in larger-scale models, the location and lifetime of the sinks, together referred to as sink levels, appear in a more deterministic and frequent manner. Specifically, we identify three sink levels in QwQ-32B and six levels in Qwen3-14B.
