analiza aiqbench
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
De la arXiv
Text integralLarge 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.
Text integral sub licența deschisă a publicației · 112 cuvinte