Reinforcement learning with verifiable rewards (RLVR) has been shown to improve the reasoning capability of large language models (LLMs) across diverse reasoning tasks. However, group-based RLVR methods, such as GRPO, assign a uniform advantage to all tokens within rollouts of the same outcome. While existing works refine credit assignment of GRPO based on local signals such as token locations or entropy, they often fail to capture the global semantic novelty of a reasoning behavior relative to the current policy. In this work, we propose a hierarchical credit assignment approach for group-based RLVR methods, called HarA, which identifies and encourages semantically novel reasoning behaviors during RLVR. HarA represents each sampled rollout as a distribution over the hidden states and locations of tokens, and computes the Fused Gromov-Wasserstein (FGW) barycenters of all rollouts with the same outcome, capturing the internal reasoning patterns in the latent space under the current policy. The semantic novelty of a reasoning element can then be measured by its contribution to the FGW distance between the current rollout and the barycenter. While solving the FGW formulation is expensive, we introduce an anchor-guided linearization that turns it into a Wasserstein formulation solvable via the Sinkhorn algorithm efficiently. By reweighing token-level advantage of group-based RLVR methods based on the novelty signals, HarA highlights novel reasoning behaviors at flexible granularities to encourage fine-grained LLM exploration. Extensive experiments across three group-based RLVR methods show that our plug-and-play method effectively enhances the exploration of LLMs, outperforming existing methods across diverse reasoning benchmarks.
Figures & tables
Figure 1: An example comparing existing credit assignment methods and the proposed HarA .
Figure 2: Observations. (1) Visualization of mapping P(+) : The sparse mapping shows that the barycenter supports are mapped deterministically to meaningful reasoning stages. (2) Comparison of OT variants : FGW exhibits higher ASL than W and GW, demonstrating stronger expressiveness. (3) Comparison of sample size K : ASL improves monotonically as K increases, suggesting that the barycenter reliably captures the internal reasoning pattern with sufficient sampling.
Figure 3: Overview of HarA . FGW barycenters are computed from the correct and incorrect rollouts as two reference distributions, followed by a hierarchical credit assignment approach that reweights the group advantages at both the sequence and token levels, based on their reasoning novelty measured by the linearized FGW distance to the barycenters.
Method
MATH500
Minerva Math
AMC23
AIME24
AIME25
Average
Qwen3-1.7B-Base
GRPO
64.8 ± 2.8
18.2 ± 1.7
72.5 ± 2.2
14.0 ± 1.3
12.7 ± 2.4
36.4
+ GRPO- λ
65.7 ± 1.2
17.6 ± 1.5
72.0 ± 1.0
16.0 ± 0.6
14.0 ± 1.2
37.1
+ Entropy Adv.
66.5 ± 1.8
19.1 ± 1.4
74.0 ± 1.8
15.3 ± 1.2
13.3 ± 2.1
37.6
+ SHEAR
65.9 ± 1.3
18.7 ± 0.9
74.5 ± 0.4
12.7 ± 0.9
13.3 ± 1.5
37.0
Table 1: Benchmark results of credit assignment methods on GRPO ( Shao et al., 2024 ) . The 1st/2nd best results are highlighted in bold / underline , respectively. Our methods are highlighted in red box .
Figure 4: Training dynamics of HarA and GRPO on MATH500 using Qwen3-8B-Base.
Figure 6
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Method
MATH500
Minerva Math
AMC23
AIME24
AIME25
Average
Qwen3-8B-Base
Dr.GRPO
80.1 ± 3.1
33.8 ± 2.5
87.0 ± 1.7
53.3 ± 0.9
42.0 ± 0.6
59.2
+ GRPO- λ
81.5 ± 1.7
34.1 ± 0.3
87.0 ± 0.9
50.7 ± 0.6
39.3 ± 0.9
58.5
+ Entropy Adv.
82.8 ± 2.8
35.4 ± 1.9
88.5 ± 0.7
52.7 ± 0.6
44.7 ± 1.3
60.8
+ SHEAR
82.6 ± 1.5
35.9 ± 2.1
86.0 ± 1.3
54.7 ± 1.3
45.3 ± 1.1
60.9
Appendix
Table 3: Additional benchmark results of credit assignment methods on Dr.GRPO and DAPO with Qwen3-8B-Base. The 1st/2nd best results are highlighted in bold / underline , respectively. Our methods are highlighted in red box .
Reinforcement learning with verifiable rewards (RLVR) trains language models from checked task outcomes, but assigning a terminal reward to individual reasoning tokens or actions remains difficult. Group-relative methods such as Group Relative Policy Optimization (GRPO) sample several attempts per prompt, but lose their reward-based learning signal when all attempts receive the same outcome. We propose Hindsight-Privileged RLVR (HP-RLVR), a single-rollout method that turns a completed trajectory's own future into token-level update weights. The generating policy snapshot scores each eligible token under its causal history and under a hindsight context containing the realized future and verifier feedback. A normalized Jensen--Shannon divergence between the two views weights the reward relative to a historical baseline, yielding bounded token credit for both successful and failed attempts, with no reference solution or learned critic. In paired Qwen3-8B runs over a shared 100-step schedule, HP-RLVR trains 1.21×, 1.46×, and 2.30× faster than GRPO on mathematics, code generation, and ALFWorld, using one eighth the rollouts per prompt. Accuracy is comparable overall, with HP-RLVR ahead on mathematics at all three sizes and GRPO ahead on code and ALFWorld. In ALFWorld, 43.2% (4B) and 49.0% (8B) of GRPO's gradient-norm records are zero, versus none for HP-RLVR.
Wei Chen, Yubing Wu, Zhou Xu +9
South China University of Technology · Tsinghua University · The Hong Kong University of Science and Technology +3
Reinforcement learning with verifiable rewards (RLVR) has emerged as a central paradigm for improving the reasoning capabilities of large language models. Group-based policy optimization methods, such as GRPO, typically allocate a fixed number of rollouts to every prompt. This uniform allocation can be inefficient: it over-allocates compute to prompts whose sampled groups are already saturated while under-exploring prompts for which additional samples may reveal useful correct trajectories. To address this limitation, we introduce hit utility, the posterior probability that at least one rollout in a proposed additional allocation for a prompt will be correct. Building on this notion, we propose Hit-Utility Optimal Rollout Allocation (HORA), a learning-free rollout allocation policy that maximizes total posterior hit utility within each allocation batch. HORA adaptively reallocates rollout budgets while leaving the downstream reward evaluation and group-based advantage estimator unchanged. Across four mathematical reasoning benchmarks and three model scales, HORA preserves comparable Pass@1 and improves Pass@K over compute-matched GRPO in ten of twelve model--benchmark configurations, with one tie and one saturated exception. It is also drop-in compatible with other group-based estimators such as RLOO. Ablation studies indicate that the uniform prior used by HORA is competitive with five prompt-conditioned learned-prior alternatives.
Tao Wang, Shuo Li, Yan Sun +2
University of Pennsylvania · New Jersey Institute of Technology · University of Tennessee, Knoxville
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 Span-level Hidden state Enabled Advantage Reweighting (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.
Xinzhu Chen, Wei He, Huichuan Fan +7
Beijing University of Posts and Telecommunications · Meituan · Tianjin University +3