Matched Pair

For multi-class classification, softmax output is almost always paired with cross-entropy loss rather than, say, mean squared error. What is the main practical reason for this pairing?

A

Cross-entropy is the only loss function that is differentiable

B

Softmax requires a loss with no computed derivative to avoid vanishing gradients

C

The gradient of the combined loss with respect to the pre-softmax logits simplifies to (predicted probabilities minus true labels), giving clean, well-scaled gradients

D

Softmax outputs are integers, and only cross-entropy accepts integer-valued inputs

E

MSE cannot be computed when there are more than two output classes