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

Detecting Out-of-Distribution Examples with In-distribution Examples and Gram Matrices

About

When presented with Out-of-Distribution (OOD) examples, deep neural networks yield confident, incorrect predictions. Detecting OOD examples is challenging, and the potential risks are high. In this paper, we propose to detect OOD examples by identifying inconsistencies between activity patterns and class predicted. We find that characterizing activity patterns by Gram matrices and identifying anomalies in gram matrix values can yield high OOD detection rates. We identify anomalies in the gram matrices by simply comparing each value with its respective range observed over the training data. Unlike many approaches, this can be used with any pre-trained softmax classifier and does not require access to OOD data for fine-tuning hyperparameters, nor does it require OOD access for inferring parameters. The method is applicable across a variety of architectures and vision datasets and, for the important and surprisingly hard task of detecting far-from-distribution out-of-distribution examples, it generally performs better than or equal to state-of-the-art OOD detection methods (including those that do assume access to OOD examples).

Chandramouli Shama Sastry, Sageev Oore• 2019

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-100--
107
Out-of-Distribution DetectionCIFAR-10--
105
Out-of-Distribution DetectionCIFAR-10 vs SVHN (test)
AUROC0.995
101
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC79
93
Out-of-Distribution DetectionCIFAR-100 SVHN in-distribution out-of-distribution (test)
AUROC97.3
90
Out-of-Distribution DetectionCIFAR-10 (ID) vs SVHN (OOD) (test)
AUROC100
79
Out-of-Distribution DetectionCIFAR-10 in-distribution LSUN out-of-distribution (test)
AUROC99.9
73
Out-of-Distribution DetectionCIFAR-10 (in-distribution) TinyImageNet (out-of-distribution) (test)
AUROC99.72
71
Out-of-Distribution DetectionCIFAR-100 (in-distribution) / LSUN (out-of-distribution) (test)
AUROC99.3
67
Out-of-Distribution DetectionSVHN--
62
Showing 10 of 39 rows

Other info

Code

Follow for update