Reward modeling gave us a scorer. PPO is the loop that actually improves the model from it — taking small, clipped steps and holding a leash to a frozen copy of itself, so it gets better without drifting into gibberish.
PPO is a training loop with four parts. It reuses the reward model from the Reward-modeling lesson as the scorer — and adds a critic, a coach that predicts the score so each update knows what counts as better-than-expected.
Online RL is unstable: one over-eager update can wreck the model. PPO's fix is a clip — it caps how far a single step may move any token's probability.
Chase the reward model too hard and the policy learns to game it — high scores, junk answers. The KL leash pulls the policy back toward the frozen reference so it improves without drifting.
PPO works — but that critic is a second full-size network to train and store, expensive and finicky. Next, GRPO throws the critic out: instead of predicting the score, it samples a group of answers to the same prompt and uses their average as the baseline. Same advantage idea, half the machinery.