Proximal policy optimization (PPO)
Proximal policy optimization is a reinforcement learning algorithm, published by OpenAI researchers in 2017, that improves a policy in small, clipped steps so training stays stable.
Policy gradient methods train an agent by letting it act, then nudging its policy so that actions which turned out better than expected become more likely. The danger is overshooting: one update that is too large can wreck a policy that was working. An earlier method, trust region policy optimization (TRPO, 2015), limited the size of each step, but it relied on second-order calculations that are expensive for large models.
PPO, set out by John Schulman and colleagues at OpenAI in July 2017, gets a similar effect more cheaply. For each action it compares how likely the new policy is to take it with how likely the old policy was. Once that ratio moves outside a narrow band, commonly 20% either way, the objective stops rewarding further change, so the policy gains nothing by straying far from where it started. That clipping lets PPO reuse each batch of experience for several rounds of updates. It usually runs as an actor-critic method: the policy acts, and a second network, the value function, estimates how good each situation is so the algorithm can tell which actions beat expectations.
The paper tested PPO on simulated robot locomotion and Atari games and found it simpler than TRPO with better sample efficiency. OpenAI said in July 2017 that it had become the company's default reinforcement learning algorithm, and it was used in OpenAI Five, which beat professional players at the video game Dota 2, and in Dactyl, a robot hand that learned to manipulate a block.
PPO's biggest influence came through language models. In OpenAI's InstructGPT work, published in March 2022, the final models were fine-tuned with PPO against a reward model learned from human rankings, and labellers preferred the outputs of a 1.3 billion parameter InstructGPT model to those of the 175 billion parameter GPT-3. Meta's Llama 2 paper in July 2023 called PPO the standard in the RLHF literature.
For large language models PPO is heavy: alongside the model being trained it needs a value model and a reward model in play, and the DPO authors described the RLHF pipeline built around it as complex and often unstable. That has driven alternatives which papers benchmark against it. DPO, published in May 2023, drops the reinforcement learning loop and trains directly on pairs of preferred and rejected answers. GRPO, introduced in DeepSeek's DeepSeekMath paper in February 2024, is a PPO variant that saves memory by dropping the separate value model and instead comparing each answer with a group of answers to the same question; DeepSeek later used it to train its R1 reasoning models.
PPO is a way of improving an AI agent's decision-making by trial and error while preventing any single update from changing it too much. It compares the new policy with the old one and stops rewarding changes once they go beyond a small limit. Because it was a stable, general-purpose reinforcement learning method when RLHF for language models was developed. OpenAI used it to fine-tune InstructGPT against a reward model trained on human preferences, and Meta described it in 2023 as the standard algorithm in RLHF research. GRPO, introduced by DeepSeek researchers in 2024, is a variant of PPO designed to use less memory. Instead of training a separate value model, it scores each answer against a group of answers to the same question, and DeepSeek used it to train its R1 reasoning models. PPO is a reinforcement learning algorithm that optimises a model against a separate reward model by sampling and scoring outputs. DPO skips both the separate reward model and the sampling loop, training directly on pairs of preferred and rejected answers with a simpler loss.Common questions
What is PPO in simple terms?
Why is PPO used in RLHF?
What is the difference between PPO and GRPO?
What is the difference between PPO and DPO?
Search for "proximal policy optimization", "PPO clip objective", "PPO RLHF" or "PPO vs GRPO" to understand the algorithm and its successors. Reliable sources include the original paper on arXiv, OpenAI's Spinning Up documentation, and technical reports from model developers that describe their post-training. Implementation details matter a great deal for PPO, so comparisons between algorithms are most trustworthy when the authors publish their code and settings.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.