← Latest papers
🤖 machine learning

Attention Sinks and Outliers in Attention Residuals

The paper introduces OASIS, a novel technique leveraging inter-layer null signaling to mitigate attention sinks and activation outliers in AttnResidual architectures, thereby significantly enhancing inference stability, quantization robustness, and downstream task performance.

Original authors: Haozheng Luo, Haoran Dai, Shaoyang Zhang, Xi Chen, Eric Hanchen Jiang, Yijiang Li, Jingyuan Huang, Chenghao Qiu, Chenwei Xu, Zhenyu Pan, Haotian Zhang, Binghui Wang, Yan Chen

Published 2026-05-19
📖 4 min read☕ Coffee break read

Original authors: Haozheng Luo, Haoran Dai, Shaoyang Zhang, Xi Chen, Eric Hanchen Jiang, Yijiang Li, Jingyuan Huang, Chenghao Qiu, Chenwei Xu, Zhenyu Pan, Haotian Zhang, Binghui Wang, Yan Chen

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 a giant, super-smart library (the AI model) where thousands of librarians (layers) work together to answer your questions. To get better, these libraries started using a new system called AttnResidual. This system lets librarians not just read books, but also pass notes back and forth between different floors of the library to refine their answers.

However, the authors of this paper found a glitch in this new system. It was causing two major problems:

  1. The "Siren" Effect (Attention Sinks): In the old system, the very first book on the shelf (the first token) would get all the attention, drowning out everything else. In the new system, this problem got worse. The librarians were so focused on that first book that they stopped listening to the rest of the story.
  2. The "Loud Shout" Problem (Outliers): Sometimes, a librarian would get so excited or confused that they would scream (create an "outlier") so loudly that it broke the delicate equipment used to store their notes (quantization). This made the library fragile and prone to crashing when trying to compress its memory.

The paper claims that the new system made these problems worse because it forced the librarians to distribute their attention only among real books and real floors. If they wanted to say "nothing new to add here," they had to force that "nothing" into a real book, which made the numbers get weirdly huge and unstable.

The Solution: OASIS (The "Silent Break" Button)

The authors propose a fix called OASIS. Think of OASIS as adding a special "Silent Break" button to the library system.

Here is how it works using simple analogies:

  • The "Null" Channel (The Break Room): Instead of forcing a librarian to shout "Nothing!" into a real book (which causes the loud shout problem), OASIS gives them a dedicated Break Room. If a librarian has nothing useful to add, they can simply step into the Break Room. This keeps the real books quiet and the numbers stable.
  • The "Team Leader" Signal (Token-to-Depth Coupling): In the old system, the floor managers (depth routing) didn't know if a specific librarian was just taking a break. OASIS adds a signal: "Hey, this whole team is currently in the Break Room." The floor manager then knows to stop sending work to that team and focus on the teams that are actually working.

What the Paper Found

The researchers tested this new "Break Room" system on two popular library models (Llama and Qwen) and found:

  • Quieter Librarians: The "screaming" numbers (outliers) dropped by about 84%. The library became much calmer.
  • Less Obsession: The librarians stopped obsessing over the very first book. The "Siren" effect was significantly reduced.
  • Stronger Equipment: Because the numbers were calmer, they could compress the library's memory much more tightly (like zipping up a file) without breaking it.
    • When they compressed the memory heavily (down to 4-bit), the library's ability to solve math problems (GSM8K) actually improved by 23% compared to the old system.
    • When they used a medium compression (8-bit), the library made fewer mistakes (lower perplexity) by about 73%.

The Bottom Line

The paper argues that by giving the AI a specific place to put "nothing" (a null channel) and letting the system know when a part of it is doing nothing, we can stop the AI from getting confused, screaming, or obsessing over the first word. This makes the AI more stable, easier to shrink down for phones or small computers, and better at solving hard problems, all without needing to retrain the whole library from scratch.

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 →