Cross-Entropy

Cross-entropy measures how well one probability distribution matches another, often a model prediction against a target label.
Also known as
cross entropy loss

Intuition

It heavily penalizes confident wrong predictions and rewards assigning high probability to the right answer.

Technical definition

Cross-entropy is the expected negative log probability assigned by a predicted distribution to outcomes from a target distribution.

Example

A classifier uses cross-entropy loss to train softmax class probabilities.

Common misunderstandings

  • Cross-entropy is related to but not identical to entropy.
  • Low cross-entropy on training data does not guarantee generalization.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.