残差上下文扩散语言模型
Residual Context Diffusion Language Models
AI总结:
提出残差上下文扩散(RCD)模块,通过回收丢弃令牌的上下文残差提高扩散语言模型的解码效率,在长/短CoT任务上以极少额外计算提升准确率4-11个百分点。
摘要:
扩散大语言模型(dLLM)已成为纯自回归语言模型的有前途的替代方案,因为它们可以并行解码多个令牌。然而,最先进的逐块dLLM依赖于一种“重掩码”机制,该机制仅解码最自信的令牌并丢弃其余令牌,从而浪费计算。我们证明,回收来自被丢弃令牌的计算是有益的,因为这些令牌保留了对于后续解码迭代有用的上下文信息。鉴于此,我们提出了残差上下文扩散(RCD),一个将这些被丢弃的令牌表示转换为上下文残差并将其注入回下一个去噪步骤的模块。RCD使用解耦的两阶段训练流程来绕过与反向传播相关的内存瓶颈。我们在长链推理(SDAR)和短链指令跟随(LLaDA)模型上验证了我们的方法。我们证明,一个标准的dLLM可以仅用约3亿个令牌高效地转换为RCD范式。在广泛基准测试中,RCD以极小的额外计算开销一致地将前沿dLLM的准确率提升4-11个百分点。值得注意的是,在最具挑战性的AIME任务上,RCD几乎使基线准确率翻倍,并在基线峰值准确率下实现高达4-5倍更少的去噪步骤。
英文摘要:
Diffusion Large Language Models (dLLMs) have emerged as a promising alternative to purely autoregressive language models because they can decode multiple tokens in parallel. However, state-of-the-art block-wise dLLMs rely on a "remasking" mechanism that decodes only the most confident tokens and discards the rest, effectively wasting computation. We demonstrate that recycling computation from the discarded tokens is beneficial, as these tokens retain contextual information useful for subsequent decoding iterations. In light of this, we propose Residual Context Diffusion (RCD), a module that converts these discarded token representations into contextual residuals and injects them back for the next denoising step. RCD uses a decoupled two-stage training pipeline to bypass the memory bottlenecks associated with backpropagation. We validate our method on both long CoT reasoning (SDAR) and short CoT instruction following (LLaDA) models. We demonstrate that a standard dLLM can be efficiently converted to the RCD paradigm with merely ~300 million tokens. RCD consistently improves frontier dLLMs by 4-11 percentage points in accuracy with minimal extra computation overhead across a wide range of benchmarks. Notably, on the most challenging AIME tasks, RCD nearly doubles baseline accuracy and attains up to 4-5x fewer denoising steps at baseline's peak accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。