arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.08539cs.LGcs.AIcs.ITmath.ITmath.OCstat.ML
收藏

关于RLVR优化动态:梯度间隙和步长阈值

On the optimization dynamics of RLVR: Gradient gap and step size thresholds

New York University(纽约大学)

Joe Suk, Yaqi Duan

AI总结:

本文通过分析RLVR训练过程,提出梯度间隙概念,揭示收敛依赖于更新方向与梯度间隙的对齐,并推导出步长阈值,解释了实践中长度归一化提升稳定性及固定学习率下成功率无法达到100%的原因。

摘要:

Reinforcement Learning with Verifiable Rewards (RLVR),利用简单的二元反馈对大语言模型进行后训练,已取得显著的实证成功。然而,其为何有效仍缺乏系统理解。本文通过分析RLVR在完整响应(轨迹)和令牌层面的训练过程,构建了其理论基础。核心分析引入了新的量度——梯度间隙,该量度形式化了从低奖励到高奖励区域的改进方向。我们证明收敛关键依赖于更新方向与梯度间隙的对齐。此外,我们基于梯度间隙的大小推导出一个尖锐的步长阈值:低于该阈值,学习收敛;高于该阈值,性能崩溃。本文理论进一步预测了临界步长必须随响应长度和成功率的缩放,从而解释了实践中如长度归一化的启发式方法如何提升稳定性,并表明在固定学习率下,成功率可以严格低于100%。重要的是,本文理论灵活适用于任何策略梯度算法,因此刻画了流行方法如REINFORCE和GRPO的动力学。我们通过受控的Bandit模拟和语言模型实验验证了这些预测,包括在后训练Qwen2.5-Math-7B上使用GRPO的实验。

英文摘要:

Reinforcement Learning with Verifiable Rewards (RLVR), which uses simple binary feedback to post-train large language models, has found significant empirical success. However, a principled understanding of why it works is lacking. This paper builds a theoretical foundation for RLVR by analyzing its training process at both the full-response (trajectory) and token levels. Central to our analysis is a new quantity called the Gradient Gap, which formalizes the direction of improvement from low-reward to high-reward regions of the response space. We prove that convergence critically depends on aligning the update direction with this Gradient Gap. Moreover, we derive a sharp step-size threshold based on the magnitude of the Gradient Gap: below it, learning converges, whereas above it, performance collapses. Our theory further predicts how the critical step size must scale with response length and the success rate, thereby explaining why practical heuristics such as length normalization improve stability and showing that, with a fixed learning rate, the success rate can stagnate strictly below $100\%$. Importantly, our theory holds flexibly for any policy-gradient algorithm and so characterizes the dynamics of popular approaches such as REINFORCE and GRPO. We validate these predictions through controlled bandit simulations and language model experiments on post-training Qwen2.5-Math-7B with GRPO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑