Temperature Scaling
A post-hoc calibration technique for neural networks that learns a single temperature parameter on a validation set to scale the model's output logits, thereby improving the calibration of probability estimates without requiring model retraining.
Core Facts
Calibrated confidence means that when the system gives a score of 0.9, the probability of being correct should be close to 90%.
Commonly used calibration evaluation metrics include Expected Calibration Error (ECE) and Reliability Diagrams.
Common post-calibration techniques include Temperature Scaling, Platt Scaling, and Isotonic Regression, which remap raw outputs to more reliable probability estimates by fitting correction functions on an independent validation set without retraining the model.
Timeline (last 90 days)
The Osler training technique combination includes per-item weighting, dynamic option-count augmentation, format-matched KL-to-base regularization, dosed distillation, and dev-only temperature scaling.
Common confidence calibration methods include temperature scaling, Bayesian neural networks and ensemble methods (such as deep ensembles).
In 2017, Kumar et al. (and the follow-up work by Guo et al.) systematically pointed out that modern deep neural networks generally suffer from "overconfidence" and proposed post-processing calibration methods (such as temperature scaling and histogram binning) to correct output probabilities.
Temperature scaling adjusts the sharpness of a distribution through a scalar parameter, making the output probabilities of the draft model match the target model's distribution more closely.
Applying standard temperature scaling only to the draft distribution can increase acceptance length by about 10% across different tasks while adding almost no extra computational cost.
For service teams that have already deployed speculative decoding, introducing simple temperature scaling calibration requires almost no additional cost yet can bring considerable gains in acceptance length.
The temperature scaling method requires no retraining of the draft model and only a simple transformation of the logits at inference time, so deployment cost is extremely low.
Prior correction and temperature scaling reduce the negative log-likelihood on the Sleep-EDF-SC task from 0.766 to 0.606.
Prior correction and temperature scaling reduce the negative log-likelihood on the CHB-MIT task from 0.166 to 0.019.
Common methods for uncertainty calibration include temperature scaling and conformal prediction.
20 more timeline events
All Facts (20)
Calibrated confidence means that when the system gives a score of 0.9, the probability of being correct should be close to 90%.
90%VerifiedCommonly used calibration evaluation metrics include Expected Calibration Error (ECE) and Reliability Diagrams.
90%VerifiedCommon post-calibration techniques include Temperature Scaling, Platt Scaling, and Isotonic Regression, which remap raw outputs to more reliable probability estimates by fitting correction functions on an independent validation set without retraining the model.
75%VerifiedTemperature scaling is a calibration method that attempts to calibrate logits into more reliable probability estimates.
75%VerifiedProbability calibration refers to a post-processing technique that converts model output prediction scores into true probability estimates, with commonly used methods including Platt Scaling and Isotonic Regression.
70%VerifiedTechnical methods for improving calibration include post-processing approaches such as temperature scaling and isotonic calibration.
65%VerifiedTemperature scaling softens the prediction distribution by dividing by a learned temperature parameter T before the softmax, but its applicability to LLMs is limited by the unstructured nature of the output.
65%UnverifiedTemperature scaling calibrates a model by dividing logit values by a learnable scalar parameter T before the softmax; T greater than 1 softens the probability distribution, T less than 1 sharpens the distribution, and the main model does not need to be retrained.
70%UnverifiedIn practice, post-processing methods such as temperature scaling and Platt scaling are commonly used to recalibrate confidence scores.
70%UnverifiedEngineering mitigations for confidence calibration include post-calibrating logprobs via temperature scaling, introducing an independent validation model for scoring, or measuring result consistency through multiple sampling runs.
60%UnverifiedThe self-reported confidence of most LLMs exhibits overconfidence, and calibration procedures such as temperature scaling are needed before use.
60%UnverifiedThe probability values output by Softmax are not equivalent to true Bayesian posterior probabilities; instead, they are over-optimized to widen the gap between categories, causing predicted probabilities to be systematically inflated.
60%UnverifiedThe Osler training technique combination includes per-item weighting, dynamic option-count augmentation, format-matched KL-to-base regularization, dosed distillation, and dev-only temperature scaling.
50%UnverifiedCommon confidence calibration methods include temperature scaling, Bayesian neural networks and ensemble methods (such as deep ensembles).
50%UnverifiedIn 2017, Kumar et al. (and the follow-up work by Guo et al.) systematically pointed out that modern deep neural networks generally suffer from "overconfidence" and proposed post-processing calibration methods (such as temperature scaling and histogram binning) to correct output probabilities.
50%UnverifiedFor service teams that have already deployed speculative decoding, introducing simple temperature scaling calibration requires almost no additional cost yet can bring considerable gains in acceptance length.
50%UnverifiedApplying standard temperature scaling only to the draft distribution can increase acceptance length by about 10% across different tasks while adding almost no extra computational cost.
50%UnverifiedTemperature scaling adjusts the sharpness of a distribution through a scalar parameter, making the output probabilities of the draft model match the target model's distribution more closely.
50%UnverifiedThe temperature scaling method requires no retraining of the draft model and only a simple transformation of the logits at inference time, so deployment cost is extremely low.
50%UnverifiedPrior correction and temperature scaling reduce the negative log-likelihood on the CHB-MIT task from 0.166 to 0.019.
50%