Skip to main content
QUICK REVIEW

[Paper Review] Rethinking the Role of Gradient-Based Attribution Methods for Model Interpretability

Suraj Srinivas, François Fleuret|arXiv (Cornell University)|Jun 16, 2020
Explainable Artificial Intelligence (XAI)Computer Science37 references7 citations
TL;DR

This paper demonstrates that gradient-based attribution methods in deep learning are not inherently tied to the discriminative model's decision function, but instead reflect an implicit generative model of class-conditional data distributions. By using score-matching to align this implicit density model with the true data distribution, the authors show that gradient explanations become more structured and explanatory, suggesting that the reliability of saliency maps stems from unintended density alignment during training rather than direct interpretability of the discriminative function.

ABSTRACT

Current methods for the interpretability of discriminative deep neural networks commonly rely on the model's input-gradients, i.e., the gradients of the output logits w.r.t. the inputs. The common assumption is that these input-gradients contain information regarding $p_θ ( y \mid x)$, the model's discriminative capabilities, thus justifying their use for interpretability. However, in this work we show that these input-gradients can be arbitrarily manipulated as a consequence of the shift-invariance of softmax without changing the discriminative function. This leaves an open question: if input-gradients can be arbitrary, why are they highly structured and explanatory in standard models? We investigate this by re-interpreting the logits of standard softmax-based classifiers as unnormalized log-densities of the data distribution and show that input-gradients can be viewed as gradients of a class-conditional density model $p_θ(x \mid y)$ implicit within the discriminative model. This leads us to hypothesize that the highly structured and explanatory nature of input-gradients may be due to the alignment of this class-conditional model $p_θ(x \mid y)$ with that of the ground truth data distribution $p_{ ext{data}} (x \mid y)$. We test this hypothesis by studying the effect of density alignment on gradient explanations. To achieve this alignment we use score-matching, and propose novel approximations to this algorithm to enable training large-scale models. Our experiments show that improving the alignment of the implicit density model with the data distribution enhances gradient structure and explanatory power while reducing this alignment has the opposite effect. Overall, our finding that input-gradients capture information regarding an implicit generative model implies that we need to re-think their use for interpreting discriminative models.

Motivation & Objective

  • To investigate why gradient-based attribution methods produce highly structured and intuitive explanations despite being theoretically manipulable without affecting model performance.
  • To test whether the explanatory power of input-gradients stems from alignment between an implicit class-conditional density model and the true data distribution.
  • To develop practical score-matching approximations enabling large-scale training of models with controlled density alignment for interpretability analysis.
  • To re-evaluate common interpretability tools—like saliency maps and pixel perturbations—through the lens of implicit density modeling rather than discriminative function interpretation.

Proposed method

  • Reinterpret the logits of standard softmax classifiers as unnormalized log-densities, revealing an implicit class-conditional density model pθ(x|y) within the discriminative network.
  • Use score-matching to train models with controlled alignment between the implicit density model and the true data distribution p_data(x|y).
  • Propose novel approximations to score-matching that eliminate expensive Hessian computations, enabling training on large-scale models.
  • Introduce gradient-norm regularization as a proxy for implicit density modeling, showing it improves gradient structure without explicit density training.
  • Evaluate gradient explanations using both quantitative pixel perturbation tests and qualitative visualization of gradient maps across models.
  • Compare input-gradients from baseline, score-matched, anti-score-matched, and gradient-norm regularized models to isolate the effect of density alignment.

Experimental results

Research questions

  • RQ1Can input-gradients be arbitrarily manipulated without changing the discriminative model’s performance, due to the shift-invariance of softmax?
  • RQ2Why are input-gradients in standard pre-trained models consistently structured and intuitive, despite their theoretical arbitrariness?
  • RQ3Does improving the alignment between the implicit density model and the true data distribution enhance the structure and explanatory power of input-gradients?
  • RQ4Can score-matching and gradient-norm regularization be used to control the quality of gradient-based explanations in practice?

Key findings

  • Input-gradients can be arbitrarily manipulated via softmax shift-invariance without altering the discriminative model, demonstrating their lack of uniqueness.
  • Score-matched models produce significantly more structured and explanatory input-gradients compared to baseline models, as confirmed by both qualitative visualization and quantitative pixel perturbation tests.
  • The anti-score-matched model, which reduces density alignment, produces the noisiest and least interpretable gradients, validating the hypothesis that alignment improves explanation quality.
  • Gradient-norm regularized models also yield more perceptually aligned gradients than the baseline, suggesting implicit density modeling through weight decay or optimization dynamics.
  • When used to explain a standard ResNet, gradients from score-matched and gradient-norm regularized models outperform the baseline model’s own gradients in identifying least relevant pixels.
  • The results suggest that the reliability of input-gradients in standard models may stem from unintended density alignment during training, rather than direct interpretability of the discriminative function.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.