匹配画布,而非仅匹配答案:面向扩散语言模型的可预测性感知监督微调
Match the Canvas, Not Just the Answer: Predictability-Aware SFT for Diffusion Language Models
AI总结:
针对扩散语言模型训练与推理的不匹配问题,提出可预测性感知画布选择与监督(PACS)方法,在推理和代码生成基准测试中较普通 SFT 最高提升 12.84 个百分点,实现最优平均准确率。
摘要:
扩散语言模型(DLM)通过根据模型不断变化的可预测性而非固定的从左到右顺序解析 token,实现灵活的并行生成。然而,这种灵活性带来了标准自回归教师强制中不存在的训练选择:监督目标时应可见哪些参考 token,以及应分配多少生成空间。标准监督微调(SFT)通常通过随机掩码做出这些选择,且与推理过程无关。我们的分析表明,这种训练-推理不匹配会如何误导监督:随机掩码可能掩盖预测误差,或惩罚解码本可解决的不确定性;即使底层解决方案不变,注意力可见输入长度也会改变模型偏好的响应形式。基于这些发现,我们提出了一种 SFT 方法——可预测性感知画布选择与监督(PACS)。PACS 利用模型自身的可预测性选择每个示例的注意力可见输入长度,并在参考 token 经置信度引导揭示前立即对其进行监督。在推理和代码生成基准测试中,PACS 在对比的 SFT 方法中始终实现最高平均准确率,在单个基准测试中较普通 SFT 的提升高达 12.84 个百分点。代码将在发表后发布。
英文摘要:
Diffusion language models (DLMs) enable flexible parallel generation by resolving tokens according to the model's evolving predictability rather than a fixed left-to-right order. This flexibility, however, introduces training choices absent from standard autoregressive teacher forcing: which reference tokens are visible when a target is supervised and how much generation space is allocated. Standard supervised fine-tuning (SFT) typically makes these choices through random masking, independently of inference. Our analysis shows how this training-inference mismatch can misdirect supervision. Random masking can conceal prediction errors or penalize uncertainty that decoding would otherwise resolve, while the attention-visible input length can change which response formulations the model favors, even when the underlying solution is unchanged. Motivated by these findings, we propose Predictability-Aware Canvas Selection and Supervision (PACS), an SFT method. PACS uses the model's own predictability to select each example's attention-visible input length and supervises reference tokens immediately before their confidence-guided revelation. Across reasoning and code-generation benchmarks, PACS consistently achieves the highest mean accuracy among the compared SFT methods, with gains of up to 12.84 percentage points over vanilla SFT on individual benchmarks. Code will be released upon publication.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。