GRPO
Definition
Group Relative Policy Optimization: an RL method that samples a group of answers to one prompt and learns from their relative rewards.
In more detail
GRPO was described in DeepSeek's 2024 DeepSeekMath paper. It is popular for training reasoning on tasks with checkable answers, such as maths or code that must pass tests.
Group Relative Policy Optimization samples several answers to the same prompt, scores them, and pushes the model towards the ones that scored better than the group average. Because it compares answers within a group, it does not need the separate value model that PPO uses, which saves memory. DeepSeek used it to train the R1 reasoning model.
Related terms
DPO
Direct Preference Optimization: training a model directly on pairs of preferred and rejected outputs, with no separate reward model needed.
Reasoning model
A model trained to spend extra tokens thinking through a problem before it answers, trading speed and cost for accuracy on hard tasks.
Post-training
Training after pretraining that shapes a model's behaviour, including instruction tuning and preference or reinforcement learning.
RLHF
Reinforcement learning from human feedback: training a model with a reward signal learned from people's preferences between two outputs.
Read more about GRPO
- TRL
Hugging Face's post-training library: supervised fine-tuning, DPO, GRPO and reward models.
- RLHF
Reinforcement learning from human feedback: training a model with a reward signal learned from people's preferences between two outputs.
- Reasoning model
A model trained to spend extra tokens thinking through a problem before it answers, trading speed and cost for accuracy on hard tasks.