Optimizing Estimators of Squared Calibration Errors in Classification

Sebastian G. Gruber, Francis Bach
10/9/2024
cs.LGstat.ML

No official code found. Best implementation: SebGGruber/Optimizing_Calibration_Estimators (2 stars, MIT, last commit 2025-02-18).

Abstract

In this work, we propose a mean-squared error-based risk that enables the comparison and optimization of estimators of squared calibration errors in practical settings. Improving the calibration of classifiers is crucial for enhancing the trustworthiness and interpretability of machine learning models, especially in sensitive decision-making scenarios. Although various calibration (error) estimators exist in the current literature, there is a lack of guidance on selecting the appropriate estimator and tuning its hyperparameters. By leveraging the bilinear structure of squared calibration errors, we reformulate calibration estimation as a regression problem with independent and identically distributed (i.i.d.) input pairs. This reformulation allows us to quantify the performance of different estimators even for the most challenging calibration criterion, known as canonical calibration. Our approach advocates for a training-validation-testing pipeline when estimating a calibration error on an evaluation dataset. We demonstrate the effectiveness of our pipeline by optimizing existing calibration estimators and comparing them with novel kernel ridge regression-based estimators on standard image classification tasks.

View on arXivView PDF

Code Implementations(1)

MIT

Codebase for "Optimizing Estimators of Squared Calibration Errors in Classification", published at TMLR

20Python, Jupyter NotebookFeb 18, 20251 years agoMIT
calibrationclassificationmachine-learninguncertainty-quantification

Similar Papers

Cite this paper

@article{gruber2024optimizing,
  title  = {Optimizing Estimators of Squared Calibration Errors in Classification},
  author = {Sebastian G. Gruber and Francis Bach},
  year   = {2024},
  eprint = {2410.07014},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07014v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.07014.svg)](https://codeofpaper.com/paper/2410.07014)

Discussion