AnchorCredit: Output-Anchored Credit Assignment for Structured Generation with Multiple Verifiable Rewards
Organizations: Alibaba Group
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.
Figures & tables
| ProductAttr-Eval | Nutrition5k (RMAE ) | ||||||
|---|---|---|---|---|---|---|---|
| Method | Weight RMAE | Dimensions RMAE | Fold F1 | Avg. | Fat | Carbs | Protein |
| No-RL | 112.80\text{\color[rgb]{0.35,0.35,0.35}\pm 16.01} | 81.57\text{\color[rgb]{0.35,0.35,0.35}\pm 19.34} | 65.49\text{\color[rgb]{0.35,0.35,0.35}\pm 3.77} | 56.33\text{\color[rgb]{0.35,0.35,0.35}\pm 2.20} | 60.14\text{\color[rgb]{0.35,0.35,0.35}\pm 3.49} | 55.70\text{\color[rgb]{0.35,0.35,0.35}\pm 1.19} | 53.15\text{\color[rgb]{0.35,0.35,0.35}\pm 2.04} |
| GRPO | 30.86\text{\color[rgb]{0.35,0.35,0.35}\pm 0.30} | 22.48\text{\color[rgb]{0.35,0.35,0.35}\pm 0.76} | 89.55\text{\color[rgb]{0.35,0.35,0.35}\pm 0.89} | 35.02\text{\color[rgb]{0.35,0.35,0.35}\pm 0.39} | 40.10\text{\color[rgb]{0.35,0.35,0.35}\pm 0.77} | 32.37\text{\color[rgb]{0.35,0.35,0.35}\pm 0.41} | 32.59\text{\color[rgb]{0.35,0.35,0.35}\pm 0.11} |
| GDPO | 26.23\text{\color[rgb]{0.35,0.35,0.35}\pm 0.31} | 20.54\text{\color[rgb]{0.35,0.35,0.35}\pm 0.07} | 88.29\text{\color[rgb]{0.35,0.35,0.35}\pm 0.53} | 38.72\text{\color[rgb]{0.35,0.35,0.35}\pm 2.09} | 44.27\text{\color[rgb]{0.35,0.35,0.35}\pm 2.18} | 35.12\text{\color[rgb]{0.35,0.35,0.35}\pm 2.22} | 36.79\text{\color[rgb]{0.35,0.35,0.35}\pm 2.05} |
| GD 2 PO | 27.38\text{\color[rgb]{0.35,0.35,0.35}\pm 0.60} | 21.67\text{\color[rgb]{0.35,0.35,0.35}\pm 0.52} | 78.24\text{\color[rgb]{0.35,0.35,0.35}\pm 0.26} | 39.68\text{\color[rgb]{0.35,0.35,0.35}\pm 0.48} | 44.91\text{\color[rgb]{0.35,0.35,0.35}\pm 0.34} | 35.74\text{\color[rgb]{0.35,0.35,0.35}\pm 0.58} | 38.40\text{\color[rgb]{0.35,0.35,0.35}\pm 0.76} |
| RTT | 29.87\text{\color[rgb]{0.35,0.35,0.35}\pm 0.14} | 23.52\text{\color[rgb]{0.35,0.35,0.35}\pm 0.85} | 90.91\text{\color[rgb]{0.35,0.35,0.35}\pm 0.34} | 37.44\text{\color[rgb]{0.35,0.35,0.35}\pm 0.53} | 42.27\text{\color[rgb]{0.35,0.35,0.35}\pm 1.11} | 32.64\text{\color[rgb]{0.35,0.35,0.35}\pm 0.59} | 37.41\text{\color[rgb]{0.35,0.35,0.35}\pm 0.50} |
| Method | JGA | AGA |
|---|---|---|
| GRPO | 75.31\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | 94.48\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.02} |
| GRPO + Ours | \mathbf{81.31}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.11} | \mathbf{96.48}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.01} |
| Setting | Method | Weight RMAE | Dimensions RMAE | Fold F1 |
|---|---|---|---|---|
| (a) Training frameworks: Qwen3.5-4B | ||||
| DAPO | Original | 27.96\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 1.07} | 21.48\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.03} | 90.82\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.13} |
| + Ours | \mathbf{26.13}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.42} | \mathbf{20.07}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.03} | \mathbf{91.00}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.21} | |
| GDPO | Original | 26.23\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.31} | 20.54\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.07} | 88.29\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.53} |
| + Ours | \mathbf{25.02}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.41} | \mathbf{19.72}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.18} | \mathbf{91.88}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.43} | |
| (b) Model scale and architecture: GRPO | ||||
| Variant | Weight RMAE | Dimensions RMAE | Fold F1 |
|---|---|---|---|
| GRPO | 30.86\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.30} | 22.48\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.76} | 89.55\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.89} |
| Value-only | 30.80\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 1.12} | 21.88\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.09} | 89.39\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.57} |
| Reasoning-only | 25.27\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.72} | 19.90\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.29} | \mathbf{92.54}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.53} |
| AnchorCredit | \mathbf{25.12}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.34} | \mathbf{19.68}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | 91.31\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.42} |
| Multi-label association Micro-F1 | ||
|---|---|---|
| Method | Base | GPT |
| Matched random | 34.14 | 33.44 |
| Keyword heuristic | 61.09 | 64.43 |
| Gradient gate | 38.05 | 48.74 |
| AnchorCredit | ||
| Primary-component prediction GPT responses | |
|---|---|
| Method | Precision |
| Random | 32.63 |
| Matched random | 32.93 |
| Keyword | 90.21 |
| Gradient | 41.92 |
| AnchorCredit (gated) | |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Train | Eval | Total examples | Grouping and release scope |
|---|---|---|---|---|
| ProductAttr | 6,400 | 800 | 7,200 | Exact-duplicate groups; planned release of images, text, and labels |
| Nutrition5k | 2,755 | 507 | 3,262 | Official dish IDs; public data |
| Attribute group | JSON field | Unit/type | Verifier |
|---|---|---|---|
| Product WT | item_weight_cn | g | Weight scoring |
| Product DIM | item_length_cn , item_width_cn , item_height_cn | mm | Joint dimension scoring |
| Product F | final_fold_flag | 0/1 | Label matching |
| Setting | Main ProductAttr setting |
|---|---|
| Model/initialization | Qwen3.5-4B / Base |
| Learning rate and KL | ; KL loss |
| clip / loss aggregation | / seq-mean-token-mean |
| rollout / effective batch | 32 prompts 8 = 256 |
| Input/output limits | 5,120 / 8,192 tokens |
| Training /top- /top- |
| Method | Weight RMAE | Dimensions RMAE | Fold F1 |
|---|---|---|---|
| GRPO | |||
| GRPO + Ours |
| Method | Joint Goal Accuracy | Average Goal Accuracy |
|---|---|---|
| Base (No-RL) | 5.77\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.63} | 7.54\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.40} |
| GRPO | 75.31\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | 94.48\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.02} |
| + Ours | 81.31\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.11} | 96.48\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.01} |
| Gap | Weight RMAE | Dimensions RMAE | Fold F1 | Valid-output rate |
|---|---|---|---|---|
| 0.50 | \mathbf{25.12}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.34} | \mathbf{19.68}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | 91.31\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.42} | 99.67\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.14} |
| 0.75 | 27.92\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.14} | 20.82\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | \mathbf{93.00}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.48} | \mathbf{100.00}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.00} |
| 1.00 | 28.77\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.75} | 21.62\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.18} | 92.14\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.37} | \mathbf{100.00}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.00} |
| Method | Weight RMAE | Dimensions RMAE | Fold F1 | S-Dice | F-Macro |
|---|---|---|---|---|---|
| GRPO | 29.36\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.57} | 21.98\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.38} | \mathbf{91.60}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | 89.43\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.47} | 96.41\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.30} |
| AnchorCredit | \mathbf{26.18}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.43} | \mathbf{19.70}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.04} | 91.51\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.32} | \mathbf{91.23}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.23} | \mathbf{96.73}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.80} |
| Method | Weight RMAE | Dimensions RMAE | Fold F1 |
|---|---|---|---|
| GRPO | \mathbf{51.53}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.74} | 133.86\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 37.96} | 55.91\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 1.63} |
| GRPO + Ours | 52.25\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 2.27} | \mathbf{50.88}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 24.86} | \mathbf{59.15}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 1.14} |
| Variant | Weight RMAE | Dimensions RMAE | Fold F1 |
|---|---|---|---|
| Token-route | 27.01\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 2.01} | 20.40\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.63} | \mathbf{91.46}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.76} |
| AnchorCredit (sentence route) | \mathbf{25.12}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.34} | \mathbf{19.68}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.06} | 91.31\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.42} |
| Source | Association method | Precision | Recall | F1 | Coverage |
|---|---|---|---|---|---|
| Base | Matched random | 34.94 | 33.39 | 34.14 | 88.99 |
| Keyword heuristic | 90.78 | 46.04 | 61.09 | 48.66 | |
| Gradient gate | 37.29 | 38.85 | 38.05 | 95.91 | |
| Top-1 without gating | 79.59 | 75.41 | 77.44 | 100.00 | |
| AnchorCredit | 78.28 | 74.80 | 76.50 | 88.99 | |
| GPT | Matched random | 43.35 | 27.22 | 33.44 | 79.77 |
| Method | Fat | Carbohydrate | Protein |
|---|---|---|---|
| GRPO | \mathbf{34.71}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.30} | 30.39\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.38} | 33.01\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.31} |
| GRPO + Ours | 36.29\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.75} | \mathbf{29.82}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.68} | \mathbf{31.96}\text{\footnotesize\color[rgb]{0.35,0.35,0.35}\pm 0.03} |
Credit Assignment
Credit assignment studies how to attribute outcomes to the actions, agents, or components that caused them.
See all 78 papers