Manuscript Offprint

arXiv:2610.32772

Direction-Aware Token Credit Assignment with Reward-Model Gradients

Yikuan Hu, Jifeng Zhu, Minle Su, Jiaqin Yue, Gujie Shao, Yanzhe Chen, Haoxuan Jia, Haoran Xu, Wangzhou Dai

ABSTRACT

GRPO shares a response-level advantage across tokens, leaving unresolved how strongly each token should contribute to learning. Updates induced by the shared advantage reinforce or suppress the sampled token at each position, but these updates do not always point toward increasing reward at the token level. This motivates a work-based view of credit: just as work depends on the component of force along a displacement, token credit should reflect the local reward change along the policy update direction. We introduce Direction-Aware Token Credit Assignment (DATC), which maps frozen reward-model gradients into policy logit space and allocates weights by evaluating the alignment between the reward direction and GRPO's signed sampled-action update direction, while preserving the sign and mean of the response-level advantage. DATC outperforms GRPO in all four settings across two model families.

1 Introduction

Preference alignment of language models relies on evaluating complete responses: determining whether a response is useful or follows instructions often requires contextual judgment. A reward model (RM) converts such judgments into response-level scores, which reinforcement learning uses to improve the generation policy (Zhong et al., 2024). Group Relative Policy Optimization (GRPO) (Shao et al., 2024) reinforces better responses and suppresses worse ones based on their relative rewards for the same input. Within a response, all positions share a response-level advantage coefficient, which reinforces or suppresses sampled tokens with the same coefficient. However, a shared response-level advantage does not imply that updates at all token positions are equally beneficial (Ren et al., 2026; Wang et al., 2026). The credit assignment problem studied here is how to allocate learning strength according to the reward utility of each position's update.

Existing studies of token-level credit assignment mainly follow two approaches. One uses reward-model signals to assign token credit: RED (Li et al., 2025) redistributes response-level rewards using differences between successive prefix scores, while P2T (Wu et al.,

Q: Name two mammals.

Figure

Does every token update do positive work?

Figure 1: A work-based view of token credit. DATC assigns larger weights to token updates with higher predicted local reward gains.

  1. uses RM input gradients to approximate the effects of token replacement. The other derives the relative utility of token updates from optimization objectives. Examples include VCORE (Gong et al., 2026), which evaluates token utility in SFT through gradient alignment, and DelTA (Zhang et al., 2026a), which adjusts RL updates using the gradient structure of positive and negative advantages. We further focus on local reward utility along the GRPO update direction under the current policy. To this end, we propose Direction-Aware Token Credit Assignment (DATC). DATC adopts a work-based view of credit: it allocates learning strength within a response by evaluating

◇Equal contribution.

†^{\dagger}Corresponding author.

Project page: https://datc-project.github.io/.

the work done by the current token’s signed update direction (force) along the RM reward-improvement direction (displacement direction).

To turn this work-based view of credit into a computable token signal, we characterize the reward displacement direction and the force of the policy update in the same logit space. Specifically, our surrogate analysis starts from minimizing the negative RM reward in the end-to-end actor–RM process. On a fixed sampled response, we use a straight-through (ST) surrogate (Bengio et al., 2013) to connect discrete tokens to the frozen RM and propagate the standardized reward gradient back to the actor's logit space, obtaining the reward gradient gtg_t. It characterizes the direction and rate of local reward increase and corresponds to the reward-improving update “displacement” in the work analogy. Meanwhile, the sampled action’s log-probability gradient ktk_t characterizes the direction that increases its probability. The response-level advantage determines whether to reinforce along this direction or suppress in the opposite direction, thereby specifying the “force” of the policy update. We thus consider the following local question: when logits are updated along the direction induced by GRPO, how much work does the update’s “force” do along the reward-improving displacement? In a local surrogate model with independent logits, a first-order expansion yields directional credit dt=⟨gt,kt⟩d_t = \langle g_t, k_t \rangle. After accounting for the update direction and scale, the predicted standardized reward increment at position tt is (η/T)Adt(\eta/T)Ad_t. Hence, after removing the common step-size factor, AdtAd_t measures the signed predicted work of this token update: a positive value indicates an increase in the local surrogate reward, whereas a negative value indicates a decrease. DATC allocates training shares within a response accordingly, assigning larger weights to positions with higher signed predicted work. KL regularization controls the allocation’s deviation from original GRPO, yielding the final token-level advantage: 1^1

∣A~t=A⋅Tsoftmax⁡t(Ad/τ)∣.\left|\widetilde{A}_{t}=A\cdot T\operatorname{s o f t m a x}_{t}(A d/\tau)\right|.

Furthermore, we prove that the end-to-end surrogate gradient has an advantage-weighted structure consistent with REINFORCE, and that directional credit dtd_{t} aggregates its local reward advantages along the sampled-action direction of the current policy. These advantages describe each candidate action's local reward difference relative to the current policy's average. They contribute to the position's credit according to the directional relationship between the candidate action and the sampled action. Figure 2 illustrates the overall DATC workflow. Our main contributions are as follows:

• We propose Direction-Aware Token Credit Assignment, a GRPO token credit assignment method based on a work-based view of credit. It allocates token-level advantages by combining the local reward direction with the sampled-action direction of the current policy.

• We prove that the end-to-end surrogate gradient has an advantage-weighted structure consistent with REINFORCE (Williams, 1992), and that DATC's directional credit aggregates advantages defined by the RM's local linear reward model along the sampled-action direction of the current policy.

• Across Base and Instruct settings of the Qwen3-14B and Llama-3.1-8B model families, DATC achieves higher mean scores than GRPO on all four evaluation metrics. Ablations further support the key roles of directional information and the correspondence between weights and positions in these performance gains.

References (72)