Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: ppo

PPO Clipped Objective

PPO 截断目标
🎯Core Definition
PPO (Proximal Policy Optimization) approximates TRPO's KL trust region with a clipped probability ratio, needing only first-order optimization. With the ratio rt(θ)=πθ(atst)πθold(atst)r_t(\theta) = \frac{\pi_\theta(a_t|s_t)}{\pi_{\theta_{old}}(a_t|s_t)} (an importance-sampling weight measuring the relative probability of the state-action pair under new vs old policy), the clipped objective is
📌Overview
LCLIP(θ)=Et[min(rt(θ)A^t,  clip(rt(θ),1ε,1+ε)A^t)],ε=0.2\mathcal{L}^{CLIP}(\theta) = \mathbb{E}_t\left[\min\left(r_t(\theta)\hat{A}_t,\; \operatorname{clip}(r_t(\theta), 1-\varepsilon, 1+\varepsilon)\hat{A}_t\right)\right],\quad \varepsilon = 0.2 \nDerivation: 1. Start from the policy-gradient surrogate LPG(θ)=Et[rt(θ)A^t]L^{PG}(\theta) = \mathbb{E}_t[r_t(\theta)\hat{A}_t]: unconstrained maximization lets rtr_t grow unboundedly and one large update collapses the policy (TRPO's motivation); 2. Add clipping: once rtr_t leaves [1ε,1+ε][1-\varepsilon, 1+\varepsilon] it is clamped, and taking the min with the unclipped term makes the objective constant in rtr_t (zero gradient) beyond the region — a one-line trust region; 3. Numeric example (ε=0.2\varepsilon = 0.2): with A^t=+1,rt=2\hat{A}_t = +1, r_t = 2, min(2,1.2)=1.2\min(2, 1.2) = 1.2 — the positive advantage caps the ratio at 1.2; with A^t=1,rt=0.5\hat{A}_t = -1, r_t = 0.5, min(0.5,0.8)=0.8\min(-0.5, -0.8) = -0.8 — the negative advantage floors it at 0.8 (clipping in the opposite direction). The per-step ratio drift is bounded to about ±20%\pm 20\%, equivalent to a small KL trust region.
💡Use Cases
policy optimization in RLHF (with KL penalty and GAE), RLVR/reasoning RL; OpenAI's default general-purpose RL algorithm for both continuous and discrete actions and large-scale distributed training.
Key Problems Solved
REINFORCE is step-size sensitive and TRPO needs expensive second-order optimization. PPO pins the update inside a trust region with min+clip so plain first-order SGD trains stably — simple, robust, reproducible, and the de facto RLHF standard.
🎯5 High-Frequency Exam Points
1
Write PPO's clipped objective; what is the default ε, and why the min?
2
Whiteboard: with A=+1,r=2 and A=−1,r=0.5 show numerically how min+clip bounds the update.
3
What does the ratio r_t(θ) mean, and what role does importance sampling play?
4
Why do positive and negative advantages clip in opposite directions; when is the clip active?
5
How does PPO relate to TRPO, and why is PPO the default for RLHF/RLVR?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "PPO Clipped Objective"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardActor-CriticNext CardSAC Max-Entropy

🔗 More Reinforcement Learning Knowledge Cards

Behavioral CloningContextual BanditCoT & Reasoning RLConservative Q-Learning