What matters in AI.

Subscribe

Learn / AI basics

Definition · AI basics

GRPO

GRPO (Group Relative Policy Optimization) is a reinforcement learning method that trains a language model with a reward. For each question, the model writes a group of answers. Each answer gets a reward, and GRPO compares that reward with the group average. DeepSeek made GRPO in 2024 as a variant of PPO with no critic model.

Last reviewed

Key points

  • GRPO samples a group of answers for each question. The advantage of an answer is its reward minus the group average, divided by the group standard deviation.
  • GRPO removes the critic (value) model of PPO, which DeepSeek says is typically of comparable size to the trained model. This cuts memory use.
  • DeepSeek used GRPO to train DeepSeekMath 7B (MATH 46.8% to 51.7%, 2024) and DeepSeek-R1-Zero (AIME 2024 pass@1 15.6% to 71.0%, 2025).
  • GRPO is only as good as its reward. For R1-Zero, DeepSeek used rule rewards because a neural reward model may suffer from reward hacking.
  • Papers in 2025 found faults in the 2024 GRPO, such as a bias to long incorrect answers. Dr. GRPO and DAPO change the method to remove them.

How GRPO trains a model

GRPO is a reinforcement learning method for a language model. DeepSeekMath (Shao and colleagues, 2024) gives these steps for one question:

  1. The model writes a group of answers. DeepSeekMath used 64 answers for each question.
  2. A reward scores each answer. The reward is a neural reward model or a rule that checks the last answer.
  3. GRPO subtracts the group average from each reward and divides by the group standard deviation. The result is the “advantage” of that answer.
  4. The update makes answers with a positive advantage more likely, and answers with a negative advantage less likely.
  5. A KL penalty in the loss keeps the model near a reference model.
GRPO scores each answer against the other answers to the same question. No critic model is necessary.
GRPO scores each answer against the other answers to the same question. No critic model is necessary.

GRPO vs PPO

PPO GRPO
Baseline for an answer A critic (value) model The average reward of the group
Critic model Typically of comparable size to the trained model None

Source: DeepSeekMath, 2024. GRPO samples a group of answers for each question: 64 in DeepSeekMath, 8 by default in the Hugging Face TRL library.

What GRPO changed

GRPO made reinforcement learning on large language models less costly. DeepSeek writes that the PPO critic “is typically another model of comparable size as the policy model”.

Model Benchmark Before GRPO After GRPO
DeepSeekMath-RL 7B (2024) MATH 46.8% 51.7%
DeepSeekMath-RL 7B (2024) GSM8K 82.9% 88.2%
DeepSeek-R1-Zero (2025) AIME 2024, pass@1 15.6% 71.0%

DeepSeek used GRPO to train R1-Zero, on the path to the reasoning model DeepSeek-R1.

4 known problems of the initial GRPO

Researchers found these faults in 2025. Each has a published change:

  1. Length bias. The loss divides by the length of each answer. Thus a long incorrect answer gets a smaller penalty. Liu and colleagues say this “artificially increases response length”. Dr. GRPO removes the division.
  2. Question weight bias. The division by the standard deviation gives more weight to some questions. These are questions where almost all answers are correct or all are incorrect. Dr. GRPO removes it.
  3. Zero signal. Sometimes all answers in a group get the same reward. Then each advantage is zero, and that question gives no update. DAPO adds Dynamic Sampling to remove such groups.
  4. Entropy collapse. The DAPO authors saw the output variety of the model fall quickly in training. DAPO adds Clip-Higher against this.

With naive GRPO on Qwen2.5-32B, the DAPO authors got 30 points on AIME 2024. With their four changes, they got 50 points.

DeepSeek also says R1-Zero had “poor readability, and language mixing”.

Where definitions disagree

The papers do not agree on what GRPO gives a model.

  • New skill. DeepSeek writes that reasoning can come from reinforcement learning without human examples of reasoning.
  • Better selection. DeepSeekMath found RL made Maj@K better but not Pass@K. Yue and colleagues (NeurIPS 2025) found base models get a higher pass@k than RL trained models when k is large. In this view, GRPO makes good answers of the model more likely.

The name also covers different recipes. The 2024 GRPO has a KL penalty and two normalizations. TRL sets the KL weight to 0 by default, and Dr. GRPO removes the normalizations. A paper that says “GRPO” can mean each of these.

Questions and answers

What is the difference between GRPO and PPO?

PPO trains a second model, the critic or value model, to estimate the value of an answer. DeepSeek says this model is typically of comparable size to the trained model. GRPO removes the critic. GRPO uses the average reward of a group of answers to the same question as the baseline.

Does GRPO use a reward model?

GRPO uses a reward for each answer. A neural model or a rule can give the reward. DeepSeekMath used a neural reward model. DeepSeek-R1-Zero used rules that check the answer and its format. DeepSeek says a neural reward model "may suffer from reward hacking".

Does GRPO teach a model new reasoning skills?

The cited papers do not agree. The DeepSeek-R1 paper says reasoning can come from pure reinforcement learning. For one 7B model, DeepSeekMath found that RL made Maj@K better but not Pass@K. Yue and colleagues (2025) found that base models get a higher pass@k than RL trained models when k is large.

Sources

  1. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language ModelsarXiv (Shao et al., DeepSeek), 27 Apr 2024
  2. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement LearningarXiv (DeepSeek-AI), 22 Jan 2025
  3. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement LearningarXiv (DeepSeek-AI), 4 Jan 2026
  4. Understanding R1-Zero-Like Training: A Critical PerspectivearXiv (Liu et al.), 26 Mar 2025
  5. DAPO: An Open-Source LLM Reinforcement Learning System at ScalearXiv (Yu et al.), 18 Mar 2025
  6. Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?arXiv (Yue et al., NeurIPS 2025), 18 Apr 2025
  7. GRPO Trainer, TRL documentationHugging Face

In the news