aiqbench analysis
This research identifies self-concentration from causal masking and value-non-mixing as the primary drivers of attention sinks and massive activations in LLMs, challenging previous assumptions that RoPE alone is responsible. By isolating these internal dynamics, the study offers critical insights for improving low-bit quantization strategies and stabilizing model inference at sequence boundaries.
It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attention
From arXiv
Full textLarge Language Models (LLMs) often exhibit "Attention Sink" (AS) and the accompanying "Massive Activations" (MAs) at the initial position of a sequence. These phenomena frequently co-occur, and MAs can pose challenges for low-bit quantization. In this study, we analyze the factors underlying AS and MAs that emerge at the initial position regardless of the token occupying it. Our experiments suggest that self-concentration of attention, resulting from the causal mask, and the subsequent Value-non-mixing in attention outputs contribute to AS and MAs.
These findings provide new empirical evidence on the internal dynamics of LLMs, offering insights that may inform future quantization strategies and advance our understanding of the internal mechanisms of attention layers.
Full text under the publisher's open licence · 112 words