TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/In or Out? Fixing ImageNet Out-of-Distribution Detection E...

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

Julian Bitterwolf, Maximilian Müller, Matthias Hein

2023-06-01Open Set LearningOut of Distribution (OOD) DetectionOut-of-Distribution Detection
PaperPDFCodeCode(official)

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.

Results

TaskDatasetMetricValueModel
Out-of-Distribution DetectionImageNet-1k vs NINCOAUROC95ViT-B-384 Mahalanobis (pre-trained on IN-21k)
Out-of-Distribution DetectionImageNet-1k vs NINCOFPR@9527.5ViT-B-384 Mahalanobis (pre-trained on IN-21k)
Out-of-Distribution DetectionImageNet-1k vs NINCOAUROC88.9EffNetv2-M Relative Mahalanobis
Out-of-Distribution DetectionImageNet-1k vs NINCOFPR@9554.9EffNetv2-M Relative Mahalanobis
Out-of-Distribution DetectionImageNet-1k vs NINCOAUROC87.9EffNetb7 Relative Cosine Sim
Out-of-Distribution DetectionImageNet-1k vs NINCOFPR@9553.7EffNetb7 Relative Cosine Sim

Related Papers

ZClassifier: Temperature Tuning and Manifold Approximation via KL Divergence on Logit Space2025-07-14Safe Domain Randomization via Uncertainty-Aware Out-of-Distribution Detection and Policy Adaptation2025-07-08FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection2025-07-06Out-of-distribution detection in 3D applications: a review2025-07-01ActAlign: Zero-Shot Fine-Grained Video Classification via Language-Guided Sequence Alignment2025-06-28Generative Adversarial Evasion and Out-of-Distribution Detection for UAV Cyber-Attacks2025-06-26Disentangled representations of microscopy images2025-06-25Enclosing Prototypical Variational Autoencoder for Explainable Out-of-Distribution Detection2025-06-17