Taking a Step Back with KCal: Multi-Class Kernel-Based Calibration for Deep Neural Networks
Zhen Lin, Shubhendu Trivedi, Jimeng Sun
摘要
Deep neural network (DNN) classifiers are often overconfident, producing miscalibrated class probabilities. In high-risk applications like healthcare, practitioners require fully calibrated probability predictions for decision-making. That is, conditioned on the prediction vector, every class' probability should be close to the predicted value. Most existing calibration methods either lack theoretical guarantees for producing calibrated outputs, reduce classification accuracy in the process, or only calibrate the predicted class. This paper proposes a new Kernel-based calibration method called KCal. Unlike existing calibration procedures, KCal does not operate directly on the logits or softmax outputs of the DNN. Instead, KCal learns a metric space on the penultimate-layer latent embedding and generates predictions using kernel density estimates on a calibration set. We first analyze KCal theoretically, showing that it enjoys a provable full calibration guarantee. Then, through extensive experiments across a variety of datasets, we show that KCal consistently outperforms baselines as measured by the calibration error and by proper scoring rules like the Brier Score. Recent research effort has started to focus on full calibration, for example, in Vaicenavicius et al. (2019); Kull et al. (2019); Widmann et al. (2019); Karandikar et al. (2021); Mukhoti et al. (2020); Patel et al. (2021). We approach this problem by leveraging the latent neural network embedding in a nonparametric manner. Nonparametric methods such as histogram binning (HB) (Zadrozny & Elkan, 2001) and isotonic regression (IR) (Zadrozny & Elkan, 2002), are natural for calibration and have become popular. Gupta & Ramdas (2021) recently showed a calibration guarantee for HB. However, HB usually leads to noticeable drops in accuracy (Patel et al., 2021), and IR is prone to overfitting (Niculescu-Mizil & Caruana, 2005) . Unlike existing methods, we take one step back and train a new low-dimensional metric space on the penultimate-layer embeddings of DNNs. Then, we use a kernel density estimationbased classifier to predict the class probabilities directly. We refer to our Kernel-based Calibration method as KCal. Unlike most calibration methods, KCal provides high probability error bounds for full calibration under standard assumptions. Empirically, we show that with little overhead, KCal outperforms all existing calibration methods in terms of calibration quality, across multiple tasks and DNN architectures, while maintaining and sometimes improving the classification accuracy. Summary of Contributions: • We propose KCal, a principled method that calibrates DNNs using kernel density estimation on the latent embeddings. • We present an efficient pipeline to train KCal, including a dimension-reducing projection and a stratified sampling method to facilitate efficient training. • We provide finite sample bounds for the calibration error of KCal-calibrated output under standard assumptions. To the best of our knowledge, this is the first method with a full calibration guarantee. • In extensive experiments on multiple datasets and state-of-the-art models, we found that KCal outperforms existing calibration methods in commonly used evaluation metrics. We also show that KCal provides more reliable predictions for important classes in the healthcare datasets. The code to replicate all our experimental results is submitted along with supplementary materials. RELATED WORK Research on calibration originated in the context of meteorology and weather forecasting (see Murphy & Winkler (1984) for an overview) and has a long history, much older than the field of machine
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- MLP-Mixer: An all-MLP Architecture for Vision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Expert load matters: operating networks at high accuracy and low manual effort 引用了 Calibrating Deep Neural Networks using Focal Loss
- Expert load matters: operating networks at high accuracy and low manual effort 引用了 Calibration of Neural Networks using Splines
- Calibration of Neural Networks using Splines 引用了 Calibrating Deep Neural Networks using Focal Loss
- Calibration of Neural Networks using Splines 引用了 Mix-n-Match : Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learning
- Proximity-Informed Calibration for Deep Neural Networks 引用了 MLP-Mixer: An all-MLP Architecture for Vision
- Proximity-Informed Calibration for Deep Neural Networks 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Proximity-Informed Calibration for Deep Neural Networks 引用了 Mix-n-Match : Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learning
- Confidence Calibration of Classifiers with Many Classes 引用了 Calibrating Deep Neural Networks using Focal Loss
- Confidence Calibration of Classifiers with Many Classes 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Confidence Calibration of Classifiers with Many Classes 引用了 Calibration of Neural Networks using Splines
- Confidence Calibration of Classifiers with Many Classes 引用了 Proximity-Informed Calibration for Deep Neural Networks
- Confidence Calibration of Classifiers with Many Classes 引用了 Mix-n-Match : Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learning
引用它的顶会 Paper4
- Proximity-Informed Calibration for Deep Neural NetworksMiao Xiong, Ailin Deng, Pang Wei Koh, Jiaying Wu 等NeurIPS 2023 · 30 次引用
- Confidence Calibration of Classifiers with Many ClassesAdrien Le-Coz, Stéphane Herbin, Faouzi AdjedNeurIPS 2024 · 21 次引用
- Expert load matters: operating networks at high accuracy and low manual effortSara Sangalli, Ertunc Erdil, Ender KonukogluNeurIPS 2023 · 10 次引用
- PyHealth 2.0: A Comprehensive Open-Source Toolkit for Accessible and Reproducible Clinical Deep LearningJohn Wu, Yongda Fan, Zhenbang Wu, Paul Landes 等ICML 2026 · 1 次引用
它引用的 Paper10
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer 等NeurIPS 2021 · 3,862 次引用
- Calibrating Deep Neural Networks using Focal LossJishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz 等NeurIPS 2020 · 674 次引用
- Mix-n-Match : Ensemble and Compositional Methods for Uncertainty Calibration in Deep LearningJize Zhang, Bhavya Kailkhura, Thomas Yong-Jin HanICML 2020 · 276 次引用
- Calibration of Neural Networks using SplinesKartik Gupta, Amir Rahimi, Thalaiyasingam Ajanthan, Thomas Mensink 等ICLR 2021 · 128 次引用
相关 Paper
- A Consistent and Differentiable Lp Canonical Calibration Error EstimatorTeodora Popordanoska, Raphael Sayer, Matthew B. BlaschkoNeurIPS 2022 · 58 次引用
- Calibrated Reliable Regression using Maximum Mean DiscrepancyPeng Cui, Wenbo Hu, Jun ZhuNeurIPS 2020 · 71 次引用
- Exploring the Uncertainty Properties of Neural Networks' Implicit Priors in the Infinite-Width LimitBen Adlam, Jaehoon Lee, Lechao Xiao, Jeffrey Pennington 等ICLR 2021 · 3 次引用
- Rethinking Calibration of Deep Neural Networks: Do Not Be Afraid of OverconfidenceDeng-Bao Wang, Lei Feng, Min-Ling ZhangNeurIPS 2021 · 177 次引用
- Distance-Based Learning from Errors for Confidence CalibrationChen Xing, Sercan Ömer Arik, Zizhao Zhang, Tomas PfisterICLR 2020 · 42 次引用
