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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Out-of-Distribution Detection | SUN OOD with ImageNet-1k In-distribution (test) | FPR@9531.24 | 159 | |
| Out-of-Distribution Detection | ImageNet OOD Average 1k (test) | FPR@9537.42 | 137 | |
| Out-of-Distribution Detection | Places with ImageNet-1k OOD In-distribution (test) | FPR9548.55 | 99 | |
| OOD Detection | MVTec Metal Nut Dissimilar | AUROC0.4557 | 90 | |
| OOD Detection | MVTec Pill (Dissimilar) | AUROC44.29 | 90 | |
| OOD Detection | MVTec Pill (Similar) | AUROC52.05 | 90 | |
| OOD Detection | ISIC Ink Artefacts (Similar) | AUROC68.93 | 70 | |
| Out-of-Distribution Detection | ImageNet-1k vs Textures (test) | FPR9511.32 | 65 | |
| Out-of-Distribution Detection | CIFAR100 (test) | Avg FPR95 (Overall)29.1 | 46 | |
| OOD Detection | ISIC Ink Artefacts (Dissimilar) | AUROC65.55 | 40 |