betaFeedback

WorksComputer Science

AnchorCredit: Output-Anchored Credit Assignment for Structured Generation with Multiple Verifiable Rewards

Abstract

In Reinforcement Learning with Verifiable Rewards (RLVR), Group Relative Policy Optimization (GRPO) and related methods typically compute group-relative advantages from response rewards and broadcast the same advantage to every generated token in a response to guide policy updates. However, we identify a systematic problem of cross-component credit misassignment in tasks with multiple verifiable results, such as joint multi-attribute prediction: low rewards for some components can penalize a well-performing component and its associated reasoning. To address this problem, we propose AnchorCredit. The method uses the policy model's attention from output anchors to preceding reasoning sentences to estimate sentence-component associations and assign component-specific advantages to the relevant reasoning, without additional relevance annotations or a separate relevance discriminator. To support the study of credit assignment with multiple verifiable rewards, we construct ProductAttr, a benchmark of 7,200 real product image-text samples. Experiments show that AnchorCredit outperforms existing baselines on this benchmark. Experiments on the public Nutrition5k dataset further support the method's effectiveness in this setting.

Introduction

Reinforcement Learning with Verifiable Rewards (RLVR) has substantially improved the reasoning capabilities of large language models on automatically verifiable tasks such as mathematics and coding [13, 2]. Existing methods typically evaluate an entire response with a scalar reward. However, many tasks require a model to generate reasoning followed by a structured output containing multiple verifiable output components in a single response. These components may represent product attributes or dialogue slots [11] (Yang et al. 2021). For example, a product understanding task may require jointly predicting several attributes, such as weight, packaged dimensions, and foldability, from product images and text. We study this setting, in which each output component can be verified separately.

When Group Relative Policy Optimization (GRPO) is applied to these tasks, the rewards for the components of each response are weighted and summed to obtain a single response-level reward. These total rewards are standardized across responses sampled for the same prompt to obtain response-level advantages [13]. The same response-level advantage is then used to weight the policy-loss contribution of every generated token in that response. However, a shared response-level advantage can penalize a component whose own advantage is positive. In Figure 1(a), errors in weight and dimensions result in a negative response-level advantage, causing GRPO to penalize the correct foldability prediction and its associated reasoning despite a positive foldability-specific advantage. We refer to this mismatch as cross-component credit misassignment.

Figure 1. Cross-component credit misassignment and AnchorCredit. (a) A shared negative advantage penalizes correct foldability reasoning. (b) AnchorCredit assigns component-specific credit to associated sentences. Signs are shown before final whitening.

Although each output component can be scored separately, these scores do not specify which preceding reasoning sentences should receive its learning signal. Recent work has explored alternatives to GRPO for multi-reward optimization. GDPO (Liu et al., [9]) normalizes rewards separately before aggregation, while GD2PO (Liu et al., [8]) filters conflicting rollouts. However, both retain response-level advantages and leave this attribution problem unresolved. RTT (Xu et al., 2026) maps rubric feedback to individual tokens through a relevance discriminator, but training this discriminator requires additional token-level relevance annotations and a separate training stage.

To address these limitations, we propose AnchorCredit, a plug-in module for component-specific credit assignment. Because each generated output value corresponds to a known component, we use its tokens as anchors. The policy model’s attention from these anchors to preceding reasoning sentences provides an estimate of how strongly each sentence is associated with the corresponding component. These associations guide the assignment of component-specific advantages to the relevant sentences (Figure 1(b)), without additional relevance annotations or a separate relevance discriminator. The resulting token-level credit can be incorporated into the policy update of an existing training algorithm.

We introduce ProductAttr, a benchmark of 7,200 product image–text samples for joint prediction of continuous and categorical attributes. Adding AnchorCredit to GRPO improves mean performance on all three target attributes in both ProductAttr and Nutrition5k (Thames et al., [14]). On ProductAttr, the improvements in weight RMAE, dimension RMAE, and foldability F1 are 5.74, 2.80, and 1.76 percentage points, respectively. These gains extend to dialogue state tracking on Schema-Guided Dialogue (SGD; Rastogi et al., [11]), where AnchorCredit improves Joint Goal Accuracy over GRPO by 6.00 percentage points. Gains with DAPO and GDPO show that the benefits extend beyond GRPO, while improvements on larger dense and MoE models further support applicability across model configurations.

In summary, we identify cross-component credit misassignment, where a shared response-level advantage can oppose a component-specific learning signal. To address this mismatch, we propose AnchorCredit, a plug-in module that uses attention from output anchors to assign component-specific credit to reasoning sentences. We also construct ProductAttr with fixed splits and component-wise verifiers, and evaluate the module on multi-attribute prediction and dialogue state tracking.

Related Work

Reinforcement learning with verifiable rewards. RLVR uses automatically verifiable rewards for tasks such as mathematics and coding (Shao et al., [13]; DeepSeek-AI, [2]). GRPO computes group-relative advantages without a separately trained value model (Shao et al., [13]); DAPO im proves training through asymmetric clipping, dynamic sampling, and a token-level loss (Yu et al., 2025). Both construct advantages from response-level rewards. AnchorCredit instead assigns component-specific credit to relevant positions while retaining the underlying algorithm’s sampling and policy-update mechanisms.

Fine-grained credit assignment. Process reward models learn from human or automatically constructed step labels [7, 15]. Other approaches estimate local credit through progress toward success, prefix rollouts, or segment-level advantages [12, 6, 4]. Attention-based approaches redistribute response rewards through reward-model attention [1], amplify advantages at selected positions (Li et al., 2025), or weight token losses by attention flow toward the answer, as in Flow-Tracer [3]. For multiple feedback signals, RTT maps rubric feedback to token rewards using a separately trained relevance discriminator (Xu et al., 2026); SRaR uses an LLM judge to associate rubric items with reasoning steps [17]; BAE assigns objective-specific advantages to predefined text blocks [10]. AnchorCredit instead uses generated output values and the policy model’s attention to estimate sentence–component associations and assign component-specific credit, without predefined reasoning blocks, relevance annotations, or a separate relevance model.

Multidimensional rewards and structured prediction. In multi-reward language-model training, GDPO standardizes each reward within the group before aggregating the advantages [9]. GD²PO additionally filters and reweights rollouts and queries based on conflicting reward-advantage signs [8]. Both retain response-level signals; AnchorCredit complements reward aggregation by assigning component-specific feedback to relevant content positions. MAVE, visual physical-attribute datasets, and Nutrition5k support product attribute extraction, physical-attribute prediction, and nutrition estimation [14] (Yang et al. 2021; Zhai et al. 2024). Their original settings emphasize supervised prediction; we study how reinforcement learning assigns multiple attribute feedback signals within a generated response.

Problem Formulation

We consider tasks in which a model generates reasoning followed by a structured output with KK separately verifiable components. For an input xx, the policy πθ\pi_{\theta} generates a group of responses. Let rikr_i^k denote the reward assigned by the verifier to component kk of response ii.

GRPO-style methods aggregate component rewards into a scalar reward and standardize it within the group to obtain a response-level advantage. This advantage measures overall performance but does not distinguish the relative performance of each component. Following GDPO [9], we standardize each component’s rewards separately within the group. We use the resulting component-specific advantage to measure how a response performs on that component relative to other responses in the group:

Ai=NG(∑k=1Kωkrik),Aik=NG(rik),k=1,…,K.(1)A_i = \mathcal{N}_{G}\left(\sum_{k=1}^{K}\omega_k r_i^k\right), \qquad A_i^k = \mathcal{N}_{G}(r_i^k), \quad k=1,\ldots,K. \tag*{(1)}

Here, ωk\omega_k denotes the predefined task weight for component kk, and NG\mathcal{N}_{G} denotes standardization across responses sampled for the same input. AiA_i measures relative overall performance.

GRPO applies the same response-level advantage AiA_i to every generated token [13]. When AiAik<0A_i A_i^k < 0, this shared signal opposes the component-specific advantage, formalizing the cross-component credit misassignment illustrated in Figure 1(a).

To assign component-specific credit to reasoning sentences, we need to identify which sentences are relevant to each component. For component kk, we use the tokens of its generated value as output anchors and denote their positions in response ii by SikS_i^k. However, which preceding reasoning sentences are relevant to each component is not specified in advance.

We therefore study how to use output anchors to associate reasoning sentences with verifiable output components and assign credit to those sentences based on the corresponding component-specific advantages. For sentences associated with multiple components, we also need to determine how to combine their advantages.

AnchorCredit: Output-Anchored Credit Assignment

AnchorCredit constructs token-level credit in three steps: computing component-specific advantages, estimating sentence–component associations using output anchors, and applying association gating and sign-aware combination to obtain sentence credit (Figure 2). Anchor tokens receive the advantage of their corresponding component directly, while the tokens in each reasoning sentence receive that sentence’s credit.

Figure 2. Output-anchored credit assignment. (a) Attention from output-value anchors estimates sentence–component associations. (b) Largest-gap gating selects candidate components; the highlighted example uses the conflicting-sign rule. (c) Component-specific and fallback advantages are assembled into raw token credit before global whitening. Association weights are illustrative.

From Component-Specific Rewards to Component-Specific Advantages

AnchorCredit starts from the component-specific group-relative advantages A~ik\tilde{A}_i^k defined in Equation (1), computed by standardizing the rewards for each component separately across responses to the same input.

Unlike GDPO ([9]), which aggregates component advantages immediately and whitens only their sum, AnchorCredit routes separate component advantages, compares their signs, and falls back to AiA_i. Because components differ in batch variance after group standardization (e.g., binary foldability yields more zero-variance groups), we whiten each component column and AiA_i before routing:

A~ik=Whiten⁡(Aik),A~i=Whiten⁡(Ai).(2)\widetilde{A}_i^k = \operatorname{Whiten}(A_i^k), \qquad\widetilde{A}_i = \operatorname{Whiten}(A_i). \tag*{(2)}

Centering may change advantage signs; all subsequent sign comparisons and routing use the calibrated A~ik\widetilde{A}_i^k specifying the sign and magnitude of credit for component kk. We next estimate which reasoning sentences receive credit from each component; unrouted positions retain A~i\widetilde{A}_i before final whitening.

Attention-Based Sentence–Component Association Estimation

We use the anchor-token positions SikS_i^k defined in § 3 to estimate which reasoning sentences are associated with component kk.

Because output anchors follow the reasoning text, we use their attention to preceding tokens to estimate sentence–component associations. We divide the reasoning text of response ii into nonempty sentences using boundaries such as sentence-final punctuation and blank lines. We denote sentence jj by Ui,jU_{i,j} and estimate associations at the sentence level. Table 15 in Appendix § 13.§ 2 compares the end-to-end results of sentence-level and token-level routing; the appendix gives the sentence-splitting rules.

VariantWeight RMAE ↓\downarrowDimensions RMAE ↓\downarrowFold F1 ↑\uparrow
Token-route27.01±2.0120.40±0.6391.46±0.76
AnchorCredit (sentence route)25.12±0.3419.68±0.0691.31±0.42

Table 15. Online routing-granularity comparison on ProductAttr-Eval (%). Both variants assign component-specific credit to final values and reasoning; results use three evaluation seeds.

Let αstℓh\alpha_{st}^{\ell h} denote the attention from anchor token ss to preceding reasoning token tt in head hh of layer ℓ\ell. Let L\mathcal{L} be the full-attention layers from which explicit attention weights are extracted, and let HH be the number of heads in each such layer. Here, Ui,jU_{i,j} also denotes the token positions of sentence jj. We average equally over these layers, heads, anchor tokens, and sentence tokens:

Attn⁡(Sik,Ui,j)=1∣L∣H∣Sik∣∣Ui,j∣∑ℓ∈L∑h=1H∑s∈Sik∑t∈Ui,jαstℓh.(3)\operatorname{Attn}(S_i^k,U_{i,j})=\frac{1}{|\mathcal{L}|H|S_i^k||U_{i,j}|}\sum_{\ell\in\mathcal{L}}\sum_{h=1}^{H}\sum_{s\in S_i^k}\sum_{t\in U_{i,j}}\alpha_{st}^{\ell h}. \tag*{(3)}

For each reasoning sentence, we normalize these attention scores across components to obtain the association weights:

wijk=Attn⁡(Sik,Ui,j)∑k′=1KAttn⁡(Sik′,Ui,j),k=1,…,K.(4)w_{ij}^k=\frac{\operatorname{Attn}(S_i^k,U_{i,j})}{\sum_{k'=1}^{K}\operatorname{Attn}(S_i^{k'},U_{i,j})},\qquad k=1,\ldots,K. \tag*{(4)}

The weight wijkw_{ij}^k estimates the relative association between sentence jj and component kk. The schema determines which component an anchor belongs to. We use attention as an association estimate for credit routing [5, 16]. Nearly uniform weights do not distinguish a preferred component, while multiple selected components may have advantages with opposing signs. We therefore use a gate to select candidate components before combining their advantages.

The separation between anchor-token credit and reasoning routing is specified in the credit-assembly step below.

Candidate-Component Gating and Signed Credit Assignment

The preceding steps provide an advantage A~ik\widetilde{A}_i^k for each component and association weights wijkw_{ij}^k for each reasoning sentence. AnchorCredit uses these weights to select candidate components and combines their advantages according to their signs. The resulting sentence credit is assigned to every token in that sentence, while the remaining tokens are handled in the credit-assembly step.

Candidate selection using the normalized largest gap. A top-1 rule selects one component even when the association weights are nearly uniform. Instead, we select candidates using the largest gap between adjacent sorted weights. Let wij(1)≥⋯≥wij(K)w_{ij}^{(1)}\geq\cdots\geq w_{ij}^{(K)} denote the weights in descending order, and define

gm=wij(m)−wij(m+1),m=1,…,K−1,g_m=w_{ij}^{(m)}-w_{ij}^{(m+1)},\qquad m=1,\ldots,K-1,
m∗=min⁡{m:gm=max⁡1≤q<Kgq},g~ij=Kgm∗.(5)m^*=\min\{m:g_m=\max_{1\leq q<K}g_q\},\qquad\widetilde{g}_{ij}=Kg_{m^*}. \tag*{(5)}

Only when g~ij≥τ\widetilde{g}_{ij} \ge\tau does AnchorCredit retain components before the largest gap whose association weights strictly exceed the uniform baseline 1/K1/K. Otherwise, the candidate set is empty:

Eij={{k:rank⁡(wijk)≤m∗, wijk>1/K},g~ij≥τ,∅,g~ij<τ.(6)\mathcal{E}_{ij} = \begin{cases} \{k : \operatorname{rank}(w_{ij}^{k}) \le m^{*},\ w_{ij}^{k} > 1/K\}, & \widetilde{g}_{ij} \ge\tau,\\ \varnothing, & \widetilde{g}_{ij} < \tau. \end{cases} \tag*{(6)}

Multiplying the gap by KK expresses it relative to the uniform weight 1/K1/K. Thus, a fixed threshold τ\tau corresponds to a raw-gap threshold of τ/K\tau/K; we use τ=0.5\tau= 0.5 in the main configuration. The equations assume that all components are available. When some are unavailable, both attention normalization and gating use only the available components, whose count replaces KK. When fewer than two components are available, reasoning tokens receive the calibrated response-level advantage. The gate selects a proper subset of the available components; with two available components, it therefore selects one component or falls back.

Same-sign aggregation and conflicting-sign handling. The candidate set determines which components contribute to the sentence credit. We use the candidate advantage directly when only one component is selected. For multiple candidates, we average their advantages if the set does not contain both a strictly positive and a strictly negative advantage. If both signs are present, averaging may cancel the advantages; we instead use the advantage of the candidate with the largest estimated association weight. The resulting credit for sentence Ui,jU_{i,j} is

cij={A~ik,Eij={k},∣Eij∣−1∑k∈EijA~ik,∣Eij∣>1 and no conflicting-sign pair exists,A~ik∗,k∗=arg⁡max⁡k∈Eij wijk,∣Eij∣>1 and a conflicting-sign pair exists,A~i,Eij=∅.(7)c_{ij} = \begin{cases} \widetilde{A}_{i}^{k}, & \mathcal{E}_{ij} = \{k\},\\ |\mathcal{E}_{ij}|^{-1}\sum_{k \in\mathcal{E}_{ij}} \widetilde{A}_{i}^{k}, & |\mathcal{E}_{ij}| > 1\text{ and no conflicting-sign pair exists},\\ \widetilde{A}_{i}^{k^{*}},\quad k^{*} = \underset{k \in\mathcal{E}_{ij}}{\arg\max}\ w_{ij}^{k}, & |\mathcal{E}_{ij}| > 1\text{ and a conflicting-sign pair exists},\\ \widetilde{A}_{i}, & \mathcal{E}_{ij} = \varnothing. \end{cases} \tag*{(7)}

Estimated association weights determine candidate selection, whereas the selected component-specific advantages determine the sentence credit. If the candidate set is empty, the sentence receives the calibrated response-level advantage A~i\widetilde{A}_{i}.

Credit for three token types and the policy objective. After sentence credit has been computed, raw credit is assembled for three types of generated tokens: (1) field-value tokens, whose component identity is specified by the schema, receive A~ik\widetilde{A}_{i}^{k}; (2) reasoning tokens receive the credit cijc_{ij} of their sentence; and (3) all remaining tokens retain the response-level advantage A~i\widetilde{A}_{i}:

Citraw={A~ik,t∈Sik,cij,t∈Ui,j,A~i,otherwise.(8)C_{it}^{\mathrm{raw}} = \begin{cases} \widetilde{A}_{i}^{k}, & t \in S_{i}^{k},\\ c_{ij}, & t \in U_{i,j},\\ \widetilde{A}_{i}, & \text{otherwise}. \end{cases} \tag*{(8)}

Here, SikS_{i}^{k} contains only successfully located field-value positions for which a component-specific advantage is available. Reasoning positions that cannot be routed use A~i\widetilde{A}_{i}. Failure to route a reasoning sentence does not undo field-value credit that has already been assigned. If neither field-value assignment nor reasoning routing is performed, all valid positions initially receive A~i\widetilde{A}_{i}, before final whitening and clipping.

Routing changes how many tokens receive each advantage. To standardize the assembled token credit, we jointly whiten it, then clip it to [−3,3][-3, 3]. Let mit∈{0,1}m_{it} \in\{0,1\} denote the valid-response-token mask:

C^it=mitclip⁡(Whiten⁡(Citraw),−3,3).(9)\widehat{C}_{it} = m_{it}\operatorname{clip}\left(\operatorname{Whiten}\left(C_{it}^{\mathrm{raw}}\right), -3, 3\right). \tag*{(9)}

Sign-aware advantage combination precedes global token-credit whitening.

We use the final credit in a clipped policy objective with token-level importance ratios. For token tt in response ii, ρit(θ)\rho_{it}(\theta) is the ratio of its probabilities under the current and old policies, conditioned on the same input and preceding tokens. We replace the response-level advantage at each position with C^it\hat{C}_{it}:

LAC(θ)=−Ei,t[min⁡(ρit(θ)C^it,clip⁡(ρit(θ),1−ϵ,1+ϵ)C^it)].(10)\mathcal{L}_{\mathrm{AC}}(\theta)=-\mathbb{E}_{i,t}\left[\min\left(\rho_{it}(\theta)\hat{C}_{it},\operatorname{clip}\left(\rho_{it}(\theta),1-\epsilon,1+\epsilon\right)\hat{C}_{it}\right)\right]. \tag*{(10)}

(10) shows the standard symmetric clipping form. Each implementation retains the underlying algorithm’s sampling procedure, token-level importance ratios, clipping settings, and KL regularization when used. Replacing the response-level advantage with position-specific credit changes the surrogate objective.

Implementation. Our FlashAttention-based training stack does not expose the attention weights needed for routing. We therefore use an additional forward pass without gradients to extract anchor attention and aggregate it by reasoning sentence; no additional backward pass is required. In the profiled training interval, the attribution prepass takes 19.85 seconds per step, accounting for 13.45% of AnchorCredit’s total step time. Integrating anchor attention extraction into an existing training pass could reduce this overhead. Its runtime and memory trade-offs across training stacks warrant further study.

Experiments

We evaluate whether AnchorCredit improves multi-component prediction, whether its benefits extend across training frameworks, and how its credit-assignment choices affect performance. We then examine sentence–component associations independently of downstream prediction metrics.

Experimental Setup

Tasks and rewards. ProductAttr contains 7,200 product image–text samples, split into 6,400 training and 800 evaluation examples. It requires predicting packaged weight, dimensions, and foldability, with separate rewards for the three attribute groups. On Nutrition5k (Thames et al. [14]), we predict fat, carbohydrates, and protein from one overhead image per dish, using 2,755 training and 507 evaluation dishes from the official RGB splits. We also evaluate dialogue state tracking on Schema-Guided Dialogue (SGD; Rastogi et al. [11]). Data preparation, output fields, and evaluation conventions are detailed in Appendix § 10.

Models and comparisons. Our main experiments use Qwen3.5-4B and compare the initial model without task-specific RL (No-RL), GRPO (Shao et al. [13]), GDPO (Liu et al. [9]), an adapted GD2^{2}PO (Liu et al. [8]), and RTT (Xu et al. (2026)). Unless specified otherwise, AnchorCredit is added to GRPO. In the tables, Ours denotes the AnchorCredit module. Within each task, comparisons use the same data and evaluation protocol; host-framework integrations use matched configurations within each pair. ProductAttr training uses 600 updates with eight responses per prompt. Full training settings and the integration interface appear in Appendix § 11.

Metrics and statistics. We report ratio-of-sums RMAE for continuous attributes, F1 for foldability, and Joint/Average Goal Accuracy (JGA/AGA) for SGD. Unless stated otherwise, means and sample standard deviations use three decoding seeds for a fixed training checkpoint. Independent training-seed replication is reported separately. Paired confidence intervals and their resampling units are specified in Appendix § 12.§ 3.

Main Results

Multi-attribute prediction. Adding AnchorCredit to GRPO improves mean performance on all three target attributes in both benchmarks (Table 1). On ProductAttr, weight and dimension RMAE decrease from 30.86 to 25.12 and from 22.48 to 19.68, respectively, while Fold F1 increases from 89.55 to 91.31. On Nutrition5k, the improvements extend to all three nutrients, reducing average RMAE from 35.02 to 33.05. GRPO + AnchorCredit also achieves better mean performance than RTT on all six target attributes, without training a separate relevance discriminator. These results show that assigning component-specific credit can improve joint prediction beyond broadcasting a shared response-level advantage. Paired bootstrap intervals support the continuous-attribute gains for the fixed ProductAttr checkpoints (Appendix § 12.§ 3).

MethodWeight RMAE ↓\downarrowDimensions RMAE ↓\downarrowFold F1 ↑\uparrowAvg. ↓\downarrowFatCarbsProtein
No-RL112.80±16.01112.80\pm16.0181.57±19.3481.57\pm19.3465.49±3.7765.49\pm3.7756.33±2.2056.33\pm2.2060.14±3.4960.14\pm3.4955.70±1.1955.70\pm1.1953.15±2.0453.15\pm2.04
GRPO30.86±0.3030.86\pm0.3022.48±0.7622.48\pm0.7689.55±0.8989.55\pm0.8935.02±0.3935.02\pm0.3940.10±0.7740.10\pm0.7732.37±0.4132.37\pm0.4132.59±0.1132.59\pm0.11
GDPO26.23±0.3126.23\pm0.3120.54±0.0720.54\pm0.0788.29±0.5388.29\pm0.5338.72±2.0938.72\pm2.0944.27±2.1844.27\pm2.1835.12±2.2235.12\pm2.2236.79±2.0536.79\pm2.05
GD²PO27.38±0.6027.38\pm0.6021.67±0.5221.67\pm0.5278.24±0.2678.24\pm0.2639.68±0.4839.68\pm0.4844.91±0.3444.91\pm0.3435.74±0.5835.74\pm0.5838.40±0.7638.40\pm0.76
RTT29.87±0.1429.87\pm0.1423.52±0.8523.52\pm0.8590.91±0.3490.91\pm0.3437.44±0.5337.44\pm0.5342.27±1.1142.27\pm1.1132.64±0.5932.64\pm0.5937.41±0.5037.41\pm0.50
GRPO + Ours25.12±0.3425.12\pm0.3419.68±0.0619.68\pm0.0691.31±0.4291.31\pm0.4233.05±0.3633.05\pm0.3637.10±0.5737.10\pm0.5731.47±0.9331.47\pm0.9330.59±0.6330.59\pm0.63

Table 1. Main results on ProductAttr and Nutrition5k (%). Each method uses one fixed training checkpoint. Avg. is the arithmetic mean of fat, carbohydrate, and protein RMAE, following the macronutrient summary in Thames et al. [14]. The statistical protocol is specified in § 5.1.

Dialogue state tracking. The gains also extend to structured outputs in a different domain. On SGD, adding AnchorCredit increases JGA from 75.31 to 81.31 and AGA from 94.48 to 96.48, gains of 6.00 and 2.00 percentage points (Table 2). Here, credit is assigned to dialogue-state components rather than physical attributes. This task-specific training evaluation broadens the evidence beyond image-based attribute prediction.

MethodJGA ↑\uparrowAGA ↑\uparrow
GRPO75.31±0.0675.31\pm0.0694.48±0.0294.48\pm0.02
GRPO + Ours81.31±0.1181.31\pm0.1196.48±0.0196.48\pm0.01

Table 2. Dialogue state tracking on SGD (%; higher is better). Mean and sample standard deviation use three decoding seeds per fixed training checkpoint. The full comparison, including No-RL, is in Table 11 in Appendix § 12.§ 1.

MethodJoint Goal Accuracy ↑\uparrowAverage Goal Accuracy ↑\uparrow
Base (No-RL)5.77±0.635.77\pm0.637.54±0.407.54\pm0.40
GRPO75.31±0.0675.31\pm0.0694.48±0.0294.48\pm0.02
+ Ours81.31±0.1181.31\pm0.1196.48±0.0196.48\pm0.01

Table 11. SGD test results (%; higher is better). All methods report the mean and sample standard deviation over decoding seeds 42, 43, and 44 for one fixed model checkpoint per method, not variation across training seeds. Approximately 90% of Base outputs fail the frozen output-conformance checks and remain in the reported denominators; the Base-to-trained gap therefore includes output-format compliance.

Replication across training seeds. The ProductAttr comparison remains favorable when summarized over three independently trained checkpoints per method. Mean weight/dimension RMAE is 26.10/20.16 with AnchorCredit, compared with 28.35/21.21 for GRPO, and mean Fold F1 rises from 90.00 to 91.72 (Table 10 in Appendix § 12.§ 1). This replication complements the decoding-seed variation reported in the main table.

MethodWeight RMAE ↓\downarrowDimensions RMAE ↓\downarrowFold F1 ↑\uparrow
GRPO28.3521.2190.00
GRPO + Ours26.1020.1691.72

Table 10. ProductAttr summary across three training seeds (%): means are reported.

Compatibility Across Training Frameworks and Models

Integration with DAPO and GDPO. To test whether the gains depend on GRPO, we integrate AnchorCredit with DAPO (Yu et al., 2025) and GDPO, retaining each framework’s sampling and policy-update rules. Both pairs improve all three mean ProductAttr metrics (Table 3, panel a). With DAPO, weight and dimension RMAE decrease by 1.83 and 1.41 percentage points. With GDPO, they decrease by 1.21 and 0.82 points, while Fold F1 increases by 3.59 points. These paired comparisons support AnchorCredit as a reusable credit-assignment module within the evaluated frameworks. In particular, the GDPO integration shows that assigning credit to relevant positions can complement component-wise reward normalization.

SettingMethodWeight RMAE ↓Dimensions RMAE ↓Fold F1 ↑
(a) Training frameworks: Qwen3.5-4B
DAPOOriginal27.96±1.0727.96\pm1.0721.48±0.0321.48\pm0.0390.82±0.1390.82\pm0.13
DAPO+ Ours26.13±0.4226.13\pm0.4220.07±0.0320.07\pm0.0391.00±0.2191.00\pm0.21
GDPOOriginal26.23±0.3126.23\pm0.3120.54±0.0720.54\pm0.0788.29±0.5388.29\pm0.53
GDPO+ Ours25.02±0.4125.02\pm0.4119.72±0.1819.72\pm0.1891.88±0.4391.88\pm0.43
(b) Model scale and architecture: GRPO
Qwen3.5-9B (dense)GRPO28.17±0.6528.17\pm0.6520.93±0.2420.93\pm0.2491.48±0.6691.48\pm0.66
Qwen3.5-9B (dense)+ Ours23.49±0.5323.49\pm0.5319.22±0.0719.22\pm0.0792.79±0.4792.79\pm0.47
Qwen3.5-35B-A3B (MoE)GRPO31.99±1.2731.99\pm1.2721.35±0.1221.35\pm0.1290.44±0.3190.44\pm0.31
Qwen3.5-35B-A3B (MoE)+ Ours25.06±0.9825.06\pm0.9818.94±0.1718.94\pm0.1792.25±0.5792.25\pm0.57

Table 3. Compatibility across training frameworks and models on ProductAttr (%). Panel (a) integrates AnchorCredit with DAPO and GDPO on Qwen3.5-4B; panel (b) integrates it with GRPO on larger dense and MoE models. ‘‘+ Ours’’ adds AnchorCredit to the baseline; each pair uses matched configurations within its setting. Results follow § 5.1.

Model and output extensions. Gains also extend to larger Qwen3.5-9B and 35B-A3B MoE models (Table 3b) and the five-attribute extension (Table 13, Appendix § 12.§ 2). Beyond Qwen, on Gemma3-4B-IT (alternating local and global attention), parameter-free layer averaging reduces dimension RMAE from 133.86 to 50.88 and raises Fold F1 from 55.91 to 59.15 (Table 14, Appendix § 13.§ 1; frozen-response layer-group diagnostics on Qwen3.5-4B and Gemma4 E4B in Appendix § 17.§ 2).

MethodWeight RMAE ↓\downarrowDimensions RMAE ↓\downarrowFold F1 ↑\uparrowS-Dice ↑\uparrowF-Macro ↑\uparrow
GRPO29.36±0.5729.36\pm0.5721.98±0.3821.98\pm0.3891.60±0.0691.60\pm0.0689.43±0.4789.43\pm0.4796.41±0.3096.41\pm0.30
AnchorCredit26.18±0.4326.18\pm0.4319.70±0.0419.70\pm0.0491.51±0.3291.51\pm0.3291.23±0.2391.23\pm0.2396.73±0.8096.73\pm0.80

Table 13. ProductAttr FiveTask extension (%), using a fixed single training checkpoint and three evaluation seeds. S-Dice is sample-level seasonal Dice; F-Macro is Macro-F1 over eight holiday classes.

MethodWeight RMAE ↓\downarrowDimensions RMAE ↓\downarrowFold F1 ↑\uparrow
GRPO51.53±0.74133.86±37.9655.91±1.63
GRPO + Ours52.25±2.2750.88±24.8659.15±1.14

Table 14. Cross-family evaluation on Gemma3-4B-IT using ProductAttr-Eval (%). Means and sample standard deviations use three evaluation seeds for fixed training checkpoints, following § 5.1.

Credit-Assignment Analysis

Where should component-specific credit be assigned? We compare assigning component-specific credit only to output values, only to reasoning sentences, or to both (Table 4). Reasoning-only yields lower weight and dimension errors than Value-only, indicating that the allocation of credit within reasoning affects predictive performance. Assigning credit to both regions gives the lowest continuous errors in this comparison, while Reasoning-only gives the highest Fold F1. The lower continuous errors relative to Value-only support assigning component-specific feedback to reasoning sentences.

VariantWeight RMAE ↓Dimensions RMAE ↓Fold F1 ↑
GRPO30.86±0.3030.86\pm0.3022.48±0.7622.48\pm0.7689.55±0.8989.55\pm0.89
Value-only30.80±1.1230.80\pm1.1221.88±0.0921.88\pm0.0989.39±0.5789.39\pm0.57
Reasoning-only25.27±0.7225.27\pm0.7219.90±0.2919.90\pm0.2992.54±0.5392.54\pm0.53
AnchorCredit25.12±0.3425.12\pm0.3419.68±0.0619.68\pm0.0691.31±0.4291.31\pm0.42

Table 4. Credit-assignment regions on ProductAttr-Eval (%). Results use three evaluation seeds and the statistical protocol in § 5.1.

Routing granularity. On ProductAttr, sentence-level routing reduces weight RMAE from 27.01 to 25.12 and dimension RMAE from 20.40 to 19.68. Token-level routing yields slightly higher Fold F1 (91.46 vs. 91.31). Table 15 reports the full comparison.

Offline Association Analysis

Evaluation protocol. We evaluate associations on responses generated by the Qwen3.5-4B base model and GPT-5, independently of our GRPO/AnchorCredit training runs. Each source contains eight responses for each of 128 training products. Both sources are replayed through Qwen3.5-4B to extract attention and gradient signals; GPT-generated responses do not provide GPT’s internal attention. We evaluate agreement with sentence–component reference labels generated by GPT-5.6 Terra.

Association quality. AnchorCredit achieves higher micro-F1 than keyword, gradient, and matched-random controls on both response sources (Table 5). Relative to keyword matching, F1 improves by 15.41 points on Base responses and 9.19 points on GPT responses. On Base responses, this reflects higher recall at lower precision; on GPT responses, both increase. Thus, output-anchor attention captures associations beyond explicit keyword overlap on these two sources. Appendix § 14.§ 1 reports precision, recall, coverage, and an ungated Top-1 variant, which routes every sentence. The ungated variant has higher F1, highlighting the coverage trade-off introduced by candidate gating.

Multi-label association Micro-F1 ↑\uparrow
MethodBaseGPT
Matched random34.1433.44
Keyword heuristic61.0964.43
Gradient gate38.0548.74
AnchorCredit76.5073.62

Table 5. Association diagnostics on ProductAttr against Terra reference labels (%). Multi-label association micro-F1 on Base and GPT responses. Both response sources are replayed through Qwen3.5-4B for attention and gradient extraction. Random controls average ten seeds.

Primary-component identification. We additionally evaluate Top-1 primary-component prediction on GPT-generated responses (Table 6). The gated variant achieves 92.29% precision, compared with 90.21% for keyword matching, 41.92% for gradient attribution, and 32.63% for random assignment. Without gating, AnchorCredit achieves 84.28% precision. Gating retains the same Top-1 choice on accepted sentences, selecting more reliable assignments through abstention. Reference-label construction and the scoring protocol are detailed in Appendix E.1.

Primary-component prediction GPT responses
MethodPrecision ↑\uparrow
Random32.63
Matched random32.93
Keyword90.21
Gradient41.92
AnchorCredit (gated)92.29
AnchorCredit (ungated)84.28

Table 6. Top-1 primary-component precision on GPT responses (%). Precision measures the fraction of predicted assignments matching the reference; predictions on empty-reference sentences count as errors.

Conclusion and Limitations

Conclusion. We identified cross-component credit misassignment in structured generation, where a shared response-level advantage can oppose a component-specific learning signal. To address this mismatch, we introduced AnchorCredit, a plug-in module that uses the policy model’s attention from output-value anchors to assign component-specific credit to reasoning sentences, without additional relevance annotations or a separate relevance discriminator. To evaluate this approach, we constructed ProductAttr, a benchmark of 7,200 product image–text samples with component-wise verifiers. Experiments on this benchmark, Nutrition5k, and dialogue state tracking show improvements over GRPO. Further gains with DAPO and GDPO and on larger dense and MoE models support the module’s applicability across training algorithms and model configurations.

Limitations. AnchorCredit requires separately verifiable components and locatable output values. Our FlashAttention integration uses a no-gradient forward pass for anchor attention (profiled in Appendix § 17.§ 3). While we evaluate Qwen3.5 (4B–35B-A3B) and Gemma3-4B-IT, scaling online multimodal RLVR to 100B+ models remains future work.

Statement on the Use of AI

We used generative AI tools for literature retrieval, experimental-method review, code implementation and debugging, statistical-analysis scripts, interpretation of results, and drafting and editing manuscript text and structure. We used GPT-5 to generate responses and GPT-5.6 Terra to annotate sentence–component associations for the offline evaluation. Qwen and GPT models assisted with ProductAttr screening and semantic-label checks, with human review of disputed cases. Product images and text come from real product records. Reported numerical results are computed from saved model outputs using fixed evaluation scripts, and important code changes are checked through tests or artifact-level verification. The authors are responsible for the final text, code, results, citations, and conclusions.

Reproducibility Statement

The problem formulation and core algorithm are described in § 3 and the method section. Data splits, output schemas, training configurations, statistical tests, and completed ablations are documented in the corresponding appendix sections.

Ethics Statement

Nutrition5k uses public data. Permission to release ProductAttr images, text, labels, fixed splits, and accompanying code has been confirmed. ProductAttr has not yet been publicly released. The planned release will follow the applicable licenses and usage terms and exclude credentials, internal infrastructure details, and sensitive fields.

Data, Prompts, and Verifiers

Data Splits and Deduplication

Product sources and labels. ProductAttr contains 7,200 distinct AliExpress products, each represented by one stock-keeping unit (SKU), spanning 26 top-level categories, 100 second-level categories, and 1,075 leaf categories. Product images and text are matched to warehouse records by product and SKU identifiers. Weight and dimensions refer to the packaged product, measured in grams and millimeters, rather than net weight or unpackaged dimensions. For repeated measurements, the maximum recorded values are retained. All physical labels are complete, parseable, and positive.

Foldability indicates whether the SKU can be safely folded or rolled under fulfillment rules that account for packaging and damage risk. The dataset contains 5,040 nonfoldable and 2,160 foldable products. The supplementary seasonality labels indicate pronounced seasonal relevance in temperate Northern Hemisphere markets and may include multiple seasons. Festival labels identify one of seven specific holidays from the product’s design or intended use; products without a clear holiday association receive the nonfestive label. Semantic labels are checked against product images, text, and business rules using Qwen and GPT models, with human review of disputed cases.

Construction starts from 100 high-sales categories. Model-assisted screening removes inconsistent product information, image–text mismatches, category errors, and implausible warehouse measurements. Additional candidates are retrieved to improve coverage of rare festival labels. After label review and product-level deduplication, deterministic sampling maintains category coverage and increases representation of rare labels. The resulting label proportions reflect dataset construction rather than the product population.

Input attributes and quality checks. Standard product attributes are obtained from the platform’s product-information system. Only item-level standard English attribute names and values are retained, separately from SKU-selection attributes. When constructing the input attribute list, we remove weight, dimensions, foldability, seasonality, and festival fields, including aliases and direct proxies, as well as identifiers and backend metadata. This filtering applies only to the attribute list; natural evidence in titles, descriptions, and images is retained. After cleaning, 6,714 samples have nonempty standard attributes and 486 have empty attribute lists. Automated checks cover field structure, valid enumerations, physical-value validity, and explicit label fields in the attribute list; they do not replace manual quality checks for each product.

The dataset retains the existing seed-42 split of 6,400 training samples and 800 ProductAttr-Eval samples. Before splitting, image URLs, titles, and descriptions undergo Unicode NFKC, case, and whitespace normalization. Samples sharing any nonempty key are connected into the same group. There are 6,310 groups, with at most 70 samples in a group, and none of these exact-duplicate keys overlap across splits. After grouping, distributions are balanced over category, foldability, currency, text-missingness status, and weight, dimension, and volume bins. Deduplication uses normalized exact-match keys.

Images are snapshots of the original product images. All methods share the same preprocessing and data splits. Table 7 summarizes the data splits and release scope.

DatasetTrainEvalTotal examplesGrouping and release scope
ProductAttr6,4008007,200Exact-duplicate groups; planned release of images, text, and labels
Nutrition5k2,7555073,262Official dish IDs; public data

Table 7. Data splits, deduplication, and release scope.

Product benchmark release scope and status. Release of the complete product images, product text, attribute labels, fixed splits, and accompanying code has been confirmed as permissible. We plan to release the AnchorCredit code and the ProductAttr benchmark, together with documentation and license information.

The Nutrition5k-Overhead-507 adaptation uses 2,755/507 dishes from the official RGB train/test dish-ID lists. The two dish-ID sets are disjoint and contain 3,262 dishes in total. Training constructs six deterministic image variants for each training dish, yielding 16,530 training examples. These variants are not counted as independent dishes and never cross the train/test boundary. The adaptation does not introduce a separate validation split. All methods use a fixed 517-step budget and evaluate their final checkpoints on the fixed evaluation set of 507 dishes. At evaluation, each dish uses one overhead RGB image aligned with official metadata by dish ID. This setting is not a direct reproduction of the official multiview 2D main protocol. Final materials will release the complete dish-ID lists, their correspondence to the official splits, the single-image selection rule, and fixed resizing and normalization procedures. The formal task predicts fat, carbohydrates, and protein, reporting RMAE separately for the three attributes. Paired methods use the same dish lists and preprocessing. Dishes with zero-valued targets remain in the fixed evaluation set; their absolute errors contribute to the numerator of the dataset-level ratio-of-sums RMAE defined in Appendix § 10.§ 3, which does not divide by an individual dish’s target.

Output Fields and Verifiers

The product task is trained with three reward/credit groups: WT (weight), DIM (joint dimensions), and F (foldability). Five output fields do not constitute five independent tasks. Length, width, and height share one attribute reward and one routing group (Table 8).

Attribute groupJSON fieldUnit/typeVerifier
Product WTitem_weight.cngWeight scoring
Product DIMitem_length.cn, item_width.cn, item_height.cnmmJoint dimension scoring
Product Ffinal_fold_flag0/1Label matching

Table 8. Output fields and the three attribute groups in the main product setting.

Nutrition5k predicts fat, carbohydrates, and protein, with three separately reported RMAE values.

ProductAttr training rewards. Let pp and gg denote a prediction and its target. Weight is measured in grams and dimensions in millimeters. For 0<g<5000 < g < 500, the weight reward combines a 50-gram bucket match, distance to the target bucket, and a continuous log-ratio score. Define b(x)=⌊x/50⌋b(x) = \lfloor x/50 \rfloor, the target interval Ig=[max⁡{0,50(b(g)−1)},50b(g)]I_g = [\max\{0,50(b(g)-1)\},50b(g)], and d(p,Ig)d(p,I_g) as the distance from pp to this interval. With H=1[p>0 and b(p)=b(g)]H = 1[p > 0 \text{ and } b(p)=b(g)] and C=max⁡{0,1−∣ln⁡(p/g)∣/ln⁡4}C = \max\{0,1-|\ln(p/g)|/\ln4\} for p>0p>0 (C=0C=0 otherwise), the weight reward is

rWT={0.60H+0.25exp⁡(−d(p,Ig)50×0.5)+0.15C,0<g<500,max⁡{0,1−∣p−g∣∣g∣+10−6},g≥500.r_{\mathrm{WT}} = \begin{cases} 0.60H + 0.25\exp\left(-\dfrac{d(p,I_g)}{50 \times0.5}\right) + 0.15C, & 0 < g < 500,\\ \max\left\{0,1-\dfrac{|p-g|}{|g|+10^{-6}}\right\}, & g \ge500. \end{cases}

The three dimension fields contribute to one reward:

EDIM=∑a∈{L,W,H}∣pa−ga∣∑a∈{L,W,H}∣ga∣+10−6,rDIM=max⁡{0,1−EDIM}.E_{\mathrm{DIM}}=\dfrac{\sum_{a\in\{L,W,H\}}|p_a-g_a|}{\sum_{a\in\{L,W,H\}}|g_a|+10^{-6}}, \qquad r_{\mathrm{DIM}}=\max\{0,1-E_{\mathrm{DIM}}\}.

This training reward compares the original named axes. The implementation separately constructs the dimension signal used as input to component-specific advantage estimation: its bucket correction sorts the three axes and uses 50-mm buckets, a correction ratio of 0.2, and a correction cap of 0.05. These settings affect adv_signal_dimensions; the scalar reward uses the WMAPE-based rDIMr_{\mathrm{DIM}} above.

Foldability receives reward 1 when prediction and target match after conversion to strings, whitespace stripping, and lowercasing, and 0 otherwise. A missing foldability prediction receives 0. With all labels present, the response reward is R=0.4rWT+0.4rDIM+0.2rFR = 0.4r_{\mathrm{WT}} + 0.4r_{\mathrm{DIM}} + 0.2r_{\mathrm{F}}. A JSON parse failure gives reward 0 for each labeled component. Missing numerical predictions enter the corresponding reward formula as zero. Components with missing labels are excluded, and the aggregation weights are renormalized over the remaining components. The main configuration disables the additional AnchorCredit premise penalty.

Nutrition5k training rewards. The three active fields are fat_g, carb_g, and protein_g. For positive predictions and targets, the component reward and response reward are

rk=max⁡{0,1−∣log⁡2(pk/gk)∣},R=rfat+rcarb+rprotein3.r_k = \max\{0, 1 - \lvert\log_2(p_k/g_k) \rvert\}, \qquad R = \frac{r_{\mathrm{fat}} + r_{\mathrm{carb}} + r_{\mathrm{protein}}}{3}.

Thus, an exact prediction receives 1, whereas a prediction at half or twice the target receives 0. Missing, nonnumerical, nonfinite, or negative predictions receive component reward 0 and remain in the three-component denominator. A zero prediction receives 0 for a positive target; when the target is zero, only a zero prediction receives 1. JSON parse failures or a key set differing from the three active fields receive format reward 0. Severe repetition sets the response reward and all three component rewards to −0.4. It is triggered by a substantive sentence occurring at least five times, or by 20-character segments that each occur at least three times and together cover at least 25% of the reasoning text. The configuration applies no additional short-reasoning, thinking-tag, or soft length penalty.

Evaluation Metrics

Ratio-of-sums RMAE for each reported numerical output in either task is

Rk=∑i=1N∣y^ik−yik∣∑i=1N∣yik∣.R_k = \frac{\sum_{i=1}^{N} \lvert\hat{y}_{ik} - y_{ik} \rvert}{\sum_{i=1}^{N} \lvert y_{ik} \rvert}.

For Nutrition5k, kk indexes fat, carbohydrates, or protein. A dish with yik=0y_{ik} = 0 remains in the evaluation set: its absolute error contributes to the numerator, while the dataset-level denominator avoids per-dish division by zero. The numerator and denominator of joint-dimension error RDIMR_{\mathrm{DIM}} each sum over both samples and the three axes. Fold F1 is reported separately.

Prompts and Structured Outputs

ProductAttr uses a frozen English task prompt, while product text retains its original language. Each message supplies one product image together with the title, description, top-level/second-level/leaf categories, standard attributes, SKU attributes, and SKU price with currency. Supervision labels are not provided to the model. The complete template will be released with the dataset version. Its output constraint reads:

First provide your analysis as plain text. Then finish the response with exactly one JSON object containing exactly these five keys:

{"item_weight_cn": 0.0,
    "item_length_cn": 0.0,
    "item_width_cn": 0.0,
    "item_height_cn": 0.0,
    "final_fold_flag": 0}

The example zero values illustrate field types and are not target labels. The template requires positive finite continuous values, Fold in 0/1, no units in numerical values, no Markdown code fence around the JSON, and no content after the final JSON. It also requires the model to distinguish whether numerical values in the description refer to the current SKU, a component, another specification, or shipping packaging, and to use the image to judge applicability. The prompt does not require brief reasoning or enforce <think> or <answer> tags.

Training Configurations and Reproducibility Details

Table 9 lists the main ProductAttr training settings. Each method changes only its prescribed advantage or credit construction; host-framework pairs retain their native rules.

SettingMain ProductAttr setting
Model/initializationQwen3.5-4B / Base
Learning rate and KL10−610^{-6}; KL loss 2×10−32 \times10^{-3}
clip / loss aggregation0.20 / seq-mean-token-mean
rollout / effective batch32 prompts ×\times 8 = 256
Input/output limits5,120 / 8,192 tokens
Training TT/top-pp/top-kk0.9/0.99/100
Evaluation sampling0.9/0.99/100
evaluation seeds42, 43, 44
Update budget/endpoint600 / checkpoint-599
Checkpoint interval100 updates and final checkpoint
Hardware8 A100 GPUs per run

Table 9. Training and generation settings. The main comparison uses training seed 42. Core product methods are also trained with seeds 43 and 44; see the multiple-training-seed results table.

ProductAttr uses AdamW with weight decay 0.01, a 25-step warmup, and a cosine learning-rate schedule. Training uses one PPO epoch, a frozen visual module, and bfloat16 (bf16). The main configuration uses gap threshold τ=0.50\tau= 0.50; thresholds of 0.75 and 1.00 are evaluated in Table 12.

GapWeight RMAE ↓\downarrowDimensions RMAE ↓\downarrowFold F1 ↑\uparrowValid-output rate ↑\uparrow
0.5025.12±0.3425.12\pm0.3419.68±0.0619.68\pm0.0691.31±0.4291.31\pm0.4299.67±0.1499.67\pm0.14
0.7527.92±0.1427.92\pm0.1420.82±0.0620.82\pm0.0693.00±0.4893.00\pm0.48100.00±0.00100.00\pm0.00
1.0028.77±0.7528.77\pm0.7521.62±0.1821.62\pm0.1892.14±0.3792.14\pm0.37100.00±0.00100.00\pm0.00

Table 12. Gap comparison on ProductAttr-Eval (%), using fixed endpoints and three evaluation seeds.

AnchorCredit pseudocode. Token credit is constructed in the following order:

  1. Standardize rewards separately for each output within each prompt’s rollout group to obtain AikA_i^k, and obtain AiA_i from the total reward. Whiten these quantities to obtain A~ik\widetilde{A}_i^k and A~i\widetilde{A}_i.

  2. Locate the output anchors SikS_i^k and assign A~ik\widetilde{A}_i^k to their tokens.

  3. Split reasoning into sentences Ui,jU_{i,j}, aggregate attention from anchors to each sentence, and normalize over available outputs to obtain wijkw_{ij}^k.

  4. Apply the normalized largest-gap gate to the sorted wijkw_{ij}^k to obtain candidate set Eij\mathcal{E}_{ij}. Reasoning sentences that fail the gate use A~i\widetilde{A}_i.

  1. For a single candidate, use its A~ik\widetilde{A}_i^k. For multiple candidates without conflicting signs, average their advantages. For candidates with conflicting signs, select the output-specific advantage with the largest association weight.

  1. Use A~ik\widetilde{A}_i^k for the corresponding field-value tokens, cijc_{ij} for reasoning-sentence tokens, and A~i\widetilde{A}_i for other tokens. Whiten and clip valid tokens again to obtain C^it\widehat{C}_{it}, and insert this credit into the underlying clipped policy objective.

Two-stage whitening. The policy surrogate uses group-relative advantage standardization, pre-routing minibatch whitening, fallback, policy-ratio clipping, and post-assembly whole-batch whitening. The first whitening operation separately calibrates the batch scales of each output-advantage column and the response-level advantage. The second jointly centers and scales all valid tokens after field, sentence, and fallback credit have been assembled. Consequently, the second operation also changes final coefficients at unrouted positions. § 5.4 describes the Value-only versus GRPO field-credit comparison.

Integration across algorithms. The common AnchorCredit interface receives output-specific reward vectors from the same rollout group and the policy statistics required by the underlying policy-optimization algorithm. It returns assembled raw credit CitrawC_{it}^{\mathrm{raw}} and final credit C^it\widehat{C}_{it}. In the main GRPO experiment, C^it\widehat{C}_{it} replaces the response-level advantage while sampling, clipping, and regularization remain unchanged. DAPO can use the same token-credit interface, but its results are interpreted only within separately matched runs. The GDPO integration first standardizes individual rewards according to GDPO’s rules and computes the whole-batch mean and standard deviation of the aggregated advantage. Contributions from each output are centered and scaled using that same mean and standard deviation so that their average agrees with GDPO’s response-level advantage. The contributions are then assigned to relevant positions and final token whitening is applied. This integration does not recompute a separate batch mean and standard deviation for each output advantage. Cross-optimizer results are interpreted only within their matched controls; absolute scores do not replace the GRPO-based method comparison in the main text.

Reasoning-sentence segmentation. Sentence boundaries follow sentence-final punctuation and blank lines, excluding decimal points.

Attention aggregation. The implementation equally averages all full-attention layers that can return explicit attention matrices. It further averages over all attention heads, value tokens for the same output, and tokens within the same reasoning sentence. Linear-attention layers in hybrid architectures that do not produce such matrices are excluded. Averaging all available layers introduces no additional layer-selection hyperparameter.

RTT Adaptation

We adapt RTT (Xu et al. (2026)) using a separately trained Qwen3.5-4B discriminator with a scalar token-classification head. It takes an attribute criterion and a generated response as input and outputs a relevance probability for each response token. For ProductAttr, supervision covers weight, joint dimensions, and foldability. The labeling pipeline combines qwen3-max relevance spans with deterministic JSON-field spans and negative examples in which the criterion is omitted. It uses 608 responses from 76 policy-training entities, split into 60 training and 16 validation entities, yielding 2,880 training and 768 validation criterion–response pairs. For Nutrition5k, LLM-labeled spans from training-set responses are converted to character-level labels and split by dish. Its discriminator covers five nutrient attributes, while the Macro3 policy queries only fat, carbohydrates, and protein. Discriminator training and validation use neither policy-validation nor test examples.

The discriminator uses binary cross-entropy on labeled response tokens, masking prompts, padding, and invalid labels. The training entry point specifies Qwen3.5-4B initialization, two epochs, learning rate 9×10−69 \times10^{-6}, maximum length 2,048, global batch size 64, and microbatch size 1 per GPU on four GPUs, with seed 42, bf16, ZeRO-2, SDPA, and gradient checkpointing. It is pinned to official RTT revision b1ab2fba9bec. During policy training, the discriminator supplies continuous relevance probabilities without binary thresholding. The policy and discriminator check vocabulary token-ID compatibility and reuse the generated token IDs for alignment.

For response ii, component kk, and token tt, let ziktz_{ikt} be the discriminator logit. We compute qikt=sigmoid⁡(zikt)q_{ikt} = \operatorname{sigmoid}(z_{ikt}) and uikt=qiktriku_{ikt} = q_{ikt}r_i^k. The auxiliary signal standardizes uiktu_{ikt} over valid tokens of the same response, separately for each component, and averages over the three components:

Sit=13∑k=13uikt−mean⁡t′uikt′var⁡t′uikt′+10−6,AitRTT=clip⁡(AitGRPO+0.5Sit,−3,3).S_{it} = \frac{1}{3}\sum_{k=1}^{3}\frac{u_{ikt}-\operatorname{mean}_{t'}u_{ikt'}}{\sqrt{\operatorname{var}_{t'}u_{ikt'}+10^{-6}}}, \qquad A_{it}^{\mathrm{RTT}} = \operatorname{clip}\left(A_{it}^{\mathrm{GRPO}}+0.5S_{it},-3,3\right).

Here, t′t' ranges over valid response tokens. Normalization is performed within each response rather than across responses; the resulting signal is added to the GRPO advantage.

Adapted GD2PO

We extend the response-level conflict filtering in GD2PO [8] to the three task rewards. Within each prompt’s group GG of eight responses, we compute

aik=rik−mean⁡j∈Grjkstd⁡j∈Grjk+10−4.a_i^k = \frac{r_i^k-\operatorname{mean}_{j\in G}r_j^k}{\operatorname{std}_{j\in G}r_j^k+10^{-4}}.

ProductAttr weights these values by (0.4,0.4,0.2)(0.4, 0.4, 0.2) for weight, dimensions, and foldability; Nutrition5k uses their unweighted sum. The hard-conflict rule masks a response if its valid component advantages include both a value above 10−810^{-8} and a value below −10−8-10^{-8}, ignoring missing components. Let mim_i be 1 for a retained response and 0 otherwise. The response-level policy advantage before token normalization is

ρG=18∑j∈Gmj,AiGD2PO=miρG∑k=13vkaik.\rho_G = \frac{1}{8}\sum_{j\in G}m_j,\qquad A_i^{\mathrm{GD2PO}}=m_i\rho_G\sum_{k=1}^{3}v_ka_i^k.

where v=(0.4,0.4,0.2)v=(0.4,0.4,0.2) for ProductAttr and v=(1,1,1)v=(1,1,1) for Nutrition5k. We broadcast this value to response tokens, whiten only valid tokens of retained responses, and clip to [−3,3][-3,3]. Masked responses retain zero policy-gradient advantage. A fully filtered group contributes zero policy-gradient advantage; if the entire batch is filtered, whitening is skipped. We do not resample after filtering, so each rollout batch remains 32 prompts with eight responses each. Masking affects the policy-gradient term; the separate KL loss remains active.

Complete Results and Statistical Tests

Training-Seed Replication and Dialogue State Tracking

Supplementary ProductAttr Results

Larger gap thresholds increase weight and dimension errors but improve Fold F1 relative to the default threshold of 0.50, which is used in the main experiments and component ablations.

FiveTask extension evaluation. To examine credit assignment after adding seasonality and festival attributes, we compare matched GRPO and AnchorCredit on the same ProductAttr-Eval split. Table 13 shows that AnchorCredit reduces weight and dimension RMAE by 3.18 and 2.28 percentage points, respectively, and increases sample-level seasonality Dice by 1.80 percentage points. Fold F1 is approximately unchanged, and festival macro-F1 increases by 0.32 percentage points. Seasonality Dice matches the task’s training reward and measures per-product label-set agreement, including the nonseasonal label.

Statistical Tests

Table 10 summarizes replication across three ProductAttr training seeds. The intervals below instead quantify evaluation variability for the fixed models trained with seed 42.

For ProductAttr, we use a hierarchical paired bootstrap over evaluation seeds and products, with item_id+sku_id as the pairing unit. Each replicate draws three evaluation seeds with replacement and resamples the 800 products, sharing the sampled product indices across methods, metrics, and selected seeds. We recompute the metrics for each sampled seed and average across seeds. We use B=20,000B = 20{,}000 replicates and percentile 95% confidence intervals. Reported standard deviations across evaluation seeds use ddof=1.

For AnchorCredit minus GRPO, the differences in weight RMAE, dimension RMAE, and Fold F1 are −5.74, −2.80, and +1.76 percentage points, respectively. Their 95% intervals are [−8.48, −3.09], [−4.99, −1.69], and [−1.27, 4.85]. The continuous-attribute improvement intervals exclude zero, whereas the Fold interval includes zero. These intervals do not cover training randomness; other between-method differences are descriptive unless an interval is explicitly reported.

Additional Baselines, Ablations, and Sensitivity Analysis

Cross-Family Evaluation

Table 14 reports the Gemma3-4B-IT comparison. GRPO and GRPO + AnchorCredit use the same initialization, data, training budget, and decoding configuration. Larger Qwen dense and MoE results are reported in Table 3, panel b; the MoE model has approximately 35B total parameters and activates approximately 3B per token.

For Gemma3-4B-IT, AnchorCredit improves dimension RMAE and Fold F1, while weight RMAE increases from 51.53 to 52.25. Dimension errors have large standard deviations across decoding seeds; even after removing any single extreme outlier item, dimension RMAE drops by 64.56–92.27 points.

Online Routing Granularity

Routing granularity. Token-route selects candidates and assigns credit separately at each reasoning token, rather than aggregating attention within a sentence. Both variants use gap threshold 0.50 and the same field-value credit, conflict handling, whitening, training budget, and evaluation protocol. Sentence-level routing has lower weight and dimension errors, while Token-route has slightly higher Fold F1.

Supplementary Association Analysis

Model-Reference Association Evaluation

Table 16 reports the full association metrics. The Base and GPT response sets each contain 1,024 responses to 128 ProductAttr training inputs. Base responses yield 43,183 scored sentences from 961 responses; 63 responses have no locatable reasoning sentences and remain in response-level accounting but do not contribute sentence-level labels. All 1,024 GPT responses yield scored sentences, totaling 7,807. Fifty-five Base responses reach the generation limit; this status is separate from the no-sentence category. The reference model is GPT-5.6 Terra (gpt-5.6-terra-2026-07-09). It labels complete visible reasoning using the fixed component-labeling protocol. Attention and gradient attribution on both sources are obtained by replay through Qwen3.5-4B.

SourceAssociation methodPrecisionRecallF1Coverage
BaseMatched random34.9433.3934.1488.99
BaseKeyword heuristic90.7846.0461.0948.66
BaseGradient gate37.2938.8538.0595.91
BaseTop-1 without gating79.5975.4177.44100.00
BaseAnchorCredit78.2874.8076.5088.99
GPTMatched random43.3527.2233.4479.77
GPTKeyword heuristic94.8848.7764.4365.19
GPTGradient gate55.0143.7548.7499.83
GPTTop-1 without gating94.2567.3178.53100.00
GPTAnchorCredit95.4159.9273.6279.77

Table 16. Full model-reference association metrics on Base and GPT responses (%). Precision, recall, and F1 are micro-averaged. Coverage is the percentage of sentences with a nonempty predicted component set. Random matching uses the gated method’s per-sentence candidate counts and averages ten random seeds. Top-1 is an ungated attention ablation.

We use 2,000 paired bootstrap replicates over 128 product clusters per source. The 95% F1 intervals for AnchorCredit are [74.66, 78.27] on Base and [72.28, 74.88] on GPT responses. Differences from keyword matching are +15.41 [14.05, 16.80] and +9.19 [7.82, 10.44]. Differences from ungated Top-1 are −0.94 [−1.46, −0.22] and −4.91 [−5.70, −4.13]. Intervals describe variability over sampled products, not uncertainty in reference labels. Each source is evaluated separately.

Primary-component reference protocol. The GPT response set contains 7,681 relevant sentences and 126 sentences with empty reference labels. Existing single-component labels are retained; for the 2,557 multi-label sentences, Terra selects one primary component from the original reference set. Uncertain primary labels (909 sentences) remain in scoring. Precision is the number of correct primary-component assignments divided by the total number of emitted assignments across all 7,807 sentences. Assignments to empty-reference sentences count as false positives; abstentions do not enter the precision denominator. AnchorCredit (ungated) selects the highest attention score. AnchorCredit (gated) makes the same selection on accepted sentences and otherwise abstains. Their precision values are 84.28% and 92.29%, respectively. Matched random uses the same acceptance mask as the gate and achieves 32.93% precision. Random controls average ten seeds. This single-primary-label diagnostic is distinct from the multi-label evaluation above.

Nutrition5k Prompt Control

Nutrition5k prompt control. We additionally train GRPO and GRPO + AnchorCredit with an English prompt that removes the original restrictions on the number of checks and revisions, while retaining prediction of total fat, carbohydrates, and protein for the whole dish and the strict three-field JSON output requirement. Both arms use this prompt and evaluate final checkpoint-516 on the same 507 samples with evaluation seeds 42, 43, and 44. Table 17 reports the paired results. This control changes both language and reasoning guidance, so differences cannot be attributed to any one instruction.

MethodFatCarbohydrateProtein
GRPO34.71±0.3030.39±0.3833.01±0.31
GRPO + Ours36.29±0.7529.82±0.6831.96±0.03

Table 17. Paired Nutrition5k results with the new prompt: attribute RMAE (%, lower is better), reported as the mean ± sample standard deviation across three evaluation seeds.

Sentence-level credit in a complete training response

Figure 3 reproduces every recorded span of one Full rollout in its original order. The example was selected from training step 0, seed 42, to illustrate how credit differs across attributes within one response.

SpanComplete recorded textWeightDim.FoldGRPOGDPOFull
S00Analysis of the product image and listing data reveals that these are compact, bone-conduction style TWS earbuds in a purple, glowing charging case.29.939.230.9+1.623+0.715+1.645
S01The listing specifies a quantity, though the SKU description says “Earbuds” (plural), the attributes list “Number Of Drivers: 2” implying a single unit set is the standard packaging.33.847.818.4+1.623+0.715+1.645
S02Standard TWS cases are usually 1-2 units per package, but without a specific quantity multiplier in the SKU details, I will estimate based on a single unit set (1 pair of earbuds) which is the minimum viable shipment.37.341.021.7+1.623+0.715+1.645
S03The case is described as having “Size: 60” (likely diameter or width) and is visibly rounded and smooth.21.071.87.2+1.623+0.715−0.301
S04Based on the 60mm measurement and the plastic material, the case is approximately 60mm wide and 60mm deep, but slightly taller (height) when closed, likely around 50-55mm.22.572.84.7+1.623+0.715−0.301
S05The packaging will likely be a simple blister pack or a small cardboard box (polybag) to protect the hard plastic case.27.455.117.6+1.623+0.715−0.301

Figure 3. Complete recorded text, anchor-attention shares and final advantages. Attention shares are normalized within each row. Outlines indicate components retained by the gate. Advantages are shown to three decimals. The response continues on the next page.

Prediction 50 g; 65×65×3565 \times65 \times35 mm; non-foldable. Reference 40 g; 125×116×24125 \times116 \times24 mm; non-foldable.

Full values are logged after final normalization and clipping. GRPO is the captured uniform baseline. GDPO is recomputed on the same complete batch of 256 responses with reward weights 0.4/0.4/0.2 for weight, dimensions and foldability.

Sentence-level credit (continued)

SpanComplete recorded textWeightDim.FoldGRPOGDPOFull
S06A single unit of this size is quite small and lightweight, typically weighing between 30g and 60g depending on the case materials and included silicone tips/charger cable.80.614.25.3+1.623+0.715+1.681
S07Regarding dimensions, the bounding box would encompass the case and its immediate protective packaging.20.762.117.3+1.623+0.715−0.301
S08A standard 1-unit box for these earbuds is roughly 65mm x 65mm x 35mm.13.284.02.8+1.623+0.715−0.301
S09Ordering by the criteria L≥W≥HL \ge W \ge H, this translates to 65mm length, 65mm width, and 35mm height.10.384.25.5+1.623+0.715−0.301
S10The weight is estimated at roughly 50 grams for a single unit with standard protective packaging.85.310.44.3+1.623+0.715+1.681
S11The items are rigid plastic with no hinges, straps, or flexible components that can be compacted.8.922.168.9+1.623+0.715+0.720
S12The case must remain closed to prevent damage and to hold the electronics.10.030.559.4+1.623+0.715+0.720
S13Therefore, the item cannot be folded or rolled.3.910.785.4+1.623+0.715+0.720
S14```json17.211.271.6+1.623+0.715+0.720

Figure 3 (PDF p. 25). S06–S13 complete the reasoning. S14 is the recorded JSON delimiter. Attention percentages may sum to 99.9% or 100.1% after rounding. GRPO and GDPO allocate one response-level value to every span.

Generated JSON

{
  "item_weight_cn": 50.0,
  "item_length_cn": 65.0,
  "item_width_cn": 65.0,
  "item_height_cn": 35.0,
  "final_fold_flag": 0
}

GDPO assigns +0.715 throughout. Full assigns −0.301 to the dimensions spans, +1.681 to the weight spans and +0.720 to the foldability spans. S00–S02 use the response-level fallback before Full’s final normalization.

Additional experiments and measurement protocols

Attention-weighted credit-combination baseline and pre-routing whitening analysis

We report the new matched ProductAttr runs separately from the historical runs in the submitted paper. Each new run uses Qwen3.5-4B, training seed 42, and 600 updates. The two credit-combination runs share the initial model and training hyperparameters. Each checkpoint is evaluated on 800 products with decoding seeds 42, 43, and 44. A reported metric is the mean of three separately computed corpus-level scores; the three decodings are not independent training replications.

MethodWeight RMAE ↓\downarrowDimension RMAE ↓\downarrowFold F1 ↑\uparrow
Full25.7619.5692.60
Weighted-All (WA)26.9119.9592.54

Table 18. Attention-weighted credit-combination baseline. RMAE and F1 are percentages. All 4,800 predictions across these two checkpoints are valid. WA averages all component advantages using anchor-attention weights without gating. Full uses the gate and the sign-aware combination rule.

Full minus WA is -1.15 points [-3.97, 1.94] in weight RMAE, -0.39 [-0.93, 0.02] in dimension RMAE, and +0.06 [-1.98, 2.10] in Fold F1. Intervals use 20,000 paired bootstrap samples over products and the three observed decoding seeds, conditional on the fixed checkpoints. All three intervals include zero. In first-step routing statistics on each run’s generated responses, WA routes every sentence and averages positive and negative component advantages together for 67.63% of sentences, whereas Full routes a sentence only when its attention association passes the gate (with 10.10% of sentences falling back to the response-level advantage and 5.25% having opposite-sign gated candidates, for which Full selects the most strongly associated component).

Design motivation and offline replay of pre-routing whitening (Equation (2)). Following GDPO [9], Equation (1) first normalizes each reward component within each prompt group to decouple heterogeneous reward scales. However, whereas GDPO immediately aggregates component advantages into a single response-level scalar and applies batch whitening only to that sum, AnchorCredit routes distinct component advantages to different sentences, averages multiple same-sign candidates (Equation (7)), compares candidate signs for conflict handling, and falls back to the response-level advantage on unrouted sentences. Even after group normalization, different components can exhibit unequal effective batch variances and slight mean shifts: for example, binary attributes such as foldability produce more zero-variance prompt groups (when all rollouts in a group predict the same binary label, yielding zero group-relative advantage) than continuous attributes (weight and dimensions). Pre-routing whitening (Equation (2)) calibrates each component-advantage column and the fallback advantage to a common zero-mean, unit-variance batch scale before routing, same-sign averaging, and sign comparisons. In an offline replay of 8,992 reasoning sentences holding responses, attention, and raw advantages fixed, enabling pre-routing whitening increases mixed-sign cases from 278 to 469, reverses the credit sign for 93 sentences, and changes credit from zero to nonzero for 3,072 sentences.

Attention-layer aggregation against existing GPT labels

We freeze Qwen3.5-4B and replay 1,024 GPT-generated responses from 128 products, containing 7,807 reasoning sentences. Only the set of full-attention layers used for aggregation changes. The eligible zero-based layer indices are 3, 7, 11, 15, 19, 23, 27, and 31. Linear-attention layers do not expose the explicit attention matrices required by this analysis and are excluded.

The existing reference annotations were produced by GPT-5.6 Terra (gpt-5.6-terra-2026-07-09). A sentence can be associated with more than one component. We predict the component with the highest attention after averaging over the specified layers and count a hit when that component belongs to the reference set. All 7,807 sentences are evaluated, including 126 empty-reference sentences, which count as misses. The remaining references comprise 5,124 singleton and 2,557 multilabel sets. Uncertainty flags are retained rather than used to filter sentences. No new external-model annotations are used.

Layer groupZero-based indicesHits / sentencesAgreement
All3, 7, 11, 15, 19, 23, 27, 317,359 / 7,80794.26%
Early3, 7, 117,265 / 7,80793.06%
Middle15, 19, 237,104 / 7,80791.00%
Late27, 316,557 / 7,80783.99%

Table a. Qwen Top-1 agreement under different layer aggregations. All rows use the same responses, model, reference labels, and denominator. This diagnostic uses a prediction for every sentence; it does not measure selective prediction after gating.

All-layer averaging exceeds Early, Middle, and Late by 1.20, 3.27, and 10.27 percentage points. Corresponding 95% paired bootstrap intervals are [0.77, 1.66], [2.45, 4.13], and [9.53, 11.05]. We resample the 128 products jointly across methods for 2,000 replicates (random seed 20260921), keeping all responses and sentences of a sampled product together.

The result supports all-layer averaging as a default for this sentence–component ranking diagnostic. It does not establish an optimal layer aggregation for every metric, model, or downstream training objective. In particular, membership in a multilabel reference set differs from the single dominant-component target used in Table 6 of the submitted paper. The percentages in those two evaluations should not be compared as if they used the same target.

The supplied annotation IDs and input hashes were matched to the frozen response records before scoring. All four rows are recomputed within one replay. The historical all-layer result has 7,358 hits; its predictions agree with this replay on 7,802/7,807 sentences. We use the within-replay results throughout tbl:19(a) rather than mixing historical and recomputed predictions.

Attention-layer aggregation (continued)

Frozen-response diagnostic on a hybrid Gemma model. We replay the same 1,024 GPT responses and 7,807 reasoning sentences through frozen Gemma4 E4B (google/gemma-4-E4B-it). The existing GPT reference labels and answer texts are unchanged. We use Gemma’s native image processor, chat template, and tokenizer, remapping sentence and output-value spans by character offsets rather than reusing Qwen token positions. The model has 42 text-attention layers: 35 sliding-window layers (window size 512) and seven global layers. Native masks and key/value sharing are preserved. One forward per response supplies all layer groups; no answers are regenerated or newly labeled.

tbl:19(b). Gemma layer aggregation on the same frozen responses. All-explicit includes local and global layers; Global-only uses the seven global layers, consistent with the global-layer convention in § 4.2. Top-1 agreement uses the same multilabel membership target and all 7,807 sentences as panel (a), without gating.

Layer groupZero-based indicesLayersAgreement
All-explicit0–414293.77%
Early-explicit0–131475.09%
Middle-explicit14–271492.94%
Late-explicit28–411483.99%
Global-only5, 11, 17, 23, 29, 35, 41793.39%
Early-global5, 11281.54%
Middle-global17, 23, 29391.79%
Late-global35, 41287.69%

Table b. Gemma layer aggregation on the same frozen responses.

All-explicit exceeds the best of its three depth subsets, Middle-explicit, by 0.83 percentage points (95% paired product-bootstrap interval [0.19, 1.43]). Its difference from Global-only is 0.38 points [-0.22, 1.00]; this interval establishes neither a clear advantage nor equivalence. Within the global layers, averaging all seven exceeds Early-global, Middle-global, and Late-global by 11.85 [11.06, 12.64], 1.60 [0.87, 2.28], and 5.70 [4.56, 6.80] points. The global depth subsets differ in both depth and layer count. All intervals use 2,000 paired product-cluster bootstrap replicates with seed 20260921 and are unadjusted across comparisons.

These results support aggregation across depth on this non-Qwen hybrid architecture, without establishing that including local layers is universally preferable. They measure association ranking on fixed GPT responses, not the quality of Gemma-generated answers, the effectiveness of gating, or downstream gains after Gemma RL training. The Gemma3 endpoint results in Table 14 are a separate experiment.

Verification. All 42 layers were captured for every response. Each GPU’s real-input validation matched sparse anchor-attention rows to native eager attention with maximum absolute difference zero. The 32-response pilot preceded the full run; all 1,024 responses and 7,807 sentences were retained. Recomputing all eight group means from stored per-layer scores and rescoring locally reproduced the cloud results. There were no all-zero predictions or positive-score ties. The checkpoint revision is 4ecc2ba63bcac23ba4a767fc87025b1450f84c9c.

Computational cost

Direct measurement of the additional attention forward

To measure the cost without comparing outputs of different lengths from different policies, we time the no-gradient attention-extraction forward within AnchorCredit updates on fixed responses. For each of three input-length ranges, three disjoint packets (four prompts, eight responses per prompt) each undergo 10 warm-up updates followed by 50 measured updates on eight A100 GPUs. Model initialization is reset between runs. The Full arm therefore contributes 90 warm-up and 450 measured updates. All results below exclude warm-up.

Table 20. Extra attention-forward time within Full updates. Seconds are means over 150 measured updates per length range. The pooled percentage is the sum of forward times divided by the sum of update times.

Input lengthExtra forward (s)Full update (s)Forward / update
Short1.74814.34912.18%
Medium2.16716.69012.98%
Long2.72821.33012.79%
Pooled, 450 updates——12.69%

Table 20.

The numerator uses the maximum measured model-forward duration across participating workers. The denominator starts at advantage computation and ends after actor updating and synchronization. Generation, verifier rewards, and reference-model inference are outside this interval. Thus 12.69% is a component’s share of Full update time, not the percentage increase of the complete pipeline over GRPO. Routing, communication, and other attribution work are not part of the model-forward numerator.

For a separate end-to-end observation over the actual 600-step Full trajectory, the entire attribution prepass, including forward, routing, communication, and driver finalization, totals 12,798.27 s out of 85,306.61 s of recorded step wall time (15.00%). In-step checkpoint work is included; initialization and endpoint evaluation are excluded. This broader measurement has a different numerator and denominator from Table 20.

Historical training-job measurements

Table 21. Observed training cost on Qwen3.5-4B. Each method requests eight A100 GPUs. Steady-window timing uses 370 comparable recorded steps, while complete job wall time sums the recorded running-to-terminal intervals across the training segments. Each policy generates its own responses in these runs.

MeasurementGRPOAnchorCredit
Steady-window time per step106.7 s144.1 s
Complete training-job wall time22.71 h27.16 h
Nominal A100 GPU-hours181.7217.3
Peak GPU memory / training process37.64 GiB37.73 GiB

Table 21.

Nominal GPU-hours equal eight times job wall time. Device binding/release times were not recorded, so these are not measurements of actual allocated GPU-hours. The historical +35% steady-step difference and +20% job-clock difference include output-length and execution effects and should not be attributed entirely to the additional forward. AnchorCredit requires no additional network, trainable parameters, or backward pass.

Computational cost (continued)

Checkpoints selected under a common job-clock budget

The common budget is the smaller of the two historical endpoint job clocks: 22.648 h from recorded running status to checkpoint registration, accumulating preceding training segments. At each budget threshold, we select the latest registered checkpoint available, without consulting its evaluation performance. Checkpoints are saved every 100 steps and at the endpoint. The two clocks select GRPO step 599 and AnchorCredit step 400 at the full budget.

MethodStepClock (h)Weight ↓\downarrowDimension ↓\downarrowFold F1 ↑\uparrowValidity ↑\uparrow
GRPO59922.6530.8622.4889.5599.88
AnchorCredit40019.1526.1320.5990.0799.38

Table 22. Performance within the common 22.65 h job-clock budget. Metrics are means over the same 800 products and decoding seeds 42, 43, and 44. The budget is an upper bound; the selected checkpoints need not consume equal time.

Weight and Dimension denote RMAE (%). AnchorCredit minus GRPO, computed before rounding, is -4.74 points [-7.68, -1.96] for weight RMAE, -1.88 [-4.00, -0.71] for dimension RMAE, +0.52 [-2.27, 3.28] for Fold F1, and -0.50 [-1.08, 0.04] for validity. Intervals use 20,000 paired product/decoding-seed bootstrap replicates conditional on these two training trajectories. This is a descriptive historical job-clock comparison; it is not an exact allocation-matched GPU-hour experiment.

Inference measurements

The trained model architecture is unchanged. Inference uses ordinary generation, with no additional attribution forward, gating, or reward computation. We measured both trained policies on the same L20 GPU at concurrency 16, using 200 products per round and three decoding seeds. Table 23 averages the corresponding measurements over the three rounds.

MeasurementGRPOAnchorCredit
Mean request latency9.39 s6.14 s
Mean output length442 tokens263 tokens
Mean time to first token0.40 s0.40 s
Complete batch of 200 requests135.6 s173.6 s

Table 23. Inference latency and output lengths. Mean request latency and complete-batch time measure different aspects of the output-length distribution.

AnchorCredit’s average output is shorter and its mean request latency is lower. However, a few requests in each round reach the 8,192-token generation limit, making its complete-batch time longer. These observations do not support a general inference-speedup claim. They distinguish an unchanged inference computation graph from runtime differences caused by learned output behavior.

Public benchmarks and the number of reward components

RAMS event argument extraction

RAMS contains news documents with event argument annotations (Ebner et al., 2020). Each example requests 1–5 event roles, each scored as a reward component; 57.29% of test documents request more than three roles. We rescore the existing checkpoint-599 outputs from GRPO and AnchorCredit on all 871 test documents and 2,023 gold links, with decoding seeds 42, 43, and 44. This adds a public-benchmark evaluation in a distinct domain without representing the rescoring as a new training run.

MetricGRPOAnchorCreditDifference [95% CI]
Link F143.8744.31+0.45 [-1.23, 2.12]
Per-role span F158.3558.82+0.47 [-0.69, 1.61]
Joint accuracy16.3017.95+1.65 [-0.15, 3.52]
Format validity99.8599.46-0.38 [-0.92, 0.11]

Table 24. RAMS results. All scores are percentages; differences are AnchorCredit minus GRPO in percentage points. Corpus-level Link F1 is verified against the official scorer. Per-role span F1 is the mean of within-document role-level multiset span F1; joint accuracy requires all requested role arguments in a document to be correct. Format validity measures compliance with the output schema and span constraints.

Invalid JSON, schema, or spans contribute zero true-positive/predicted links while retaining all gold links. No valid-only filtering is used. Scores are first computed per decoding seed and then averaged. Intervals use 20,000 jointly paired document and observed-seed bootstrap samples, conditional on the two checkpoints; no multiple-metric correction is applied. All four intervals include zero. The positive extraction-score estimates therefore do not establish a statistically significant improvement. Twenty-three documents have no gold links; the corpus Link F1 denominator is nonzero in the observed data and all bootstrap replicates.

SGD results by the number of requested slots

The complete SGD test set has 46,116 frames from 4,201 dialogues. Requested schema size KK ranges from 2 to 13 (mean 8.36); each slot is a separate reward component. The K>3K > 3 stratum contains 44,874 frames (97.31%), and K≤3K \le3 contains 1,242. KK is the number of requested fields, not the number of nonempty gold fields or nonzero advantages.

SeedGRPO JGAAnchorCredit JGAOverall gainGain, K>3K > 3Gain, K≤3K \le3
4275.3281.21+5.89+6.00+2.11
4375.2681.30+6.04+6.13+2.59

Table 25. SGD JGA and its improvement by K. Gains are AnchorCredit minus GRPO, in percentage points. Both listed decoding seeds have complete coverage of the test frames.

The overall-gain intervals are [5.39, 6.39] and [5.55, 6.53], from 20,000 paired whole-dialogue bootstrap samples. The difference between high-KK and low-KK gains is +3.88 [1.13, 6.59] and +3.54 [0.93, 6.14], jointly resampling dialogues across strata. These are natural strata, not randomized choices of KK. They establish that the evaluated workload already includes more than three reward components, but do not identify a causal effect of increasing KK or measure asymptotic scaling cost.

Reference: Seth Ebner, Patrick Xia, Ryan Culkin, Kyle Rawlins, and Benjamin Van Durme. Multi-Sentence Argument Linking. Proceedings of ACL 2020, pp. 8057–8077.

References

  1. [1]Alex James Chan, Hao Sun, Samuel Holt, and Mihaela van der Schaar. Dense reward for free in reinforcement learning from human feedback. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 6136–6154, 2024. URL https://proceedings.mlr.press/v235/chan24a.html.arxiv.org/abs/2402.00782
  2. [2]DeepSeek-AI. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.DOI
  3. [3]Zhichen Dong, Yang Li, Yuhan Sun, Weixun Wang, Yijia Luo, Zinian Peng, Taiheng Ye, Chao Yang, Wenbo Su, Yu Cheng, Bo Zheng, and Junchi Yan. How does reasoning flow? tracing attention-induced information flow for targeted RL in LLMs. arXiv preprint arXiv:2606.10646, 2026.arxiv.org/abs/2606.10646
  4. [4]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. In Advances in Neural Information Processing Systems, 2025.arxiv.org/abs/2505.23564
  5. [5]Sarthak Jain and Byron C. Wallace. Attention is not explanation. In Proceedings of NAACL-HLT, pages 3543–3556, 2019. doi: 10.18653/v1/N19-1357.DOI
  6. [6]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. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 29557–29590, 2025. Yang Li, Zhichen Dong, Yuhan Sun, Weixun Wang, Shaopan Xiong, Yijia Luo, Jiashun Liu, Han Lu, Jiamang Wang, Wenbo Su, Bo Zheng, and Junchi Yan. Attention illuminates LLM reasoning: The preplan-and-anchor rhythm enables fine-grained policy optimization. arXiv preprint arXiv:2510.13554, 2025.
  7. [7]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri 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, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/aca97732e30bcf1303bc22ac3924fd16-Paper-Conference.pdf.arxiv.org/abs/2305.20050
  8. [8]Haotian Liu, Yihao Liu, Jingwei Ni, Siyuan Huang, Xinpeng Liu, Pengyu Cheng, Jiajun Song, Ruijin Ding, Junfeng Li, Zhechao Yu, Mengyu Zhou, Hongteng Xu, Xiaoxi Jiang, and Guanjun Jiang. GD²PO: Mitigating multi-reward conflicts via group-dynamic reward-decoupled policy optimization. arXiv preprint arXiv:2606.16771, 2026a.arxiv.org/abs/2606.16771
  9. [9]Shih-Yang Liu, Xin Dong, Xinming Lu, Shizhe Diao, Peter Belcak, Mingjie Liu, Min-Hung Chen, Hongxu Yin, Yu-Chiang Frank Wang, Kwang-Ting Cheng, Yejin Choi, Jan Kautz, and Pavlo Molchanov. GDPO: Group reward-decoupled normalization policy optimization for multi-reward RL optimization. arXiv preprint arXiv:2601.05242, 2026b.arxiv.org/abs/2601.05242
  10. [10]Kirill Pavlenko, Alexander Golubev, Simon Karasik, and Boris Yangel. Blockwise advantage estimation for multi-objective RL with verifiable rewards. arXiv preprint arXiv:2602.10231, 2026. URL https://arxiv.org/abs/2602.10231.
  11. [11]Abhinav Rastogi, Xiaoxue Zang, Srinivas Sunkara, Raghav Gupta, and Pranav Khaitan. Towards scalable multi-domain conversational agents: The schema-guided dialogue dataset. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 8689–8696, 2020. doi: 10.1609/aaai.v34i05.6394. URL https://ojs.aaai.org/index.php/AAAI/article/view/6394.DOI
  12. [12]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, 2025. URL https://openreview.net/forum?id=A6Y7Aq1zLW.arxiv.org/abs/2410.08146
  13. [13]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  14. [14]Quin Thames, Arjun Karpur, Wade Norris, Fangting Xia, Liviu Panait, Tobias Weyand, and Jack Sim. Nutrition5k: Towards automatic nutritional understanding of generic food. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8903–8911, 2021.arxiv.org/abs/2103.03375
  15. [15]Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhifang Sui. Math-Shepherd: Verify and reinforce LLMs step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, pages 9426–9439, 2024. doi: 10.18653/v1/2024.acl-long.510.DOI
  16. [16]Sarah Wiegreffe and Yuval Pinter. Attention is not not explanation. In Proceedings of EMNLP-IJCNLP, pages 11–20, 2019. doi: 10.18653/v1/D19-1002.
  17. [17]Weichu Xie, Haozhe Zhao, Wenpu Liu, Yongfu Zhu, Liang Chen, Minghao Ye, Zirong Chen, Yuqi Xu, Shuai Dong, Ziyue Wang, Xinbo Xu, Kean Shi, Ruoyu Wu, Xiaoying Zhang, Wenqi Shao, Baobao Chang, Nan Duan, and Jiaqi Wang. Step-wise rubric rewards for LLM reasoning. arXiv preprint arXiv:2605.17291, 2026. URL https://arxiv.org/abs/2605.17291.

Paper details

vlnc:W_uyzhf9je
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools, GPT-5, GPT-5.6 Terra (bare), Qwen (multiple versions)

View statement
Looking for related papers…
Contents