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

GAIA: Delving into Gradient-based Attribution Abnormality for Out-of-distribution Detection

About

Detecting out-of-distribution (OOD) examples is crucial to guarantee the reliability and safety of deep neural networks in real-world settings. In this paper, we offer an innovative perspective on quantifying the disparities between in-distribution (ID) and OOD data -- analyzing the uncertainty that arises when models attempt to explain their predictive decisions. This perspective is motivated by our observation that gradient-based attribution methods encounter challenges in assigning feature importance to OOD data, thereby yielding divergent explanation patterns. Consequently, we investigate how attribution gradients lead to uncertain explanation outcomes and introduce two forms of abnormalities for OOD detection: the zero-deflation abnormality and the channel-wise average abnormality. We then propose GAIA, a simple and effective approach that incorporates Gradient Abnormality Inspection and Aggregation. The effectiveness of GAIA is validated on both commonly utilized (CIFAR) and large-scale (ImageNet-1k) benchmarks. Specifically, GAIA reduces the average FPR95 by 23.10% on CIFAR10 and by 45.41% on CIFAR100 compared to advanced post-hoc methods.

Jinggang Chen, Junjie Li, Xiaoyang Qu, Jianzong Wang, Jiguang Wan, Jing Xiao• 2023

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9531.24
204
Out-of-Distribution DetectionImageNet OOD Average 1k (test)
FPR@9537.42
137
OOD DetectionCIFAR-10 (IND) SVHN (OOD)
AUROC0.9879
131
OOD DetectionCIFAR-10 (ID) vs Places 365 (OOD)
AUROC96.51
117
Out-of-Distribution DetectionPlaces with ImageNet-1k OOD In-distribution (test)
FPR9548.55
99
OOD DetectionMVTec Metal Nut Dissimilar
AUROC0.4557
90
OOD DetectionMVTec Pill (Dissimilar)
AUROC44.29
90
OOD DetectionMVTec Pill (Similar)
AUROC52.05
90
OOD DetectionCIFAR-10 IND iSUN OOD
AUROC97.47
82
OOD DetectionTextures (OOD) with CIFAR-10 (ID) (test)
FPR@959.02
80
Showing 10 of 37 rows

Other info

Code

Follow for update