A ai coolAId

Temperature Scaling

In One Sentence
Dividing output logits by a single learned scalar T > 0 on a validation set to fix neural-network overconfidence without changing top-1 accuracy.
ELI5 (Intuition)
Turning down the 'drama knob' on a model's confidence scores after training so it stops shouting '99.9% sure!' when it's really 75% sure.
ELI18 (Technical)
A 1-parameter post-hoc calibration method fitting \(T > 0\) on held-out validation data to minimize Negative Log-Likelihood (NLL) via \(\operatorname{softmax}(\mathbf{z} / T)\). Because positive scaling preserves logit ordering, argmax predictions stay identical.
In Practice
The default first fix for overconfident image classifiers, rerankers, and LLM yes/no scoring heads—takes milliseconds to fit and almost never overfits.