Variable-Based Calibration for Machine Learning Classifiers

Markelle Kelly, Padhraic Smyth
9/30/2022
cs.LG

Official code: markellekelly/variable-wise-calibration (5 stars, Jupyter Notebook, last commit 2023-05-11).

Abstract

The deployment of machine learning classifiers in high-stakes domains requires well-calibrated confidence scores for model predictions. In this paper we introduce the notion of variable-based calibration to characterize calibration properties of a model with respect to a variable of interest, generalizing traditional score-based metrics such as expected calibration error (ECE).

Show full abstract

In particular, we find that models with near-perfect ECE can exhibit significant miscalibration as a function of features of the data. We demonstrate this phenomenon both theoretically and in practice on multiple well-known datasets, and show that it can persist after the application of existing calibration methods. To mitigate this issue, we propose strategies for detection, visualization, and quantification of variable-based calibration error. We then examine the limitations of current score-based calibration methods and explore potential modifications. Finally, we discuss the implications of these findings, emphasizing that an understanding of calibration beyond simple aggregate measures is crucial for endeavors such as fairness and model interpretability.

View on arXivView PDF

Code Implementations(1)

Code and examples for "Variable-Based Calibration for Machine Learning Classifiers"

51Jupyter Notebook, PythonJan 28, 20223 years ago

Similar Papers

Cite this paper

@article{kelly2022variablebased,
  title  = {Variable-Based Calibration for Machine Learning Classifiers},
  author = {Markelle Kelly and Padhraic Smyth},
  year   = {2022},
  eprint = {2209.15154},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.15154}
}

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

Discussion