Intro

Group Relative Policy Optimization (GRPO) is an online reinforcement-learning method for language-model post-training. For each prompt, the current policy samples a group of completions, a reward function scores them, and the update increases probability for completions that perform better relative to their group. GRPO removes the learned value model used by PPO-style training; it does not remove on-policy sampling, reward design, KL control, or the risk of reward hacking.

Group-relative update

prompt
  → sample G completions from the current policy
  → score every completion
  → normalize rewards within the group
  → update the policy with a clipped objective and reference-policy constraint

Suppose a math prompt produces eight completions. Six fail the final-answer check, one reaches the right answer through invalid formatting, and one is correct and well formed. Outcome and format rewards rank that sampled group. The normalized advantage says which trajectories were better than their peers; it is not a calibrated probability that one response is globally correct.

The absence of a critic reduces model-state memory and one source of estimation error. Group estimates can still be noisy, especially when every sampled completion receives nearly the same reward. More samples improve comparison but increase generation cost.

Reward boundary

GRPO works best when rewards are difficult to game and cheap to verify: exact math answers, executable tests, schema checks, or constrained simulators. A style judge or underspecified reward can reward verbosity, shortcuts, or artifacts that do not generalize.

Use several gates:

  • Keep held-out prompts and run target, general-capability, and safety evaluations.
  • Inspect examples with high reward but poor human judgment.
  • Measure reward distribution and group variance, not only average training reward.
  • Test the final policy outside the environment and formatting assumptions used by the verifier.

DeepSeek evidence boundary

DeepSeekMath introduced GRPO and specifies its group-relative advantages, clipped policy objective, and KL regularization. DeepSeek-R1 reports a GRPO-based reasoning post-training pipeline and evaluations under its documented setup. Those papers support the mechanism and their stated experiments; they do not make undated API prices, third-party GPU comparisons, or broad “best model” claims durable facts.

Tradeoffs

GRPO avoids a learned critic but spends compute sampling several completions per prompt. It is attractive when rewards are verifiable and critic memory is material. DPO is simpler when a fixed, high-quality preference dataset already captures the desired boundary and online exploration is unnecessary.

Questions

References