On Temperature Scaling and Conformal Prediction of Deep Classifiers
Lahav Dabah, Tom Tirer
Abstract
In many classification applications, the prediction of a deep neural network (DNN) based classifier needs to be accompanied by some confidence indication. Two popular approaches for that aim are: 1) Calibration: modifies the classifier’s softmax values such that the maximal value better estimates the correctness probability; and 2) Conformal Prediction (CP): produces a prediction set of candidate labels that contains the true label with a user-specified probability, guaranteeing marginal coverage but not, e.g., per class coverage. In practice, both types of indications are desirable, yet, so far the interplay between them has not been investigated. Focusing on the ubiquitous Temperature Scaling (TS) calibration, we start this paper with an extensive empirical study of its effect on prominent CP methods. We show that while TS calibration improves the class-conditional coverage of adaptive CP methods, surprisingly, it negatively affects their prediction set sizes. Motivated by this behavior, we explore the effect of TS on CP beyond its calibration application and reveal an intriguing trend under which it allows to trade prediction set size and conditional coverage of adaptive CP methods. Then, we establish a mathematical theory that explains the entire non-monotonic trend. Finally, based on our experiments and theory, we offer guidelines for practitioners to effectively combine adaptive CP with calibration, aligned with user-defined goals.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Class-Conditional Conformal Prediction with Many Classes cites Classification with Valid and Adaptive Coverage
- Mitigating Neural Network Overconfidence with Logit Normalization cites Rethinking Calibration of Deep Neural Networks: Do Not Be Afraid of Overconfidence
- Questioning the Coverage-Length Metric in Conformal Prediction: When Shorter Intervals Are Not Better cites Boosted Conformal Prediction Intervals
- Class conditional conformal prediction for multiple inputs by p-value aggregation cites Class-Conditional Conformal Prediction with Many Classes
- Class conditional conformal prediction for multiple inputs by p-value aggregation cites Classification with Valid and Adaptive Coverage
- Parametric Scaling Law of Tuning Bias in Conformal Prediction cites Classification with Valid and Adaptive Coverage
- Enhancing Conformal Prediction via Class Similarity cites Class-Conditional Conformal Prediction with Many Classes
- Enhancing Conformal Prediction via Class Similarity cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Enhancing Conformal Prediction via Class Similarity cites Classification with Valid and Adaptive Coverage
Cited by top-tier papers5
- Boosted Conformal Prediction IntervalsRan Xie, Rina Barber, Emmanuel J. CandèsNeurIPS 2024 · 34 citations
- Questioning the Coverage-Length Metric in Conformal Prediction: When Shorter Intervals Are Not BetterYizhou Min, Yizhou Lu, Lanqi Li, Zhen Zhang et al.ICML 2026
- Class conditional conformal prediction for multiple inputs by p-value aggregationJean-Baptiste Fermanian, Mohamed Hebiri, Joseph SalmonNeurIPS 2025
- Parametric Scaling Law of Tuning Bias in Conformal PredictionHao Zeng, Kangdao Liu, Bingyi Jing, Hongxin WeiICML 2025
- Enhancing Conformal Prediction via Class SimilarityAriel Fargion, Lahav Dabah, Tom TirerICML 2026
Builds on10
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Classification with Valid and Adaptive CoverageYaniv Romano, Matteo Sesia, Emmanuel J. CandèsNeurIPS 2020 · 586 citations
- Mitigating Neural Network Overconfidence with Logit NormalizationHongxin Wei, Renchunzi Xie, Hao Cheng, Lei Feng et al.ICML 2022 · 386 citations
- Rethinking Calibration of Deep Neural Networks: Do Not Be Afraid of OverconfidenceDeng-Bao Wang, Lei Feng, Min-Ling ZhangNeurIPS 2021 · 177 citations
- Class-Conditional Conformal Prediction with Many ClassesTiffany Ding, Anastasios Angelopoulos, Stephen Bates, Michael I. Jordan et al.NeurIPS 2023 · 160 citations
Related papers
- Improving Uncertainty Quantification of Deep Classifiers via Neighborhood Conformal Prediction: Novel Algorithm and Theoretical AnalysisSubhankar Ghosh, Taha Belkhouja, Yan Yan, Janardhan Rao DoppaAAAI 2023 · 30 citations
- Direct Prediction Set Minimization via Bilevel Conformal Classifier TrainingYuanjie Shi, Hooman Shahrokhi, Xuesong Jia, Xiongzhi Chen et al.ICML 2025
- Conformal Prediction for Class-wise Coverage via Augmented Label Rank CalibrationYuanjie Shi, Subhankar Ghosh, Taha Belkhouja, Jana Doppa et al.NeurIPS 2024 · 29 citations
- Conformal Prediction for Deep Classifier via Label RankingJianguo Huang, Huajun Xi, Linjun Zhang, Huaxiu Yao et al.ICML 2024 · 50 citations
- Learning Optimal Conformal ClassifiersDavid Stutz, Krishnamurthy Dvijotham, Ali Taylan Cemgil, Arnaud DoucetICLR 2022 · 123 citations
