LearnBenchStart learning →

AI Research Scientist · Softmax & Cross-Entropy

Cross-entropy loss and maximum likelihood training

Real lesson card · Page 1 of 4

Cross-entropy loss and maximum likelihood training

Cross-entropy loss

Cross-entropy loss measures how far a model’s predicted probability distribution over classes is from the true target distribution; it’s the default training objective for classification and next-token prediction.
Example
For a 3-class model predicting $[0.7, 0.2, 0.1]$ when the true class is class 0, cross-entropy is log(0.7)0.36-\log(0.7) \approx 0.36.

Recall check from the same lesson

Label smoothing keeps the target for the true class at exactly 1 and every other class at exactly 0, so it trains identically to standard one-hot cross-entropy.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Softmax & Cross-Entropy questions