隐藏状态知道推理分歧所在:通过跨度级瓦瑟斯坦距离进行信用分配
Hidden States Know Where Reasoning Diverges: Credit Assignment via Span-Level Wasserstein Distance
AI总结:
本文提出SHEAR方法,利用跨度级瓦瑟斯坦距离提升信用分配精度,无需额外标注。
摘要:
组相对策略优化(GRPO)通过将所有token的优势设为相同来实现强化学习中的粗粒度信用分配。过程奖励模型能提供更细粒度的监督,但需要步级标注或额外奖励建模。我们发现隐藏状态分布包含可用于本地推理质量的有用信号,仅需RLVR中的结果级正确性标签即可提取。具体而言,在每个GRPO组中,正确和错误轨迹的跨度级隐藏状态分布的瓦瑟斯坦距离在本地推理质量分歧区域增加。这种关联在跨示例和单轨迹内均成立,表明隐藏状态分布分歧可作为细粒度信用分配的自监督信号。我们通过分离定理正式化这一观察,证明在温和的结构假设下,分歧后跨度的瓦瑟斯坦距离大于分歧前跨度,当总体分布差距超过有限样本噪声时。受此结果启发,我们提出跨度级隐藏状态增强优势重 weighting(SHEAR),通过使用跨度级瓦瑟斯坦距离缩放token级优势,放大隐藏状态更分离的token的更新。该方法无需额外模型,仅需最小训练流程修改。在五个数学推理基准和五个代码生成基准上的实验显示,SHEAR在标准GRPO和监督过程奖励模型上均表现优异,且无需额外标注或奖励模型训练。
英文摘要:
Group Relative Policy Optimization (GRPO) performs coarse-grained credit assignment in reinforcement learning with verifiable rewards (RLVR) by assigning the same advantage to all tokens in a rollout. Process reward models can provide finer-grained supervision, but they require step-level annotation or additional reward modeling. We show that hidden-state distributions contain a useful signal for local reasoning quality that can be extracted using only outcome-level correctness labels available in RLVR. Specifically, within each GRPO group, the Wasserstein distance between span-level hidden state distributions of correct and incorrect rollouts increases around regions where their local reasoning quality diverges. This association holds both across examples and within individual trajectories, suggesting that hidden-state distributional divergence can serve as a self-supervision signal for fine-grained credit assignment. We formalize this observation with a separation theorem showing that, under mild structural assumptions, post-divergence spans have larger Wasserstein distances than pre-divergence spans whenever the population-level distributional gap exceeds finite-sample noise. Motivated by this result, we propose \textbf{S}pan-level \textbf{H}idden state \textbf{E}nabled \textbf{A}dvantage \textbf{R}eweighting (SHEAR), which modifies GRPO by using span-level Wasserstein distances to scale token-level advantages, amplifying updates on tokens whose hidden states are more separated from the opposing group. The method requires no additional model and only minimal changes to the training pipeline. Experiments on five mathematical reasoning benchmarks and five code generation benchmarks show improvements over standard GRPO and strong performance relative to supervised process reward models, while requiring no additional annotation or reward model training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。