Out-of-Distribution Detection with Relative Angles
Berker Demirel, Marco Fumero, Francesco Locatello

TL;DR
This paper introduces a novel angle-based metric for out-of-distribution detection that leverages the relative angles of feature representations to in-distribution structures, improving detection performance across multiple models.
Contribution
The work proposes a new angle-based metric for OOD detection that effectively utilizes in-distribution structure, outperforming existing distance-based methods.
Findings
Achieves lowest FPR in 5 out of 9 ImageNet models
Obtains best average FPR across evaluated models
Demonstrates strong performance with contrastive learning architectures
Abstract
Deep learning systems deployed in real-world applications often encounter data that is different from their in-distribution (ID). A reliable model should ideally abstain from making decisions in this out-of-distribution (OOD) setting. Existing state-of-the-art methods primarily focus on feature distances, such as k-th nearest neighbors and distances to decision boundaries, either overlooking or ineffectively using in-distribution statistics. In this work, we propose a novel angle-based metric for OOD detection that is computed relative to the in-distribution structure. We demonstrate that the angles between feature representations and decision boundaries, viewed from the mean of in-distribution features, serve as an effective discriminative factor between ID and OOD data. We evaluate our method on nine ImageNet-pretrained models. Our approach achieves the lowest FPR in 5 out of 9…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIndustrial Vision Systems and Defect Detection
MethodsFocus
