Sample-dependent Adaptive Temperature Scaling for Improved Calibration
Tom Joy, Francesco Pinto, Ser-Nam Lim, Philip H. S. Torr, Puneet K., Dokania

TL;DR
This paper introduces a per-sample adaptive temperature scaling method that improves neural network calibration by adjusting confidence levels individually for each input, enhancing overall calibration and out-of-distribution detection.
Contribution
The proposed method predicts a unique temperature for each input, improving calibration and OOD detection without significant computational overhead, applied post-hoc to pre-trained models.
Findings
Improved calibration on CIFAR10/100 and Tiny-ImageNet datasets.
Enhanced out-of-distribution detection capabilities.
Applicable with minimal additional computation and memory.
Abstract
It is now well known that neural networks can be wrong with high confidence in their predictions, leading to poor calibration. The most common post-hoc approach to compensate for this is to perform temperature scaling, which adjusts the confidences of the predictions on any input by scaling the logits by a fixed value. Whilst this approach typically improves the average calibration across the whole test dataset, this improvement typically reduces the individual confidences of the predictions irrespective of whether the classification of a given input is correct or incorrect. With this insight, we base our method on the observation that different samples contribute to the calibration error by varying amounts, with some needing to increase their confidence and others needing to decrease it. Therefore, for each input, we propose to predict a different temperature value, allowing us to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsAdvanced Neural Network Applications · Machine Learning in Materials Science · Machine Learning and Data Classification
MethodsTest · Balanced Selection
