Lesson 9 of 117 min

Cross-entropy and KL divergence

A model pays its surprise at what really came; averaged, that is cross-entropy, the loss language models train on, and KL is the part it could have avoided.

After this lesson you can compare a predicted distribution with the true one.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 3: Score a language model's guesses, which comes next.

Facts last checked on .