基于谱驱动的自适应秩优化器用于可验证奖励的大语言模型强化学习
研究论文 · 2026/10/14
可验证奖励的强化学习(RLVR)正在重塑大语言模型(LLM)获取推理能力的方式,但所用优化器仍主要继承自教师强制训练。这引出一个根本问题:RLVR是否诱导了独特的优化几何结构,从而需要不同的优化器?我们通过LLM梯度的谱结构研究此问题,发现梯度能量逐渐集中到一个收缩的有效子空间,这是RLVR的特征,在监督微调(SFT)下不存在,且当可验证奖励被随机奖励替代时基本消失。此外,捕获固定比例梯度能量所需的秩随训练稳定下降,表明有用更新的有效维度本身随训练演变。这些发现启发了新的优化原则:优化器不应外部指定更新秩,而应使其秩适应梯度的演变谱结构。我们提出Ares(自适应秩有效谱优化),它从梯度的谱能量分布估计有效更新秩,跟踪其演变,并将驱动每次更新的梯度信号限制在所得低秩子空间内。在不同规模的LLM上,Ares相比广泛使用的优化器提高了准确率,并泛化到不同的RLVR算法和任务。结果表明,有效优化可能需要优化器围绕训练过程的几何和动态来设计。代码和数据发布于https://github.com/RUCAIBox/Ares。
该研究揭示了RLVR训练中梯度谱结构的独特演变规律,并据此设计了自适应秩优化器Ares,在多个LLM和任务上提升了性能,为面向强化学习的优化器设计提供了新思路。
Reinforcement learning with verifiable rewards (RLVR) is reshaping how large language models (LLMs) acquire reasoning capabilities, yet the optimizers used remain largely inherited from teacher-forcing training. This raises a fundamental question: does RLVR induce a distinct optimization geometry that calls for a different optimizer? We investigate this question through the spectral structure of LLM gradients and find that gradient energy progressively concentrates into a shrinking effective subspace, which is characteristic of RLVR, as it is absent under supervised fine-tuning (SFT) and is largely removed when the verifiable reward is replaced by a random one. Moreover, the rank required to capture a fixed fraction of gradient energy steadily decreases over training, revealing that the effective dimensionality of useful updates itself evolves with training. These findings motivate a new optimization principle: rather than prescribing the update rank externally, an optimizer should adapt its rank to the evolving spectral structure of the gradient. We introduce Ares (Adaptive Rank-Effective Spectral Optimization), which estimates the effective update rank from the gradient's spectral energy distribution, tracks its evolution, and confines the gradient signal driving each update to the resulting low-rank subspace. Across LLMs of different scales, Ares improves accuracy over widely used optimizers and generalizes across RLVR algorithms and tasks. Results suggest that effective optimization may require optimizers to be designed around the geometry and dynamics of the training process. We release the code and data at https://github.com/RUCAIBox/Ares.