什么构成好的去掩码策略?扩散语言模型中学习去掩码的受控研究

·

研究论文 · 2026/10/23

掩码扩散语言模型并行生成token,但其效率取决于哪些预测被提交。学习到的解掩码策略改善了速度-准确率权衡,但在监督信号、输入和容量上存在差异,模糊了哪些选择重要。我们将监督策略视为通过教师蒸馏解码过程,并独立考察教师将什么标记为可提交、策略在哪些状态上模仿教师、策略观察到什么,以及函数评估次数(NFE)必须减少多少才能抵消策略开销。我们发现,在低NFE下,将预测标记为与最终输出匹配过于宽松,而隐藏状态单独较弱但可以补充置信度。对于高达7.5M参数的策略,在测试设置中约10%的NFE减少足以抵消策略开销。因此,我们使用置信度和隐藏状态,在轨迹收缩目标上训练策略,该目标仅接受保持在参考轨迹上的提交。在LLaDA-8B-Instruct上,所得的856K参数策略在GSM8K上实现了最佳的准确率-NFE前沿和最高吞吐量,在MATH-500和HumanEval上在中等目标下具有竞争力,并且很大程度上迁移到Dream-7B-Instruct。

该研究系统分析了学习解掩码策略中的关键设计选择,提出了有效的轨迹收缩目标,并在多个模型和任务上验证了其高效性,对扩散语言模型的加速具有实际指导意义。

Masked diffusion language models generate tokens in parallel, but their efficiency depends on which predictions are committed. Learned unmasking policies improve the speed--accuracy trade-off, yet differ in supervision, inputs, and capacity, obscuring which choices matter. We view supervised policies as distilling a decoding procedure through a teacher and examine independently what the teacher labels as committable, on which states the policy imitates it, what the policy observes, and how much the number of function evaluations (NFE) must decrease to offset policy overhead. We find that labeling predictions matching the final output is overly permissive at low NFE, and hidden states are weak alone but can complement confidence. About a 10% NFE reduction suffices to offset policy overhead for policies up to 7.5M parameters across tested settings. We therefore train a policy on trajectory-contraction targets, which accept only commitments staying on a reference trajectory, using confidence and hidden states. On LLaDA-8B-Instruct, the resulting 856K-parameter policy achieves the best accuracy--NFE frontier and highest throughput on GSM8K, is competitive at moderate targets on MATH-500 and HumanEval, and largely transfers to Dream-7B-Instruct.

阅读原文

参与讨论