Abstract
Large Language Models (LLMs) tend to attend heavily to the first token in thesequence -- creating a so-called attention sink. Many works have studied thisphenomenon in detail, proposing various ways to either leverage or alleviateit. Attention sinks have been connected to quantisation difficulties, securityissues, and streaming attention. Yet, while many works have provided conditionsin which they occur or not, a critical question remains shallowly answered: Whydo LLMs learn such patterns and how are they being used? In this work, we arguetheoretically and empirically that this mechanism provides a method for LLMs toavoid over-mixing, connecting this to existing lines of work that studymathematically how information propagates in Transformers. We conductexperiments to validate our theoretical intuitions and show how choices such ascontext length, depth, and data packing influence the sink behaviour. We hopethat this study provides a new practical perspective on why attention sinks areuseful in LLMs, leading to a better understanding of the attention patternsthat form during training.