baselines icon indicating copy to clipboard operation
baselines copied to clipboard

Is [Clipped Surrogate Objective] in PPO simply ignoring the clipped terms?

Open jaromiru opened this issue 8 years ago • 1 comments

My question is to the clipping used in the PPO objective. Since you clip the pi(a|s) / pi_old(a|s) into [1-e, 1+e], this term is a constant wrt. computing the gradient. Thus, the gradient is not affected by the clipped terms. In the objective function, you are summing all terms together, but still, clipped terms have no effect. Effectively, that means you are throwing away those samples, where the new policy deviates too much.

Am I right? I would appreciate more explanation.

jaromiru avatar Jun 26 '18 15:06 jaromiru

Same confusion here https://stats.stackexchange.com/questions/314908/why-do-we-clip-the-surrogate-objective-in-ppo

MengqiYe avatar Feb 12 '19 05:02 MengqiYe