Class-wise and reduced calibration methods

Michael Panchenko, Anes Benmerzoug, Miguel de Benito Delgado
10/7/2022
stat.MLcs.LG

Official code: mdbenito/classwise-calibration-experiments (2 stars, Python, LGPL-3.0, last commit 2022-10-13).

Abstract

For many applications of probabilistic classifiers it is important that the predicted confidence vectors reflect true probabilities (one says that the classifier is calibrated). It has been shown that common models fail to satisfy this property, making reliable methods for measuring and improving calibration important tools.

Show full abstract

Unfortunately, obtaining these is far from trivial for problems with many classes. We propose two techniques that can be used in tandem. First, a reduced calibration method transforms the original problem into a simpler one. We prove for several notions of calibration that solving the reduced problem minimizes the corresponding notion of miscalibration in the full problem, allowing the use of non-parametric recalibration methods that fail in higher dimensions. Second, we propose class-wise calibration methods, based on intuition building on a phenomenon called neural collapse and the observation that most of the accurate classifiers found in practice can be thought of as a union of K different functions which can be recalibrated separately, one for each class. These typically out-perform their non class-wise counterparts, especially for classifiers trained on imbalanced data sets. Applying the two methods together results in class-wise reduced calibration algorithms, which are powerful tools for reducing the prediction and per-class calibration errors. We demonstrate our methods on real and synthetic datasets and release all code as open source at https://github.com/appliedAI-Initiative

View on arXivView PDF

Code Implementations(1)

LGPL-3.0

Experiments for the paper "Class-wise and reduced calibration methods", ICMLA 2022

20Python, Jupyter NotebookSep 14, 20224 years agoLGPL-3.0
calibrationclassifier-calibrationicmlaicmla-2022machine-learning+1 more

Similar Papers

Cite this paper

@article{panchenko2022classwise,
  title  = {Class-wise and reduced calibration methods},
  author = {Michael Panchenko and Anes Benmerzoug and Miguel de Benito Delgado},
  year   = {2022},
  eprint = {2210.03702},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03702}
}

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

Discussion