Group relative policy optimization (GRPO)
Group relative policy optimization is a reinforcement learning method for language models that scores several answers to the same prompt and rewards each by how it compares with the group, with no separate critic model.
Reinforcement learning improves a language model by letting it produce answers, scoring them, and nudging the model towards the better ones. The standard algorithm, PPO, judges each answer against a baseline predicted by a second network called a value model, or critic. According to the DeepSeekMath paper, that value model is typically about as large as the language model being trained, which adds substantial memory and compute.
GRPO, introduced by DeepSeek researchers in the DeepSeekMath paper in February 2024, drops the critic. For each prompt the model generates a group of answers. Each answer gets a reward, and its advantage is how far its reward sits above or below the group's average, usually divided by the spread of rewards in the group. Answers that beat their siblings are reinforced; those that fall short are discouraged. A penalty keeps the model from drifting too far from a reference version of itself, and in GRPO it is added directly to the loss.
Take a maths problem with a known answer. The model writes eight attempts; three reach the right answer and score 1, five do not and score 0. The three correct attempts score above the group average and are made more likely; the five wrong ones are made less likely. No human has to rank anything and no critic has to be trained.
GRPO became widely known through DeepSeek-R1. In its January 2025 paper, DeepSeek described training DeepSeek-R1-Zero by applying reinforcement learning with GRPO directly to its DeepSeek-V3-Base model, without supervised fine-tuning first, using simple rule-based rewards for correct answers and correct formatting rather than a neural reward model. Over training, the model's average pass@1 score on the AIME 2024 maths competition rose from 15.6% to 71.0%.
The method suits tasks where answers can be checked automatically, such as maths and code, which is why it is closely tied to reinforcement learning with verifiable rewards and to reasoning models. It is now built into open-source tools such as Hugging Face's TRL library, which by default leaves out the drift penalty, citing studies finding it is not essential. GRPO is only as good as its reward: if the check can be gamed, the model will learn to game it.
Group relative policy optimization is a reinforcement learning algorithm for training language models. It samples several answers to each prompt, scores them, and pushes the model towards the answers that score above the group average, without the separate critic model that PPO uses. PPO uses a learned value model, often as large as the language model itself, to judge whether each answer is better than expected. GRPO replaces that model with the average reward of a group of answers to the same prompt, which saves memory and compute. DPO trains on a fixed dataset of preferred and rejected answers and never generates new ones during training. GRPO is online: the model keeps producing fresh answers, which are scored by a reward function, so it learns from its own current behaviour. Researchers at DeepSeek introduced it in the DeepSeekMath paper in February 2024. DeepSeek later used it to train its R1 reasoning models, described in a January 2025 paper.Common questions
What is GRPO?
How is GRPO different from PPO?
How is GRPO different from DPO?
Who created GRPO?
Search for "GRPO", "group relative policy optimization" or "DeepSeek-R1 reinforcement learning" to follow the method. The DeepSeekMath and DeepSeek-R1 papers on arXiv describe it first-hand, and Hugging Face's TRL documentation explains the implementation and its options. Claims about training costs and benchmark gains are best checked against the original papers rather than summaries.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.