Why Softmax Temperature Changes Apparent Confidence
A classifier's reported probabilities are not a fixed fact about the model; they are a choice of scaling that you can dial up or down after training.
The number that looks like certainty
Most classifiers end with a softmax layer, and most people treat the resulting numbers as the model's honest opinion about how sure it is. A score of 0.97 for one class feels like a strong claim. But that number is not some raw fact pulled out of the network; it is the result of a specific transformation applied to a vector of logits, and that transformation has a free parameter called temperature. Change the temperature and the predicted class stays exactly the same, while the probability attached to it can swing from barely-above-random to near-certainty.
This matters because people routinely read softmax outputs as calibrated confidence: a probability that should match the actual frequency of being correct. In practice it rarely does, and temperature is one of the clearest ways to see why. Two models, or even the same model at two checkpoints, can disagree wildly on how confident they 'feel' while agreeing on every single prediction. If you are building a system that thresholds on confidence, flags uncertain cases for human review, or compares models by their average top-probability, you are implicitly making a decision about temperature whether you realise it or not.
What temperature actually does to the numbers
The softmax function takes a vector of logits, divides each by a temperature value T, exponentiates, and normalises. At T equal to 1 you get the standard softmax. Push T above 1 and the distribution flattens: differences between logits get squashed, so the output probabilities move toward uniform. Push T below 1 and the distribution sharpens: the gap between the largest logit and the rest gets exaggerated, so the top class's probability gets pulled toward 1.
Here is a concrete case. Suppose a three-class classifier produces logits of 3.0, 1.0, and 0.5 for classes A, B, and C. At T equal to 1, softmax gives roughly 0.76 for A, 0.10 for B, and 0.06 for C (after normalising), so A is predicted with about 76 percent apparent confidence. Now set T to 2. Dividing the logits by 2 gives 1.5, 0.5, 0.25, and running softmax on those produces something closer to 0.52 for A, 0.21 for B, and 0.16 for C. The same model, the same input, the same winning class, but confidence has dropped from 76 percent to roughly 52 percent. Push T down to 0.5 instead, doubling the logits to 6.0, 2.0, 1.0, and the top probability climbs past 0.97. Nothing about the model's actual reasoning changed; only the lens through which we read it out did.
The reason this is possible is that softmax is a monotonic, order-preserving function of the logits, but it is not scale-invariant. The ranking of classes depends only on the ranking of logits, which temperature never touches. The spread of the resulting probabilities, however, depends heavily on the absolute size of the logit gaps relative to T. A network trained to produce large-magnitude logits will look confident at T equal to 1 even if its ranking is barely better than chance; a network with small, well-separated logits might look falsely modest.

Why this is more than a mathematical curiosity
Training dynamics push logit magnitudes around in ways that have nothing to do with how reliable the model actually is. Longer training, certain regularisation choices, and particular loss functions can all inflate logit scale over time, which inflates apparent confidence even as true accuracy plateaus. This is why it is common to see a network become more and more 'confident' late in training on examples it was already getting right, without any corresponding gain in correctness on held-out data. If you only look at the softmax outputs, this looks like the model learning to trust itself more; it is often just the logits growing.
This has direct consequences for evaluation. Suppose you compare two architectures and report their average top predicted probability as a proxy for how 'sure' each one is, perhaps to argue that one is more decisive. If one model happens to produce larger logit spreads, purely as a side effect of its training recipe, it will look more confident regardless of whether its predictions are actually more trustworthy. Any comparison of raw softmax confidence across models, or across checkpoints of the same model, is only meaningful once you have accounted for scale, which is exactly what temperature controls.
The practical fix is temperature scaling as a post-hoc calibration step: fit a single scalar T on a held-out validation set, chosen so that the resulting probabilities match observed accuracy as closely as possible, typically measured with something like expected calibration error. Because T is a single number fitted after training, it cannot change which class wins, so it leaves accuracy untouched while making the confidence numbers actually mean something closer to 'probability of being correct'. This is cheap, does not require retraining, and is one of the few calibration methods simple enough to have little excuse for skipping.
What to actually do about it
If you are reporting or consuming softmax confidence for anything beyond picking the top class, treat the raw number with suspicion until you know the temperature it was produced at. Three habits help. First, never compare confidence scores across models or checkpoints without first checking whether they have been calibrated on the same footing; an uncalibrated comparison is comparing two different rulers. Second, if your downstream system makes decisions based on a confidence threshold, such as routing low-confidence cases to a human, fit that threshold on a properly held-out, leakage-free calibration set, and re-check it whenever the model changes, since the right threshold at one temperature is wrong at another. Third, keep calibration and accuracy as separate reported metrics; a model can be highly accurate and poorly calibrated, or modestly accurate and well calibrated, and conflating the two hides useful information.
The deeper lesson is that 'confidence' from a softmax is a construction, not an observation. It is shaped by an arbitrary but influential scalar that training does not explicitly control and that most people never inspect. Once you see temperature at work, it becomes hard to read a softmax output as a direct window into what the model 'really believes', and that is a healthier, more accurate way to treat it.