Interpretation of Neural Networks Is Fragile

Amirata Ghorbani, Abubakar Abid, James Y. Zou

Abstract

As deep learning models transition from research to high-stakes applications like medical diagnosis and legal sentencing, the "black box" nature of these systems becomes a significant liability. To foster trust, researchers use interpretation methods—such as saliency maps—to highlight features driving a model's prediction. This paper demonstrates that these interpretations are remarkably fragile. By adding imperceptible noise to an input, an adversary can drastically change the explanation while the model’s prediction remains unchanged. We explore the geometric reasons for this vulnerability and evaluate several popular interpretation techniques.

Introduction

The "why" behind a neural network's decision is often as important as the decision itself. Feature importance methods (e.g., Simple Gradient, DeepLIFT, Integrated Gradients) aim to provide this transparency by generating saliency maps that highlight influential pixels. However, this work reveals a critical security and reliability gap: interpretations can be manipulated independently of predictions.

The Fragility of Interpretability

We often assume that if two inputs are visually indistinguishable and yield the same classification, their explanations should be similar. This paper challenges that assumption. While traditional adversarial attacks target the model's prediction, the authors introduce attacks targeting the interpretation.

Visual demonstration of how imperceptible perturbations can drastically alter feature-importance maps across different interpretation methods while maintaining model confidence.

Methodology: Attacking Explanations

The authors investigate two primary classes of interpretation: feature importance (pixel-level) and sample importance (training-data level).

1. Feature Importance Attacks

Using gradient-based optimization, the authors find a perturbation $\delta$ that maximizes the distance between the original and perturbed interpretations. Three specific attacks were developed:

  • Top-$k$ attack: Minimizes the importance of the originally most salient pixels.
  • Mass-center attack: Shifts the "center of gravity" of the saliency map.
  • Targeted attack: Forces the saliency map to highlight a specific, irrelevant region.

2. Sample Importance Attacks

For influence functions, which identify influential training examples, the authors use a linearized "Gradient Sign Attack" to swap relevant influential images for unrelated ones.

Geometric Insights: Why Interpretations Fail

A key finding is that the direction of maximal change in interpretation is often nearly orthogonal to the direction of maximal change in prediction. This allows an adversary to "break" the explanation without affecting the final label.

Geometric intuition: The gradient of the loss $\nabla_x L(x_t)$ can change significantly with a small perturbation $\delta$, even if the loss value itself remains relatively stable.

Hessian analysis reveals that in high-dimensional spaces, the curvature of the loss surface is highly non-uniform. Small steps can move the input into regions where the gradient—the basis for many interpretation methods—points in a completely different direction.

Key Results

  • Vanishing Saliency: Across ImageNet and CIFAR-10, a tiny perturbation ($\epsilon = 8/255$) reduced the overlap between original and perturbed top-1000 salient pixels to under 30%.
  • Successful Redirection: Targeted attacks successfully moved the saliency map of a "trailer truck" to a random cloud without changing the classification.
  • Influence Swapping: In a flower classification task, perturbations caused the "most influential" training images to switch from sunflowers to red roses, even as the model's confidence in "sunflower" increased.

Conclusion and Future Work

The fragility identified here is a property of the neural network's underlying geometry rather than a flaw in the interpretation algorithms themselves. Future research must focus on building robust models, perhaps through input discretization to smooth "jagged" gradients or training networks with lower Hessian values to ensure gradient stability. Until such defenses are standard, AI "explanations" should be viewed with the same skepticism as the black-box predictions they aim to clarify.

Summary updated

BibTeX
@inproceedings{ghorbani2019interpretation,
  author = {Amirata Ghorbani and Abubakar Abid and James Y. Zou},
  title = {{Interpretation of Neural Networks Is Fragile}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013681},
}
Figure