TL;DR
R1-Zero-like training applies reinforcement learning directly to a base Language Model that answers math questions, with a reward of 1 for a correct final answer and 0 otherwise. The paper examines two parts of this recipe, the base model and the optimizer, and finds that GRPO contains two normalization terms that bias training toward longer incorrect answers. Dr. GRPO removes those terms. The result keeps reasoning accuracy while producing shorter responses, and a 7B-parameter recipe built on it reaches 43.3% on AIME 2024.
Builds on: Group Relative Policy Optimization (GRPO), Policy Gradient, Language Model · Leads to: DeepSeek-R1: Incentivizing Reasoning in LLMs through Reinforcement Learning
Why it mattered
Reasoning models trained with R1-Zero-like recipes were, at the time, often judged by how long their answers grew during training. Growing responses were read as a sign of emerging self-reflection. This paper shows that part of that growth can come from the optimizer itself, so response length alone is not evidence of better reasoning.
The paper also gives a concrete recipe. Its minimalist setup trains a Qwen2.5-Math-7B base model with an unbiased version of the update, on a subset of MATH questions, and the authors report that the runs finish in about one day on eight A100 GPUs.
A second, quieter lesson is about implementations. The authors checked several open-source PPO codebases for language-model post-training and found that they divide the loss by response length, which does not match the PPO objective as written. A reproduction that follows a paper's formula can still differ from it in code, and the paper argues that the loss an implementation runs should match the objective the paper writes down.
The problem
Before this paper, the standard way to train a reasoning model with RL was GRPO, a variant of Policy Gradient methods. For each question, GRPO samples a group of answers, scores each one, and nudges the model toward answers that scored above their group's average. The question is how to measure "above average" when answers differ in length and the questions differ in difficulty.
The paper's analysis of the original GRPO objective finds two normalization choices that are not part of the policy gradient itself. One divides each response's contribution by its length. The other divides the advantage by the standard deviation of the group's rewards. Both look harmless. The paper argues that together they change which answers the optimizer favors, and that the change is not something the reward signal asked for.
How it works
Here is the training step for one question, in the order it runs. The steps are the same for GRPO and Dr. GRPO except for the two terms in step 4.
- Sample a group. For one question , the current model samples answers from the previous policy. Each answer is a sequence of tokens with length .
- Score each answer. A checker returns reward , which is 1 if the answer contains the correct final result and 0 otherwise. Check: a group of four answers can have rewards like 1, 0, 0, 1.
- Center the rewards. Subtract the group's mean reward from each answer's reward. For rewards 1, 0, 0, 1 the mean is 0.5, so the centered values are 0.5, -0.5, -0.5, 0.5. Check: the centered values sum to zero.
- Normalize (GRPO only). GRPO divides each centered value by the group's standard deviation, and divides each response's per-token contributions by its length . Dr. GRPO skips both divisions and uses a fixed constant in place of the length. Check: with rewards 1, 0, 0, 1 the standard deviation is 0.5, so GRPO's centered values become 1, -1, -1, 1.
- Clip and update. Each token's probability ratio is clipped, as in Proximal Policy Optimization (PPO), and the model takes a gradient step that raises the probability of tokens in above-average answers and lowers it for below-average ones.
The diagram below shows the flow for one question.
flowchart LR
Q["Question q"] --> S["Sample G answers"]
S --> R["Reward 1 or 0 per answer"]
R --> C["Subtract group mean"]
C --> N{"GRPO or Dr. GRPO"}
N -->|GRPO| G["Divide by std and by length"]
N -->|Dr. GRPO| D["Divide by constant only"]
G --> U["Clipped policy update"]
D --> U
The math
The paper writes the GRPO objective as an average over questions and groups. Each response contributes a sum over its tokens, weighted by a clipped probability ratio and an advantage . The two suspicious terms are the in front of each response's sum and the standard deviation in the advantage.
Step 4 in symbols: the advantage
GRPO's advantage is
Dr. GRPO keeps the numerator and drops the denominator:
Here is the standard deviation of the group's rewards. The bracket with the mean is the same in both.
Step 4 in symbols: the length term
GRPO's objective averages each response's token sum with the weight , so each token in response gets per-token weight before clipping. Dr. GRPO removes the and, in its implementation, divides by a constant such as the generation budget. Every token then gets a weight that depends on the advantage, not on the response's length.
Why the two terms bias training
The paper's argument has two parts. For the length term, a correct response with few tokens gets a large weight on each token, so the update favors short correct answers. For a wrong response, the penalty is spread over its tokens: a long wrong answer gets a small penalty per token, so the update discourages long wrong answers less. Over training this favors growing wrong answers.
For the standard deviation term, a question where almost every answer is right or almost every answer is wrong has a small standard deviation, so its advantages are scaled up. Questions that are nearly solved or nearly hopeless therefore get extra weight that the reward signal did not ask for.
Worked examples
Two wrong answers in one group have advantage after GRPO's standard deviation step. One has length 100 tokens and the other has length 400 tokens. Compare the per-token weight that each token receives under GRPO's term.
- Short wrong answer: per token.
- Long wrong answer: per token.
- Ratio: . Each token of the short wrong answer is penalized four times as strongly as each token of the long one.
- Dr. GRPO removes the length term, so both answers receive the same per-token penalty for the same advantage.
- Interpretation: under GRPO, a long wrong answer is punished less per token, which is the length bias the paper describes.
Take two groups of answers, each with one wrong answer. Compare the wrong answer's value under Dr. GRPO (centered only) with its value under GRPO (centered and divided by the group's standard deviation).
- Group A has four answers with rewards . The mean is and the standard deviation is .
- The wrong answer's centered value is . Dr. GRPO keeps this value. GRPO divides it by , giving .
- Group B has eight answers with rewards . The mean is and the standard deviation is .
- The wrong answer's centered value is . GRPO divides it by , giving .
- Compare the GRPO scale factors: for group A and for group B. Under Dr. GRPO the wrong answers keep their centered values, and , so they differ only a little. Under GRPO the gap grows, from to , because group B is nearly solved and its small standard deviation scales the mistake up.
- Interpretation: the standard deviation term changes how much a single mistake matters depending on how many other answers in the group got it right.
Take one training batch with a single question and four answers. Rewards are and lengths are , , and tokens, respectively.
- Mean reward: . Standard deviation: .
- Dr. GRPO centered values: .
- GRPO values after dividing by : .
- The wrong answer of 400 tokens gets per token, and the wrong answer of 100 tokens gets per token.
- Interpretation: per token, the long wrong answer is penalized less. Over many training steps, that difference is what the paper links to answers growing longer when they are wrong, which Dr. GRPO avoids by using the same per-token weight for both.
Try it: a group of four answers has rewards . Give the Dr. GRPO centered value for the correct answer and the GRPO value for it.
Answer: the mean is and the standard deviation is . The Dr. GRPO centered value is . The GRPO value is .
Results
Accuracy and length. The paper compares GRPO and Dr. GRPO on the same base model and training setup. The authors report that Dr. GRPO gives better token efficiency while keeping reasoning performance. Both methods show response length rising with reward, as in DeepSeek-R1-Zero, but GRPO keeps generating longer responses even after the reward improvement slows. The authors attribute part of that growth to the length bias.
Headline recipe. The paper's minimalist recipe, built on Qwen2.5-Math-7B with the unbiased update, reaches 43.3% on AIME 2024 in the Appendix B benchmark table (Oat-Zero-7B), and the authors describe it as state-of-the-art performance. The experiments run on eight A100 GPUs for about one day.
Base model findings. The analysis of base models uses 500 questions sampled from the MATH training set. The paper reports that DeepSeek-V3-Base already shows "Aha moment" behaviour before any RL, and that Qwen2.5 base models answer well even without a prompt template. The authors read this as a possible pretraining bias: the base model's own habits shape what RL appears to teach.
Limits. The main Dr. GRPO comparison uses a 1.5B-parameter base model, while the headline 43.3% number comes from a 7B model with a different recipe, so the two are not directly comparable. The length claims are about response length in these training runs, and the paper does not claim that longer answers are worse in every setting. The survey of open-source PPO codebases establishes that their loss is normalized by length, which differs from the objective as written. It does not measure how much that difference changes results.
Reading guide
Read the paper in this order, with the prerequisite lessons it needs.
- Abstract and Section 1. The R1-Zero paradigm and the claim that response length may be an artifact. Needs Reinforcement Learning and Language Model.
- Section 2. Base models and templates, with the Qwen2.5 and DeepSeek-V3-Base comparisons. Needs Chain-of-Thought Prompting for the idea of a reasoning answer, and Subword Tokenization for how responses are counted in tokens.
- Section 3.1. The GRPO objective and its two biases. Needs Group Relative Policy Optimization (GRPO), Advantage Function, Policy Gradient and Proximal Policy Optimization (PPO).
- Section 3.2. Dr. GRPO and its experiments. Needs Group Relative Policy Optimization (GRPO) and Monte Carlo Method, since the advantage is estimated from sampled answers.
- Sections 3.3 and 3.4. Question coverage, templates and domain pretraining. Needs Reinforcement Learning and the checked-answer reward defined in Section 3.2.
- Appendix A. The policy gradient derivation behind the unbiased objective. Needs Policy Gradient and Importance Sampling.
Check yourself
QuestionWhat does Dr. GRPO remove from GRPO's advantage, and what does it keep?Show answer
It removes the division by the group's standard deviation of rewards. It keeps the centering step, which subtracts the group mean reward from each answer's reward.
QuestionA wrong answer has advantage . Its length is 200 tokens under GRPO's term. What is its per-token weight?Show answer
The per-token weight is .
QuestionWhy does the standard deviation term give extra weight to nearly solved questions?Show answer
A nearly solved question has rewards that are almost all 1, so their standard deviation is small. Dividing by a small number makes the advantage larger, so the same centered reward moves the update more for that question than for a question with a larger spread.
QuestionApplied: a training log shows that a model's wrong answers keep getting longer while its accuracy plateaus. Based on this paper, what is one explanation to check before concluding the model is learning longer reasoning?Show answer
Check whether the optimizer includes GRPO's term. If it does, the update penalizes long wrong answers less per token, which can make them grow without any gain in reasoning. Comparing the same run with the length term removed, as Dr. GRPO does, tests this.
Sources
- Liu et al., "Understanding R1-Zero-Like Training: A Critical Perspective" (2025): https://arxiv.org/abs/2503.20783
- Code release (understand-r1-zero): https://github.com/sail-sg/understand-r1-zero