ΔL Normalization: Rethink Loss Aggregation in RLVR
本文提出了ΔL Normalization,一种针对RLVR动态生成长度特性的简单而有效的损失聚合方法,通过降低梯度方差和稳定优化,提高了强化学习在可验证奖励中的推理能力。
更新于 2025-09-11。作者:Zhiyuan He、Xufang Luo、Yike Zhang、Yuqing Yang、Lili Qiu。
中文摘要
我们提出了Delta L归一化,这是一种针对强化学习与可验证奖励(RLVR)中动态生成长度特性的简单而有效的损失聚合方法。最近,RLVR在提升大型语言模型(LLMs)推理能力方面展现出了强大的潜力,但一个主要挑战在于训练过程中响应长度的巨大可变性,这导致梯度方差高且优化不稳定。尽管先前的方法如GRPO、DAPO和Dr. GRPO引入了不同的损失归一化项来解决这个问题,但它们要么产生有偏估计,要么仍然遭受高梯度方差的问题。通过理论分析和实证分析不同长度对策略损失的影响,我们将问题重新表述为寻找最小方差无偏估计器。我们提出的Delta L归一化不仅提供了对真实策略损失的 unbiased 估计,而且在理论上还最小化了梯度方差。大量实验表明,它在不同模型大小、最大长度和任务上都能持续实现优异的结果。我们的代码将在 https://github.com/zerolllin/Delta-L-Normalization 上公开。
英文摘要
We propose Delta L Normalization, a simple yet effective loss aggregation method tailored to the characteristic of dynamic generation lengths in Reinforcement Learning with Verifiable Rewards (RLVR). Recently, RLVR has demonstrated strong potential in improving the reasoning capabilities of large language models (LLMs), but a major challenge lies in the large variability of response lengths during training, which leads to high gradient variance and unstable optimization. Although previous methods such as GRPO, DAPO, and Dr. GRPO introduce different loss normalization terms to address this issue, they either produce biased estimates or still suffer from high gradient variance. By analyzing the effect of varying lengths on policy loss both theoretically and empirically, we reformulate the problem as finding a minimum-variance unbiased estimator. Our proposed Delta L Normalization not only provides an unbiased estimate of the true policy loss but also minimizes gradient variance in theory. Extensive experiments show that it consistently achieves superior results across different model sizes, maximum lengths, and tasks. Our code will be made public at https://github.com/zerolllin/Delta-L-Normalization.
解读
一句话总结
本文提出了ΔL Normalization,一种针对RLVR动态生成长度特性的简单而有效的损失聚合方法,通过降低梯度方差和稳定优化,提高了强化学习在可验证奖励中的推理能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:在强化学习与可验证奖励(RLVR)中,响应长度的动态变化导致训练过程中的梯度方差高且不稳定。
- 现有方案不足:现有的方法如GRPO、DAPO和Dr. GRPO通过引入不同的损失归一化项来解决梯度方差问题,但它们要么产生有偏估计,要么仍然存在高梯度方差。
- 研究目标:提出ΔL Normalization方法,提供一个无偏的真正策略损失的估计,并在理论上最小化梯度方差。
问题2:论文的核心创新点是什么?
- 技术创新:将问题重新表述为寻找一个最小方差无偏估计量。
- 方法改进:提出的ΔL Normalization方法提供无偏估计并最小化梯度方差。
- 优势:与现有方法相比,ΔL Normalization在理论上和实验上均表现出优异的结果,并具有简单的实现方式。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在两个模型Qwen2.5-3B和Qwen2.5-7B上,针对两个任务CountDown和Math,以及不同的最大响应长度进行实验。
- 性能提升:ΔL Normalization在所有设置中均实现了比基线方法更好的结果,表现出更高的稳定性和准确性。
- 对比结果:与基线方法如GRPO Norm、DAPO Norm和Dr. GRPO Norm相比,ΔL Normalization在模型大小、最大长度和任务上均取得了显著的性能提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于强化学习与可验证奖励(RLVR)中的推理能力提升。
- 实施建议:Delta-L Normalization易于实现,只需进行少于十行的代码更改。
- 局限与展望:未来可以进一步研究ΔL Normalization在其他RLVR任务中的应用,以及如何优化超参数α以适应不同的任务和数据集。