← Latest papers
🤖 machine learning

Attention Drift: What Autoregressive Speculative Decoding Models Learn

This paper identifies "attention drift" as a key limitation in autoregressive speculative decoding models where attention shifts from the prompt to generated tokens due to un-normalized residual paths, and proposes architectural fixes like post-norm and per-hidden-state RMSNorm that significantly improve acceptance lengths across various tasks and context lengths.

Original authors: Doğaç Eldenk, Payal Mohapatra, Yigitcan Comlek, Kaan Oktay, Hongyang Zhang, Stephen Xia

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

Original authors: Doğaç Eldenk, Payal Mohapatra, Yigitcan Comlek, Kaan Oktay, Hongyang Zhang, Stephen Xia

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 trying to speed up a very smart, but slow, librarian (the Target Model) who is writing a story. To save time, you hire a fast but less experienced assistant (the Drafter) to guess the next few words before the librarian checks them. If the assistant guesses right, the librarian just says "Good job" and moves on, skipping the slow work of thinking up those words. This is called Speculative Decoding.

However, the paper discovers a weird glitch in how these assistants work, which the authors call "Attention Drift."

The Problem: The Assistant Gets Self-Absorbed

Imagine the librarian is telling a story about a dragon. The assistant is supposed to keep its eyes on the librarian's instructions (the prompt) to guess the next words.

But here's what happens as the assistant tries to guess a long chain of words (like "dragon," "flew," "over," "the," "mountain"):

  1. The Start: At the very beginning, the assistant looks at the librarian's instructions.
  2. The Drift: As soon as the assistant starts guessing its own words, it gets distracted. It stops looking at the librarian's original instructions and starts staring intensely at the words it just wrote.
  3. The Result: The assistant becomes obsessed with its own recent output. It forgets the context of the story. If you change the way the story is introduced (a "template perturbation") or make the story very long, the assistant gets completely confused and stops guessing correctly.

The paper calls this Attention Drift. The assistant's focus "drifts" away from the source material and gets stuck on its own recent thoughts.

Why Does This Happen? The "Volume Knob" Analogy

The authors dug into the math to find out why this happens. They found a hidden "volume knob" problem in the assistant's brain (its internal data states).

  • The Current Design (Pre-norm): Imagine the assistant has a microphone that gets louder every time it speaks a word.
    • Word 1: Normal volume.
    • Word 2: Slightly louder.
    • Word 10: Shouting.
    • Word 20: Deafening.

Because the assistant's internal "volume" (the magnitude of its hidden states) keeps growing with every word it guesses, it starts to feel like it's stacking more and more layers of complexity on top of the librarian. It stops acting like a simple guesser and starts acting like a completely new, deeper model that is trying to "refine" the previous guesses. This growing volume makes it lose its balance and forget the original instructions.

The Solution: The "Reset Button" (Post-norm)

The authors proposed a simple fix: Post-norm.

Think of this as adding a "volume reset" button after every word the assistant guesses.

  • Before the assistant guesses the next word, the system checks its internal volume and normalizes it back to a standard level.
  • This prevents the "volume" from getting deafeningly loud.
  • It forces the assistant to stay grounded and treat every guess as a fresh, independent prediction, rather than a chaotic pile-up of previous guesses.

They also added a similar "reset" for the data coming from the librarian before the assistant even starts guessing, ensuring the starting signal isn't too loud or unbalanced.

The Results: A More Robust Assistant

By adding these "reset buttons" (Post-norm), the assistant became much better at its job:

  • Less Distracted: It stopped drifting away from the original instructions.
  • More Robust: Even if you changed the story's format (like removing specific tags or changing the greeting), the assistant didn't crash. It handled these changes 2 times better than the old version.
  • Longer Stories: It could handle much longer stories without getting confused.
  • Faster Training: Because the assistant was more stable, they could train it on shorter sequences, and it would still work well on longer ones later.

The Big Takeaway

The paper argues that the reason these assistants fail in real-world, messy situations isn't just because they are "dumb." It's because their internal design causes them to get "loud" and self-absorbed as they work. By simply adding a normalization step to keep their internal volume steady, they become reliable, consistent, and much faster at helping the big model write.

In short: The paper found that AI drafters get distracted by their own work because their internal "volume" keeps rising. Turning that volume down with a simple architectural fix makes them much better at their 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 →