To Trust Or Not To Trust A Classifier

Heinrich Jiang, Been Kim, Melody Y. Guan, Maya Gupta
5/30/2018
stat.MLcs.LG

Official code: google/TrustScore (181 stars, Jupyter Notebook, Apache-2.0, last commit 2023-03-23).

Abstract

Knowing when a classifier's prediction can be trusted is useful in many applications and critical for safely using AI. While the bulk of the effort in machine learning research has been towards improving classifier performance, understanding when a classifier's predictions should and should not be trusted has received far less attention.

Show full abstract

The standard approach is to use the classifier's discriminant or confidence score; however, we show there exists an alternative that is more effective in many situations. We propose a new score, called the trust score, which measures the agreement between the classifier and a modified nearest-neighbor classifier on the testing example. We show empirically that high (low) trust scores produce surprisingly high precision at identifying correctly (incorrectly) classified examples, consistently outperforming the classifier's confidence score as well as many other baselines. Further, under some mild distributional assumptions, we show that if the trust score for an example is high (low), the classifier will likely agree (disagree) with the Bayes-optimal classifier. Our guarantees consist of non-asymptotic rates of statistical consistency under various nonparametric settings and build on recent developments in topological data analysis.

View on arXivView PDF

Code Implementations(1)

google/TrustScoreOfficial100%
Apache-2.0

To Trust Or Not To Trust A Classifier. A measure of uncertainty for any trained (possibly black-box) classifier which is more effective than the classifier's own implied confidence (e.g. softmax probability for a neural network).

18141Jupyter Notebook, PythonSep 3, 20183 years agoApache-2.0
uncertainty-estimationuncertainty-neural-networks

Similar Papers

Cite this paper

@article{jiang2018trust,
  title  = {To Trust Or Not To Trust A Classifier},
  author = {Heinrich Jiang and Been Kim and Melody Y. Guan and Maya Gupta},
  year   = {2018},
  eprint = {1805.11783},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.11783}
}

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

Discussion