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

DFlash:用于快速推测解码的块扩散模型

DFlash: Block Diffusion for Flash Speculative Decoding

Z-Lab

Jian Chen, Yesheng Liang, Zhijian Liu

AI总结:

提出DFlash框架,利用轻量级块扩散模型并行生成草稿,通过目标模型上下文特征条件化,实现高质量草稿和高接受率,在多种模型和任务上实现超过6倍无损加速,比最先进的推测解码方法EAGLE-3快2.5倍。

摘要:

自回归大型语言模型(LLMs)性能强大,但需要固有的顺序解码,导致高推理延迟和低GPU利用率。推测解码通过使用快速草稿模型来缓解这一瓶颈,其输出由目标LLM并行验证;然而,现有方法仍然依赖于自回归草稿生成,这仍然是顺序的,限制了实际加速。扩散LLMs通过实现并行生成提供了一种有希望的替代方案,但当前的扩散模型通常性能不如自回归模型。在本文中,我们介绍了DFlash,一种采用轻量级块扩散模型进行并行草稿生成的推测解码框架。通过在单次前向传播中生成草稿标记,并将草稿模型条件化于从目标模型提取的上下文特征,DFlash实现了高效草稿生成,具有高质量输出和更高的接受率。实验表明,DFlash在多种模型和任务上实现了超过6倍的无损加速,比最先进的推测解码方法EAGLE-3提供高达2.5倍的加速提升。

英文摘要:

Autoregressive large language models (LLMs) deliver strong performance but require inherently sequential decoding, leading to high inference latency and poor GPU utilization. Speculative decoding mitigates this bottleneck by using a fast draft model whose outputs are verified in parallel by the target LLM; however, existing methods still rely on autoregressive drafting, which remains sequential and limits practical speedups. Diffusion LLMs offer a promising alternative by enabling parallel generation, but current diffusion models typically underperform compared with autoregressive models. In this paper, we introduce DFlash, a speculative decoding framework that employs a lightweight block diffusion model for parallel drafting. By generating draft tokens in a single forward pass and conditioning the draft model on context features extracted from the target model, DFlash enables efficient drafting with high-quality outputs and higher acceptance rates. Experiments show that DFlash achieves over 6x lossless acceleration across a range of models and tasks, delivering up to 2.5x higher speedup than the state-of-the-art speculative decoding method EAGLE-3.

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

↑