Margin-Guided Token Credit for Reinforcement Learning with Verifiable Rewards
Abstract
In reinforcement learning with verifiable rewards, a language model is rewarded for a correct final answer, and GRPO passes that reward to every token of the solution in equal measure. We instead place the credit where the model hesitated, in a method we call MCPO (Margin-Credit Policy Optimization). We measure hesitation by the top-2 margin of the policy's next-token distribution, map it to a score with two fixed thresholds, and spread each solution's advantage over its tokens so that the mean stays unchanged. The margin is read from a forward pass the trainer already performs, so the method needs no extra model evaluation and no batch statistics. We train MiniCPM5-2B-Base with LoRA for 200 steps on 2,048 DAPO-Math problems and evaluate on six competition-math benchmarks. MCPO beats an unmodified GRPO baseline for all five data seeds, by 6.55 points of macro avg@32 on average (95\% CI ), and a Qwen3-4B-Base replication improves for all three seeds (). The gain is largest on problems that GRPO solves only some of the time and grows with in pass@, reaching 13.8 points at pass@32. MCPO models also write two to three times longer answers, and runs that write longer score higher; our experiments do not separate the two effects.
Create a lesson
Related papers
VeriLogic: Reinforcement Learning over Verifiable Logical Reasoning Traces
Shared title terminology · ZeLiang Chen, Yunyao Zhang, Xinglang Zhang et al.
Bait: Mitigating Harmful Agentic Reinforcement Learning via Probing Reward Function
Shared title terminology · Tiansheng Huang, Ananth Balashankar, Virat Shejwalkar et al.
Tokenized Reward Systems for Federated Learning: The Privacy vs. Fairness Tradeoff
Shared title terminology · Andreas Sendros, Nikolaos Pavlidis, Vasilios Perifanis et al.
Honesty Is a Race: Predicting When Verifiable-Reward RL Teaches a Model to Bluff
Shared title terminology · Nathaniel Bottman, Alexei Oblomkov
AutoScaffold: AI-Guided Scaffolding for Reinforcement Learning of Language Models
Shared title terminology · Zijian Zhang, Rizhen Hu, Jiangweizhi Peng et al.
Temporal Behavior Trees for Reinforcement Learning: Specifications as Rewards, Curricula, and Diagnostics
Shared title terminology · Vladimir Krsmanovic, Bernd Finkbeiner