Manuscript Offprint
arXiv:2610.32772Direction-Aware Token Credit Assignment with Reward-Model Gradients
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.

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.
- 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.
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 . 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 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 . After accounting for the update direction and scale, the predicted standardized reward increment at position is . Hence, after removing the common step-size factor, 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:
Furthermore, we prove that the end-to-end surrogate gradient has an advantage-weighted structure consistent with REINFORCE, and that directional credit 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.
Token credit from model-internal signals. Policy entropy, attention, and differences in prefix scores have been used for token selection and reward shaping (Chan et al., 2024; Li et al., 2025; Tan et al., 2025). Gradient attribution from reward or judge models and final-answer sensitivity also inform token credit and advantage reshaping (Wu et al., 2026; Zhang et al., 2026b; Li et al., 2026; Pala et al., 2026). Policy updates redistribute probability among competing candidate tokens. Evaluating the reward effect of reinforcing or suppressing a sampled token therefore requires connecting input importance to this probability adjustment.
A is the response-level advantage, and gives the direction-aware token weights. is the number of valid response tokens, and is the allocation temperature for that response.

Figure 2: Overview of DATC. DATC combines the reward-improvement direction with the GRPO update direction to allocate token-level advantages, assigning larger weights to updates with higher predicted local reward gains.
Token reweighting from optimization objectives. Recent studies derive token weights from effects on correct-response likelihood (Ren et al., 2026; Deng et al., 2026), discriminative gradient information (Zhang et al., 2026a), and the gradient utility of supervised losses (Gong et al., 2026). FACTOR (Ma et al., 2026) uses feedback-conditioned likelihood differences to distribute action-level credit among tokens. Continuous relaxations (Jang et al., 2016; Maddison et al., 2016) and straight-through (ST) estimation (Bengio et al., 2013) provide surrogate gradients for discrete decisions. Using surrogate reward gradients, DATC estimates first-order changes in reward along signed GRPO update directions and allocates token-level advantages accordingly.
3 Method
DATC (Direction-Aware Token Credit Assignment) evaluates the local reward utility of updates at each position through the inner product between the reward-improvement direction and GRPO's signed update direction. It uses this utility to construct token credit and allocate advantages. The reward-improvement direction is provided by the end-to-end actor–RM surrogate gradient.
3.1 Displacement and Force in Logit Space
Our objective is to improve the RM reward of actor-generated responses, namely to maximize . We construct an end-to-end surrogate loss from the negative RM reward to characterize the reward-improvement direction in the actor's logit space. Let denote the input embeddings connecting the actor's outputs to the RM. This loss is
The key to this connection is discrete sampling. The actor outputs a probability distribution over candidate tokens, whereas the RM receives specific tokens sampled from it. We use a straight-through (ST) surrogate (Bengio et al., 2013) to specify a usable backward rule for this path while retaining the score of the actual response. Consider a sampled response . Given its sampled prefix , the policy distribution at position is . The actor and RM use the same tokenizer with aligned token IDs, establishing a one-to-one correspondence between dimensions of the candidate-token probability vector and rows of the RM embedding matrix. For the sampled token’s embedding , define
In the forward pass, , so Equation (1) uses the RM score of the actual generated response. In the backward pass, the probability branch maps a change to an input perturbation , propagating the reward's response to its inputs back to the actor's outputs through a differentiable surrogate path. RM parameters remain frozen throughout. Applying the chain rule along this connection and differentiating in logit space yields
The input gradient is evaluated at the actual sampled response, and the hat denotes the surrogate derivative specified by Equation (2). The sampled response and its prefixes remain fixed during differentiation.
Displacement in logit space. With reward improvement as the objective, the displacement points toward higher reward in logit space. Consider a group of responses sampled by GRPO (Shao et al., 2024) for the same input. For one response, let be the response reward used for policy optimization and the group mean. GRPO computes the advantage using a reward normalization scale ; Appendix B.1 describes reward processing in our experiments. We use the same to standardize the reward response, writing .³ This gives the direction for increasing RM reward in logit space. It describes how the logits of candidate tokens in the vocabulary can change to achieve higher local reward under this surrogate. The full theoretical analysis is given in Appendix A.1.
Force in logit space. The response-level advantage determines whether to reinforce or suppress a sampled token, corresponding in the analogy to the force that drives changes in the model's outputs. Differentiating the sampled token's log probability with respect to the logits gives its score direction, . Thus, is the direction that increases the sampled token's log probability, while the sign of determines whether GRPO reinforces along this direction or suppresses in the opposite direction.
Work in logit space. In a local model with independent logits, original GRPO uses the same advantage coefficient for all tokens within a response and averages the policy terms across positions. Its policy gradient step in logit space is . Substituting this step into the first-order reward expansion gives
This yields directional credit . It measures the agreement between the reward direction and the sampled-action direction, accounting for their magnitudes as well. When , increasing the sampled token's log probability has a positive local reward effect; when , the opposite holds. The product further accounts for the actual direction of reinforcement or suppression, indicating how this GRPO update is predicted to affect reward.
3.2 Aggregating Local Advantages along the Sampled-Action Direction
We now interpret directional credit through the reward advantages of candidate actions. The end-to-end surrogate gradient can be decomposed exactly into a weighted sum of candidate actions’ score gradients. Define the centered coefficient of the reward input gradient along a candidate token’s embedding direction as
is the RM input embedding matrix, sg denotes stop-gradient, and .
The group mean and reward normalization scale are treated as constants when constructing credit.
Here the importance ratio is 1, and clipping is locally in its linear regime.
denotes the RM embedding of candidate token b, and the input gradient is evaluated at the actual sampled response.
describes the reward response of a candidate token relative to the current probability-weighted average embedding. In the RM's first-order linear reward model, is the candidate token's standardized advantage relative to the current policy's average reward, which we call the local reward advantage. Its derivation is given in Appendix A.1. Using the chain rule, , and probability normalization, the descent direction of the end-to-end loss can be written as
Equation (5) gives a policy gradient decomposition of the end-to-end surrogate gradient, with the same advantage-weighted structure as REINFORCE (Williams, 1992). Here the action advantages are defined by the RM's local linear reward model. To see how these advantages relate to , we first differentiate with respect to the logits at position t along the same computational path:
Centering preserves the gradient because . Both the parameter-gradient and logit-gradient expressions follow from this chain-rule expansion. Substituting the expression above into and using the linearity of the inner product gives
Directional credit thus aggregates local reward advantages in the end-to-end gradient: each candidate token’s advantage contributes to the final through the relationship between its score direction and the sampled-action direction. DATC thereby converts end-to-end reward information into position-level credit for GRPO. Competition among candidate tokens under the current policy is also encoded in these directions. Expanding the expression yields
The second term arises from the adjustment of all candidate probabilities induced by softmax normalization. The full derivation and its relationship to shared-parameter updates are given in Appendix A.2.
3.3 Converting Directional Gains into Token-Level Advantages
Equation (3) connects each position’s update to the reward objective. We use this connection to allocate token weights while keeping their within-response mean at 1. Each position thus continues to learn along GRPO’s sampled-action direction; the allocation changes its share of the update.
In the same local model, the weighted update is , with predicted standardized reward increment . To assign larger shares to positions with higher gains while controlling the allocation's deviation from original GRPO, we solve
Here is the share assigned to a position, and original GRPO assigns 1/T to every position. The regularizer is exactly the KL divergence between these two distributions of shares. Equation (8) has a unique optimum, which directly gives the training weights and token-level advantages:
When , the allocation favors positions with larger . When , it favors positions with smaller , directing more suppression toward these tokens. The weights remain positive and have mean 1, preserving the sign and mean scale of the response-level advantage.
Local gain property. For a fixed response and its A, d, at any finite , the predicted gain of Equation (9) over original GRPO satisfies
The original weights 1 are feasible in Equation (8), so the additional predicted gain of the optimal allocation is sufficient to offset its KL cost. This property holds in the first-order surrogate model with independent logits in Equation (3); the proof is in Appendix A.3. It connects the choice of training weights to local improvement in the end-to-end reward.
Utility magnitudes vary across responses and over training, so a fixed temperature can produce substantially different degrees of concentration. We use a hyperparameter to control the maximum weight of an individual token. Starting from temperature 1, we choose the smallest temperature satisfying the upper bound for each response:
Once is selected, the weights remain optimal at the corresponding KL regularization strength, and Equation (10) continues to hold. Temperature selection and its feasibility are described in Appendix A.4. The experimental allocator uses within-response standardization and constrains weights to . These operations preserve the same KL-optimal allocation structure, as shown in Appendix A.5.
Finally, we cache as a fixed coefficient and substitute it into GRPO's clipped policy objective, retaining the baseline's reference-policy KL term. One RM input backward pass provides reward gradients at all positions in a response. These gradients, together with old-policy probabilities, determine the weights subsequently used for the actor update. The complete training objective and algorithm are given in Appendix B.
4 Experiments
We evaluate DATC on general preference alignment to examine whether token credit assignment based on local work improves policy optimization and generation quality. We consider Base and Instruct initializations in each of two model families, yielding four experimental settings. Method comparisons and component ablations analyze the roles of directional information, the correspondence between weights and positions, and allocation concentration.
4.1 Experimental Setup
Training setup. We perform online preference optimization using general-purpose instructions from UltraFeedback (Cui et al., 2023), with responses sampled by the policy model and scored by a frozen RM. The policy models are Qwen3-14B (Yang et al., 2025) and Llama-3.1-8B (Grattafiori et al., 2024), paired with tokenizer-aligned Skywork-Reward-V2-Qwen3-8B (Liu et al., 2026) and Skywork-Reward-Llama-3.1-8B-v0.2 (Liu et al., 2024), respectively. Each family is evaluated with two initializations: reinforcement learning starts from a model after lightweight SFT in the Base setting and from the official instruction-tuned model in the Instruct setting. Within each setting, DATC and GRPO share the training initialization, rollout budget, reward processing, and LoRA (Hu et al., 2021) optimization settings, differing only in token-level advantage allocation.
Evaluation protocol. We evaluate the trained policies using four metrics. RM-Reward is the mean raw score assigned by the frozen training RM on independent held-out prompts, with comparisons restricted to policies evaluated by the same RM. AlpacaEval (Li et al., 2023) and Arena-Hard v2.0 (Li et al., 2024) report preference win rates against reference responses on general open-ended instructions and challenging real-user prompts, respectively. MT-Bench (Zheng et al., 2023) reports the mean score of multi-turn responses across tasks such as writing, reasoning, and coding to assess overall response quality. Win rates are reported as percentages and their differences as percentage points. Training and evaluation details and supplementary analyses are provided in Appendix C.
Table 1: Main experimental results, with DATC reported as mean ± standard deviation across three random seeds.
| Method | RM-Reward ↑ | AlpacaEval ↑ | Arena-Hard ↑ | MT-Bench ↑ |
|---|---|---|---|---|
| Qwen3-14B-Base | ||||
| Initial | -2.54 | 6.65 | 8.42 | 6.76 |
| SFT | 3.75 | 7.00 | 3.15 | 6.53 |
| GRPO | 10.87 | 37.39 | 28.49 | 7.70 |
| DATC | 13.35 ± 0.16 | 49.57 ± 1.12 | 39.31 ± 1.79 | 7.99 ± 0.05 |
| Qwen3-14B-Instruct | ||||
| Initial | 11.43 | 63.35 | 66.75 | 7.96 |
| GRPO | 13.75 | 72.80 | 73.60 | 8.36 |
| DATC | 14.43 ± 0.09 | 73.66 ± 1.59 | 74.86 ± 1.43 | 8.41 ± 0.09 |
| Llama-3.1-8B-Base | ||||
| Initial | -28.06 | 0.00 | 0.03 | 2.01 |
| SFT | -8.08 | 4.02 | 1.24 | 4.91 |
| GRPO | 4.55 | 9.73 | 2.83 | 5.61 |
| DATC | 11.80 ± 0.39 | 12.58 ± 0.85 | 5.10 ± 0.48 | 5.78 ± 0.06 |
| Llama-3.1-8B-Instruct | ||||
| Initial | -0.26 | 11.47 | 3.02 | 6.81 |
| GRPO | 19.61 | 21.61 | 8.41 | 7.13 |
| DATC | 24.73 ± 1.04 | 27.08 ± 1.25 | 9.35 ± 0.63 | 7.45 ± 0.05 |
4.2 Overall Performance and Training Dynamics
Table 1 compares DATC and GRPO across the two model families and two initialization settings. DATC uses . Initial and SFT denote the original checkpoint and the Base checkpoint after lightweight SFT, respectively. AlpacaEval reports raw win rates. Bold indicates the best result within each experimental setting.
Across the Base and Instruct settings of Qwen3-14B and Llama-3.1-8B, DATC achieves higher mean scores than the corresponding GRPO baseline on all four evaluation metrics. For Qwen3-14B-Base, the AlpacaEval and Arena-Hard win rates improve by 12.18 and 10.82 percentage points, respectively.
Figure 3 shows training dynamics for Llama-3.1-8B-Base after lightweight SFT. DATC's raw RM reward trend is above GRPO's during most of training, with mean rewards of 14.14 and 7.72, respectively, over the final 25 rollouts. DATC also produces shorter responses in this final window, averaging 497.9 tokens versus 605.2 for GRPO. Across the four experimental settings above, DATC increases total GPU time by only relative to GRPO under the same setting and rollout budget.
4.3 Credit Assignment Comparisons and Ablations
Table 2 compares GRPO, P2T, RED, DATC, and its ablation variants from the same Qwen3-14B-Base initialization after lightweight SFT, with identical policy optimization settings. The ablations use DATC with as the reference, varying directional information, the correspondence between weights and positions, and the weight upper bound.
Comparison with token reward attribution. RED (Li et al., 2025) redistributes response-level rewards using differences between successive RM prefix scores, while P2T (Wu et al., 2026) uses RM input gradients to estimate token replacement effects. DATC incorporates the current policy's candidate-token distribution and sampled-action update direction to estimate local reward utility. In this setting, DATC outperforms both RED and P2T on all four evaluation metrics.
Role of direction alignment. The direction-alignment ablation (w/o direction alignment) removes the angle term from the credit inner product, retaining only the product of the two direction norms. Relative to full DATC (), its RM-Reward decreases to , while AlpacaEval and Arena-Hard win rates decrease to and , respectively. This indicates that direction alignment is a key factor in DATC's performance gains in this setting.
Shuffled-weight variant. The shuffled-weight variant (w/ shuffled weights) permutes DATC weights within each response, preserving the weight set and its concentration while changing only the correspondence between weights

Figure 3: Raw RM reward (left) and mean response length (right) for Llama-3.1-8B-Base after lightweight SFT. Light-colored points indicate the mean for each rollout; solid lines show the trailing 25-rollout moving average.
Table 2: Method comparisons and credit assignment ablations on Qwen3-14B-Base.
| Method | RM-Reward ↑ | AlpacaEval ↑ | Arena-Hard ↑ | MT-Bench ↑ |
|---|---|---|---|---|
| Initial | -2.54 | 6.65 | 8.42 | 6.76 |
| SFT | 3.75 | 7.00 | 3.15 | 6.53 |
| GRPO | 10.87 | 37.39 | 28.49 | 7.70 |
| P2T | 10.96 | 36.40 | 29.68 | 7.66 |
| RED | 6.14 | 13.21 | 22.30 | 6.93 |
| DATC | ||||
| λ = 4 | 13.35 | 49.57 | 39.31 | 7.99 |
| λ = 2 | 12.89 | 41.49 | 34.49 | 7.77 |
| λ = 8 | 12.91 | 45.96 | 37.63 | 7.98 |
| w/o direction alignment | -4.02 | 1.53 | 1.23 | 2.71 |
| w/ shuffled weights | 10.73 | 32.62 | 26.99 | 7.51 |
and token positions. Relative to full DATC, AlpacaEval and Arena-Hard decrease by 16.95 and 12.32 percentage points, respectively, and MT-Bench decreases by 0.48 points. Performance gains therefore also depend on matching weights to specific update positions.
Allocation concentration. The weight upper bound controls the maximum update share an individual token can receive. Among , achieves the highest mean on all four metrics.
4.4 Token-Level Weight Analysis
Figure 4 shows the actual training weights for four response excerpts. With a positive advantage, a higher weight increases reinforcement; with a negative advantage, it increases suppression. In the positive-advantage cases, “accurately” receives a very high weight when correcting “Greek Empire” to “Ancient Greece.” Likewise, “accountable” receives a very high weight in the actionable advice “hold them accountable.” In a response that identifies a search engine from insufficient clues, “Google” receives a higher weight, increasing suppression of that inference. In a response that incorrectly lists tropical rainforest precipitation as “Tap water,” “water” also receives a higher weight. Together, these cases illustrate how DATC assigns different update strengths to specific expressions within the response-level direction of reinforcement or suppression.
(a) More precise terminology
A = +1.47 · reinforce
Prompt: What legacies has the Greek Empire left?
The Greek Empire, or more accurately,
Ancient Greece, has left a lasting legacy in
various aspects of our world today.
(c) An unsupported identification
A = -2.25 · suppress
Prompt: Which search engine fits the initials P, D, A?
This pattern fits the mission statement of
the famous search engine Google.
(b) Concrete accountability
A = +1.34 · reinforce
Prompt: How can companies reduce office politics?
Encourage leaders to model transparency and
accountability, and hold them accountable
for their actions and decisions.
(d) An inappropriate category
A = -1.94 · suppress
Prompt: Which factors support Amazon wildlife?
Tap water: The Amazon Rainforest has a
high level of precipitation,
Figure 4: DATC weights for excerpts from actual training responses. Warm orange denotes reinforcement and blue denotes suppression; darker shades within each color indicate larger weights.
5 Conclusion
We introduce DATC, which adopts a work-based view of credit to allocate token-level advantages according to the alignment between GRPO updates and the RM reward-improvement direction. Its KL-regularized allocation provides a local reward gain guarantee in the surrogate model. DATC outperforms GRPO across all four settings of two model families.
References
Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
Alex J Chan, Hao Sun, Samuel Holt, and Mihaela Van Der Schaar. Dense reward for free in reinforcement learning from human feedback. arXiv preprint arXiv:2402.00782, 2024.
Hongzhan Chen, Tao Yang, Shiping Gao, Ruijun Chen, Xiaojun Quan, Hongtao Tian, and Ting Yao. Discriminative policy optimization for token-level reward models. arXiv preprint arXiv:2505.23363, 2025.
Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Bingxiang He, Wei Zhu, Yuan Ni, Guotong Xie, Ruobing Xie, Yankai Lin, et al. Ultrafeedback: Boosting language models with scaled ai feedback. arXiv preprint arXiv:2310.01377, 2023.
Ganqu Cui, Lifan Yuan, Zefan Wang, Hanbin Wang, Yuchen Zhang, Jiacheng Chen, Wendi Li, Bingxiang He, Yuchen Fan, Tianyu Yu, et al. Process reinforcement through implicit rewards. arXiv preprint arXiv:2502.01456, 2025.
Wenlong Deng, Yi Ren, Yushu Li, Boying Gong, Danica Sutherland, Xiaoxiao Li, and Christos Thrampoulidis. Token hidden reward: Steering exploration-exploitation in group relative deep reinforcement learning. In International Conference on Learning Representations, volume 2026, pages 122109–122133, 2026.
Xuan Gong, Senmiao Wang, Hanbo Huang, Ruoyu Sun, and Shiyu Liang. Vcore: Variance-controlled optimization-based reweighting for chain-of-thought supervision. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 28161–28180, 2026.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
Yiran Guo, Lijie Xu, Jie Liu, Dan Ye, and Shuang Qiu. Segment policy optimization: Effective segment-level credit assignment in rl for large language models. Advances in Neural Information Processing Systems, 38:114399–114431, 2026.
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021.
Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. Gpt-4o system card. arXiv preprint arXiv:2410.21276, 2024.
Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. arXiv preprint arXiv:1611.01144, 2016.
Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron Courville, and Nicolas Le Roux. Vineppo: Refining credit assignment in rl training of llms. arXiv preprint arXiv:2410.01679, 2024.
Jiahui Li, Lin Li, Tai-Wei Chang, Kun Kuang, Long Chen, Jun Zhou, and Cheng Yang. Red: Unleashing token-level rewards from holistic feedback via reward redistribution. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 4993–5022, 2025.
Tianle Li, Wei-Lin Chiang, Evan Frick, Lisa Dunlap, Tianhao Wu, Banghua Zhu, Joseph E Gonzalez, and Ion Stoica. From crowdsourced data to high-quality benchmarks: Arena-hard and benchbuilder pipeline. arXiv preprint arXiv:2406.11939, 2024.
Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tat-sunori B Hashimoto. Alpacaeval: An automatic evaluator of instruction-following models, 2023.
Ziheng Li, Liu Kang, Feng Xiao, Luxi Xing, Qingyi Si, Zhuoran Li, Weikang Gong, Deqing Yang, Yanghua Xiao, and Hongcheng Guo. Outcome-grounded advantage reshaping for fine-grained credit assignment in mathematical reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 24681–24693, 2026.
Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations, volume 2024, pages 39578–39601, 2024.
Chris Yuhao Liu, Liang Zeng, Jiacai Liu, Rui Yan, Jujie He, Chaojie Wang, Shuicheng Yan, Yang Liu, and Yahui Zhou. Skywork-reward: Bag of tricks for reward modeling in llms. arXiv preprint arXiv:2410.18451, 2024.
Yuhao Liu, Liang Zeng, Yuzhen Xiao, Jujie He, Jiacai Liu, Chaojie Wang, Rui Yan, Wei Shen, Fuxiang Zhang, Jiacheng Xu, et al. Skywork-reward-v2: Scaling preference data curation via human-ai synergy. In International Conference on Learning Representations, volume 2026, pages 133805–133838, 2026.
Lichao Ma, Yang Sun, Shuaitao Zhao, Yangyi Fang, Cong Qin, Xiaoliang Fu, Yuhang Tian, Yuchen Wei, Junbo Zhu, Yang Wei, et al. How much, then where: Credit-conserving action-to-token allocation for multi-turn agent reinforcement learning. arXiv preprint arXiv:2608.07118, 2026.
Chris J Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. arXiv preprint arXiv:1611.00712, 2016.
Tej Deep Pala, Vernon Toh, and Soujanya Poria. Grail: Gradient-reweighted advantages for reinforcement learning with verifiable rewards. arXiv preprint arXiv:2606.04889, 2026.
Yi Ren, Muchen Li, Danica J Sutherland, Xiaoxiao Li, Christos Thrampoulidis, et al. On the effect of negative gradient in group relative deep reinforcement optimization. Advances in Neural Information Processing Systems, 38:73828–73856, 2026.
Amrith Setlur, Chirag Nagpal, Adam Fisch, Xinyang Geng, Jacob Eisenstein, Rishabh Agarwal, Alekh Agarwal, Jonathan Berant, and Aviral Kumar. Rewarding progress: Scaling automated process verifiers for llm reasoning. In International Conference on Learning Representations, volume 2025, pages 60808–60838, 2025.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Hongze Tan, Zihan Wang, Jianfei Pan, Jinghao Lin, Hao Wang, Yifan Wu, Tao Chen, Zhihang Zheng, Zhihao Tang, and Haihua Yang. Gtpo and grpo-s: Token and sequence-level reward shaping with policy entropy. arXiv preprint arXiv:2508.04349, 2025.
Haozhe Wang, Qixin Xu, Che Liu, Junhong Wu, Fangzhen Lin, and Wenhu Chen. Emergent hierarchical reasoning in llms through reinforcement learning. In International Conference on Learning Representations, volume 2026, pages 74519–74543, 2026.
Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3):229–256, 1992.
Sitong Wu, Haoru Tan, Bin Xia, Xichen Zhang, Jingyao Li, Shaofeng Zhang, Xiaojuan Qi, Bei Yu, and Jiaya Jia. Unlocking token rewards via training-free reward attribution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5082–5091, 2026.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Lifan Yuan, Wendi Li, Huayu Chen, Ganqu Cui, Ning Ding, Kaiyan Zhang, Bowen Zhou, Zhiyuan Liu, and Hao Peng. Free process rewards without process labels. arXiv preprint arXiv:2412.01981, 2024.
Kaiyi Zhang, Wei Wu, and Yankai Lin. Delta: Discriminative token credit assignment for reinforcement learning from verifiable rewards. arXiv preprint arXiv:2605.21467, 2026a.
Zheng Zhang, Ao Lu, Yuanhao Zeng, Ziwei Shan, Jinjin Guo, Lufei Li, Yexin Li, and Kan Ren. Grad2reward: From sparse judgment to dense rewards for improving open-ended llm reasoning. arXiv preprint arXiv:2602.01791, 2026b.
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in neural information processing systems, 36:46595–46623, 2023.
Han Zhong, Zikang Shan, Guhao Feng, Wei Xiong, Xinle Cheng, Li Zhao, Di He, Jiang Bian, and Liwei Wang. Dpo meets ppo: Reinforced token optimization for rlhf. arXiv preprint arXiv:2404.18922, 2024.
A Derivations and Theoretical Properties
Following the derivation in the main text, this appendix explains how the end-to-end surrogate gradient yields directional credit and why credit allocation can improve the local predicted gain. We then extend these results to the standardization and weight range used in the experiments.
A.1 End-to-End Surrogate Gradients at the Hard Response
The main text starts from the ST end-to-end loss, obtains a logit update direction, and then evaluates the GRPO update. This section expands the surrogate derivative of that loss, proves the centering and policy gradient decomposition in Equations (4) and (5), and explains the meaning of local reward advantages.
For the hard response from a rollout, fix the prefix at each position. Let , with all derivatives evaluated at . The group mean and reward normalization scale are treated as constants. Let be the response reward used for policy optimization. For responses scored according to Equation (B1), the length-dependent reward terms are also constant once the response is fixed, so and have the same surrogate derivative with respect to the actor.
RM parameters , including the input embedding matrix , remain frozen during differentiation. Let be the actual input embeddings of the response tokens. The prompt input is represented by and remains fixed.
For a fixed sampled response, the loss in Equation (1) is
Equation (2) returns in the forward pass and differentiates through the probability branch in the backward pass. The surrogate direction for minimizing this loss is therefore . Applying the product rule along the probability branch gives
The last equality uses the frozen-parameter condition . The input derivative retained after freezing propagates changes in actor probabilities to the RM scoring function.
To simplify the following calculations, define
Here is the gradient at the actual input, and is its coefficient along the embedding direction of candidate token . The chain rule gives
Let . Probability normalization implies
We can therefore subtract the same from every candidate-token coefficient. Define
Substituting into Equation (A3) yields the policy gradient decomposition of the end-to-end surrogate gradient:
is the candidate action's probability weight, and is the coefficient of its score gradient. Equation (A5) is an algebraic identity at the fixed expansion point, with the same weighting structure as REINFORCE. All candidate coefficients are obtained from the input gradient at the same hard response.
Take a first-order expansion of the RM at the actual input . Holding all other positions fixed and substituting the embedding of candidate token into this linear model gives
Here , , and all take their fixed values at the actual sampled response. Under this linear model, the candidate token's standardized advantage relative to the current policy's average reward is
(A5b)
Thus, is the standardized action advantage in the RM's local linear reward model, referred to as the local reward advantage in the main text. Its probability-weighted mean under the current policy is zero. The exactness of Equation (A5) concerns the identity decomposing the ST surrogate gradient, while the reward interpretation of these advantages is determined by the local linear model in Equation (A5a).
Differentiating with respect to the logits at position t along the same end-to-end path gives
The softmax Jacobian is . Using the same normalization scale as the GRPO advantage yields
With and fixed at the expansion point, Equation (A1) can also be obtained from the following continuous local extension:
It equals the hard input at the old policy, and its ordinary derivative is exactly the Jacobian specified by ST. Passing these inputs to the RM defines a standardized scoring function with gradient at the expansion point. If this local function is twice continuously differentiable, its finite perturbation can be written as
The hatted increment in the main text denotes the first-order term. Equation (A5) is an identity decomposing the specified surrogate gradient, while the expected reward under discrete generation is the overall training objective. They are connected through the policy optimization procedure in Appendix B.
A.2 From the GRPO Direction to Token Credit
The end-to-end gradient describes the reward response across candidate tokens, whereas GRPO updates the policy through the sampled token's log probability. Substituting the latter into the former's first-order expansion yields the directional credit in the main text. We further show below how local reward advantages enter position-level allocation through the inner product of these two directions.
At position t,
and hence
Let . At the old policy, , and the policy term in a neighborhood where clipping is inactive is . Its logit derivative is . With cached weights , the gradient ascent step in independent logit coordinates becomes
Substituting into the first-order term of Equation (A8) gives
Setting recovers Equation (3) in the main text. The marginal predicted gain per unit weight is ; itself describes the rate of reward change along the sampled action's score direction.
To substitute the action advantages from the policy gradient decomposition into directional credit, first compute the logit gradient at position t along the same computational path:
(A12)
The second equality uses and , and the third uses . The parameter gradient in Equation (A5) and the logit gradient here express the same chain-rule differentiation in two coordinate systems. All coefficients are evaluated at the fixed rollout point.
This expression can also be verified using Equation (A9) and the centering identity:
Substitute the sum in Equation (A12) into and use the inner product's linearity under addition and scalar multiplication:
(A13)
Equation (A13) explicitly connects the local reward advantages in the end-to-end gradient to directional credit. The inner product accounts for both the angle and magnitudes of the candidate-action and sampled-action directions. DATC then optimizes the weights using , yielding the final training coefficient . These are the two steps that convert a reward surrogate signal into a GRPO allocation.
Combining Equations (A6) and (A9) gives
(A14)
The squared term arises because both the reward gradient and the sampled-action direction contain probability components. The centering identity cancels , so the squared-probability-weighted term over the full vocabulary remains.
The evaluation above treats the logits at each position as independent coordinates. The actual actor changes these coordinates through shared parameters. Let . An ordinary policy gradient ascent step is
It induces the logit change
with the corresponding first-order prediction of surrogate reward
Shared parameters couple different positions through . DATC uses the local logit utility in Equation (A11) to construct token-level credit, and the local gain result in the main text pertains to this evaluation model.
A.3 KL-Based Weight Allocation and Local Gains
The signed utility measures the predicted gain at each position, while KL regularization controls how far the learning shares deviate from original GRPO. Together, they determine a unique softmax allocation whose additional predicted gain over the original weights at least covers its KL cost. For a fixed response’s , and a finite temperature , define
We use the continuous extension . The constraints make a distribution over positions, and the regularizer satisfies
Introducing a Lagrange multiplier , an interior stationary point satisfies
Using gives
To also account for feasible weights on the boundary, substitute , obtaining
Therefore, , with equality if and only if . Equation (A18) is the unique global optimum. Finite utilities and a positive temperature imply . Consequently,
These two properties ensure that DATC preserves the sign and mean of the response-level advantage when redistributing training coefficients within a response.
The original weights 1 are feasible in Equation (A17), and their allocation KL is zero. Since ,
Multiplying by the step size and using Equation (A11) yields Equation (10) in the main text. When varies across positions, the optimal weights are nonuniform and the difference in predicted gains is strictly positive. When the utilities are constant, the optimal weights are 1. In particular, when , all final token-level advantages are zero.
A.4 Adaptive Temperature and Weight Range
The main text uses to specify the maximum amplification and then selects the corresponding temperature. This section proves that such a choice is feasible and describes how to find it.
For response i, define
The positions with the highest utility have the largest weight at every positive temperature. Let . Differentiating at any highest-utility position gives
When utilities are nonconstant, the bracketed term is strictly positive, so the maximum weight strictly decreases. Tied highest-utility positions have identical weight functions, so the expression still holds. When utilities are constant or , all weights equal 1. Moreover,
Thus, for any , a feasible temperature exists for Equation (11). If , the smallest feasible temperature is 1. If , the equation has a unique solution with .
Let . Lower-bounding each term in the denominator gives
Hence,
is a feasible upper bound.
Starting from temperature 1 and repeatedly doubling it while the constraint remains unsatisfied finds a feasible upper endpoint and an adjacent infeasible lower endpoint. We then take the arithmetic midpoint of the two endpoints, update the interval according to whether the maximum-weight constraint is satisfied, and ultimately return the feasible endpoint. The implementation uses 40 bisection iterations and processes responses in batches. Each iteration halves the temperature interval's width, with the final precision determined by floating-point representation. Equation (A24) establishes the existence of a finite feasible upper bound; the implementation finds it through doubling.
The experiments additionally require a minimum weight of at least . This extension uses the same doubling and bisection procedure, checking both bounds when testing feasibility. Its monotonicity is proved in Appendix A.5.
Adaptive temperature converts into a per-response KL regularization strength. For a selected and cached , Equation (A18) remains the unique optimum of , and the local gain comparison in Appendix A.3 continues to hold.
A.5 Correspondence between the Experimental Allocator and the Theory
Before allocation, the experiments standardize directional credit within each response and fix the weights of a small number of formatting positions at 1. Both operations preserve the KL-optimal allocation structure above: centering cancels in the softmax, scale standardization changes the effective temperature, and fixed positions restrict the set of positions available for allocation.
Let be the set of free positions participating in allocation, with . Within-response standardization can be written as
Here is a response-level scale held fixed during credit computation; its numerically stable form is given in Appendix B.3. Since is shared by all free positions,
(A26)
The remaining valid response positions use , so the full response still satisfies . Substituting the fixed positions into Equation (A17), they contribute only constants independent of the free weights. Under
, Equation (A26) is therefore the unique optimum at temperature . Thus, the base temperature of 1 after standardization corresponds to temperature in the original credit coordinates.
The experiments increase until free positions simultaneously satisfy . Write and . The lowest-utility position has the minimum weight , whose derivative is
Together with Equation (A23), this shows that as temperature increases, the minimum weight increases and the maximum weight decreases, both approaching 1. A finite feasible temperature therefore also exists for the two-sided constraints. Once the temperature is selected, Equation (A26) remains the optimum of the corresponding KL objective; the two-sided range is enforced by choosing the regularization strength. Using 1 as a feasible reference gives
This result has the same local meaning as in the main text: it compares first-order reward increments at a fixed response in independent logit coordinates. The correspondence to shared-parameter updates is given by Equation (A16).
When the free-position set is empty or the utilities are constant, the allocator returns the original weights 1.
B Training Objective and Implementation
DATC computation has two stages: first compute and cache token-level advantages at sampled responses, then update the policy using these coefficients. This organization separates RM input backpropagation from actor parameter updates while retaining the directional credit derived from the end-to-end gradient in the main text. This appendix provides the complete objective and allocation procedure used in the experiments. Hyperparameters are listed in Appendix C.1.
B.1 From Response Rewards to the Policy Objective
For responses to the same input, we first compute the raw scores from the frozen RM. All compared methods use the same length-dependent reward processing, imposing a moderate cost on very short and excessively long responses. Let be the number of generated tokens and a reward scale fixed in advance for the model setting. Then
Here . Responses of 8 to 1024 tokens retain their raw scores. Length counts include the generated termination token but exclude prompt and padding tokens. Empty responses and degenerate responses containing at least 32 consecutive newlines receive the minimum reward among valid responses in the group minus 1. If the entire group is degenerate, the input group is resampled. We then compute
The lower bound on the scale controls advantages when rewards are very similar. The four model settings use for Qwen Base, 1.2118 for Qwen Instruct, 6.2743 for Llama Base, and 5.9262 for Llama Instruct. All methods within a setting use the same value. Directional credit is still computed from the input gradient of the raw RM score and divided by the group scale in Equation (B2). With the sampled response and its length fixed, the length terms in Equation (B1) are constant, so their input derivatives in the local expansion are zero.
Write . Let be the policy before the update and the reference policy frozen at the start of reinforcement learning. The reference policy in the Base settings includes the lightweight SFT adapter; the Instruct settings use the corresponding initial instruction-tuned model. The policy loss is
(B3)
The experiments generate responses with vLLM and recompute old-policy probabilities on the training backend. To account for token-probability differences between the two execution backends, we use the cached coefficient
This coefficient multiplies the clipped policy term from outside the clipping operation and is also used in the reference-policy KL term. It corrects token probabilities conditional on the sampled prefix. The local direction derivation in the main text corresponds to the policy term when sampling probabilities and old-policy probabilities agree, in which case . The full loss uses a common nonnegative KL estimator:
(B5)
Both terms are first averaged over valid positions within each response and then over responses. During the policy update, , , , old-policy probabilities, and reference probabilities are all fixed. GRPO uses the same objective with , while DATC replaces these weights with those derived from directional credit.
B.2 Input Gradients, Vocabulary Reductions, and Position Correspondence
A single RM input backward pass provides at every position in the response. RM parameters remain frozen, while input embeddings retain gradients. The implementation obtains and old-policy probabilities separately and then computes the matrix products in the chain rule. This allows the RM computation graph to be released before the actor update.
Although the full vocabulary is typically large, Equation (7) requires only a few reduced quantities. Let and . Then
The implementation computes in blocks, accumulates , , and , and extracts the component corresponding to the sampled token. The blocks cover the full candidate vocabulary, yielding the same reduction as an unblocked computation. Each block processes 128 response positions and 8192 vocabulary candidates in the experiments. Probabilities, gradient projections, and these reductions use FP32.
This step requires consistent candidate-token identities between the actor and RM. We check the token-to-ID mappings and special tokens of their tokenizers and map both vocabularies to shared token identities. The actor uses its own conversational input, while the RM receives the same prompt and response in its scoring template. Correspondence between response-text positions is used to extract the RM input gradient for each sampled token. Thus, tokenizer alignment ensures consistency in candidate-token semantics, while response-position mapping accounts for position offsets introduced by the two conversational templates.
Termination tokens, whitespace-only tokens, tokens containing newlines that reduce to periods after whitespace removal, and valid tokens without reliable position mappings receive a fixed weight of 1. Other mapped positions participate in credit allocation. Ordinary words and general punctuation are treated as content positions. Response formatting therefore continues to learn with the original GRPO coefficient, while the corresponding update budget is distributed among content positions.
B.3 Within-Response Standardization and Adaptive Temperature
Gradient scales vary across responses, so directly using a fixed temperature would make weight concentration fluctuate accordingly. The experiments first standardize directional credit over the free-position set and then use to control the allocation range. Let . The implementation uses the following numerically stable form:
(B7)
Here is the smallest positive normal FP32 number. Dividing by first avoids overflow when squaring. Equation (B7) is equivalent to , where
The weights at free positions are
The experiments use to control the maximum amplification and its reciprocal to control the minimum weight. With in the main experiments, weights at positions participating in allocation lie in [0.25, 4], while the mean weight over the entire response remains 1. Appendix A.5 proves that within-response standardization can be absorbed into the effective temperature and that the two-sided constraints preserve temperature monotonicity and the corresponding KL optimum.
The search starts at temperature 1. Responses already satisfying the range retain that temperature. For the others, we repeatedly double the upper endpoint and, after finding a feasible interval, perform 40 ordinary bisection iterations, returning the feasible endpoint. Weights are set to 1 when there are no free positions, only one free position, or constant utilities. Finally, is cached for the subsequent policy-update epoch.
B.4 One Training Iteration
Algorithm 1 summarizes one DATC rollout. Credit computation produces fixed token-level advantages, which are then used to train the actor's LoRA parameters during the policy update.
In the experiments, the actor, RM, and sampler each occupy one GPU. The actor and RM backbones use BF16, while the actor output head and probabilities used for credit computation use FP32. Gradient checkpointing is enabled for the actor. The additional computation is concentrated in RM input backpropagation and vocabulary reductions; end-to-end training overhead is reported in Appendix C.3.
Algorithm 1 One training iteration of DATC.
Require: Actor and its synchronized sampler ; frozen RM and reference policy ; a batch of prompts, group size , and weight upper bound .
Ensure: Updated actor and synchronized sampler.
1: Save the old policy .
2: for each prompt in the batch do
3: Sample responses; save tokens, masks, and sampling probabilities.
4: Score with and process responses as in Appendix B.1.
5: Compute adjusted rewards , group scale , and advantages using Equations (B1)–(B2).
6: for each response do
7: Recompute on the training backend.
8: Compute and cache correction coefficients using Equation (B4).
9: Set at all valid response positions.
10: Determine the free-position set as in Appendix B.2.
11: if then
12: Compute with one RM input backward pass.
13: Map input gradients to response positions; compute using Equation (B6).
14: Stop gradients through and release the RM computation graph.
15: Standardize over using Equation (B7); set .
16: if is nonconstant over then
17: Find the smallest feasible by bisection as in Appendix B.3.
18: Set softmax for .
19: end if
20: end if
21: Set .
22: Cache , and old-policy and reference-policy probabilities of sampled tokens.
23: end for
24: end for
25: for each minibatch in one policy-update epoch do
26: Construct using cached coefficients and Equations (B3)–(B5).
27: .
28: end for
29: Synchronize the updated LoRA adapter to the sampler.
C Experimental Setup and Supplementary Analyses
This appendix provides training configurations and evaluation details, a human evaluation protocol, and supplementary analyses of training dynamics, computational costs, and shared-parameter single-step gains.
C.1 Experimental Setup and Comparison Implementations
We construct the experimental data from HuggingFaceH4/ultrafeedback_binarized. Text normalization, deduplication, and length filtering yield approximately 59,000 candidate training examples. SFT uses a fixed set of 2,500 instruction–response examples, and RL uses 2,000 prompts. RM-Reward evaluation uses 256 fixed prompts from the held-out set. SFT uses the dataset's chosen responses, while RL generates responses online from the current policy.
We select Qwen3 and Llama 3.1 to cover different model families and pretraining and post-training backgrounds. For each family, we evaluate both the Base model after lightweight SFT and the official Instruct model. The former examines preference learning after basic instruction adaptation; the latter examines further optimization on top of existing alignment capabilities. Table C1 lists the checkpoints. Qwen3-14B-Instruct in the main text refers to the official Qwen3-14B instruction-tuned model. The two model families use Skywork-Reward-V2-Qwen3-8B (Liu et al., 2026) and Skywork-Reward-Llama-3.1-8B-v0.2 (Liu et al., 2024), respectively. DATC requires tokenizer alignment between the actor and RM so that candidate-token probabilities and their corresponding rows in the RM embedding matrix have the same meaning. The implementation further aligns token IDs and response positions.
Table C1: Policy models, reward models, and initializations.
| Setting | Policy checkpoint | Reward model checkpoint | RL initialization |
|---|---|---|---|
| Qwen Base | Qwen3-14B-Base | Skywork-Reward-V2-Qwen3-8B | After lightweight SFT |
| Qwen Instruct | Qwen3-14B | Skywork-Reward-V2-Qwen3-8B | Official instruction-tuned model |
| Llama Base | Llama-3.1-8B | Skywork-Reward-Llama-3.1-8B-v0.2 | After lightweight SFT |
| Llama Instruct | Llama-3.1-8B-Instruct | Skywork-Reward-Llama-3.1-8B-v0.2 | Official instruction-tuned model |
Both Base models are trained on the SFT data above for 2 epochs, with a learning rate of , a maximum sequence length of 4,096, a microbatch size of 4, 8 gradient accumulation steps, and a warmup ratio of 0.03. GRPO and DATC for the same model start from the same SFT checkpoint. Instruct settings proceed directly to reinforcement learning. RL processes the selected 2,000 prompts in a fixed order, 8 at a time, for 250 rollouts. Each prompt has 8 sampled responses, and each rollout is followed by one policy update. Evaluations in the main text use the checkpoint at the end of training.
The final evaluations measure reward under the training RM, preferences over open-ended responses, and multi-turn response quality. RM-Reward uses 256 independent held-out prompts, with generated responses scored by the corresponding RM, and reports the mean before length penalties. Because score scales differ across RMs, this metric is interpreted through paired comparisons within a model family. AlpacaEval uses the dataset-provided GPT-4 Turbo (Hurst et al., 2024) (gpt4_1106_preview) responses as references and GPT-4.1 (Hurst et al., 2024) as the judge, reporting the raw win rate as the mean judge-assigned preference probability, following the official AlpacaEval aggregation procedure. Arena-Hard v2.0 uses the official gpt-4o-mini-2024-07-18 (Achiam et al., 2023) responses as references and GPT-4.1 as the judge. Each pair is judged twice with the response order swapped, and the reported win rate is weighted by outcome strength: wins, ties, and losses receive scores of 1, 0.5, and 0, respectively, with a weight of 3 for decisive wins or losses and 1 otherwise. MT-Bench uses the official 80 two-turn conversations. GPT-4o scores each turn on a 1–10 scale, and the final score is the equally weighted mean of the 160 ratings. Mathematics, reasoning, and coding questions use the official GPT-4 reference responses. In the main text, AlpacaEval and Arena-Hard win rates are reported as percentages, and differences between methods are expressed in percentage points. RM-Reward and MT-Bench retain their respective score scales. The main experiments compare DATC with GRPO using the same training initialization, RM, and policy optimization settings. Supplementary comparisons on Qwen Base further distinguish the roles of credit sources, directional relationships,
Table C2: Shared training settings.
| Configuration | Value |
|---|---|
| Prompts per rollout / responses per prompt | 8 / 8 |
| Rollouts / policy epochs per rollout | 250 / 1 |
| Maximum prompt / response length | 2,048 / 2,048 tokens |
| Sampling temperature / top-p / top-k | 1.0 / 1.0 / 0 (full distribution) |
| Optimizer / learning rate / weight decay | AdamW / constant |
| Maximum gradient norm / clipping parameter | 1.0 / 0.2 |
| KL coefficient / reference policy | 0.03 / frozen initial RL policy |
| Update minibatch / microbatch | 64 responses / 1 response |
| RM gradient microbatch | 1 response |
| LoRA rank / alpha / dropout | 64 / 128 / 0 |
| LoRA modules | q, k, v, o, gate, up, down projections |
| Backbone precision / policy output-head and probability precision | BF16 / FP32 |
| Base allocation temperature | 1 |
| Main-experiment / ablation values | 4 / 2, 4, 8 |
and position correspondence. RED provides a reward-redistribution baseline based on prefix-score differences, while P2T provides a token reward attribution baseline based on RM input gradients. Together, these comparisons evaluate DATC against different approaches to RM-based token credit assignment.
DATC results in Tables 1 and 2 are reported as means over three random seeds, with standard deviations additionally reported in Table 1.
The main experiments use 3 H200 GPUs. Policy updates use LoRA, freezing the original model weights and training low-rank adaptation parameters. Gradient checkpointing is enabled for the actor. vLLM uses single-GPU tensor parallelism, a maximum context length of 4,096, a maximum of 32 concurrent sequences, and a GPU memory utilization parameter of 0.45. The training software is PyTorch 2.13.0+cu129 and Transformers 5.16.1. All methods use the same length-dependent rewards and degenerate-response processing.
The direction-alignment ablation removes the angle term from , replacing the directional credit passed to the allocator with .
After replacement, the variant retains the within-response standardization over free positions in Appendix B.3. The standardized signal is multiplied by the response-level advantage to form the allocation utility. It uses the same adaptive-temperature search and two-sided weight constraints, with . Fixed positions specified in Appendix B.2 retain weight 1. This variant changes only the credit signal and preserves the subsequent allocation procedure, testing the role of directional relationships relative to gradient magnitudes. The shuffled-weight variant permutes the resulting weights within each response. For a permutation over the corresponding position set, preserves the response's weight set, mean, and extrema while changing the update share at each position. Its difference from full DATC directly tests the correspondence between weights and text positions. The weight-range experiment varies over 2, 4, and 8 to examine how the allowed update concentration affects results.
C.2 Reward and Response-Length Dynamics
Figure C1 shows raw RM reward and response length in the Qwen Base, Qwen Instruct, Llama Base, and Llama Instruct settings. Within each setting, DATC is compared with GRPO using the same training initialization and rollout budget. Rewards in the training plots come from online sampled inputs, whereas RM-Reward in the main results table comes from fixed held-out prompts.
Over the final 25 rollouts, DATC achieves a higher mean raw reward than the corresponding GRPO baseline in all four settings. For Llama Base, the final-window mean rewards are 14.14 for DATC and 7.72 for GRPO, with mean response lengths of 497.9 and 605.2 tokens, respectively. DATC produces shorter responses in the final window for both Base settings. Response lengths are similar for Llama Instruct, while DATC produces longer responses for Qwen Instruct. These results show that DATC improves training reward in all four settings, with shorter responses in both Base settings as well.
RM reward
GRPO
DATC ( )
Qwen3-14B-Base + SFT
Response tokens

Qwen3-14B-Instruct


Llama-3.1-8B-Base + SFT


Llama-3.1-8B-Instruct


Rollout

Rollout
Figure C1: Raw RM reward (left) and mean response length (right) of DATC and GRPO across the four experimental settings. Curves show trailing 25-rollout moving averages.
C.3 Training Overhead
We measure end-to-end cost using cumulative GPU time, defined as training wall-clock time multiplied by the number of allocated GPUs. It includes the total cost of sampling, scoring, credit computation, and policy updates under the same rollout budget. Figure C2 summarizes total training cost across the four settings. DATC increases total GPU time by approximately 5.7%–9.1% over the corresponding GRPO baseline.

(a) Total training cost

(b) DATC vs. GRPO

Figure C2: Cumulative GPU time to complete training (left) and DATC's overhead relative to GRPO (right) across the four experimental settings. End-to-end costs include sampling, scoring, credit computation, and policy updates.
Together with Table 1, these results show that DATC achieves higher mean RM-Reward, AlpacaEval, Arena-Hard, and MT-Bench scores than the corresponding GRPO baseline in all four settings. For Qwen Base, a GPU-time increase of approximately accompanies AlpacaEval and Arena-Hard gains of 12.18 and 10.82 percentage points, respectively. DATC thus delivers performance improvements across model families and initialization settings with modest additional training cost.
C.4 Human Evaluation
To complement automatic evaluations, we compare DATC , GRPO, P2T, and RED on Qwen3-14B-Base using 120 held-out prompts excluded from training and hyperparameter selection. We randomly assign 40 prompts to each of the three training seeds. For each prompt, all methods use their final checkpoints from the assigned seed and identical decoding settings.
Seven evaluators proficient in English independently select the best of the four responses, presented under anonymous labels in randomized order, considering instruction following, correctness, relevance, completeness, and clarity. The method receiving the most votes wins that prompt. If multiple methods tie for the highest vote count, the same seven evaluators vote again among only the tied responses, with the winner determined by the most votes. Table C3 reports the percentage of prompts won by each method after tie-breaking.
Table C3: Human preference evaluation on Qwen3-14B-Base. Win rates are the percentages of 120 prompts won by each method after tie-breaking.
| Method | Win rate (%) ↑ |
|---|---|
| DATC | 65.00 |
| GRPO | 16.67 |
| P2T | 15.00 |
| RED | 3.33 |
In this four-way comparison, DATC wins 78 of the 120 prompts (65.00%), compared with 20 (16.67%) for GRPO, 18 (15.00%) for P2T, and 4 (3.33%) for RED. This result is consistent with DATC's higher AlpacaEval and Arena-Hard win rates in the same Qwen3-14B-Base setting. GRPO and P2T obtain similar win rates in human evaluation, differing by only two prompts, with both outperforming RED. These results provide complementary evidence that DATC's gains in automatic evaluations are accompanied by improvements in response quality as assessed by human evaluators.
C.5 Independent-Logit Predictions and Shared-Parameter Single-Step Gains
The local gain analysis in the main text uses a surrogate model with independent logits, whereas actual policy updates change outputs at multiple positions through shared parameters. To examine the connection between these two descriptions, we compare DATC's independent-logit predicted gain over GRPO with the first-order surrogate gain associated with an actual single-step parameter update.
Experimental setup. We use a fixed Qwen3-14B-Base SFT checkpoint and a frozen Skywork-Reward-V2-Qwen3-8B, sampling 100 batches to obtain 100 data points. Each point corresponds to a batch of 8 prompts with 8 responses sampled per prompt. Every batch starts from the same model parameters and initial optimizer state. DATC and GRPO share the sampled responses, response-level advantages, and optimization settings, and each performs one AdamW update. We use LoRA updates with a learning rate of and a gradient norm limit of 1.0. DATC uses .
Gain measures. For a batch of B responses, the additional gain predicted by the independent-logit model is
where , , , and denote the response-level advantage, valid response length, DATC weight, and directional credit, respectively. GRPO assigns a weight of 1. This quantity omits the common step-size factor.
Let be the shared starting point, and let and denote the parameters after the respective updates. With the sampled responses and their prefixes fixed, we compute the mean standardized reward gradient through the ST surrogate path defined in the main text and define the shared-parameter first-order gain difference as
Here, is the reward normalization scale determined before the update and held fixed. Both the gradient and parameter difference are taken with respect to trainable LoRA parameters. The gradient is computed from the raw RM score, without differentiating the length penalty. A positive P indicates that DATC's actual parameter update outperforms GRPO's under this first-order surrogate evaluation. Shared-parameter coupling, AdamW, and gradient clipping affect P. We use the correlation between X and P to assess how well the independent-logit prediction indicates shared-parameter update gains.
Results and discussion. As shown in Figure C3, across the 100 data points, X and P have a Spearman correlation of 0.619 and a Pearson correlation of 0.589, with for a linear fit with an intercept. All points satisfy X > 0 and P > 0. Thus, under the model initialization and single-step update setting studied here, DATC achieves higher shared-parameter first-order surrogate gains than GRPO in every batch. Larger independent-logit predicted gains also tend to correspond to larger shared-parameter first-order gains, supporting the use of directional credit to identify more beneficial update allocations in shared-parameter optimization.

Figure C3: Relationship between independent-logit predicted gain X and shared-parameter single-step first-order gain P. Each point represents a within-batch DATC–GRPO comparison from the same SFT starting point, for a total of 100 data points. The light-colored solid line is a linear fit with an intercept.
D Limitations & Future Work
DATC targets preference optimization with differentiable reward models. Computing directional credit requires access to RM input gradients and aligned vocabularies between the actor and RM. Future work could explore token-or sequence-alignment mechanisms across tokenizers, as well as gradient estimation for evaluators that provide only scores, to broaden the applicability of directional credit and evaluate how these approximations affect credit quality and computational cost.
Our experiments use LoRA to study general preference alignment under Base and Instruct initializations in two model families. Future evaluations could extend to full-parameter training, a wider range of model scales, and tasks with specialized reward models, such as mathematical reasoning and code generation, to examine the applicability of directional credit across training regimes and reward structures.