为扩散语言模型中的有界状态推理注册令牌

·

研究论文 · 2026/09/17

掩码扩散语言模型(dLLM)通过双向注意力迭代去噪掩码标记来生成文本。通常,跨生成块扩展推理需要将先前生成的文本保留在上下文中。我们探究dLLM是否能在文本被清除后,仅使用固定大小的携带状态继续推理。我们将此状态实现为少量寄存器标记:专用的固定位置标记,其连续隐藏状态被训练以跨生成块携带推理进度。我们对dLLM进行后训练,使其解码一块文本,在保留寄存器值的同时清除文本,并从提示和携带状态继续解码。在LLaDA和Dream上的主要比较中,寄存器在每个基准测试上都优于离散文本携带,在数学上提升高达8.5分,在代码上提升19.5分。寄存器对于有界代码生成尤其有效,因为正确的程序通常跨越多个块。最后,寄存器可以通过长视野推理任务上的强化学习进一步优化。

该研究提出了一种新颖的固定大小状态表示方法,使扩散语言模型能够在清除历史文本后继续推理,显著提升了数学和代码生成任务的性能,为长视野推理提供了高效解决方案。

Masked diffusion language models (dLLMs) generate text by iteratively denoising masked tokens with bidirectional attention. Extending reasoning across generation chunks normally requires keeping earlier generated text in context. We ask whether a dLLM can instead continue reasoning after that text is cleared, using only a fixed-size carried state. We implement this state as a small number of register tokens: dedicated fixed-position tokens whose continuous hidden states are trained to carry reasoning progress across generation chunks. We post-train dLLMs to decode a chunk of text, clear it while preserving the register values, and continue decoding from the prompt and carried state. In our main comparisons on LLaDA and Dream, registers outperform discrete-text carry on every benchmark, with gains of up to 8.5 points on math and 19.5 points on code. Registers are especially effective for bounded code generation, where correct programs usually span several chunks. Finally, registers can be further refined with reinforcement learning on long-horizon reasoning tasks.

阅读原文

参与讨论