Revolutionizing Reinforcement Learning Framework for Diffusion Large Language Models
该论文提出了一种名为TraceRL的轨迹感知强化学习框架,用于扩散语言模型,显著提高了数学和编码任务的推理性能,并实现了对模型块大小的扩展和推理加速。
更新于 2025-09-09。作者:Yinjie Wang、Ling Yang、Bowen Li、Ye Tian、Ke Shen、Mengdi Wang。
中文摘要
我们提出了一种名为TraceRL的轨迹感知强化学习框架,适用于扩散语言模型(DLMs)。该框架在训练后阶段结合了首选推理轨迹,并适用于不同的架构。TraceRL配备了基于扩散的价值模型,增强了训练稳定性,我们在复杂数学和编码任务上展示了改进的推理性能。此外,它还可以应用于将特定块模型适配到更大的块中,从而提高采样灵活性。使用TraceRL,我们推导出一系列最先进的扩散语言模型,即TraDo。尽管TraDo-4B-Instruct的规模小于7B级的AR模型,但它在复杂数学推理任务上仍然一致性地优于它们。TraDo-8B-Instruct在数学推理基准测试中,相对于Qwen2.5-7B-Instruct实现了6.1%的相对准确率提升,相对于Llama3.1-8B-Instruct提升了51.3%。通过课程学习,我们还推导出首个长-CoT DLM,在MATH500上相对于Qwen2.5-7B-Instruct实现了18.1%的相对准确率提升。为了促进可重复研究和实际应用,我们发布了一个综合的开源框架,用于构建、训练和部署跨不同架构的扩散LLM。该框架集成了加速的KV-cache技术和推理引擎,用于推理和强化学习,并包括数学、编码和通用任务的各种监督微调和RL方法的实现。代码和模型:https://github.com/Gen-Verse/dLLM-RL
英文摘要
We propose TraceRL, a trajectory-aware reinforcement learning framework for diffusion language models (DLMs) that incorporates preferred inference trajectory into post-training, and is applicable across different architectures. Equipped with a diffusion-based value model that enhances training stability, we demonstrate improved reasoning performance on complex math and coding tasks. Besides, it can also be applied to adapt block-specific models to larger blocks, which improves sampling flexibility. Employing TraceRL, we derive a series of state-of-the-art diffusion language models, namely TraDo. Although smaller than 7B-scale AR models, TraDo-4B-Instruct still consistently outperforms them across complex math reasoning tasks. TraDo-8B-Instruct achieves relative accuracy improvements of 6.1% over Qwen2.5-7B-Instruct and 51.3% over Llama3.1-8B-Instruct on mathematical reasoning benchmarks. Through curriculum learning, we also derive the first long-CoT DLM, outperforming Qwen2.5-7B-Instruct on MATH500 with an 18.1% relative accuracy gain. To facilitate reproducible research and practical applications, we release a comprehensive open-source framework for building, training, and deploying diffusion LLMs across diverse architectures. The framework integrates accelerated KV-cache techniques and inference engines for both inference and reinforcement learning, and includes implementations of various supervised fine-tuning and RL methods for mathematics, coding, and general tasks. Code and Models: https://github.com/Gen-Verse/dLLM-RL
解读
一句话总结
该论文提出了一种名为TraceRL的轨迹感知强化学习框架,用于扩散语言模型,显著提高了数学和编码任务的推理性能,并实现了对模型块大小的扩展和推理加速。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:扩散语言模型(DLMs)在推理时存在训练目标和推理轨迹不匹配的问题,导致推理性能受限。
- 现有方案不足:现有的后训练框架和强化学习方法往往忽略推理轨迹中的信息,导致推理性能无法达到最佳。
- 研究目标:提出一种新的强化学习框架,通过轨迹感知和扩散价值模型,提高DLMs的推理性能和适应性。
问题2:论文的核心创新点是什么?
- 技术创新:TraceRL,一种轨迹感知强化学习方法,结合扩散价值模型,提高训练稳定性和推理性能。
- 方法改进:将强化学习应用于DLMs,通过优化推理轨迹来提高推理性能。
- 优势:相比现有方法,TraceRL在数学和编码任务上实现了显著的性能提升,并能有效扩展模型块大小。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在数学和编码任务上进行了广泛的实验,评估了TraceRL的性能。
- 性能提升:TraDo-4B-Instruct在数学推理任务上优于强自回归模型,TraDo-8B-Instruct在数学推理基准测试中相对于Qwen2.5-7B-Instruct提高了6.1%,相对于Llama3.1-8B-Instruct提高了51.3%。
- 对比结果:TraceRL在优化性能上优于现有的强化学习方法。
问题4:这个研究的实际应用价值是什么?
- 应用场景:数学推理、编码、复杂任务推理等。
- 实施建议:使用TraceRL框架进行模型训练和部署,结合KV-cache技术和推理引擎加速推理。
- 局限与展望:未来可以进一步探索TraceRL在其他领域的应用,以及如何进一步优化模型性能和推理速度。
来源
机器可读索引:llms.txt