Gradient based Feature Attribution in Explainable AI: A Technical Review

Yongjie Wang, Tong Zhang, Xu Guo, Zhiqi ShenarXiv 2024 · DOI

Introduction

As deep learning models grow in complexity, they increasingly function as "black boxes," making it difficult to justify their decisions in high-stakes environments like healthcare or autonomous driving. Feature attribution aims to bridge this gap by identifying which input features—such as specific pixels in an image—contributed most to a model's prediction. This paper provides a comprehensive technical review and a new taxonomy for gradient-based feature attribution, a popular class of Explainable AI (XAI) methods that leverage the internal gradients of neural networks.

A Taxonomy of Explainable AI

To understand feature attribution, it is helpful to see where it sits within the broader XAI landscape. XAI methods are generally divided into ante-hoc (interpretable by design) and post-hoc (applied after training) approaches.

Taxonomy of Explainable AI within the broader landscape of XAI.

As illustrated above, feature attribution is a subset of outcome explanation within the post-hoc category. It focuses on explaining individual predictions rather than the model as a whole.

Gradient-Based Attribution Methods

Gradient-based methods are favored because they use the "native language" of neural networks: the gradients calculated during backpropagation. However, the field has been fragmented. The authors propose a novel taxonomy that categorizes these methods into four distinct groups based on their mathematical approach.

The four primary categories of gradient-based feature attribution: Vanilla, Integrated, Bias, and Post-processing.

1. Vanilla Gradients

These methods, such as standard Saliency Maps, Deconvnet, and Guided Backpropagation, use gradients from a single backward pass. While computationally efficient, they often suffer from "noise" and fail to capture global feature importance.

2. Integrated Gradients (IG)

To solve the "saturation problem"—where a feature is important but its local gradient is zero (e.g., in a flat ReLU region)—IG methods accumulate gradients along a path from a "baseline" (like a black image) to the actual input. Variants like BlurIG and Guided IG further refine this path to reduce visual artifacts.

3. Bias Gradients

Most XAI research focuses on input features, but neural networks also rely heavily on bias terms. Algorithms like FullGrad decompose predictions into both input and bias gradients. This is crucial because models can achieve significant accuracy (over 30% on CIFAR-100) using only bias terms, meaning any method ignoring them provides an incomplete explanation.

4. Post-processing for Denoising

These are "wrapper" techniques like SmoothGrad and VarGrad. They add Gaussian noise to the input multiple times and average the resulting attributions to create a cleaner, more robust heatmap.

Key Insights and Axiomatic Foundations

The paper emphasizes that because there is no "ground truth" for explanations, they must be grounded in mathematical axioms. Key axioms include Completeness (the sum of attributions equals the model output) and Sensitivity (features that change the output must have non-zero attribution).

Furthermore, the review highlights the fragility of explanations. Much like the models themselves, saliency maps can be vulnerable to adversarial attacks, where imperceptible changes to an image drastically alter the explanation without changing the prediction.

Evaluation and Future Challenges

Evaluating XAI remains difficult. The paper categorizes current strategies into human evaluation for trust, localization tests (like "Pointing Games" on PASCAL VOC or MS COCO), and ablation tests. Ablation is considered the "gold standard" for faithfulness: if an "important" feature is removed, the model's prediction score should drop sharply.

The authors identify several "grand challenges" for the future:

  • Algorithmic Efficiency: Path-based methods like IG are computationally expensive.
  • Personalization: Different stakeholders (e.g., doctors vs. developers) require different types of explanations.
  • Security and Privacy: Gradients can potentially leak sensitive information about training data.
  • Baseline Selection: Many advanced methods depend on an arbitrary choice of "baseline," which remains a significant source of sensitivity.

Summary updated

BibTeX
@misc{wang2024gradient,
  author = {Yongjie Wang and Tong Zhang and Xu Guo and Zhiqi Shen},
  title = {{Gradient based Feature Attribution in Explainable AI: A Technical Review}},
  year = {2024},
  eprint = {2403.10415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.10415},
}
Figure