Skip to main content
QUICK REVIEW

[Paper Review] No True State-of-the-Art? OOD Detection Methods are Inconsistent across Datasets

Fahim Tajwar, Ananya Kumar|arXiv (Cornell University)|Sep 12, 2021
Adversarial Robustness in Machine LearningComputer Science38 references8 citations
TL;DR

This paper demonstrates that no single out-of-distribution (OOD) detection method consistently outperforms others across diverse (in-distribution, out-of-distribution) dataset pairs, even under standardized training and evaluation. It introduces Pairwise OOD Detection (POD), a Siamese network-based method that improves over Mahalanobis and MSP in low-data regimes by avoiding costly covariance estimation, highlighting the need for more structured OOD detection benchmarks.

ABSTRACT

Out-of-distribution detection is an important component of reliable ML systems. Prior literature has proposed various methods (e.g., MSP (Hendrycks & Gimpel, 2017), ODIN (Liang et al., 2018), Mahalanobis (Lee et al., 2018)), claiming they are state-of-the-art by showing they outperform previous methods on a selected set of in-distribution (ID) and out-of-distribution (OOD) datasets. In this work, we show that none of these methods are inherently better at OOD detection than others on a standardized set of 16 (ID, OOD) pairs. We give possible explanations for these inconsistencies with simple toy datasets where whether one method outperforms another depends on the structure of the ID and OOD datasets in question. Finally, we show that a method outperforming another on a certain (ID, OOD) pair may not do so in a low-data regime. In the low-data regime, we propose a distance-based method, Pairwise OOD detection (POD), which is based on Siamese networks and improves over Mahalanobis by sidestepping the expensive covariance estimation step. Our results suggest that the OOD detection problem may be too broad, and we should consider more specific structures for leverage.

Motivation & Objective

  • To evaluate the consistency of state-of-the-art OOD detection methods across a standardized set of 16 (ID, OOD) dataset pairs.
  • To investigate why OOD detection performance varies significantly across different dataset combinations, even when methods are standardized.
  • To explore the impact of in-distribution training data size on method performance, particularly in low-data regimes.
  • To propose a new method, Pairwise OOD Detection (POD), that improves performance in low-data settings by avoiding expensive covariance estimation.
  • To argue that the OOD detection problem is too broad and that future work should consider more specific, structured settings for reliable evaluation and development.

Proposed method

  • Standardized training and evaluation of three established OOD detection methods—MSP, ODIN, and Mahalanobis—on 16 (ID, OOD) dataset pairs using full and 10%-sized in-distribution training sets.
  • Design of two simple 2D toy datasets to demonstrate that the relative performance of predictive score-based (e.g., MSP) and distance-based (e.g., Mahalanobis) methods depends fundamentally on the structure of the ID and OOD distributions.
  • Introduction of Pairwise OOD Detection (POD), a Siamese network-based method that learns to compare input samples directly without estimating high-dimensional covariance matrices.
  • POD uses a Siamese architecture to learn a pairwise similarity function that distinguishes ID from OOD samples, enabling efficient inference and improved robustness in low-data regimes.
  • Evaluation of methods under two settings: no OOD data used during training/hyperparameter tuning, and with access to OOD data for tuning, to assess sensitivity to data availability.
  • Use of AUROC and FNR@95 as primary metrics, with results averaged over three random seeds to ensure stability.

Experimental results

Research questions

  • RQ1Is there a single OOD detection method that consistently outperforms all others across diverse (ID, OOD) dataset pairs under standardized conditions?
  • RQ2How does the relative performance of MSP, ODIN, and Mahalanobis vary depending on the specific structure of the in-distribution and out-of-distribution datasets?
  • RQ3Does the performance ranking of OOD detection methods remain consistent when the size of the in-distribution training set is reduced to 10%?
  • RQ4Can a new method be designed that improves performance in low-data regimes by avoiding computationally expensive steps like covariance estimation?
  • RQ5To what extent is in-distribution classification accuracy correlated with OOD detection performance?

Key findings

  • No OOD detection method consistently outperforms others across all 16 (ID, OOD) dataset pairs: for every method, there are at least 3 and at most 13 other methods that outperform it on different pairs.
  • In the full-data regime, Mahalanobis outperforms ODIN on 12 out of 16 pairs, but in the low-data regime (10% training data), this drops to only 3 out of 16, indicating performance reversal under data scarcity.
  • POD achieves superior performance to MSP and Mahalanobis on 13 out of 16 and 10 out of 16 (ID, OOD) pairs, respectively, in the low-data regime, demonstrating its effectiveness in data-scarce settings.
  • The relative performance of predictive score-based (e.g., MSP) and distance-based (e.g., Mahalanobis) methods is fundamentally dependent on the data distribution structure, as shown by 2D toy examples where one method can be perfect while the other fails.
  • In-distribution classification accuracy and OOD detection AUROC are not correlated: increasing training epochs improved ID accuracy but reduced OOD AUROC beyond 200 epochs, with higher variance in OOD performance.
  • Even with access to OOD data for hyperparameter tuning, method rankings reverse in low-data regimes—e.g., ODIN outperforms Mahalanobis on 10 out of 16 pairs in low data, but only 5 in full data—highlighting instability in method selection.

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.