DLite用无历史框架加速智能体推理
AI 总结
一篇新论文提出面向智能体工作负载的无历史推测解码框架DLite,针对长且持续变化的上下文进行优化。该方法复用目标模型的上下文隐藏状态,不单独维护历史KV缓存,并通过轻量级顺序头恢复块内因果依赖。作者称,DLite在通用、长上下文和智能体任务上的接受长度为2至6,相比DSpark最高提升70%。
深度见解
DLite针对作者所称的智能体推理中草稿模型接受长度下降与历史KV缓存开销提供了直接方案。
| 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%. submitted by /u/pmttyji [link] [comments] |