何时停止重用:动态梯度门控用于样本高效的RLVR
When to Stop Reusing: Dynamic Gradient Gating for Sample-Efficient RLVR
AI总结:
本文提出动态梯度门控(DGG)方法,通过实时监控lm_head梯度范数来检测并阻止有害的梯度传播,从而提高样本效率和训练速度。
摘要:
可验证奖励的强化学习(RLVR)已成为大型语言模型(LLMs)高级推理的主要范式,但获取rollout样本成本高昂,使得样本效率成为关键瓶颈。一种自然的解决方法是将每个rollout批次用于多个梯度更新,这是经典强化学习中的标准做法。然而在RLVR中,这会放大策略偏移,导致严重性能下降。检测降级的早期迹象并停止重用仍是一个开放且具有挑战性的问题。我们通过识别不均衡权重分歧(DWD)现象来填补这一空白:性能下降与lm_head权重变化的急剧上升同步,而中间层保持稳定。经验上,我们验证DWD在各种LLM和任务中一致出现。理论上,我们证明(i)有害梯度集中在lm_head,而中间层在结构上被衰减,(ii)lm_head梯度范数下界了策略偏移。这些结果确立了lm_head梯度范数作为灾难性策略偏移的原理性、实时信号。基于这一见解,我们提出动态梯度门控(DGG),一种轻量级干预,通过实时监控lm_head梯度范数并在有害梯度污染优化器前拦截它们。DGG在数学、ALFWorld、WebShop和搜索增强型问答任务中一致匹配或超过标准单次使用基线,实现高达2.93倍的样本效率和2.14倍的墙钟加速。
英文摘要:
Reinforcement Learning with Verifiable Rewards (RLVR) has become the dominant paradigm for advanced reasoning in Large Language Models (LLMs), but rollout samples are expensive to obtain, making sample efficiency a critical bottleneck. A natural remedy is to reuse each rollout batch for multiple gradient updates, a standard practice in classical RL. Yet in RLVR, this amplifies policy shift, leading to severe performance degradation. Detecting the onset of degradation early enough to stop reuse remains an open and challenging problem. We close this gap by identifying the \textit{Disproportionate Weight Divergence (DWD)} phenomenon: performance degradation is synchronized with a sharp surge in the \texttt{lm\_head} weight change, while intermediate layers remain stable. Empirically, we verify that DWD emerges consistently across diverse LLMs and tasks. Theoretically, we prove that (i) harmful gradients concentrate at the \texttt{lm\_head} while intermediate layers are structurally attenuated, and (ii) the \texttt{lm\_head} gradient norm lower-bounds the policy divergence. These results establish the \texttt{lm\_head} gradient norm as a principled, real-time signal of catastrophic policy shift. Guided by this insight, we propose \textit{Dynamic Gradient Gating (DGG)}, a lightweight intervention that monitors the \texttt{lm\_head} gradient norm in real time and intercepts harmful gradients before they corrupt the optimizer. DGG consistently matches or exceeds the standard single-use baseline, achieving up to $2.93\times$ sample efficiency and $2.14\times$ wall-clock speedup across math, ALFWorld, WebShop, and search-augmented QA tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。