[论文解读] Not All Steps are Informative: On the Linearity of LLMs' RLVR Training
论文在 RLVR 训练过程中证明了权重更新和 token 对数概率的线性性,并提出基于外推的加速方法,达到或超过标准 RLVR 的效果且计算量更低。它提出 Weight Extrapolation、Logit Extrapolation 和 RL-Extra 以加速训练。
Reinforcement learning with verifiable rewards (RLVR) has become a central component of large language model (LLM) post-training. Unlike supervised fine-tuning (SFT), RLVR lets an LLM generate multiple candidate solutions and reinforces those that lead to a verifiably correct final answer. However, in practice, RLVR often requires thousands of training steps to reach strong performance, incurring substantial computation largely attributed to prolonged exploration. In this work, we make a surprising observation: during RLVR, LLMs evolve in a strongly linear manner. Specifically, both model weights and model output log-probabilities exhibit strong linear correlations with RL training steps. This suggests that RLVR predominantly amplifies trends that emerge early in training, rather than continuously discovering new behaviors throughout the entire optimization trajectory. Motivated by this linearity, we investigate whether future model states can be predicted from intermediate checkpoints via extrapolation, avoiding continued expensive training. We show that Weight Extrapolation produces models with performance comparable to standard RL training while requiring significantly less computation. Moreover, Logits Extrapolation consistently outperforms continued RL training on mathematics and code benchmarks by extrapolating beyond the step range where RL training remains stable. Our code is available at https://github.com/Miaow-Lab/RLVR-Linearity
研究动机与目标
- 在不同模型和算法下,识别并量化 RLVR 训练中权重更新的线性趋势。
- 分析 RL 步骤中模型输出的对数概率和 logits 的线性性。
- 理论解释观察到的权重和输出线性性的起源。
- 开发不牺牲性能的基于外推的快速加速方法来提升 RLVR。
- 提出一种间歇性训练方案(RL-Extra),在降低墙钟时间的同时维持性能。
提出的方法
- 对 RLVR 关键点处采样的权重进行线性回归以测量 R^2,并评估不同模型和算法下的权重线性性。
- 分析检查点之间的 token 对数概率和 logits 以评估输出线性性。
- 理论解释线性权重变化如何在变换器层中导致线性输出变化。
- 提出 Logit Extrapolation 和 Weight Extrapolation 的公式,从两个过去的检查点预测未来状态(等式 1 和 2)。
- 引入 RL-Extra,作为 m 个 RL 步 + n 次外推步的循环,以在梯度更新和外推之间取得平衡(等式 3)。
- 在 DeepScaleR-Preview 上以 1.5B 主模型,使用 AIME-24/25、MATH-500 和 LiveCodeBench 基准进行评测。
实验结果
研究问题
- RQ1RLVR 训练步骤是否在多样化的基础模型和 RL 算法中呈现出强线性趋势的权重?
- RQ2模型输出(包括 token 对数概率和 logits)在 RLVR 训练步骤中是否表现出线性演变?
- RQ3权重或 logits 的外推是否能在不继续 RLVR 的情况下维持或提升性能?
- RQ4将 RL 步与权重外推交错(RL-Extra)是否能在更少计算量下实现与标准 RL 相当的性能?
主要发现
- 大多数对 RLVR 有关的权重显示 R^2 > 0.7,且分布集中在接近 0.9,表明权重线性性强。
- token 对数概率与训练步骤之间也呈现强线性相关,R^2 约为 0.9。
- 在外推区间内,Logits 外推在数学和代码基准上的性能持续提升,且避免了后期的不稳定性。
- 权重外推可以接近但不超过某一 horizon,最佳增益出现在中等外推步数附近。
- RL-Extra 在不同设定下与标准 RL 的性能相当,同时实现了高达 6.1× 的墙钟加速。
- 直接外推方法在选定基准上对比基线实现高达 3% 的性能提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。