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

纠正扩散语言模型

Corrective Diffusion Language Models

University of Wisconsin–Madison(威斯康星大学麦迪逊分校);Duke University(杜克大学)

Shuibai Zhang, Fred Zhangzhi Peng, Yiheng Zhang, Jin Pan, Grigorios G. Chrysos

AI总结:

纠正扩散语言模型通过明确监督可见错误token,实现判别性置信度和针对性细化,显著提升代码修订和并行解码任务性能。

摘要:

尽管扩散语言模型(DLMs)在理论上因其非因果结构而适合迭代细化,但它们在实践中往往无法可靠地修正错误的token。关键挑战在于模型无法在可见序列中区分正确和错误的token。标准的掩码扩散语言模型(MDLM)训练仅限于解屏蔽的目标,削弱了由置信度引导的细化效果。基于这一观察,我们研究了DLMs的纠正行为,定义为模型能够对错误的token分配较低的置信度,并在保留正确内容的同时进行迭代细化。我们表明,这种能力并非由传统掩码扩散目标诱导,并提出了一种以纠正为导向的后训练原则,明确监督可见的错误token,从而实现判别性的置信度和针对性的细化。为了评估纠正行为,我们引入了代码修订基准,一个可控且可执行的基准,用于评估错误定位和原地修正。在代码修订任务和并行解码场景中的实验表明,使用我们方法训练的模型在很大程度上优于标准的MDLMs,当并行解码引入显著的不确定性且迭代细化成为必要时,改进尤为明显。我们的代码已公开在https://github.com/zhangshuibai/CDLM。

英文摘要:

While Diffusion Language Models (DLMs) are theoretically well-suited for iterative refinement due to their non-causal structure, off-the-shelf masked diffusion language models (MDLMs) often fail to reliably revise incorrect tokens in practice. The key challenge is that the model cannot tell correct from erroneous visible tokens: standard MDLM training supervises only masked positions, undermining confidence-guided refinement. We study corrective behavior in DLMs, the ability to assign lower confidence to incorrect tokens and iteratively refine them while preserving correct content. Under matched compute and data, we show that conventional masked-diffusion fine-tuning induces much less of this capability than a correction-oriented post-training principle that explicitly supervises visible corrupted tokens, which enables discriminative confidence and targeted refinement. We further find that also supervising clean visible tokens, as in BERT- or GIDD-style training, stops remask-based refinement from improving with additional steps. To evaluate it, we introduce the Code Revision Benchmark, a controllable, executable benchmark for error localization and in-place correction. The effect transfers from a 0.5B model to LLaDA-8B and persists, with a smaller margin, when corruptions are drawn from the base model's own most plausible predictions. The same error-aware confidence also makes parallel decoding more effective. In HumanEval(+) code completion at 0.5B, mathematical reasoning at 16B, and high-entropy parallel decoding with remasking (ParallelBench), models trained with our objective outperform standard masked-diffusion fine-tuning under matched compute, and outperform the base model on HumanEval(+), MATH, and the high-entropy ParallelBench average; at 8B, neither objective improves from-scratch generation over the base model. Code and data: https://github.com/zhangshuibai/CDLM

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

↑