Skip to main content
QUICK REVIEW

[Paper Review] Practical Evaluation of Out-of-Distribution Detection Methods for Image Classification

Engkarat Techapanurak, Takayuki Okatani|arXiv (Cornell University)|Jan 7, 2021
Anomaly Detection Techniques and ApplicationsComputer Science38 references4 citations
TL;DR

This paper evaluates out-of-distribution (OOD) detection methods across three practical scenarios—irrelevant input detection, novel class detection, and domain shift detection—using diverse datasets and tasks. It demonstrates that method performance varies significantly by scenario and data distribution, with cosine similarity consistently effective and the Mahalanobis detector limited to irrelevant input detection, while confidence-based methods like MC dropout show strong performance in domain shift detection.

ABSTRACT

We reconsider the evaluation of OOD detection methods for image recognition. Although many studies have been conducted so far to build better OOD detection methods, most of them follow Hendrycks and Gimpel's work for the method of experimental evaluation. While the unified evaluation method is necessary for a fair comparison, there is a question of if its choice of tasks and datasets reflect real-world applications and if the evaluation results can generalize to other OOD detection application scenarios. In this paper, we experimentally evaluate the performance of representative OOD detection methods for three scenarios, i.e., irrelevant input detection, novel class detection, and domain shift detection, on various datasets and classification tasks. The results show that differences in scenarios and datasets alter the relative performance among the methods. Our results can also be used as a guide for practitioners for the selection of OOD detection methods.

Motivation & Objective

  • To address the gap in evaluating OOD detection methods beyond the standard Hendrycks & Gimpel benchmark, which may not reflect real-world deployment scenarios.
  • To evaluate the performance of representative OOD detection methods across three distinct practical application scenarios: irrelevant input detection, novel class detection, and domain shift detection.
  • To propose and validate a meta-approach for applying OOD detection methods to domain shift detection, a scenario previously underexplored in deep learning.
  • To provide empirical evidence on method effectiveness across varying data distributions and task settings, offering practical guidance for model selection in real-world systems.

Proposed method

  • The study evaluates six OOD detection methods: confidence-based baseline, MC dropout, ODIN, cosine similarity, and Mahalanobis detector, all adapted to work without explicit OOD samples at training time.
  • For domain shift detection, the authors apply a meta-approach that uses OOD detection methods to detect performance degradation in classification accuracy under distributional shifts.
  • The evaluation is conducted across multiple datasets and classification tasks, with performance measured using standard OOD detection metrics such as AUROC and FPR95.
  • The Mahalanobis detector is used in its variant that avoids requiring OOD samples during hyperparameter tuning, ensuring fair comparison with other methods.
  • The cosine similarity method is applied by modifying the final layer of the network to compute similarity between feature embeddings and class prototypes.
  • The confidence-based and MC dropout methods are applied to pre-trained models, leveraging their uncertainty estimation capabilities for domain shift detection.

Experimental results

Research questions

  • RQ1How do OOD detection methods perform across different real-world application scenarios, such as irrelevant input detection, novel class detection, and domain shift detection?
  • RQ2To what extent does the choice of dataset and distribution shift affect the relative performance of OOD detection methods?
  • RQ3Can existing OOD detection methods be effectively repurposed for domain shift detection, where the goal is to detect performance degradation rather than distributional shift?
  • RQ4Which OOD detection method demonstrates the most robust and generalizable performance across diverse scenarios and datasets?
  • RQ5Why do certain methods, such as the Mahalanobis detector, perform well in some scenarios but poorly in others, particularly in novel class detection?

Key findings

  • The cosine similarity method consistently achieves strong performance across all three scenarios, making it a reliable first-choice method when network modification is acceptable.
  • The Mahalanobis detector, while state-of-the-art for irrelevant input detection, performs poorly in novel class detection due to its reliance on a single, shared covariance matrix and Gaussian assumptions.
  • Confidence-based methods, particularly MC dropout, show strong performance in domain shift detection, as they are sensitive to prediction confidence drops under distributional shifts.
  • Domain shift detection is fundamentally different from traditional OOD detection—it requires detecting accuracy degradation rather than input distribution shift, favoring uncertainty-aware methods.
  • The performance of OOD detection methods is highly scenario-dependent; no single method dominates across all scenarios, highlighting the need for scenario-specific method selection.
  • The use of OOD samples during hyperparameter tuning leads to poor generalization when test OOD data comes from a different distribution, reinforcing the need for methods that work without such data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.