What is proximal policy optimisation (PPO)?

PPO is a policy optimisation algorithm for reinforcement learning that keeps training stable by using a clipped surrogate objective to stop a new policy moving too far from the old one in a single step.

Unlike Group Relative Policy Optimisation, which compares answers generated for the same prompt within a group without a separate value model, PPO usually estimates how much better each action is than expected using a separate value model.

Topic
Machine learning, models and training
Also known as
Proximal Policy Optimization
Origin
2017

How proximal policy optimisation (PPO) works

  1. The current policy generates samples, each scored with a reward.
  2. With a value model's help, each action's advantage, meaning how much better than expected it was, is estimated.
  3. The ratio of new to old policy action probabilities is computed; the objective is clipped when it leaves a set range.
  4. Several small-batch updates run on the same samples before new ones are collected.

In more detail

The clipped objective, GAE and the KL penalty

The clipped surrogate objective multiplies the ratio of the new to the old policy's probability of an action by an advantage estimate, keeps that ratio between one minus and one plus a clipping coefficient and takes the smaller of the clipped and unclipped terms. In LLM alignment a KL divergence penalty against the frozen reference model is added so the policy stays fluent and does not over-optimise quirks of the reward model; advantages are typically computed with generalised advantage estimation (GAE).

Rollout cost and training stability

Rollout generation is autoregressive and often accounts for most of the wall-clock time in RLHF. PPO training can collapse if reward scales drift, KL coefficients are mis-tuned or the value model is poorly initialised (requiring value-head warm-up before policy updates). Reward normalisation and rule-based verifiers alongside learned reward models help stabilise training.

Commonly confused terms

TermHow it differs
Direct preference optimisationDPO bypasses online rollout generation, reward models and critic networks altogether, optimising the policy directly on static offline preference pairs via a closed-form contrastive loss.
TRPOTRPO enforces a hard trust-region constraint using expensive second-order conjugate-gradient KL approximations; PPO achieves similar stability with simple first-order clipped probability ratios.

Why proximal policy optimisation (PPO) matters for on-premises AI

PPO is widely used to align language models through reinforcement learning from human feedback. In this setup a reference model (used for a KL penalty that limits drift), a reward model and a value model sit in memory beside the model being trained, a significant load in in-house GPU capacity planning. Where simpler alignment is needed, methods such as DPO are considered; GRPO avoids a separate value model. Poor reward design lets the model exploit the reward, so outputs are evaluated separately.

ON-PREMISES EXAMPLE

An insurer's research team tries aligning its in-house assistant with PPO against a reward model trained on expert scores; its GPU memory plan accounts for policy, reference, reward and value models together.

Common questions

How does PPO differ from GRPO?

PPO usually uses a separate value model to estimate advantage. GRPO compares answers to the same prompt within a group, needing no separate value model.

Is PPO only used for language models?

No. It is a general reinforcement learning algorithm; aligning language models is just one of its uses.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.