Rethinking Confidence Calibration for Failure Prediction

Fei Zhu, Zhen Cheng, Xu-Yao Zhang, Cheng-Lin Liu
3/6/2023
cs.LGcs.CV

Official code: Impression2805/FMFP (26 stars, MIT, last commit 2023-06-10).

Abstract

Reliable confidence estimation for the predictions is important in many safety-critical applications. However, modern deep neural networks are often overconfident for their incorrect predictions. Recently, many calibration methods have been proposed to alleviate the overconfidence problem. With calibrated confidence, a primary and practical purpose is to detect misclassification errors by filtering out low-confidence predictions (known as failure prediction). In this paper, we find a general, widely-existed but actually-neglected phenomenon that most confidence calibration methods are useless or harmful for failure prediction. We investigate this problem and reveal that popular confidence calibration methods often lead to worse confidence separation between correct and incorrect samples, making it more difficult to decide whether to trust a prediction or not. Finally, inspired by the natural connection between flat minima and confidence separation, we propose a simple hypothesis: flat minima is beneficial for failure prediction. We verify this hypothesis via extensive experiments and further boost the performance by combining two different flat minima techniques. Our code is available at https://github.com/Impression2805/FMFP

View on arXivView PDF

Code Implementations(1)

MIT

PyTorch implementation of our ECCV 2022 paper "Rethinking Confidence Calibration for Failure Prediction"

262PythonJul 12, 20223 years agoMIT
confidence-calibrationconfidence-estimationfailure-predictionflat-minimamisclassification-detection+2 more

Cite this paper

@article{zhu2023rethinking,
  title  = {Rethinking Confidence Calibration for Failure Prediction},
  author = {Fei Zhu and Zhen Cheng and Xu-Yao Zhang and Cheng-Lin Liu},
  year   = {2023},
  eprint = {2303.02970},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.02970v1}
}

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

Discussion