Search

Search papers and lessons

Understanding R1-Zero-Like Training: A Critical Perspective

Zichen Liu, Changyu Chen, Wenjun Li et al. · 2025

Liu et al. find that GRPO's two normalization terms bias training toward longer wrong answers, and remove them in Dr. GRPO, which keeps accuracy and cuts wasted length.

On this page

  • Colour = topic mix
  • Probability
  • Reinforcement learning
  • Discrete math
  • Calculus
  • Linear algebra
  • Inference
  • ReadReady to readNot yet

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.

  1. Sample a group. For one question qq, the current model samples GG answers from the previous policy. Each answer oio_i is a sequence of tokens with length ∣oi∣|o_i|.
  2. Score each answer. A checker returns reward R(q,oi)R(q, o_i), 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.
  3. 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.
  4. 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 ∣oi∣|o_i|. 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.
  5. 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 A^i,t\hat{A}_{i,t}. The two suspicious terms are the 1/∣oi∣1/|o_i| in front of each response's sum and the standard deviation in the advantage.

Step 4 in symbols: the advantage

GRPO's advantage is

A^i,t=R(q,oi)−mean⁡{R(q,o1),…,R(q,oG)}std⁡{R(q,o1),…,R(q,oG)}.\hat{A}_{i,t} = \frac{R(q, o_i) - \operatorname{mean}\{R(q, o_1), \dots, R(q, o_G)\}}{\operatorname{std}\{R(q, o_1), \dots, R(q, o_G)\}}.

Dr. GRPO keeps the numerator and drops the denominator:

A~i,t=R(q,oi)−mean⁡{R(q,o1),…,R(q,oG)}.\tilde{A}_{i,t} = R(q, o_i) - \operatorname{mean}\{R(q, o_1), \dots, R(q, o_G)\}.

Here std⁡\operatorname{std} 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 1/∣oi∣1/|o_i|, so each token in response ii gets per-token weight A^i,t/∣oi∣\hat{A}_{i,t}/|o_i| before clipping. Dr. GRPO removes the 1/∣oi∣1/|o_i| 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

Example
Tiny: per-token weights for two wrong answers

Two wrong answers in one group have advantage A^=−1\hat{A} = -1 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 1/∣oi∣1/|o_i| term.

  1. Short wrong answer: A^/∣oi∣=−1/100=−0.01\hat{A}/|o_i| = -1/100 = -0.01 per token.
  2. Long wrong answer: A^/∣oi∣=−1/400=−0.0025\hat{A}/|o_i| = -1/400 = -0.0025 per token.
  3. Ratio: 0.01/0.0025=40.01 / 0.0025 = 4. Each token of the short wrong answer is penalized four times as strongly as each token of the long one.
  4. Dr. GRPO removes the length term, so both answers receive the same per-token penalty for the same advantage.
  5. Interpretation: under GRPO, a long wrong answer is punished less per token, which is the length bias the paper describes.
Example
Standard: a nearly solved question gets more weight

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).

  1. Group A has four answers with rewards (1,1,1,0)(1, 1, 1, 0). The mean is 0.750.75 and the standard deviation is 0.75⋅0.25=0.433\sqrt{0.75 \cdot 0.25} = 0.433.
  2. The wrong answer's centered value is 0−0.75=−0.750 - 0.75 = -0.75. Dr. GRPO keeps this value. GRPO divides it by 0.4330.433, giving −1.732-1.732.
  3. Group B has eight answers with rewards (1,1,1,1,1,1,1,0)(1, 1, 1, 1, 1, 1, 1, 0). The mean is 0.8750.875 and the standard deviation is 0.875⋅0.125=0.331\sqrt{0.875 \cdot 0.125} = 0.331.
  4. The wrong answer's centered value is 0−0.875=−0.8750 - 0.875 = -0.875. GRPO divides it by 0.3310.331, giving −2.646-2.646.
  5. Compare the GRPO scale factors: 1/0.433=2.311 / 0.433 = 2.31 for group A and 1/0.331=3.021 / 0.331 = 3.02 for group B. Under Dr. GRPO the wrong answers keep their centered values, −0.75-0.75 and −0.875-0.875, so they differ only a little. Under GRPO the gap grows, from −1.73-1.73 to −2.65-2.65, because group B is nearly solved and its small standard deviation scales the mistake up.
  6. Interpretation: the standard deviation term changes how much a single mistake matters depending on how many other answers in the group got it right.
Example
Realistic: a batch with mixed lengths and rewards

Take one training batch with a single question and four answers. Rewards are (1,0,0,1)(1, 0, 0, 1) and lengths are 100100, 400400, 100100 and 200200 tokens, respectively.

  1. Mean reward: (1+0+0+1)/4=0.5(1 + 0 + 0 + 1) / 4 = 0.5. Standard deviation: 0.50.5.
  2. Dr. GRPO centered values: +0.5,−0.5,−0.5,+0.5+0.5, -0.5, -0.5, +0.5.
  3. GRPO values after dividing by 0.50.5: +1,−1,−1,+1+1, -1, -1, +1.
  4. The wrong answer of 400 tokens gets −1/400=−0.0025-1/400 = -0.0025 per token, and the wrong answer of 100 tokens gets −0.01-0.01 per token.
  5. 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 (0,0,1,0)(0, 0, 1, 0). Give the Dr. GRPO centered value for the correct answer and the GRPO value for it.

Answer: the mean is 0.250.25 and the standard deviation is 0.25⋅0.75=0.433\sqrt{0.25 \cdot 0.75} = 0.433. The Dr. GRPO centered value is 1−0.25=0.751 - 0.25 = 0.75. The GRPO value is 0.75/0.433=1.7320.75 / 0.433 = 1.732.

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.

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 −1-1. Its length is 200 tokens under GRPO's 1/∣oi∣1/|o_i| term. What is its per-token weight?Show answer

The per-token weight is −1/200=−0.005-1 / 200 = -0.005.

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 1/∣oi∣1/|o_i| 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

Read the full paper

Zichen Liu, Changyu Chen, Wenjun Li et al., 2025. arXiv:2503.20783