Asked about Entropy, cross-entropy, KL and perplexity

Where would you meet KL divergence in an LLM pipeline?

An answer that works

As the drift penalty in preference training, keeping the tuned model near the one it started from. As the distillation loss against a teacher's full output distribution. And in monitoring, comparing the distribution of live inputs against the one the model was validated on.

Reading an answer is not being able to give one. The section that teaches this is Entropy, cross-entropy, KL and perplexity, 4 hours of Probability & statistics.

Learn this properly