Why does RLHF include a KL penalty?
hardAnswer
- PPO fine-tunes against learned reward model r_φ, which is imperfect and prone to reward hacking .
- KL penalty β keeps π_θ close to SFT reference → limits how badly model can exploit reward.
- Also preserves capabilities from pretraining.
- Choice of β matters: too high → no learning; too low → catastrophic drift.
- Standard β = 0.01-0.1 for chat models.
Check yourself — multiple choice
- Random
- prevents reward hacking + preserves pretraining capabilities; β = 0.01-0.1 typical; too high → no learning, too low → catastrophic drift
- Same as regularization
- Not real
KL penalty: prevents reward hacking + preserves capabilities; β 0.01-0.1.
#llm#alignment
Practise Reinforcement Learning
214 interview questions in this topic.