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

延迟承诺解码用于扩散语言模型

Deferred Commitment Decoding for Diffusion Language Models

Peking University(北京大学);Huawei Technologies(华为技术)

Yingte Shu, Yuchuan Tian, Chao Xu, Yunhe Wang, Hanting Chen

AI总结:

本文提出延迟承诺解码方法,通过基于不确定性的策略提升扩散语言模型解码质量和效率,实验显示在多个模型和基准测试中效果显著。

摘要:

扩散语言模型(DLMs)最近作为一种强大的替代方案出现,通过使并行文本生成成为可能,从而超越了自回归模型。为了提高推理效率和KV缓存兼容性,先前的工作通常采用基于块的扩散解码,逐块解码标记。然而,这种范式存在一个结构性限制,我们称之为边界诱导上下文截断(BICT):接近块边界的未解码标记被迫在没有访问附近未来上下文的情况下进行承诺,即使这种上下文可以显著减少不确定性。这种限制会降低解码确定性和生成质量,尤其是在需要精确推理的任务中,如数学问题解决和代码生成。我们提出了延迟承诺解码(DCD),一种新颖的、无需训练的解码策略,以缓解这一问题。DCD维护一个具有确定性意识的滑动窗口,覆盖掩码标记,早期解决低不确定性的标记,而将高不确定性的标记推迟到足够的上下文证据可用时。在多个扩散语言模型、基准测试和缓存配置上进行了广泛的实验,结果显示,与固定块解码方法相比,DCD在平均时间上具有可比性,但生成准确性提高了1.73%,最显著的改进达到16.5%。这些结果表明,基于不确定性的延迟标记承诺是一个简单而有效的原理,可以提高扩散语言模型解码的质量和效率。

英文摘要:

Diffusion language models (DLMs) have recently emerged as a strong alternative to autoregressive models by enabling parallel text generation. To improve inference efficiency and KV-cache compatibility, prior work commonly adopts block-based diffusion, decoding tokens block by block. However, this paradigm suffers from a structural limitation that we term Boundary-Induced Context Truncation (BICT): undecoded tokens near block boundaries are forced to commit without access to nearby future context, even when such context could substantially reduce uncertainty. This limitation degrades decoding certainty and generation quality, especially for tasks requiring precise reasoning, such as mathematical problem solving and code generation. We propose Deferred Commitment Decoding (DCD), a novel, training-free decoding strategy that mitigates this issue. DCD maintains a certainty-aware sliding window over masked tokens, resolving low-uncertainty tokens early while deferring high-uncertainty tokens until sufficient contextual evidence becomes available. Extensive experiments across multiple diffusion language models, benchmarks, and caching configurations show that DCD improves generation accuracy by 1.73% with comparable time on average compared to fixed block-based diffusion methods, with the most significant improvement reaching 16.5%. These results demonstrate that deferring token commitment based on uncertainty is a simple yet effective principle for improving both the quality and efficiency of diffusion language model decoding.

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

↑