Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?

About

Out-of-distribution (OOD) detection is a critical task for reliable machine learning. Recent advances in representation learning give rise to distance-based OOD detection, where testing samples are detected as OOD if they are relatively far away from the centroids or prototypes of in-distribution (ID) classes. However, prior methods directly take off-the-shelf contrastive losses that suffice for classifying ID samples, but are not optimally designed when test inputs contain OOD samples. In this work, we propose CIDER, a novel representation learning framework that exploits hyperspherical embeddings for OOD detection. CIDER jointly optimizes two losses to promote strong ID-OOD separability: a dispersion loss that promotes large angular distances among different class prototypes, and a compactness loss that encourages samples to be close to their class prototypes. We analyze and establish the unexplored relationship between OOD detection performance and the embedding properties in the hyperspherical space, and demonstrate the importance of dispersion and compactness. CIDER establishes superior performance, outperforming the latest rival by 19.36% in FPR95. Code is available at https://github.com/deeplearning-wisc/cider.

Yifei Ming, Yiyou Sun, Ousmane Dia, Yixuan Li• 2022

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionTextures
AUROC0.9544
141
Out-of-Distribution DetectionPlaces
FPR9542.81
110
OOD DetectionCIFAR-10 (ID) vs Places 365 (OOD)
AUROC95.57
77
OOD DetectionPlaces (OOD)
AUROC73.59
76
OOD DetectionISIC Ink Artefacts (Similar)
AUROC72.96
70
Out-of-Distribution DetectionCIFAR10 (ID) / ISUN (OOD) (test)
FPR@9510.36
41
Out-of-Distribution DetectionCIFAR-10 In-Dist Texture Out-Dist
AUROC98.35
41
OOD DetectioniNaturalist
AUROC92.83
40
OOD DetectionISIC Colour Chart Artefacts Similar
AUROC66.39
40
OOD DetectionISIC Colour Chart Artefacts Synth Similar
AUROC0.6721
40
Showing 10 of 34 rows

Other info

Follow for update