arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.23787cs.CL
收藏

DLite:面向智能体AI的无历史投机解码

DLite: History-free Speculative Decoding for Agentic AI

Shanghai Jiao Tong University(上海交通大学);Shanghai Innovation Institute(上海创新研究院);Tsinghua University(清华大学);Infinigence-AI(智源人工智能)

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

AI总结:

本文针对智能体AI场景下现有投机解码方法接受长度下降、系统开销大的问题,提出DLite无历史投机解码框架,通过复用目标模型隐藏状态等技术实现性能优于DSpark,接受长度达2-6。

摘要:

投机解码已成为加速大语言模型(LLM)推理的主流技术,其通过轻量级草稿模型生成候选token,再由目标模型验证。然而,智能体工作负载会引入长且持续演化的上下文以及频繁的多轮交互,在此类工作负载下,现有草稿模型的接受长度会出现高达80%的下降,同时维护其历史KV缓存会带来巨大的系统开销。本文将不断增长的历史上下文确定为这两个问题的共同根源,并提出DLite——一种面向智能体AI的无历史投机解码框架。DLite直接复用目标模型的上下文隐藏状态,在不显式维护历史上下文的情况下执行局部投机预测,将日益复杂的建模问题转化为局部简单预测问题;一个轻量级顺序头则以低开销恢复块内因果依赖关系。为有效训练这种异构无历史架构,本文提出了定制的两阶段训练策略。在通用、长上下文及智能体工作负载上的实验表明,DLite的接受长度达到2-6,且在性能上优于当前最优的投机解码方法DSpark,提升幅度最高达70%。

英文摘要:

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%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑