Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

NECO: NEural Collapse Based Out-of-distribution detection

About

Detecting out-of-distribution (OOD) data is a critical challenge in machine learning due to model overconfidence, often without awareness of their epistemological limits. We hypothesize that ``neural collapse'', a phenomenon affecting in-distribution data for models trained beyond loss convergence, also influences OOD data. To benefit from this interplay, we introduce NECO, a novel post-hoc method for OOD detection, which leverages the geometric properties of ``neural collapse'' and of principal component spaces to identify OOD data. Our extensive experiments demonstrate that NECO achieves state-of-the-art results on both small and large-scale OOD detection tasks while exhibiting strong generalization capabilities across different network architectures. Furthermore, we provide a theoretical explanation for the effectiveness of our method in OOD detection. Code is available at https://gitlab.com/drti/neco

Mou\"in Ben Ammar, Nacim Belkhir, Sebastian Popescu, Antoine Manzanera, Gianni Franchi• 2023

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-10 ID CIFAR-100 OOD
AUC86.56
66
Out-of-Distribution DetectionCIFAR10 (ID) vs SVHN (OOD)
AUROC96.14
61
OOD DetectionImageNet-1k ID Places OOD
AUROC81.02
59
Out-of-Distribution DetectionCIFAR100 (in) CIFAR10 (out)
AUROC77.12
57
OOD DetectionImageNet-1k ID iNaturalist OOD
AUROC90.3
43
Out-of-Distribution DetectionImageNet-1k (ID) vs Textures (OOD)
AUROC84.19
43
OOD DetectionImageNet OOD Average (iNaturalist, SUN, Places, Textures)
Mean FPR95 (OOD Avg)53.69
33
Out-of-Distribution DetectionCIFAR100 (ID) SVHN (OOD)
AUROC83.85
28
OOD DetectionGastroVision
AUROC79.81
24
OOD DetectionImageNet-1k (ID) vs SUN (OOD)
AUROC83.17
24
Showing 10 of 13 rows

Other info

Follow for update