面向扩散语言模型的频率感知重掩码测试时扩展

·

研究论文 · 2026/11/12

扩散语言模型(DLM)通过迭代去噪生成文本,其中决定提交或重新掩码哪些token会强烈影响输出质量。现有的确定性感知策略依赖瞬时置信度或熵,但这些局部信号在困难推理问题上可能产生误导。我们将DLM测试时缩放建模为推理计算和解码策略的自适应分配。我们的两阶段方法使用快速基础采样器解决简单问题,然后对剩余困难问题应用频率感知重掩码。该策略跟踪每个token的预测在去噪步骤中变化的频率,并优先提交频繁变化的token,鼓励样本探索替代推理路径,而不是坍缩到模型偏好的轨迹。在LLaDA-8B-Instruct和Dream-7B-Instruct上的实验表明,与强自适应分配基线相比,该方法持续改进,在MATH-500上绝对准确率提升高达3.73个百分点(LLaDA)和7.33个百分点(Dream),在HumanEval上绝对覆盖率提升高达11.39个百分点(LLaDA)和10.98个百分点(Dream)。对于基础确定性感知策略在100个样本后仍未解决的问题,频率感知重掩码为3.75%至18.75%的示例恢复了解决方案。

该论文针对扩散语言模型在困难推理任务上的测试时缩放问题,提出了一种简单有效的频率感知重掩码策略,在多个模型和基准上取得了显著提升,为DLM的推理增强提供了新思路。

Diffusion language models (DLMs) generate text through iterative denoising, where decisions about which tokens to commit or remask strongly affect output quality. Existing certainty-aware strategies rely on instantaneous confidence or entropy, but these local signals can be misleading on difficult reasoning problems. We formulate DLM test-time scaling as adaptive allocation of both inference compute and decoding strategies. Our two-stage approach uses a fast base sampler to solve easy questions, then applies frequency-aware remasking to the remaining hard questions. This strategy tracks how often each token's prediction changes across denoising steps and preferentially commits frequently changing tokens, encouraging samples to explore alternative reasoning paths rather than collapse onto the model's preferred trajectory. Experiments with LLaDA-8B-Instruct and Dream-7B-Instruct show consistent improvements over a strong adaptive allocation baseline, with absolute accuracy gains of up to 3.73 percentage points (LLaDA) and 7.33 percentage points (Dream) on MATH-500, and absolute coverage gains of up to 11.39 percentage points (LLaDA) and 10.98 percentage points (Dream) on HumanEval. On questions unsolved by the base certainty-aware strategy after 100 samples, frequency-aware remasking recovers solutions for 3.75% to 18.75% of examples.

阅读原文

参与讨论