arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.00294cs.LGcs.AI
收藏

免费草稿与验证:迈向无损并行解码的扩散大语言模型

Free Draft-and-Verification: Toward Lossless Parallel Decoding for Diffusion Large Language Models

Department of Computer Sciences, University of Wisconsin--Madison, Madison, WI(计算机科学系,威斯康星大学麦迪逊分校,麦迪逊,WI)

Shutong Wu, Jiawei Zhang

AI总结:

FreeDave是一种专为DLLMs设计的快速解码算法,通过无损并行解码实现高效推理,无需模型修改或额外模块,提升了推理速度而不影响性能。

摘要:

扩散大语言模型(DLLMs)已作为一种新的语言模型范式出现,超越了自回归下一个token预测。利用其固有的建模基础,DLLMs具有高效推理的潜力,可以通过并行解码算法实现多token预测。然而,高质量的生成通常需要解码步骤的数量等于序列长度,从而实现每个token一步解码,而现有的并行解码算法在带来推理加速的同时,导致了不可忽视的性能下降。为克服这一挑战,我们引入了Free Draft-and-Verification(FreeDave),一种专为DLLMs设计的新快速解码算法,实现了无损并行解码,无需任何模型修改或额外模块。具体而言,我们提出了一种并行解码候选生成与验证算法,理论上保证使用最少的模型前向调用来重现单token逐步解码生成的相同序列。通过在不同DLLMs上进行广泛的数学推理和代码生成基准测试,FreeDave被证明可以在不产生性能下降的情况下将推理加速高达2.83倍。

英文摘要:

Diffusion Large Language Models (dLLMs) have emerged as a compelling paradigm for language modeling, offering the unique potential for highly efficient inference via multi-token parallel decoding. However, unlocking this potential remains challenging. High-quality generation typically defaults to one-token-per-step static decoding, while existing parallel algorithms rely on heuristic confidence thresholds, introducing a fragile trade-off between decoding efficiency and generation quality. To overcome this, we introduce Free Draft-and-Verification (FreeDave), a novel training-free and model-free fast decoding algorithm. FreeDave capitalizes on the inherent properties of dLLMs by treating future token predictions as ``free drafts'' and rigorously self-verifying them in subsequent forward passes. Theoretically, FreeDave searches for a shorter decoding path that is guaranteed to reproduce the exact sequence generated by static decoding, achieving algorithmically lossless acceleration. With a sufficiently large draft budget and a verification frontier that does not retreat, it can use the fewest possible model forward passes among feasible paths. Extensive evaluations on math reasoning and code generation benchmarks demonstrate that FreeDave can boost the number of generated tokens per model forward (TPF) by up to 5.48$\times$ and tokens per second (TPS) by up to 3.94$\times$, while robustly maintaining generation quality and avoiding the task-specific performance degradation faced by heuristic methods. Code is available at https://github.com/cychomatica/FreeDave.

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

↑