Hidden States Know Where Reasoning Diverges: Credit Assignment via Span-Level Wasserstein Distance

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Xinzhu, He, Wei, Fan, Huichuan, Niu, Wenzhe, Sun, Zhongxiang, Wang, Xuanru, Gao, Jiuchong, Hao, Jinghua, He, Renqing, Yu, Weijie
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918468057563136
author Chen, Xinzhu
He, Wei
Fan, Huichuan
Niu, Wenzhe
Sun, Zhongxiang
Wang, Xuanru
Gao, Jiuchong
Hao, Jinghua
He, Renqing
Yu, Weijie
author_facet Chen, Xinzhu
He, Wei
Fan, Huichuan
Niu, Wenzhe
Sun, Zhongxiang
Wang, Xuanru
Gao, Jiuchong
Hao, Jinghua
He, Renqing
Yu, Weijie
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_23318
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Hidden States Know Where Reasoning Diverges: Credit Assignment via Span-Level Wasserstein Distance
Chen, Xinzhu
He, Wei
Fan, Huichuan
Niu, Wenzhe
Sun, Zhongxiang
Wang, Xuanru
Gao, Jiuchong
Hao, Jinghua
He, Renqing
Yu, Weijie
Computation and Language
Machine Learning
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.
title Hidden States Know Where Reasoning Diverges: Credit Assignment via Span-Level Wasserstein Distance
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2604.23318