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

Jinggang Chen, Junjie Li, Xiaoyang Qu, Jianzong Wang, Jiguang Wan +1 more
2/12/2026

No official code found. Best implementation: JGEthanChen/GAIA-OOD (9 stars, last commit 2024-03-08).

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.

View on arXivView PDF

Code Implementations(1)

Code for NeurIPS2023 paper "GAIA: Delving into Gradient-based Attribution Abnormality for Out-of-distribution Detection" .

91PythonOct 24, 20232 years ago

Similar Papers

Cite this paper

@article{chen2026gaia,
  title  = {GAIA: Delving into Gradient-based Attribution Abnormality for Out-of-distribution Detection},
  author = {Jinggang Chen and Junjie Li and Xiaoyang Qu and Jianzong Wang and Jiguang Wan and Jing Xiao},
  year   = {2026},
  eprint = {2311.09620},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.09620},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09620.svg)](https://codeofpaper.com/paper/2311.09620)

Discussion