Dissecting Out-of-Distribution Detection and Open-Set Recognition: A Critical Analysis of Methods and Benchmarks
Preprint
Abstract
Detecting test-time distribution shift has emerged as a key capability for safely deployed machine learning models, with the question being tackled under various guises in recent years. In this paper, we aim to provide a consolidated view of the two largest sub-fields within the community: out-of-distribution (OOD) detection and open-set recognition (OSR). In particular, we aim to provide rigorous empirical analysis of different methods across settings and provide actionable takeaways for practitioners and researchers. Concretely, we make the following contributions: (i) We perform rigorous cross-evaluation between state-of-the-art methods in the OOD detection and OSR settings and identify a strong correlation between the performances of methods for them; (ii) We propose a new, large-scale benchmark setting which we suggest better disentangles the problem tackled by OOD detection and OSR, re-evaluating state-of-the-art OOD detection and OSR methods in this setting; (iii) We surprisingly find that the best performing method on standard benchmarks (Outlier Exposure) struggles when tested at scale, while scoring rules which are sensitive to the deep feature magnitude consistently show promise; and (iv) We conduct empirical analysis to explain these phenomena and highlight directions for future research. Code: \url{https://github.com/Visual-AI/Dissect-OOD-OSR}Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- Generalized Out-of-Distribution Detection: A SurveyInternational Journal of Computer Vision, 2024
- A unified benchmark for the unknown detection capability of deep neural networksExpert Systems with Applications, 2023
- Augmenting Softmax Information for Selective Classification with Out-of-Distribution Data2023
- The familiarity hypothesis: Explaining the behavior of deep open set methodsPattern Recognition, 2022
- Natural Adversarial Examples2021
- Learning Open Set Network with Discriminative Reciprocal Points2020
- Generalized ODIN: Detecting Out-of-Distribution Image Without Learning From Out-of-Distribution Data2020
- Open Set Learning with Counterfactual Images2018
- Deep Residual Learning for Image Recognition2016
- Describing Textures in the Wild2014