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

GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradients

About

Detecting out-of-distribution (OOD) data is crucial for ensuring the safe deployment of machine learning models in real-world applications. However, existing OOD detection approaches primarily rely on the feature maps or the full gradient space information to derive OOD scores neglecting the role of most important parameters of the pre-trained network over in-distribution (ID) data. In this study, we propose a novel approach called GradOrth to facilitate OOD detection based on one intriguing observation that the important features to identify OOD data lie in the lower-rank subspace of in-distribution (ID) data. In particular, we identify OOD data by computing the norm of gradient projection on the subspaces considered important for the in-distribution data. A large orthogonal projection value (i.e. a small projection value) indicates the sample as OOD as it captures a weak correlation of the ID data. This simple yet effective method exhibits outstanding performance, showcasing a notable reduction in the average false positive rate at a 95% true positive rate (FPR95) of up to 8% when compared to the current state-of-the-art methods.

Sima Behpour, Thang Doan, Xin Li, Wenbin He, Liang Gou, Liu Ren• 2023

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectioniNaturalist
AUROC98
219
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9519.61
204
Out-of-Distribution DetectionPlaces
FPR9533.67
142
Out-of-Distribution DetectionImageNet OOD Average 1k (test)
FPR@9518.57
137
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR9511.04
132
OOD DetectionCIFAR-10 (IND) SVHN (OOD)
AUROC0.9872
131
OOD DetectionCIFAR-10 (ID) vs Places 365 (OOD)
AUROC91.13
117
Out-of-Distribution DetectionTexture
AUROC98.06
113
Out-of-Distribution DetectionPlaces with ImageNet-1k OOD In-distribution (test)
FPR9533.67
99
OOD DetectionMVTec Pill (Similar)
AUROC86.86
90
Showing 10 of 36 rows

Other info

Follow for update