In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation

Julian Bitterwolf, Maximilian Müller, Matthias Hein
6/1/2023
cs.LGcs.CV

Official code: j-cb/NINCO (28 stars, MIT, last commit 2023-08-22).

Abstract

Out-of-distribution (OOD) detection is the problem of identifying inputs which are unrelated to the in-distribution task. The OOD detection performance when the in-distribution (ID) is ImageNet-1K is commonly being tested on a small range of test OOD datasets. We find that most of the currently used test OOD datasets, including datasets from the open set recognition (OSR) literature, have severe issues: In some cases more than 50$\%$ of the dataset contains objects belonging to one of the ID classes. These erroneous samples heavily distort the evaluation of OOD detectors. As a solution, we introduce with NINCO a novel test OOD dataset, each sample checked to be ID free, which with its fine-grained range of OOD classes allows for a detailed analysis of an OOD detector's strengths and failure modes, particularly when paired with a number of synthetic "OOD unit-tests". We provide detailed evaluations across a large set of architectures and OOD detection methods on NINCO and the unit-tests, revealing new insights about model weaknesses and the effects of pretraining on OOD detection performance. We provide code and data at https://github.com/j-cb/NINCO.

View on arXivView PDF

Code Implementations(1)

j-cb/NINCOOfficial100%
MIT

Code and data for the paper "In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation"

280Python, Jupyter NotebookMar 30, 20233 years agoMIT
deep-learningout-of-distribution-detectionrobustness

Similar Papers

Cite this paper

@article{bitterwolf2023out,
  title  = {In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation},
  author = {Julian Bitterwolf and Maximilian Müller and Matthias Hein},
  year   = {2023},
  eprint = {2306.00826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.00826v1},
  journal = {ICML 2023 2023}
}

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

Discussion