GAIA: Delving into Gradient-based Attribution Abnormality for Out-of-distribution Detection
Jinggang Chen, Junjie Li, Xiaoyang Qu, Jianzong Wang, Jiguang Wan, Jing Xiao
TL;DR
GAIA introduces attribution abnormality as a signal for out-of-distribution detection by analyzing gradient-based explanations. It defines two forms, Channel-Wise Average Abnormality and Zero-Deflation Abnormality, and aggregates them across layers via a simple, training-free post-hoc framework. The method achieves strong improvements on CIFAR and ImageNet-1K benchmarks in FPR95 and AUROC compared with advanced baselines, while remaining parameter-free and data-agnostic for ID data. The work offers a Taylor-expansion viewpoint on attribution, discusses gradient-based limitations for transformers, and points to practical implications for reliable AI systems.
Abstract
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.
