# Proximal Policy Optimization vs Group Relative Policy Optimization

> PPO and GRPO are both reinforcement learning algorithms used to train language models, and GRPO is a variant of PPO. The main difference is the baseline used to judge each output. PPO trains a separate value model alongside the policy to estimate how good a state is, while GRPO samples a group of completions for each prompt and compares each completion's reward with the group's average, which removes the value model and reduces memory and compute.

- Canonical URL: https://protologue.com/compare/ppo-vs-grpo/

## Proximal Policy Optimization

Proximal policy optimization (PPO) is a reinforcement learning algorithm that alternates between collecting outputs from the current policy and updating the policy with a clipped "surrogate" objective that limits how far each update can move it, which allows several passes of minibatch updates on the same data.
Entry: https://protologue.com/t/proximal-policy-optimization/

## Group Relative Policy Optimization

Group Relative Policy Optimization (GRPO) is a reinforcement learning algorithm for language models, a variant of proximal policy optimization, that samples a group of completions for each prompt and uses the group's average reward as the baseline for each completion's advantage instead of a learned value model.
Entry: https://protologue.com/t/group-relative-policy-optimization/

## Differences

| | Proximal Policy Optimization | Group Relative Policy Optimization |
|---|---|---|
| Baseline for the advantage | A learned value model | The average reward of a group of completions for the same prompt |
| Models trained | Policy and value model | Policy only |
| Typical use with language models | RLHF against a learned reward model | Reinforcement learning with verifiable rewards for reasoning models |
| Introduced | Schulman et al. (2017) | Shao et al. (2024), DeepSeekMath |

## Which to use

- PPO is the long-established choice in RLHF pipelines, with implementations in libraries such as Hugging Face TRL.
- GRPO suits training reasoning models with automatically checkable rewards, where dropping the value model saves memory and compute.

## Sources

- Schulman et al. (2017). Proximal Policy Optimization Algorithms. https://arxiv.org/abs/1707.06347
- Hugging Face (2026). PPO Trainer. https://huggingface.co/docs/trl/main/en/ppo_trainer
- Shao et al. (2024). DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. https://arxiv.org/abs/2402.03300
- Hugging Face (2025). GRPO Trainer. https://huggingface.co/docs/trl/main/en/grpo_trainer

## Cite this page

Protologue. (2026). Proximal Policy Optimization vs Group Relative Policy Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1). https://protologue.com/compare/ppo-vs-grpo/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
