Bandwidth Selection in Kernel Density Estimation for Model Calibration
Not on the map. Why?
Abstract (arXiv)
As deep learning models are increasingly deployed in high-stakes applications, providing well-calibrated uncertainty estimates has become as critical as achieving high predictive accuracy. While Kernel Density Estimation (KDE) has emerged as a smooth and continuous alternative to traditional binning for quantifying miscalibration, its reliability is heavily dependent on the choice of the kernel bandwidth. Standard selection techniques, such as Maximum Likelihood Estimation (MLE), often fail to produce optimal bandwidths for calibration tasks. In this work, we introduce Risk Alignment (RA), a novel optimization framework that determines the optimal bandwidth by aligning KDE-reconstructed risk with empirical risk. We theoretically demonstrate that this alignment minimizes calibration estimation bias across the data distribution, establishing a principled bandwidth selection criterion applicable to various metrics, including the challenging case of canonical calibration error. Extensive experiments across multiple architectures and datasets show that RA consistently outperforms standard bandwidth selection methods, yielding more reliable calibration assessments.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 44 references that are in the map. First posted on arXiv 29 Jun 2026.
Builds on
23 of 44 references.
References · 23
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016Wide Residual Networkscited by 3,070
- 2019Measuring Calibration in Deep Learningcited by 446
- 2019Verified Uncertainty Calibrationcited by 309
11 more
- 2020Mix-n-Match: Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learningcited by 190
- 2020Mitigating Bias in Calibration Error Estimationcited by 101
- 2019Calibration tests in multi-class classification: A unifying frameworkcited by 79
- 2022Better Uncertainty Calibration via Proper Scores for Classification and Beyondcited by 65
- 2023Smooth ECE: Principled Reliability Diagrams via Kernel Smoothingcited by 63
- 2022A Consistent and Differentiable Lp Canonical Calibration Error Estimatorcited by 47
- 2022Metrics of calibration for probabilistic predictionscited by 32
- 2025Rethinking Early Stopping: Refine, Then Calibratecited by 17
- 2023Consistent and Asymptotically Unbiased Estimation of Proper Calibration Errorscited by 11
- 2022Class-wise and reduced calibration methodscited by 4
- 2024Optimizing Estimators of Squared Calibration Errors in Classificationcited by 3
Built on by
Not cited yet.