---
answer: direct
beat: ai-technology
source: 1 article · updated: November 15, 2026
---

Why does Reinforcement Learning from Human Feedback (RLHF) use a KL divergence penalty?

When optimizing an agent against a reward model using algorithms like PPO or DPO, the policy can exploit reward loopholes, generating repetitive or unhinged text that scores artificially high (reward hacking). The Kullback-Leibler (KL) penalty penalizes deviations from the original base model.

Answered in

How Large Language Models Are Trained: Pretraining, Tokenization, Supervised Fine-Tuning, and Alignment

An engineering deep-dive into LLM training: data curation, BPE tokenization, GPU cluster parallelism, cross-entropy loss, SFT, and DPO alignment.

Crashtech Editorial November 15, 2026 How AI Actually Works

Read the full analysis

Other questions this article answers

More how ai actually works questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the How AI Actually Works beat.