# Group Relative Policy Optimization

Type: Concept

Group Relative Policy Optimization (GRPO) is a reinforcement-learning method described in the 2024 DeepSeekMath paper. It uses rewards from groups of responses to estimate their relative value during training. The paper presents it as a variant of Proximal Policy Optimization.[1][2]

## Group-relative estimates

For a given prompt the method considers several responses generated by the policy and compares their rewards within the group. The relative comparison provides a training signal. The DeepSeekMath paper uses that group estimate in place of the separate learned critic used in the PPO approach it describes. The Hugging Face TRL implementation exposes the method in a trainer that can be used with language models outside the original DeepSeekMath study. [1][2]

## DeepSeekMath application

The authors apply GRPO while training a language model on mathematical reasoning. They evaluate the resulting model on mathematics benchmarks and discuss the effect of the reinforcement-learning stage in the context of continued pretraining. Reported improvements are tied to that study’s models and evaluation setup. [2]

## Related articles

- [Reinforcement learning with verifiable rewards](/wiki/verifiable-rewards/)

## References

1. [GRPO Trainer · Hugging Face TRL](https://huggingface.co/docs/trl/grpo_trainer)
2. [DeepSeekMath introduces group relative policy optimization](https://arxiv.org/abs/2402.03300)
