Uncertainty Sets for Image Classifiers using Conformal Prediction

Anastasios Angelopoulos, Stephen Bates, Jitendra Malik, Michael I. Jordan
9/29/2020
cs.CVmath.STstat.ML

Official code: aangelopoulos/conformal_classification (258 stars, MIT, PyTorch, last commit 2023-01-23).

Abstract

Convolutional image classifiers can achieve high predictive accuracy, but quantifying their uncertainty remains an unresolved challenge, hindering their deployment in consequential settings. Existing uncertainty quantification techniques, such as Platt scaling, attempt to calibrate the network's probability estimates, but they do not have formal guarantees. We present an algorithm that modifies any classifier to output a predictive set containing the true label with a user-specified probability, such as 90%. The algorithm is simple and fast like Platt scaling, but provides a formal finite-sample coverage guarantee for every model and dataset. Our method modifies an existing conformal prediction algorithm to give more stable predictive sets by regularizing the small scores of unlikely classes after Platt scaling. In experiments on both Imagenet and Imagenet-V2 with ResNet-152 and other classifiers, our scheme outperforms existing approaches, achieving coverage with sets that are often factors of 5 to 10 smaller than a stand-alone Platt scaling baseline.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Wrapper for a PyTorch classifier which allows it to output prediction sets. The sets are theoretically guaranteed to contain the true class with high probability (via conformal prediction).

25836TeX, PythonSep 4, 20203 years agoMIT
artificial-intelligenceclassificationclassifiercomputer-visionconformal+14 more

Similar Papers

Cite this paper

@article{angelopoulos2020uncertainty,
  title  = {Uncertainty Sets for Image Classifiers using Conformal Prediction},
  author = {Anastasios Angelopoulos and Stephen Bates and Jitendra Malik and Michael I. Jordan},
  year   = {2020},
  eprint = {2009.14193},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.14193}
}

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

Discussion