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

Yuhui Li, Fangyun Wei, Chao Zhang, Hongyang Zhang

Abstract

Large Language Models (LLMs) are fundamentally limited by the latency of autoregressive decoding. While speculative sampling has emerged as a primary strategy to accelerate inference, previous state-of-the-art methods have encountered a "scaling wall" where increasing training data no longer yields performance gains. This paper introduces EAGLE-3, a novel speculative sampling framework that overcomes these limitations by shifting from internal feature prediction to direct token prediction and incorporating a "training-time test" architecture. EAGLE-3 achieves speedup ratios between 3.0x and 6.5x across diverse benchmarks, demonstrating for the first time that inference acceleration can follow a scaling law similar to the models they accelerate.

1. Introduction

The autoregressive nature of modern LLMs requires a full forward pass of billions of parameters to generate a single token, making them computationally expensive and slow for real-time applications. Speculative sampling addresses this by employing a smaller, more efficient "draft model" to predict a sequence of future tokens. These tokens are then verified in parallel by the larger "target model." If the target model accepts the draft, multiple tokens are generated in a single step.

However, existing frameworks like EAGLE have reached a performance plateau. The authors identified that the "feature prediction constraint"—forcing the draft model to mimic the high-dimensional internal features of the target model—limits the draft model's expressiveness. Furthermore, error accumulation during the drafting process often leads to rapid declines in acceptance rates for longer sequences. EAGLE-3 is designed to break these bottlenecks.

2. Methodology

EAGLE-3 introduces three architectural innovations to improve the accuracy and robustness of the draft model:

2.1 Direct Token Prediction

Previous iterations of EAGLE attempted to predict the target model's top-layer features ($l_{fea}$) to guide the draft model. EAGLE-3 abandons this constraint. By focusing solely on predicting the final token distribution, the draft model can utilize its limited parameter capacity more effectively, avoiding the "distraction" of trying to replicate the complex internal state of a much larger model.

2.2 Training-Time Test

To address the issue of error accumulation, EAGLE-3 employs a "training-time test" strategy. During training, the model is not only exposed to ground-truth data but also to its own previous, potentially imperfect, predictions. This simulates the actual inference environment, teaching the model to remain robust and self-correct when generating long sequences of draft tokens.

2.3 Multi-Layer Feature Fusion

While top-layer features are highly specialized for the immediate next token, they often lack the broader context needed for long-range prediction. EAGLE-3 fuses features from the low, middle, and high layers of the target model. This provides the draft model with a comprehensive "semantic map," allowing it to maintain higher accuracy when guessing tokens three, four, or five steps into the future.

3. Experimental Setup

3.1 Datasets

The models were trained on a combination of ShareGPT and UltraChat 200K, totaling approximately 532,000 entries. For reasoning-heavy models like DeepSeek-R1, the researchers integrated the OpenThoughts-114k-math dataset to improve performance on logical and mathematical tasks.

3.2 Benchmarks

EAGLE-3 was evaluated across five distinct domains to ensure generalizability:

  • MT-bench: Multi-turn conversation.
  • HumanEval: Code generation.
  • GSM8K: Mathematical reasoning.
  • Alpaca: Instruction following.
  • CNN/Daily Mail: Document summarization.

4. Results and Discussion

4.1 Performance Gains

EAGLE-3 consistently outperformed its predecessors and vanilla autoregressive decoding. It achieved speedup ratios of 3.0x to 6.5x compared to standard LLMs. When compared directly to EAGLE-2, EAGLE-3 provided a consistent 1.4x improvement across various architectures, including Vicuna, LLaMA-3.1, LLaMA-3.3, and DeepSeek-R1-Distill.

4.2 The Discovery of a Scaling Law

The most significant finding is that EAGLE-3 breaks the scaling wall. Unlike previous methods, the speedup ratio of EAGLE-3 increases proportionally with the volume of training data. This suggests that further investment in high-quality training data for draft models will continue to yield faster inference speeds.

4.3 Throughput and Task Specificity

In production environments using the SGLang framework, EAGLE-3 maintained a 40% throughput improvement even at high batch sizes (e.g., 64), where speculative sampling overhead typically diminishes returns. The highest performance gains were observed in code generation (HumanEval), where the structured nature of the data allows for highly accurate long-range drafting.

5. Limitations and Future Work

Despite its success, EAGLE-3 faces constraints regarding GPU memory, which prevented testing on the largest model variants like LLaMA-3 405B or DeepSeek-V3. Additionally, while a scaling law has been identified, the "ceiling" of this law remains unknown. Future research will focus on training with even larger datasets and optimizing the dynamic draft tree structures to further increase token acceptance rates.

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