Skip to content

Glossary: Fine-tuning LLMs

Cross-entropy loss

Also written: cross-entropy

The standard loss for next-token training: the average, over tokens, of minus the log of the probability the model gave the correct token. Taking e to the power minus the loss gives the geometric mean probability of the correct tokens.

Where the book teaches it

Related terms

Geometric meanTraining lossMasking (masked tokens)