arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.15176cs.LGcs.AI
收藏

DEER:通过扩散模型草稿,通过自回归模型验证

DEER: Draft with Diffusion, Verify with Autoregressive Models

Tsinghua University(清华大学);Shanghai Jiao Tong University(上海交通大学)

Zicong Cheng, Guo-Wei Yang, Jia Li, Zhijie Deng, Meng-Hao Guo, Shi-Min Hu

AI总结:

DEER通过扩散模型草稿和自回归模型验证,实现高效推测解码,大幅提升解码速度和草稿长度。

摘要:

效率作为LLM驱动的代理和推理系统的关键实际挑战,越来越受到自回归(AR)解码固有延迟的限制。推测解码通过草案-验证方案来缓解这一成本,但现有方法依赖于自回归草案模型(即草案者),这引入了两个根本性问题:(1)逐步的不确定性累积导致目标模型与草案者之间的信任逐步崩溃;(2)自回归草案者的固有顺序解码。这些因素共同导致了有限的加速效果。在本文中,我们表明,扩散大语言模型(dLLM)草案者可以通过其根本不同的概率建模和高效的并行解码策略自然克服这些问题。基于这一见解,我们引入了DEER,一种高效的推测解码框架,通过扩散进行草稿,通过自回归模型进行验证。为了实现高质量的草稿,DEER采用两阶段训练流水线,使基于dLLM的草案者与目标自回归模型对齐,并进一步采用单步解码生成长草稿段。实验表明,DEER可以达到高达32个标记的草稿接受长度,远超EAGLE-3所实现的10个标记。此外,在HumanEval上使用Qwen3-30B-A3B时,DEER实现了5.54倍的加速,而EAGLE-3仅实现了2.41倍的加速。代码、模型、演示等将可在https://czc726.github.io/DEER/上获得。

英文摘要:

Efficiency, as a critical practical challenge for LLM-driven agentic and reasoning systems, is increasingly constrained by the inherent latency of autoregressive (AR) decoding. Speculative decoding mitigates this cost through a draft-verify scheme, yet existing approaches rely on AR draft models (a.k.a., drafters), which introduce two fundamental issues: (1) step-wise uncertainty accumulation leads to a progressive collapse of trust between the target model and the drafter, and (2) inherently sequential decoding of AR drafters. Together, these factors cause limited speedups. In this paper, we show that a diffusion large language model (dLLM) drafters can naturally overcome these issues through its fundamentally different probabilistic modeling and efficient parallel decoding strategy. Building on this insight, we introduce DEER, an efficient speculative decoding framework that drafts with diffusion and verifies with AR models. To enable high-quality drafting, DEER employs a two-stage training pipeline to align the dLLM-based drafters with the target AR model, and further adopts single-step decoding to generate long draft segments. Experiments show DEER reaches draft acceptance lengths of up to 32 tokens, far surpassing the 10 tokens achieved by EAGLE-3. Moreover, on HumanEval with Qwen3-30B-A3B, DEER attains a 5.54x speedup, while EAGLE-3 achieves only 2.41x. Code, model, demo, etc, will be available at https://czc726.github.io/DEER/

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

↑