Nathan Lambert
Course on RLHF and post-training. Chapter 15.

Over-optimization is unavoidable – regularization is how we keep it under control.
The spine of this lecture: in RL post-training, nearly every objective points the KL in the same direction.
Without regularization, strong optimizers push language models into:
Regularization is the difference between healthy RL training and these failure modes.
Sampling from P turns the definition into an expectation:
# sample from the policy
tokens = model.generate(inputs)
# score sampled tokens under both models
logprobs = log_softmax(model.forward(tokens).logits)
ref_logprobs = log_softmax(ref_model.forward(tokens).logits)
# log-probs of the tokens actually generated
token_lp = gather(logprobs, tokens)
ref_token_lp = gather(ref_logprobs, tokens)
# sequence-level difference approximates KL
kl_approx = token_lp.sum(-1) - ref_token_lp.sum(-1)
Controlled study: post-train on one task, evaluate under a rule shift (Chu et al., 2025).
On V-IRL, RL improves out-of-distribution accuracy 80.8% → 91.8%. SFT collapses it 80.8% → 1.3% – destroying spatial reasoning the base model already had.
RL-based post-training carries implicit regularization from its on-policy structure alone.
Recall the frame from Lecture 7 (on-policy distillation):
Forward KL – supervised fine-tuning:
Samples come from the target (a fixed dataset). Mass-covering: wherever the target has mass and \pi_\theta \to 0, the loss blows up – the model must spread to cover everything.
Reverse KL – reinforcement learning:
Samples come from the policy itself. Mode-seeking: only penalized where it places mass, so it concentrates on high-reward modes.
Chapter 12 promised the why reverse KL is better in chapter 15 – here it is.
Same gradients, same minimum: minimizing the SFT loss is minimizing forward KL to the data distribution.
Start from the KL-regularized objective (the one our RL trainers optimize):
Dividing by -\beta and normalizing the reward-tilted reference with Z(x) turns the objective into a single KL – minimized exactly when \pi equals the tilted distribution. Lecture 6 walked this same path to the optimal policy (the starting point of DPO):
Now expand the reverse KL to \pi_\star, substituting \log \pi_\star = \log \pi_{\text{ref}} - \log Z(x) + \tfrac{1}{\beta} r(x,y):
SFT minimizes forward KL to the data; RL minimizes reverse KL to the reward-tilted reference.
The naive read: forward KL is mass-covering, so SFT should preserve every mode – while mode-seeking RL should collapse onto one and forget the rest.
Sequential fine-tuning experiments say otherwise.
The opposite holds. That intuition assumes a unimodal policy – LLMs are multimodal.

“Among the many high-reward solutions for a new task, on-policy methods such as RL are inherently biased toward solutions that remain closer to the original policy in KL divergence.” (Shenfeld et al., 2026)

Most of these are scaffolding: added to stabilize one setup, simplified away in the next model generation.
Every RL-side objective in this lecture points the KL the same way: sampled from the model, scored against a target.
Regularization is where RLHF practice earns its stability – these are the references people reach for when debugging real runs.