baselines
baselines copied to clipboard
Is [Clipped Surrogate Objective] in PPO simply ignoring the clipped terms?
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.
Same confusion here https://stats.stackexchange.com/questions/314908/why-do-we-clip-the-surrogate-objective-in-ppo