Maximum likelihood is KL minimisation
ProofBeginner⏱ 15 minLLMsmlekl divergencecross entropy
Problem
Prove and deduce that minimising cross entropy is minimising the forward KL. Explain the mode-covering consequence.
Write a complete argument. Every inequality you use should be one you could state precisely.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Perplexity is not comparable across tokenisers | LLMs | Numerical | 15 min | ||
| The cross-entropy gradient is the prediction error | LLMs | Proof | 15 min | ||
| The irreducible loss is the conditional entropy | LLMs | Proof | 30 min | ||
| Temperature monotonically controls entropy | LLMs | Proof | 30 min | ||
| The KL divergence of best-of-n abyss | Agents | Proof | 1 hour |