InstructGPT was trained with PPO (Schulman et al., 2017). PPO limits how far one update can move the policy, which keeps training stable. The clipped surrogate does this by refusing to reward ratios that leave a small band around 1.
Implement clipped_surrogate(ratio, advantage, eps), returning the element-wise minimum of the raw and clipped objectives.
eps defaults to 0.2.Compute ratio * advantage and clip(ratio, 1 - eps, 1 + eps) * advantage, then take np.minimum.
No results yet
Run your code to check it against the examples, or submit to run every test.