How it works
Softmax converts a set of scores into positive values that sum to one. Temperature scales the scores before softmax: lower temperatures sharpen the distribution, while higher ones flatten it.
A concrete example
With scores [2, 1, 0] at temperature 1, the first option has the largest probability, but the other options retain nonzero probability.
Watch for this
A softmax output is not automatically calibrated. A model that reports 80% confidence need not be correct 80% of the time without calibration checks.
Try it yourself
Adjust the temperature. Compare the probabilities as the distribution sharpens and flattens.