Scale logits by a temperature before softmax and watch the calibrated distribution change, a practical demo of confidence calibration.
仅用于演示 softmax 前缩放,不改变 argmax。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Scaling formula | temperature scaling divides the logits by the temperature before softmax | Guo et al. 2017, ICML calibration |
| Ranking invariance | with a positive temperature the ordering and argmax are preserved | Guo et al. 2017, ICML calibration |
| Calibration use | temperatures above one reduce overconfidence and below one sharpen predictions | Hinton et al. 2015, knowledge distillation |