[Paper Review] A Less Biased Evaluation of Out-of-distribution Sample Detectors
This paper introduces OD-test, a three-dataset evaluation framework to reduce bias in out-of-distribution (OOD) sample detection, revealing that existing methods achieve only 60–78% accuracy on high-dimensional images—far below reliable performance—under realistic conditions, challenging prior overly optimistic benchmarks.
In the real world, a learning system could receive an input that is unlike anything it has seen during training. Unfortunately, out-of-distribution samples can lead to unpredictable behaviour. We need to know whether any given input belongs to the population distribution of the training/evaluation data to prevent unpredictable behaviour in deployed systems. A recent surge of interest in this problem has led to the development of sophisticated techniques in the deep learning literature. However, due to the absence of a standard problem definition or an exhaustive evaluation, it is not evident if we can rely on these methods. What makes this problem different from a typical supervised learning setting is that the distribution of outliers used in training may not be the same as the distribution of outliers encountered in the application. Classical approaches that learn inliers vs. outliers with only two datasets can yield optimistic results. We introduce OD-test, a three-dataset evaluation scheme as a more reliable strategy to assess progress on this problem. We present an exhaustive evaluation of a broad set of methods from related areas on image classification tasks. Contrary to the existing results, we show that for realistic applications of high-dimensional images the previous techniques have low accuracy and are not reliable in practice.
Motivation & Objective
- To address the over-optimistic evaluation of OOD detectors in existing benchmarks that use only two datasets (inliers and outliers).
- To propose a more realistic evaluation framework that accounts for unseen outliers (unknown unknowns) by introducing a third, diverse outlier dataset.
- To provide a comprehensive, unbiased benchmark for OOD detection across diverse image classification datasets and models.
- To demonstrate that current state-of-the-art methods perform poorly in realistic high-dimensional settings, undermining their practical reliability.
- To release a PyTorch package for reproducibility and to encourage community adoption of the OD-test evaluation protocol.
Proposed method
- Introduce OD-test: a three-dataset evaluation scheme using a training set (ID), a validation set (known outliers), and a test set (unseen outliers) to simulate real-world OOD detection.
- Use multiple diverse outlier datasets (e.g., CIFAR-10, SVHN, Tiny ImageNet, LSUN, ImageNet-1000) to assess generalization across anomaly types.
- Evaluate 12 OOD detection methods including uncertainty estimation (MC-Dropout, Deep Ensemble), reconstruction-based (AEThreshold, VAE), density estimation (PixelCNN++), and adversarial-style (ODIN).
- Compute average accuracy across all combinations of outlier datasets to reduce bias from any single outlier distribution.
- Use standard image classification models (VGG, ResNet) as the base classifiers and apply OOD detectors to their logits or feature representations.
- Apply thresholding and distance-based methods on final-layer features or softmax probabilities to detect OOD samples.
Experimental results
Research questions
- RQ1How does the performance of OOD detectors degrade when evaluated under a more realistic three-dataset setup (OD-test) compared to standard two-dataset benchmarks?
- RQ2To what extent do OOD detection methods generalize to unseen outlier distributions not seen during training?
- RQ3How do different OOD detection techniques (e.g., uncertainty estimation, reconstruction, density estimation) compare in high-dimensional image settings?
- RQ4Does a higher-accuracy image classifier lead to better OOD detection performance?
- RQ5Which OOD detection method is least prone to overfitting to a specific outlier distribution in the validation set?
Key findings
- The performance of all evaluated OOD detection methods drops significantly in high-dimensional image settings, with average accuracy ranging from 60% to 78%, indicating poor reliability in practice.
- Methods like AEThreshold and PixelCNN++ perform well on low-dimensional datasets like MNIST but degrade rapidly on complex, high-dimensional data such as ImageNet.
- ODIN achieves the highest average accuracy among all methods in high-dimensional settings, but still falls short of 80%, suggesting limited practical utility.
- The two-dataset evaluation scheme leads to overly optimistic results, especially for VGG and ResNet, and fails to detect overfitting to specific outlier distributions.
- Uncertainty-based methods like MC-Dropout and Deep Ensemble are not reliable for OOD detection, showing low and inconsistent performance across datasets.
- Latent representations from standard autoencoders are not effective for OOD detection when combined with nearest neighbor methods, and density estimation via PixelCNN++ underperforms even random baseline in some cases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.