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

目标重掩码:在离散扩散语言模型中将令牌编辑替换为令牌到掩码的精炼

Targeted Remasking: Replacing Token Editing with Token-to-Mask Refinement in Discrete Diffusion Language Models

Lin Yao

AI总结:

针对离散掩码扩散语言模型中令牌编辑机制的局限性,提出无训练的令牌到掩码重掩码方法,通过将疑似错误令牌重置为掩码状态,利用扩散过程在更干净上下文中重新预测,显著提升数学等任务的性能。

摘要:

离散掩码扩散语言模型(如LLaDA)通过迭代去噪生成文本,其中掩码令牌逐步被预测的令牌替换。LLaDA2.1引入了令牌到令牌(T2T)编辑机制,通过直接替换疑似错误的已提交令牌来加速生成。然而,我们发现了T2T编辑的根本性限制:它将错误检测与替换耦合,用可能错误的令牌污染生成上下文,并引入了训练-推理噪声不匹配,其中系统性的模型生成错误与训练中看到的随机扰动不同。我们提出了令牌到掩码(T2M)重掩码,这是一种无需训练、即插即用的T2T编辑替代方案,将疑似错误的令牌重置回掩码状态,允许扩散过程在更干净的上下文中重新预测它们。我们设计并实证验证了三种互补的错误检测策略——基于概率的、触发镜像的和基于时间差分的——并提供了统一的理论分析,表明T2M重掩码净化了生成上下文,将系统性的推理错误转换回模型的原生掩码噪声类型,并实现了延迟承诺以进行联合多位置优化。在涵盖知识、推理、数学、编码和指令跟随的12个基准上的全面实验表明,T2M通常在需要精确令牌级输出的任务上提升性能,其中数学任务提升最大(CMATH上+5.92%)。对CMATH的错误分析揭示,主要的失败模式是最后一英里令牌损坏——即正确的推理产生损坏的最终答案——而T2M修复了59.4%的此类情况。

英文摘要:

Discrete masked diffusion language models such as LLaDA generate text through iterative denoising, where mask tokens are progressively replaced with predicted tokens. LLaDA2.1 introduced a Token-to-Token (T2T) editing mechanism that accelerates generation by directly replacing committed tokens suspected of being incorrect. However, we identify fundamental limitations of T2T editing: it couples error detection with replacement, pollutes the generation context with potentially incorrect tokens, and introduces a train-inference noise mismatch where systematic model-generated errors differ from the random perturbations seen during training. We propose Token-to-Mask (T2M) remasking, a training-free, drop-in replacement for T2T editing that resets suspected erroneous tokens back to the mask state, allowing the diffusion process to re-predict them under cleaner context. We design and empirically validate three complementary error detection strategies -- probability-based, trigger-mirrored, and temporal-difference-based -- and provide a unified theoretical analysis showing that T2M remasking purifies the generation context, converts systematic inference errors back to the model's native mask noise type, and enables delayed commitment for joint multi-position optimization. Comprehensive experiments across 12 benchmarks spanning knowledge, reasoning, mathematics, coding, and instruction following show that T2M generally improves performance on tasks requiring precise token-level output, with the largest gain on mathematics (+5.92% on CMATH). Error analysis on CMATH reveals that the dominant failure mode is last-mile token corruption -- where correct reasoning produces a corrupted final answer -- and that T2M repairs 59.4% of such cases.

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

↑