Skip to content
The Plain Paper

Method

GRPO

Group Relative Policy Optimization (GRPO) is a reinforcement-learning method for updating a language model from rewards on its generated answers. It estimates which answers are better by comparing them with other answers to the same prompt, rather than using a separate critic model.

What it is

GRPO is a variant of Proximal Policy Optimization (PPO) used to train a policy from reward feedback. Its aim is to improve the policy while reducing PPO’s training-resource demands: GRPO does not use a critic model to estimate the value of an answer, but estimates a baseline from a group of answers and their rewards.12

For each prompt, the policy generates several candidate answers. GRPO uses their relative rewards to estimate an advantage for each answer: an answer scores positively when its reward is above the group average, and negatively when it is below. The method was introduced in the context of improving mathematical reasoning in language models.13

How it works

At a training step, GRPO samples a batch of prompts and generates a group of G completions for each prompt. It calculates a reward for every completion using a reward model or reward function. For completion i, the group-relative advantage is calculated as Aᵢ = (rᵢ − mean(r)) / √(std(r)² + ε), where rᵢ is its reward and the mean and standard deviation are calculated across that prompt’s group.43

The policy is then updated to increase the probability of completions with positive advantages and decrease the probability of those with negative advantages. In the clipped objective, the update uses the ratio between the new policy’s probability and the old policy’s probability, and clips that ratio to limit the size of the update. A KL-divergence penalty can also keep the updated policy close to a reference policy.43

Where it came from

GRPO was introduced by Zhihong Shao and co-authors in the 2024 paper “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models.” The paper presents it as a variant of PPO and describes estimating the baseline from group scores instead of using a critic model.12

Versions and relatives

On-policy GRPO estimates the group reward statistics using samples from the current policy. Off-policy GRPO estimates them using samples from a different policy, such as an earlier policy; the policy ratio accounts for the difference between the sampling policy and the policy being optimized.3

Several named loss formulations adapt GRPO’s update. DAPO uses token-level normalization, while Dr. GRPO divides by a constant rather than by completion length; both are described as responses to length bias in GRPO-style losses. SAPO replaces hard clipping with a smooth, temperature-controlled gate on the policy update.4

Strengths and limits

By using group rewards rather than a critic network to estimate the baseline, GRPO reduces training-resource requirements compared with PPO. Its group-relative advantage can be estimated from sampled outputs.13

The choice of loss normalization can affect how completion length influences training. The original sample-level formulation is described as having length bias, and the DAPO formulation reduces but does not fully remove that bias. The group reward normalization can also introduce a question-level difficulty bias when rewards are scaled by their standard deviation.4

How recent papers use it

In MARS Technical Report, GRPO refines a policy by having candidate recommendation-pipeline configurations executed in a Sandbox and scored by a frozen learned reward model.5

In “Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation,” GRPO is used as the main reinforcement-learning post-training method. It uses groups of 16 candidates and a hit-based reward with rank-aware penalties.6

In “More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation,” GRPO optimizes an LLM policy using group-relative advantages without an additional value model. VerRec jointly optimizes original and refined recommendations with GRPO and scalar rewards.7

Names and versions

Also written as
Group Relative Policy Optimization (GRPO)

Papers that mention GRPO

  1. 18 Nov 2026Used

    MARS Technical Report

    GRPO refines the policy using candidate configurations executed in a Sandbox and scored by a frozen learned reward model.

  2. 17 Nov 2026Used

    Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation

    The paper’s main RL post-training method uses a group of 16 candidates and a hit-based reward with rank-aware penalties.

  3. 17 Nov 2026Used

    More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation

    GRPO optimizes an LLM policy using group-relative advantages without an additional value model.

Sources

  1. 1DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelsarxiv.org
  2. 2DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language ModelsPaper abstract on arXiv
  3. 3Revisiting Group Relative Policy Optimization:Insights into On-Policy and Off-Policy Trainingarxiv.org
  4. 4GRPO Trainer · Hugging Facehuggingface.co
  5. 5MARS Technical ReportPaper explained on this site
  6. 6Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative RecommendationPaper explained on this site
  7. 7More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative RecommendationPaper explained on this site

Every paragraph above was checked against the sources it cites before it was published.