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

A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detection

About

Mahalanobis distance (MD) is a simple and popular post-processing method for detecting out-of-distribution (OOD) inputs in neural networks. We analyze its failure modes for near-OOD detection and propose a simple fix called relative Mahalanobis distance (RMD) which improves performance and is more robust to hyperparameter choice. On a wide selection of challenging vision, language, and biology OOD benchmarks (CIFAR-100 vs CIFAR-10, CLINC OOD intent detection, Genomics OOD), we show that RMD meaningfully improves upon MD performance (by up to 15% AUROC on genomics OOD).

Jie Ren, Stanislav Fort, Jeremiah Liu, Abhijit Guha Roy, Shreyas Padhy, Balaji Lakshminarayanan• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1k (val)--
1453
Out-of-Distribution DetectioniNaturalist
FPR@9519.47
200
Out-of-Distribution DetectionTextures
AUROC0.8938
141
Out-of-Distribution DetectionOpenImage-O
AUROC92.32
107
Out-of-Distribution DetectionNINCO
AUROC87.31
59
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC89.38
59
Image ClassificationImageNet OOD
ImageNet Acc58.4
55
Out-of-Distribution DetectionSSB hard
AUROC (%)72.87
51
Out-of-Distribution DetectionCIFAR100 ID Dnear OOD
AUROC80.15
47
Out-of-Distribution DetectionCIFAR100 (test)
Avg FPR95 (Overall)49.56
46
Showing 10 of 40 rows

Other info

Follow for update