Our new X account is live! Follow @wizwand_team for updates
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
159
Out-of-Distribution DetectionImageNet OOD Average 1k (test)
FPR@9537.42
137
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 DetectionISIC Ink Artefacts (Similar)
AUROC68.93
70
Out-of-Distribution DetectionImageNet-1k vs Textures (test)
FPR9511.32
65
Out-of-Distribution DetectionCIFAR100 (test)
Avg FPR95 (Overall)29.1
46
OOD DetectionISIC Ink Artefacts (Dissimilar)
AUROC65.55
40
Showing 10 of 25 rows

Other info

Code

Follow for update