← Latest papers
🤖 machine learning

A Unifying View of Attention Sinks: Two Algorithms, Two Solutions

This paper reveals that visually similar attention sinks in transformers actually represent two distinct mechanisms—adaptive "nop" suppression and global "broadcast" aggregation—necessitating a dual intervention strategy combining gating and registers to effectively address both.

Original authors: Lukas Fesser, Mozes Jacobs, Thomas Fel, Andy Keller, Sham Kakade

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Lukas Fesser, Mozes Jacobs, Thomas Fel, Andy Keller, Sham Kakade

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

Imagine you are looking at a crowded room of people (the "tokens" in an AI model) trying to talk to each other. In a specific type of AI called a Vision Transformer, researchers noticed a strange pattern: no matter who is speaking, everyone seems to keep turning their heads to look at just one or two specific people in the room. In the AI's "attention map," this looks like a dark, vertical stripe.

For a long time, scientists thought this was a bug—a glitch where the AI got stuck staring at one spot. But this paper argues that this "staring" isn't a mistake. Instead, it's actually the AI using two completely different strategies that just happen to look the same from the outside.

Here is the breakdown of the two strategies, using simple analogies:

1. The "Do Nothing" Button (Adaptive NOP)

The Analogy: Imagine a teacher in a classroom. Sometimes, the teacher has nothing useful to add to the conversation. Instead of saying "um" or "maybe," the teacher points to a specific student (the "sink") and says, "Just look at Alex; he's not saying anything, so we'll just stay exactly as we are."

What's happening:

  • The Goal: The AI wants to stop changing its current thought. It needs to say, "I have no new information to add right now."
  • The Trick: Because the AI is forced to point at someone, it points at a "null" token (a token with almost zero information). By pointing at this empty token, the AI effectively hits a "Do Nothing" button.
  • The Clue: If you check the "energy" (value) of this special token, it is almost zero. It's a ghost token used only to cancel out updates.

2. The "Coffee Shop" (Broadcast)

The Analogy: Now imagine a different scenario. The teacher has a very important piece of news (like "It's raining outside") that everyone needs to know. Instead of whispering it to each student one by one, the teacher stands in the center of the room (the "sink") and shouts the news. Everyone turns to look at the teacher to hear the update.

What's happening:

  • The Goal: The AI wants to share a piece of global information with everyone in the room.
  • The Trick: The "sink" token acts as a hub. It gathers information and then "broadcasts" it to every other token. Everyone updates their state by adding this shared piece of information.
  • The Clue: If you check the "energy" of this special token, it is high and full of content. It's actively writing a message to the group.

Why This Matters

The paper's main discovery is that you can't tell the difference just by looking at the attention map. Both strategies look like a vertical stripe where everyone stares at one spot.

  • If you see a stripe, you don't know if the AI is hitting the "Do Nothing" button or shouting "Important News!"
  • The Problem: Previous attempts to "fix" these stripes (like adding special "register" tokens or "gating" mechanisms) were guessing.
    • Some fixes assumed the AI was doing "Do Nothing" and tried to stop it.
    • Others assumed the AI was "Broadcasting" and tried to help it.
    • Because the researchers didn't know which one was happening, their fixes were often incomplete.

The Solution: A Two-Pronged Approach

The authors created a way to diagnose which strategy the AI is using:

  1. Check the "Energy": If the token is empty (low energy), it's a "Do Nothing" button.
  2. Check the "Structure": If the token is full of data and creates a simple, shared pattern, it's a "Broadcast."

The Result: When they applied this to real AI models (like those that recognize images), they found that both strategies are happening at the same time, but in different parts of the brain:

  • Early layers often use the "Do Nothing" strategy.
  • Deeper layers often use the "Broadcast" strategy.
  • Even the "Register" tokens (special tokens added to help the AI) were being used for both purposes.

The Fix: The paper shows that to truly fix the issues caused by these patterns, you need to use both tools together:

  • Use Gating to handle the "Do Nothing" tokens (letting them suppress updates cleanly).
  • Use Registers to handle the "Broadcast" tokens (giving them a dedicated space to share info).

When they combined these two methods, the AI became more stable and better at understanding the detailed spatial layout of images (like recognizing where objects are in a picture), even though its ability to just "name" the picture didn't change much.

Summary

The paper teaches us that just because an AI looks like it's staring at one spot, it doesn't mean it's broken. It might be taking a break (Do Nothing) or sharing a secret (Broadcast). To fix AI behavior, we first need to understand why it's staring, and then use the right tool for the job.

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 →