mej7.comHow AI Works

Loss

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

A number that says how wrong a prediction is. Language models typically minimize cross-entropy of the next-token distribution.

In one paragraph. A number that says how wrong a prediction is. Language models typically minimize cross-entropy of the next-token distribution.

Used in

Related terms

Full glossary