PPO clips the probability ratio r=π_new/π_old to [1−ε, 1+ε]. This prevents large policy updates while keeping the objective tractable (no 2nd-order KL constraint like TRPO).
PPO (Proximal Policy Optimization) solves a critical instability in policy gradient: large policy updates can catastrophically degrade performance. PPO clips the probability ratio r_t(theta) = pi_new(a|s) / pi_old(a|s) to the range [1-epsilon, 1+epsilon]. This prevents the new policy from moving too far from the old one in any single update while still making progress - the dominant RL algorithm for fine-tuning LLMs.
See the policy ratio r_t on the x-axis and the clipped objective on the y-axis - the flat region is where clipping activates
Understand why unclipped policy gradients can cause catastrophic forgetting: one bad batch can destroy weeks of training
Compare TRPO (constraint-based) vs PPO (clipping-based) - both enforce a trust region but PPO is far simpler to implement
Adjust the clip parameter epsilon and see how it controls the allowed policy update magnitude
Learn why PPO became the default for RLHF in ChatGPT, Claude, and other aligned LLMs
Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.