How Flawed Is ECE? An Analysis via Logit Smoothing

Muthu Chidambaram, Holden Lee, Colin McSwiggen, Semon Rezchikov
2/15/2024
11 citations
cs.LGmath.PR

Official code: 2014mchidamb/how-flawed-is-ece (1 star, Python, MIT, last commit 2024-05-26).

Abstract

Informally, a model is calibrated if its predictions are correct with a probability that matches the confidence of the prediction. By far the most common method in the literature for measuring calibration is the expected calibration error (ECE).

Show full abstract

Recent work, however, has pointed out drawbacks of ECE, such as the fact that it is discontinuous in the space of predictors. In this work, we ask: how fundamental are these issues, and what are their impacts on existing results? Towards this end, we completely characterize the discontinuities of ECE with respect to general probability measures on Polish spaces. We then use the nature of these discontinuities to motivate a novel continuous, easily estimated miscalibration metric, which we term Logit-Smoothed ECE (LS-ECE). By comparing the ECE and LS-ECE of pre-trained image classification models, we show in initial experiments that binned ECE closely tracks LS-ECE, indicating that the theoretical pathologies of ECE may be avoidable in practice.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the paper: https://arxiv.org/abs/2402.10046.

10Python, Jupyter NotebookMay 25, 20242 years agoMIT

Similar Papers

Cite this paper

@article{chidambaram2024flawed,
  title  = {How Flawed Is ECE? An Analysis via Logit Smoothing},
  author = {Muthu Chidambaram and Holden Lee and Colin McSwiggen and Semon Rezchikov},
  year   = {2024},
  eprint = {2402.10046},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.10046v2},
  journal = {ICML 2024 2024}
}

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/2402.10046.svg)](https://codeofpaper.com/paper/2402.10046)

Discussion