TAI BUI
← Glossary
Glossary

What is Cross-Entropy?

Measures the difference between two probability distributions. For classification: -sum(y_true * log(y_pred)). For language models: the negative log probability of the correct next token. Lower is better. Perplexity is just exp(cross-entropy).

What people say

The classification loss

Why it's called that