Pick a concrete input and say what the equation should give before you read the math.
Foundation reference
PPO: Proximal Policy Optimization
Proximal policy optimization (PPO) updates a policy with a clipped objective based on data from its previous version. PPO was the policy-update step in InstructGPT (Ouyang et al., 2022); later pipelines often use direct methods such as DPO instead.
Study guide
Where to start
Why might clipping work better than a KL penalty, as Schulman et al. (2017) found in their benchmarks, and why are both simpler than the constrained second-order update of TRPO?
How to study this pagePredict · Check · Generalize · Continue
Work through the math, then read the cited papers for the original argument.
Identify the part of the idea that survives a change of notation or model, so you can recognize it in another paper or system.
Use the prerequisites and related concepts at the end of the page to fill the next gap.
Why It Matters for Modern Models
- Proximal policy optimization (PPO) updates a policy with a clipped objective based on data from its previous version. PPO was the policy-update step in InstructGPT (Ouyang et al., 2022); later pipelines often use direct methods such as DPO instead.
- Clipping is a practical stand-in for a trust region: it removes the incentive to push an action's probability ratio past 1 ± ε but sets no hard bound on the update. In RLHF, a separate KL penalty to the starting model discourages the policy from drifting far over the whole of training (Ouyang et al., 2022).
- GAE's λ trades bias against variance in the advantage estimates, and noisy advantages are a common cause of unstable policy-gradient training (Schulman et al., 2016).
Questions to Think About
- Why can the probability ratio be read as reweighting old experience by how much more or less likely each action has become?
- How does noise in a learned reward model pass into the advantage estimates, and what does it do to PPO updates in RLHF?
Core Math
PPO updates a policy by maximizing a clipped surrogate objective on data collected by the previous policy :
where the probability ratio is
and estimates how much better action was than average in state . (Schulman et al. write the ratio as ; it is called here to avoid a clash with the reward.)
Generalized advantage estimation (GAE):
with reward , discount and learned value estimate ; trades bias against variance (Schulman et al., 2016).
Taking the minimum with the clipped term removes the incentive to push outside when doing so would raise the objective, and keeps the unclipped term when the change would lower it, so is a pessimistic lower bound on the unclipped surrogate (Schulman et al., 2017, Section 3). It is not a hard limit on the update: nothing projects the ratio back into the interval, and the objective by itself guarantees neither stable training nor protection against forgetting. It gives much of the practical benefit of a trust-region method while using only first-order optimization.
Group-relative policy optimization (GRPO) keeps PPO's clipped ratio but drops the learned value function, and with it GAE. It samples a group of outputs for the same prompt and weights each one by its reward minus the group's mean reward, divided by the group's standard deviation (Shao et al., 2024). Work through one group-relative update in the RLHF notebook.