Computing Library › Reinforcement Learning
Reinforcement Learning

Proximal Policy Optimization

PPO improves policies with a clipped objective that permits several update steps per batch while preventing destructively large policy changes.

Stable policy improvement

Proximal Policy Optimization (PPO) is among the most widely used reinforcement learning algorithms because it is stable, reasonably sample efficient for an on-policy method, and simple to implement. It belongs to the actor-critic family and improves the policy while keeping each update from straying too far from the previous policy.

The problem it solves

Kronos motion — learning physics

Plain policy gradients are fragile: one large update can collapse a good policy, and the data becomes stale as soon as the policy changes. Trust-region methods (TRPO) fixed this with a hard constraint on how much the policy may change, but at the cost of complex second-order optimization. PPO achieves a similar effect with a simple first-order objective.

The clipped objective

PPO computes the probability ratio r(theta) = pi_new(a|s) / pi_old(a|s) and maximizes min( r * A, clip(r, 1 - eps, 1 + eps) * A ), where A is the advantage. The clip removes the incentive to push the ratio beyond 1 +/- eps (typically eps around 0.2), so the policy improves but cannot lurch too far in one step.

The training loop

Why it caught on

PPO reuses each batch for several gradient steps, which improves efficiency over single-step policy gradients, while the clip guards against instability. It handles discrete and continuous actions, needs little tuning relative to alternatives, and has become a default baseline for control tasks and for fine-tuning large models from feedback.