Back to LLMs Mind Map
中文·English
LLMsID: ppo-clip

PPO Clipped Objective

PPO 截断损失
🎯Core Definition
PPO (Proximal Policy Optimization) constrains policy updates via a clipped probability ratio. With the ratio rt(θ)=πθ(atst)πθold(atst)r_t(\theta) = \frac{\pi_\theta(a_t|s_t)}{\pi_{\theta_{\text{old}}}(a_t|s_t)}, the clipped objective is LCLIP(θ)=Et[min(rt(θ)A^t,  clip(rt(θ),1ε,1+ε)A^t)]L^{CLIP}(\theta) = \mathbb{E}_t[\min(r_t(\theta) \hat{A}_t,\; \operatorname{clip}(r_t(\theta), 1-\varepsilon, 1+\varepsilon) \hat{A}_t)] with ε=0.2\varepsilon = 0.2: r is capped at 1.2 for positive advantages and floored at 0.8 for negative ones — e.g. r=2r=2 is clipped to 1.21.2, preventing policy jumps.
💡Use Cases
policy optimization in the RLHF stage (with KL penalty and GAE); also OpenAI's default general-purpose RL algorithm for large-scale distributed training over continuous and discrete action spaces.
Key Problems Solved
vanilla policy gradient (REINFORCE) is hypersensitive to step size — one large update collapses the policy; TRPO guarantees monotonic improvement but needs expensive second-order optimization. PPO approximates the constraint with clipping, achieving stable first-order training simply and reliably.
🎯5 High-Frequency Exam Points
1
Write the PPO clipped objective and explain the clip's role. Why ε = 0.2?
2
How does clipping behave for positive vs negative advantages? What happens at r=2?
3
What does the ratio r_t(θ) mean, and what role does importance sampling play?
4
How does PPO relate to TRPO, and why is PPO preferred in practice?
5
How is the reward constructed in RLHF-PPO? Roles of GAE and the KL penalty?
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 CardRLHF 3-Stage PipelineNext CardDirect Preference Optimization

🔗 More LLMs Knowledge Cards

Agent & Tool CallingAlignment Tax & Preference DataScaled Dot-Product AttentionAttention Variants MHA/MQA/GQA