让稀疏奖励发挥作用:面向多奖励强化学习的密度感知奖励聚合
研究论文 · 2026/10/02
多奖励强化学习训练大语言模型同时满足多个行为目标。GDPO中使用的奖励归一化保留了每个rollout组内奖励特定的相对信息,但不同目标仍可能表现出不均衡的学习进度。我们通过优势能量(一个奖励在一个批次上的平方优势之和)来研究这种行为。在理想化的GDPO归一化下,我们证明该能量与活跃组密度成正比:即该奖励提供非零相对优势的rollout组比例。这揭示了残余的批次级信号不平衡,并为校准奖励贡献提供了依据。基于此关系,我们提出密度感知奖励聚合(DARA)。我们推导出一种逆平方根密度校正,赋予来自较少活跃奖励的信号更大权重。DARA从每个rollout批次计算其权重,适应训练过程中奖励活动的变化,而不修改底层策略优化目标。在工具调用和数学推理上的实验表明,DARA比GDPO更快地学习目标行为,在工具调用上以最多减少26%的训练步数达到高格式合规性,在数学推理上以最多减少65%的步数达到接近饱和的长度合规性,同时在最终性能上保持竞争力。我们的代码可在https://github.com/zhaihaotian/DARA获取。
该研究解决了多奖励强化学习中奖励信号不平衡的关键问题,提出的DARA方法简单有效,能显著加速训练且不改变优化目标,对实际应用有重要价值。
Multi-reward reinforcement learning trains large language models to satisfy multiple behavioral objectives simultaneously. Reward-wise normalization, as used in GDPO, preserves reward-specific relative information within rollout groups, but different objectives can still exhibit uneven learning progress. We study this behavior through advantage energy, the sum of a reward's squared advantages over a batch. Under idealized GDPO normalization, we show that this energy is proportional to active-group density: the fraction of rollout groups in which the reward provides nonzero relative advantages. This reveals a residual batch-level signal imbalance and provides a basis for calibrating reward contributions. Based on this relation, we propose Density-Aware Reward Aggregation (DARA). We derive an inverse-square-root density correction that gives greater weight to signals from less frequently active rewards. DARA computes its weights from each rollout batch, adapting to changes in reward activity throughout training without modifying the underlying policy optimization objective. Experiments on tool calling and mathematical reasoning show that DARA learns the targeted behaviors faster than GDPO, reaching high format compliance in up to 26% fewer training steps on tool calling and near-saturated length compliance in up to 65% fewer steps on mathematical reasoning, while remaining competitive in final performance. Our code is available at https://github.com/zhaihaotian/DARA.