GRPO (Group Relative Policy Optimization) is an algorithm for training large language models with reinforcement learning. It was proposed by the Chinese AI company DeepSeek in its 2024 DeepSeekMath paper and became widely known after being used to train the reasoning model DeepSeek-R1.
GRPO has the model generate multiple answers to a single problem, then compares each answer's reward against the group average, raising the probability of relatively good answers and lowering that of poor ones. Unlike PPO, which requires a separate value model to estimate rewards, it replaces this with relative comparison within the group, reducing memory and compute costs. It is mainly used to improve reasoning on math and coding tasks where correctness can be checked automatically.