Back to the Basics: Revisiting Out-of-Distribution Detection Baselines

Johnson Kuan, Jonas Mueller
7/7/2022
cs.LGcs.CVstat.ML

No official code found. Best implementation: cleanlab/cleanlab (11,694 stars, Apache-2.0, last commit 2026-01-13). 1 more below.

Abstract

We study simple methods for out-of-distribution (OOD) image detection that are compatible with any already trained classifier, relying on only its predictions or learned representations. Evaluating the OOD detection performance of various methods when utilized with ResNet-50 and Swin Transformer models, we find methods that solely consider the model's predictions can be easily outperformed by also considering the learned representations. Based on our analysis, we advocate for a dead-simple approach that has been neglected in other studies: simply flag as OOD images whose average distance to their K nearest neighbors is large (in the representation space of an image classifier trained on the in-distribution data).

View on arXivView PDF

Code Implementations(2)

cleanlab/cleanlabCommunity100%
Apache-2.0

Cleanlab's open-source library is the standard data-centric AI package for data quality and machine learning with messy, real-world data and labels.

11,694926PythonMay 11, 20189 months agoApache-2.0
active-learningannotationanomaly-detectiondata-annotationdata-centric-ai+15 more
Apache-2.0

Evaluation of algorithms to detect out-of-distribution data

93Python, MakefileMay 23, 202210 months agoApache-2.0

Similar Papers

Cite this paper

@article{kuan2022back,
  title  = {Back to the Basics: Revisiting Out-of-Distribution Detection Baselines},
  author = {Johnson Kuan and Jonas Mueller},
  year   = {2022},
  eprint = {2207.03061},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.03061v1}
}

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

Discussion