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

超越置信度:用于扩散语言模型的自适应与一致解码

Beyond Confidence: Adaptive and Coherent Decoding for Diffusion Language Models

City University of Hong Kong(香港城市大学);Huawei Research(华为研究);The University of Hong Kong(香港大学)

Kecheng Chen, Ziru Liu, Xijia Tao, Hui Liu, Xinyu Fu, Suiyun Zhang, Dandan Tu, Lingpeng Kong, Rui Liu, Haoliang Li

AI总结:

本文提出Coherent Contextual Decoding方法,通过自适应解码策略提升扩散语言模型的生成质量和采样效率。

摘要:

扩散语言模型(DLMs)由于其任意顺序生成能力最近取得了显著成功。然而,现有的推理方法通常依赖于局部、即时步的指标,如置信度或熵,这些指标本质上缺乏更可靠的视角。这一限制经常导致不一致的采样轨迹和次优的生成质量。为此,我们提出了Coherent Contextual Decoding(CCD),一种基于两个核心创新的新型推理框架。首先,CCD采用轨迹校正机制,利用历史上下文来增强序列一致性,使早期拒绝次优路径成为可能。我们证明,这种机制在理论上等同于通过上下文与令牌预测之间的条件互信息建模历史步骤的一致性。基于这一理论见解,我们进一步解决了传统均匀解码预算的效率问题。与其基于扩散步骤进行刚性分配,我们引入了一种自适应采样策略,根据我们的一致性度量动态调整每个步骤的解码预算。因此,我们的方法在提高生成轨迹质量的同时加速了采样过程。实证表明,我们的方法在Dream和LLaDA等多样化基准上同时提升了推理速度和性能,实现了高达3.48倍的速度提升和3.91%的性能提升。

英文摘要:

Diffusion Language Models (DLMs) have recently achieved significant success due to their any-order generation capabilities. However, existing inference methods typically rely on local, immediate-step metrics such as confidence or entropy which inherently lack a more reliable perspective. This limitation frequently leads to inconsistent sampling trajectories and suboptimal generation quality. To address this, we propose Coherent Contextual Decoding (CCD), a novel inference framework built upon two core innovations. First, CCD employs a trajectory rectification mechanism that leverages historical context to enhance sequence coherence, enabling the early rejection of suboptimal paths. We demonstrate that this mechanism is theoretically equivalent to modeling the consistency of historical steps via the conditional mutual information between context and token predictions. Building on this theoretical insight, we further address the inefficiency of conventional uniform decoding budgets. Instead of rigid allocations based on diffusion steps, we introduce an adaptive sampling strategy that dynamically adjusts the unmasking budget for each step according to our consistency metric. Consequently, our method significantly improves the quality of generation trajectories while accelerating the sampling process. Empirically, our method achieves a simultaneous enhancement in both inference speed and performance across diverse benchmarks on Dream and LLaDA, delivering up to 3.48x speedup alongside 3.91% performance improvement.

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

↑