Shanghai AI Lab's RePro Cuts Reasoning Tokens 47% While Boosting Math Scores
A new reinforcement learning reward treats chain-of-thought as gradient descent, cutting tokens by about 50% while boosting accuracy on math, science, and code benchmarks.
Takeaways
- RePro reframes chain-of-thought as gradient descent, scoring each step's contribution to answer probability.
- Dual reward combines magnitude (objective increase) and stability (Kendall's Tau rank correlation).
- Entropy-based segment selection picks top-k high-uncertainty branches to score, keeping overhead manageable.
- Cuts token usage roughly 50% on DeepSeek-R1-Distill-Qwen-1.5B while improving AIME24 by 3.1 points over GRPO.
- Plug-and-play with PPO, GRPO, REINFORCE++; validated on Qwen3-1.7B/8B, Hunyuan-1.8B, MobileLLM-R1.
- Code at github.com/open-compass/RePro; paper on arXiv.
Researchers at Shanghai AI Laboratory and Monash University have introduced RePro, a process-level reward for training reasoning models to produce shorter, more accurate solutions. The method rewards steps that increase the model’s confidence in the correct answer and penalizes loops, unproductive backtracking, and repeated derivations.
Long reasoning traces can improve performance on difficult tasks, but reinforcement learning often encourages models to spend thousands of tokens reconsidering conclusions they have already reached. RePro targets that training failure without imposing a blanket length penalty, allowing useful reasoning to remain while removing steps that make no measurable progress.
Outcome rewards miss the detours
Reinforcement learning with verifiable rewards, or RLVR, trains a model against answers that can be checked automatically. It is commonly used for mathematical reasoning and underpins systems such as DeepSeek-R1 and Kimi K1.5. A model generates a solution, receives a reward when its final answer matches the reference, and receives little guidance about the quality of individual steps.
That sparse signal permits inefficient traces to earn full credit. An earlier study found that o1-style models could generate thousands of reasoning tokens for elementary questions such as 2 plus 3. Typical traces contain repeated calculations, hedging, abandoned branches, and self-correction that leaves the answer unchanged.
The RePro authors describe these patterns through an optimization analogy: productive reasoning should steadily move the model toward the correct answer, while oscillation indicates stalled progress. This framing turns answer confidence into a measurable signal for each selected section of the trace.
Answer likelihood becomes a step signal
RePro measures progress using the probability assigned to the known answer after each partial reasoning trajectory. For a question q, reasoning prefix r≤t, and reference answer containing tokens a1…an, the score is the average log-probability of those answer tokens:
S_t = (1 / n) Σ log p(a_i | q, r≤t, a_<i)
A higher S_t means the reasoning prefix makes the correct answer more likely. Its negative acts like a proxy loss, which should decline as a useful trajectory advances. The model’s zero-shot answer likelihood provides the baseline for measuring improvement.
At each selected reasoning segment, RePro derives two complementary measurements:
- Magnitude score: Measures how far answer likelihood has risen above the zero-shot baseline. A hyperbolic tangent bounds the score.
- Stability score: Uses Kendall’s tau to compare answer-likelihood values with their positions in the trace. Values near 1 indicate steady progress, while lower values reflect flat, oscillating, or regressing trajectories.
RePro combines the measurements with a weight w, then differences the combined score across adjacent segments. The resulting change becomes the process reward for that portion of the reasoning trace.
Entropy identifies the branch points
Evaluating answer likelihood after every token would add substantial training cost, especially for traces containing thousands of tokens. RePro splits each reasoning block at double-newline boundaries and ranks the resulting segments by the entropy of their first token.
High entropy indicates that the model had several plausible continuations at that point, making the segment a likely decision boundary. The default configuration evaluates the top k = 10 segments. Ablations increase k to 30 and report smaller additional gains.
The implementation normalizes process rewards separately from final-answer rewards before adding them to the policy advantage. Experiments use a process-reward weight of α = 0.1. Because the signal modifies the advantage rather than the optimizer, the authors integrate it with PPO, GRPO, REINFORCE++, and REINFORCE++ Baseline.
Fewer tokens, higher benchmark scores
The paper evaluates RePro on DeepSeek-R1-Distill-Qwen-1.5B, Qwen3-1.7B, Qwen3-8B, Hunyuan-1.8B-Instruct, and MobileLLM-R1-950M. The benchmarks cover competition mathematics through AIME24, AIME25, and MATH500, plus graduate-level science questions through GPQA Diamond.
| Method | AIME24 | AIME25 | MATH500 | GPQA-D | Average tokens |
|---|---|---|---|---|---|
| Vanilla GRPO | 32.9 | 25.3 | 86.0 | 34.5 | 12,367 |
| ThinkPrune-4k | 31.7 | 20.0 | 84.5 | 33.2 | 8,376 |
| L1-Max | 26.7 | 17.9 | 85.3 | 34.1 | 6,249 |
| AdaThink | 31.7 | 25.9 | 82.5 | 34.1 | 8,549 |
| RePro | 36.0 | 26.5 | 87.1 | 37.0 | 6,558 |
On the 1.5B model, RePro reduces average output from 12,367 to 6,558 tokens, a 47% decrease, while improving every reported benchmark score over vanilla GRPO. AIME24 rises by 3.1 percentage points, AIME25 by 1.2 points, MATH500 by 1.1 points, and GPQA-D by 2.5 points.
Methods such as ThinkPrune and L1-Max reward shorter outputs directly, which can remove steps needed to solve harder problems. RePro rewards measurable progress toward the reference answer, preserving useful computation while suppressing low-value segments.
The reward cuts hesitation and backtracking
The paper’s segment-level analysis associates low rectifying rewards with self-doubt, redundant re-examination, and backtracking that fails to change the answer. High-reward segments more often contain calculations, deductions, or intermediate conclusions that increase the probability of the reference answer.
A prompt-based classifier also finds that backtracking becomes less common during RePro training than during vanilla GRPO training. Policy entropy follows a different trajectory as well: vanilla GRPO’s entropy falls rapidly, while RePro keeps it near 0.28 for the first 100 training steps, indicating that the policy retains a broader range of candidate actions for longer.
A straightforward integration with firm limits
RePro fits post-training pipelines that already use verifiable answers and policy-gradient methods. Teams need access to answer-token log probabilities, reasoning-segment boundaries, and the reference answer during reward computation. The existing outcome verifier and optimizer can remain in place.
The reported method carries three practical constraints:
- Verifiable targets are required. Open-ended tasks without a dependable reference answer cannot supply the proxy objective.
- Training requires extra inference work. Each selected prefix needs an answer-likelihood calculation. The implementation reuses vLLM KV caches to reduce duplicated computation.
- Large-scale behavior remains untested. The paper reports experiments up to 8 billion parameters and provides no evidence for larger models.
For teams already running PPO, GRPO, or REINFORCE++ on mathematical and scientific tasks, adoption consists of computing the segment scores, normalizing the resulting process reward, and adding it to the advantage with the configured weight. The RePro repository contains the implementation, while the full paper provides optimizer settings, ablations, and hyperparameters.