学习引导,引导以见:通过可训练向量揭示大语言模型中RLVR的几何结构
研究论文 · 2026/10/09
强化学习(RL)已成为提升大语言模型推理能力的关键范式,但参数更新的高维性使其训练动态难以分析。我们研究可验证奖励的强化学习(RLVR),并使用向量引导来识别激活空间中与RL增益相关的低维有效流形。我们揭示两个几何特性:(1)有效流形容量:复现RL增益所需的容量可能非常小,但并非无限可压缩;在极低容量下,干预维度和输入依赖的表达性成为关键约束,且这一需求随注入深度变化。(2)控制流形分离:有效控制方向主要位于激活主成分子空间的低方差补集中。在同一任务和基础模型内,学习到的几何结构在不同训练配置下基本一致,跨任务时几何对齐与能力迁移相关。在5个LLM和6个可验证奖励任务上的实验支持了这些发现。随后我们提出Alpha-Stabler,一个即插即用框架,包含一个预测器,监控主成分子空间入侵以提供早期崩溃警告,以及一个控制器,在反向传播过程中移除激活梯度的主成分子空间分量,同时保留正交补。Alpha-Stabler稳定训练2000步,并持续提升RL增益,为稳健的后训练提供了实用见解。代码:https://github.com/caiyuchen-ustc/On_Policy_Vector_Training
该研究通过几何视角深入分析了RLVR的训练动态,提出了可解释的几何特性,并基于此设计了实用的稳定训练框架,对提升大语言模型后训练的鲁棒性具有重要价值。
Reinforcement learning (RL) has become a key paradigm for enhancing the reasoning of large language models, yet the high dimensionality of parameter updates makes its training dynamics hard to analyze. We study reinforcement learning with verifiable rewards (RLVR) and use vector steering to identify a low-dimensional effective manifold in activation space associated with RL-induced gains. We uncover two geometric properties. (1) Effective Manifold Capacity: the capacity needed to reproduce RL gains can be very small but is not infinitely compressible; at extremely low capacity, intervention dimensionality and input-dependent expressiveness become key constraints, and this requirement varies with injection depth. (2) Control Manifold Separation: effective control directions lie mainly in the low-variance complement of the activation principal subspace. Within a task and base model, the learned geometry stays largely consistent across training configurations, and across tasks geometric alignment correlates with capability transfer. Experiments on 5 LLMs and 6 verifiable-reward tasks support these findings. We then propose Alpha-Stabler, a plug-and-play framework with a Predictor that monitors principal-subspace intrusion for early collapse warnings, and a Controller that removes the principal-subspace component of activation gradients during backpropagation while preserving the orthogonal complement. Alpha-Stabler stabilizes training for 2,000 steps and consistently improves RL gains, offering practical insights for robust post-training. Code: https://github.com/caiyuchen-ustc/On_Policy_Vector_Training