EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test

Yuhui Li, Fangyun Wei, Chao Zhang, Hongyang Zhang

This post summarizes the paper "EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test" by Yuhui Li et al.

TL;DR

EAGLE-3 breaks the scaling bottleneck in speculative sampling by replacing feature regression with direct token prediction and multi-layer feature fusion. By simulating the inference process during training (a technique called "Training-Time Test"), it achieves up to a 6.5x speedup over standard autoregressive generation, finally allowing inference acceleration to scale proportionally with training data.

What Problem Does This Paper Address?

Large Language Models (LLMs) are notoriously slow because they generate text one token at a time (autoregression). Speculative sampling is a popular fix: a small "draft" model quickly guesses several future tokens, and the large "target" model verifies them all at once in a single parallel step.

Previous state-of-the-art methods like EAGLE and EAGLE-2 improved this by having the draft model predict the target model's internal "features" (hidden states) rather than just tokens. However, the authors noticed a frustrating wall: while LLMs usually get smarter with more data, EAGLE's speedup plateaued. Adding more training data didn't make the draft model any better at guessing. The authors identified that the "feature prediction" task was an unnecessary constraint that caused errors to snowball over multiple steps, preventing the system from benefiting from larger datasets.

Methods

EAGLE-3 introduces three fundamental shifts in how draft models are built:

  1. Direct Token Prediction: It abandons the task of trying to guess the target model's next hidden feature vector ($f_{t+1}$). Instead, it predicts the token distribution directly, removing a restrictive mathematical constraint that limited the draft model's expressive power.
  2. Training-Time Test (TTT): In standard training, models only see "ground truth" data. In TTT, the draft model is trained to handle its own mistakes. During training, the model's own predictions are fed back into it for the next step, simulating the actual multi-step drafting process it will perform during inference.
  3. Multi-layer Feature Fusion: Instead of only looking at the target model's top-layer features, EAGLE-3 concatenates features from the low, middle, and high layers. This provides a richer semantic context, which is crucial for predicting tokens several steps into the future.
Diagram of the attention causal masks during training-time test, showing how the model learns to handle its own predictions.

Datasets

The authors used a mix of high-quality instruction and reasoning datasets:

  • Training: ShareGPT and UltraChat-200K (approx. 532K entries total). For reasoning models like DeepSeek-R1, they added the OpenThoughts-114k-math dataset.
  • Evaluation: The model was tested across five diverse tasks: MT-bench (conversation), HumanEval (code), GSM8K (math), Alpaca (instruction following), and CNN/Daily Mail (summarization).

Key Insights and Ideas

  • The Discovery of a Scaling Law: The most significant finding is that with the EAGLE-3 architecture, inference speedup finally follows a scaling law. As you increase the training data for the draft model, the speedup ratio increases proportionally—a behavior never seen in previous feature-based methods.
  • Feature Regression was a Bottleneck: Forcing a draft model to match a specific high-dimensional vector (feature) is much harder than just getting the token right. By removing this "feature prediction loss," the model is free to use its capacity more effectively.
  • Robustness to Error Accumulation: By using TTT, the draft model becomes "self-correcting." It learns that its own previous guesses might be slightly off and learns how to generate the next guess regardless, keeping the acceptance rate high even for the 5th or 6th token in a sequence.

Key Results

EAGLE-3 sets new benchmarks for lossless LLM acceleration:

  • Speedup: It achieves a speedup ratio of 3.0x to 6.5x compared to vanilla autoregressive decoding.
  • Efficiency: It provides a 1.4x improvement over its predecessor, EAGLE-2.
  • Throughput: In production frameworks like SGLang, EAGLE-3 improves throughput by 40% at a batch size of 64. This is notable because speculative sampling is often thought to be less effective at high batch sizes due to memory bandwidth limits.
Figure 2: Speedup ratios of different methods at temperature=0. For the standard speculative sampling, Vicuna-13B uses Vicuna-68M as the draft model. In Table 1, we present comparisons with additional methods, but this figure only showcases a subset. Chat model’s evaluation dataset is MT-bench, and the reasoning model’s evaluation dataset is GSM8K. DeepSeek R1 LLaMA 8B refers to DeepSeek-R1-Distill-LLaMA 8B.

Limitations and Future Work

The primary limitation noted was hardware-related: due to GPU memory constraints, the authors could not test EAGLE-3 on massive models like LLaMA-3 405B or DeepSeek-V3 671B.

Future work will likely focus on even larger-scale data training to see where the scaling law for acceleration eventually plateaus. Additionally, the authors suggest that further optimizing the fusion of multi-layer features could yield even higher acceptance rates for long draft chains.

Summary updated

BibTeX
@inproceedings{li2025eagle,
  author = {Yuhui Li and Fangyun Wei and Chao Zhang and Hongyang Zhang},
  title = {{EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4exx1hUffq},
}
Figure