arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.23787

DLite: History-free Speculative Decoding for Agentic AI

Jiaming Xu, Hanzhen Wang, Tianlang Zhao, Jiewen Xiao, Chengze Yuan, Jiayi Pan, Yongkang Zhou, Jiancai Ye, Yu Wang, Guohao Dai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Speculative decoding has become a mainstream technique for accelerating large language model (LLM) inference by using a lightweight draft model to generate candidate tokens that are subsequently verified by the target model. However, agentic workloads introduce long and continuously evolving contexts and frequent multi-turn interactions. Under such workloads, we observe that existing draft models suffer from up to an 80% degradation in acceptance length, while maintaining their historical KV cache introduces substantial system overhead. In this paper, we identify the growing historical context as a common source of both problems and introduce DLite, a history-free speculative decoding framework for agentic AI. DLite directly reuses contextual hidden states from the target model and performs local speculative prediction without explicitly maintaining the historical context, transforming an increasingly complex modeling problem into local simple prediction problem. A lightweight sequential head further restores intra-block causal dependencies with low overhead. To effectively train this heterogeneous history-free architecture, we introduce a tailored two-stage training strategy. Experiments on general-purpose, long-context and agentic workloads show that DLite achieves 2 ~ 6 acceptance length and outperforms the state-of-the-art speculative decoding method, DSpark, up to 70%.

https://github.com/SJTU-DAI-Sys/DLite

https://huggingface.co/collections/SJTU-DAI-Sys/dlite

1 INTRODUCTION

Large language models (LLMs) have become the foundation of modern AI agents in applications such as coding, web search, and medicine. As agent execution increasingly relies on frequent LLM invocations, inference efficiency has become a critical factor in both system throughput and user experience. Consequently, extensive research Zhou et al. (2024); Li et al. (2024) has explored various techniques to achieve extreme optimization on LLM inference, encompassing algorithm optimization Chen et al. (2026); Cheng et al. (2026), system enhancements Dao et al. (2022); Hong et al. (2024), and hardware advancements Moon et al. (2024); Prabhakar et al. (2024).

Speculative decoding has emerged as a mainstream inference acceleration technique, which has been widely adopted by prominent LLMs (e.g., DeepSeek-V4 Xu et al. (2026)) and deployed in real-world serving systems (e.g., SGLang Zheng et al. (2024) and vLLM Kwon et al. (2023)). A lightweight draft model first generates multiple candidate tokens, which are then verified by the target model in a single forward pass. By accepting multiple tokens at once, speculative decoding can substantially improve inference efficiency without compromising accuracy.

∗^{*}The first two authors contributed equally to this work

†^{\dagger}Correspondence to Guohao Dai (Email Address: daiguohao@sjtu.edu.cn)

(a) Agentic AI Workload

Figure

(b) Speculative Decoding Performance

Figure 1: (a) Agentic workloads characteristics. (b) Speculative decoding performance loss.

However, agentic workloads differ significantly from conventional conversational inference. As illustrated in Figure 1(a), agent execution typically involves long inputs, short outputs, frequent multi-turn interactions, and continuously growing contexts. Under such workloads, we observe two major limitations of existing speculative decoding methods. (1) From the perspective of algorithmic performance, Figure 1(b) shows that the methods that achieve high acceptance lengths on conventional benchmarks can drop to only 1∼21 \sim 2 accepted tokens on agentic workloads, corresponding to a degradation of more than 80%. Lightweight draft models increasingly struggle to independently model the long historical context required to match the predictive distribution of the target model. (2) From the perspective of system efficiency, maintaining the draft model's historical states introduces non-negligible system overhead. Existing speculative drafters must continuously update their KV cache with newly accepted tokens and maintain historical states for subsequent generation and prefix reuse. Under frequent multi-turn agent execution, these operations can account for 10%∼20%10\% \sim 20\% of end-to-end inference latency.

These two limitations share a common source: the draft model is required to independently encode and maintain an increasingly long history, though the target model has processed the same context. More importantly, this growing history continuously increases the explicit context length and positional range faced by the lightweight drafter, making the prediction problem increasingly difficult. We therefore adopt a different design principle: rather than reconstructing the full history inside the draft model, the drafter directly reuses contextual representations produced by the target model and performs only local speculative prediction around the current decoding position.

Based on this insight, we propose DLite, a history-free speculative decoding framework for agentic AI. DLite employs a history-free parallel backbone that directly consumes target hidden states and performs local prediction around the current decoding position without maintaining historical draft KV cache. A lightweight sequential head restores the missing intra-block causal dependency directly in the hidden space, avoiding expensive intermediate vocabulary projections. Finally, we introduce a two-stage training strategy that first bridges the structural mismatch using an isomorphic history-aware teacher and then directly aligns DLite with the target model.

We train DLite for Qwen3-4B, Qwen3-8B models and evaluate it on both general-purpose, long-context and agentic workloads. DLite achieves 2∼62 \sim 6 acceptance length and improves over DSpark by up to 70%, completely eliminating the draft model's historical KV-cache maintenance overhead.

References (28)