← Latest papers
📊 statistics

Which Question Is Your Attention Metric Answering? Attention Rows as Compositional Data

This paper argues that standard attention metrics often yield misleading conclusions because they fail to distinguish between a model's focus on a dominant "sink" token and its distribution over content tokens, proposing instead to treat attention rows as compositional data to accurately separate these factors and avoid artifacts in model analysis and pruning.

Original authors: Marios Papamichalis, Regina Ruane

Published 2026-08-18
📖 6 min read🧠 Deep dive

Original authors: Marios Papamichalis, Regina Ruane

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Inside the vast neural networks that power modern artificial intelligence, there is a mechanism called attention that allows the system to decide which parts of a sentence or image are most important at any given moment. When this mechanism operates, it produces a list of probabilities for every word or token, showing how much focus is placed on each one. For years, researchers have studied these lists to understand how the machines think, using standard mathematical tools to compare them. They assumed that if two lists looked similar, the underlying thought processes were similar too. However, a new analysis reveals that this assumption rests on a hidden choice that scientists have been making without realizing it, a choice that can completely flip their conclusions about what the machine is actually doing.

The core of the issue lies in a peculiar behavior found in almost every large language model: a tendency to dump a massive amount of attention onto a single, uninformative token, usually the very first word of a sentence. Researchers call this an "attention sink." In many cases, this single token absorbs eighty percent or more of the total attention, leaving the remaining tokens to share the tiny remainder. When scientists want to compare two different attention patterns, they face a dilemma. Do they include this dominant first token in their comparison, or do they remove it to see how the rest of the information is distributed? The paper demonstrates that this is not a harmless technicality. Depending on which option a researcher chooses, the same two attention patterns can appear either nearly identical or completely different. This means that decades of previous research, which often relied on comparing these patterns without explicitly stating how they handled the first token, may have drawn conclusions based on an arbitrary convention rather than the actual structure of the model's thought process.

To solve this, the authors treated the attention lists as a specific type of data known as compositional data, where the only thing that matters is the relative proportion of the parts, not their absolute size. By applying a specialized mathematical framework designed for this kind of data, they were able to separate the "sink" question from the "content" question. They proved that the standard tools used by the community, such as cosine similarity and entropy, mix these two distinct questions together. When the attention sink grows larger, these standard tools report that the attention is becoming more focused and the system is collapsing into a simpler state. But the new analysis shows that this is often an illusion. The attention is not necessarily becoming more focused on the content; it is simply that the first token is hogging more of the spotlight. The actual distribution of attention among the meaningful words can remain completely unchanged while the standard metrics scream that a collapse has occurred.

The researchers tested this theory across ten different pre-trained models, ranging from small experimental networks to massive models with billions of parameters. They found that the choice of convention changes the verdict in a startling number of cases. In some models, nearly half of the comparisons between different parts of the network flipped from one conclusion to the opposite when the researchers switched from keeping the sink to dropping it. For instance, a pair of attention heads that appeared to be the closest neighbors in a network when the sink was included could become distant strangers once the sink was removed. Conversely, heads that looked unrelated with the sink included could appear to be identical twins without it. This instability meant that the famous "head clustering" maps, which scientists use to categorize what different parts of the brain are doing, were often capturing the size of the sink rather than the actual function of the parts. In one major re-analysis of a standard clustering pipeline, the most prominent structure found in the data vanished entirely once the sink was properly accounted for, revealing that the structure was an artifact of the measurement method, not a feature of the model.

The implications for training and improving these models are significant. The paper shows that much of what looks like "entropy collapse"—a sign that a model is becoming unstable or over-simplified during training—is actually just the attention sink growing larger. In models with one billion parameters, ninety-five percent of the apparent drop in complexity was due to the sink taking up more space, not the content becoming less diverse. This distinction matters because it changes how engineers should prune, or remove, unnecessary parts of the network. When the researchers used the new, sink-separated method to decide which parts of the network to cut, they found that using the old methods could make the model's performance crash, increasing its error rate by more than a hundred times in some cases. The new method allowed them to identify and remove redundant parts without breaking the model, but only if they first separated the noise of the sink from the signal of the content.

Ultimately, this work does not claim that the old math was wrong, but rather that it was answering a different question than the one researchers thought they were asking. The old tools measured the total allocation of attention, including the massive bias toward the first token. The new tools measure how the remaining attention is shared among the actual content. The authors provide a clear map of when each approach is safe to use and when it leads to disaster. They show that for models with strong attention sinks, the standard methods are unreliable for understanding the internal logic of the machine. By separating the two channels, researchers can now see the true geometry of the model's attention, distinguishing between a system that is genuinely simplifying its thoughts and one that is simply letting its first token dominate the conversation. This separation offers a more honest view of how these complex systems organize information, ensuring that future discoveries about their inner workings are based on the content of their thoughts, not the quirks of how they are measured.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →