Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

EAGLE 3.1: New Algorithm Tackles Attention Drift in LLM Speculative Decoding

Speculative decoding speeds up AI by using a small model to draft tokens for a larger one to verify.

MarkTechPost 2 min read

EAGLE 3.1: New Algorithm Tackles Attention Drift in LLM Speculative Decoding

Speculative decoding is a technique used to accelerate inference in large language models (LLMs). It works by having a small, fast draft model propose multiple tokens, which a larger target model then verifies in parallel. This process can speed up inference when tokens are accepted, and falls back gracefully when they are rejected.

The EAGLE team, in collaboration with the vLLM and TorchSpec teams, has released EAGLE 3.1, an update to their popular speculative decoding algorithm family. The new version addresses a key issue: attention drift, where the draft model's focus shifts away from the original context as speculation depth increases, degrading performance.

The Problem: Attention Drift

Performance of speculative decoding often deteriorates with different chat templates, long-context inputs, or out-of-distribution system prompts. The EAGLE team traced this to attention drift: as speculation depth grows, the drafter attends more to its own generated tokens rather than the original context. Two root causes were identified: an imbalanced fused input representation where higher-layer hidden states dominate, and growing hidden-state magnitudes due to unnormalized residual paths.

Two Key Fixes

EAGLE 3.1 introduces two architectural changes:

  • FC normalization: Applied after each target hidden state and before the FC layer, it stabilizes hidden-state magnitudes across speculation steps, keeping inputs bounded.
  • Post-norm hidden states: These are fed into the next decoding step, making the method behave more like recursively invoking the drafter rather than appending layers to the target model.

Performance Gains

Compared to EAGLE 3, EAGLE 3.1 offers:

  • Better training-to-inference extrapolation
  • Stronger long-context robustness
  • Higher resilience to chat template and system prompt variation
  • More stable acceptance length across diverse environments

In long-context tasks, EAGLE 3.1 achieves up to 2x longer acceptance length than EAGLE 3.

Training with TorchSpec

TorchSpec now provides efficient training support for EAGLE 3.1, reducing overhead and simplifying experimentation for next-generation speculative decoding algorithms.

React