Cross-Entropy Loss
Also known as: Log Loss, Negative Log-Likelihood
Category: Foundations of ML/AI
A loss function commonly used for classification tasks that measures the difference between predicted probability distributions and true labels.
Full Explanation
Cross-entropy loss quantifies the dissimilarity between two probability distributions: the model's predicted probabilities and the true label distribution. For binary classification, it reduces to binary cross-entropy (log loss), while for multi-class problems, categorical cross-entropy is used. The loss penalizes confident wrong predictions more heavily than uncertain ones, encouraging well-calibrated probability estimates. Cross-entropy is the standard loss function for virtually all classification neural networks. It pairs naturally with the softmax activation function in the output layer. The loss has a nice mathematical property where its gradient with respect to the logits simplifies to the difference between predicted and true probabilities. Cross-entropy is also used as the training objective for language models, where it measures how well the model predicts the next token.
Related Terms
More in Foundations of ML/AI
Explore More
- AI Tools Library — Discover AI tools related to Cross-Entropy Loss
- AI Education — Courses to learn about Foundations of ML/AI
- AI News — Latest news and updates