Intra Order-preserving Functions for Calibration of Multi-Class Neural Networks

Amir Rahimi, Amirreza Shaban, Ching-An Cheng, Richard Hartley, Byron Boots
3/15/2020
cs.LGcs.CVstat.ML

Official code: AmirooR/IntraOrderPreservingCalibration (11 stars, Python, MIT, last commit 2022-09-11).

Abstract

Predicting calibrated confidence scores for multi-class deep networks is important for avoiding rare but costly mistakes. A common approach is to learn a post-hoc calibration function that transforms the output of the original network into calibrated confidence scores while maintaining the network's accuracy.

Show full abstract

However, previous post-hoc calibration techniques work only with simple calibration functions, potentially lacking sufficient representation to calibrate the complex function landscape of deep networks. In this work, we aim to learn general post-hoc calibration functions that can preserve the top-k predictions of any deep network. We call this family of functions intra order-preserving functions. We propose a new neural network architecture that represents a class of intra order-preserving functions by combining common neural network components. Additionally, we introduce order-invariant and diagonal sub-families, which can act as regularization for better generalization when the training data size is small. We show the effectiveness of the proposed method across a wide range of datasets and classifiers. Our method outperforms state-of-the-art post-hoc calibration methods, namely temperature scaling and Dirichlet calibration, in several evaluation metrics for the task.

View on arXivView PDF

Code Implementations(1)

MIT
113PythonOct 12, 20204 years agoMIT

Similar Papers

Cite this paper

@article{rahimi2020intra,
  title  = {Intra Order-preserving Functions for Calibration of Multi-Class Neural Networks},
  author = {Amir Rahimi and Amirreza Shaban and Ching-An Cheng and Richard Hartley and Byron Boots},
  year   = {2020},
  eprint = {2003.06820},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.06820}
}

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

Discussion