Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

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.

  • 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.

  • TRL

    Hugging Face's post-training library: supervised fine-tuning, DPO, GRPO and reward models.

    Tool

  • RLHF

    Reinforcement learning from human feedback: training a model with a reward signal learned from people's preferences between two outputs.

    Glossary

  • 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.

    Glossary