AdaEAGLE: Optimizing Speculative Decoding via Explicit Modeling of Adaptive Draft Structures
Situo Zhang, Hankun Wang, Da Ma, Zichen Zhu, Lu Chen, Kunyao Lan, Kai Yu
TL;DR
AdaEAGLE proposes explicit adaptive draft-length control for speculative decoding by introducing a Lightweight Draft Length Predictor (LDLP) that estimates the optimal number of draft tokens before generation. Built atop the EAGLE framework, AdaEAGLE continuously aligns draft length with the target model’s evolving state, reducing wasted draft tokens and target forward passes. Empirical results on six benchmarks show that AdaEAGLE achieves a substantial, lossless speedup over vanilla AR decoding (approximately 1.61×) and outperforms fixed-length EAGLE and other adaptive methods, including AdaEAGLE-DDD, with robust performance across tasks. The approach enables deeper optimizations for adaptive draft structures and is easily integrable with existing SD frameworks, potentially extending to tree decoding and non-greedy regimes in future work.
Abstract
Speculative Decoding (SD) is a popular lossless technique for accelerating the inference of Large Language Models (LLMs). We show that the decoding speed of SD frameworks with static draft structures can be significantly improved by incorporating context-aware adaptive draft structures. However, current studies on adaptive draft structures are limited by their performance, modeling approaches, and applicability. In this paper, we introduce AdaEAGLE, the first SD framework that explicitly models adaptive draft structures. AdaEAGLE leverages the Lightweight Draft Length Predictor (LDLP) module to explicitly predict the optimal number of draft tokens during inference to guide the draft model. It achieves comparable speedup results without manual thresholds and allows for deeper, more specialized optimizations. Moreover, together with threshold-based strategies, AdaEAGLE achieves a $1.62\times$ speedup over the vanilla AR decoding and outperforms fixed-length SotA baseline while maintaining output quality.
