DLite:面向智能体AI的无历史推测解码

·

研究论文 · 2026/10/19

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

该论文针对智能体AI场景下投机解码的性能退化问题,提出了一种创新的无历史框架,显著提升了加速效果,对LLM推理加速领域具有重要参考价值。

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

阅读原文

参与讨论