Revisiting Confidence Estimation: Towards Reliable Failure Prediction

Fei Zhu, Xu-Yao Zhang, Zhen Cheng, Cheng-Lin Liu
3/5/2024
cs.CVcs.LG

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

Abstract

Reliable confidence estimation is a challenging yet fundamental requirement in many risk-sensitive applications. However, modern deep neural networks are often overconfident for their incorrect predictions, i.e., misclassified samples from known classes, and out-of-distribution (OOD) samples from unknown classes. In recent years, many confidence calibration and OOD detection methods have been developed. In this paper, we find a general, widely existing but actually-neglected phenomenon that most confidence estimation methods are harmful for detecting misclassification errors. We investigate this problem and reveal that popular calibration and OOD detection methods often lead to worse confidence separation between correctly classified and misclassified examples, making it difficult to decide whether to trust a prediction or not. Finally, we propose to enlarge the confidence gap by finding flat minima, which yields state-of-the-art failure prediction performance under various settings including balanced, long-tailed, and covariate-shift classification scenarios. Our study not only provides a strong baseline for reliable confidence estimation but also acts as a bridge between understanding calibration, OOD detection, and failure prediction. The code is available at \url{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{zhu2024revisiting,
  title  = {Revisiting Confidence Estimation: Towards Reliable Failure Prediction},
  author = {Fei Zhu and Xu-Yao Zhang and Zhen Cheng and Cheng-Lin Liu},
  year   = {2024},
  eprint = {2403.02886},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.02886v1}
}

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

Discussion