On the (In)fidelity and Sensitivity of Explanations.

Chih-Kuan Yeh, Cheng-Yu Hsieh, Arun Sai Suggala, David I. Inouye, Pradeep Ravikumar

In the field of explainable AI (XAI), saliency maps are widely used to visualize which input features—such as pixels in an image—a model prioritizes when making a prediction. However, evaluating these maps has historically been a subjective process. We often trust a map simply because it "looks reasonable" to a human observer. This paper, presented at NeurIPS 2019, moves beyond qualitative assessment by introducing two rigorous, objective metrics to evaluate how faithfully an explanation reflects a model's internal logic.

Objective Metrics: Infidelity and Sensitivity

The authors formalize two key quantitative measures for feature attribution:

  • Infidelity: This metric assesses the gap between the dot product of a perturbation and the explanation, and the actual change in the model's output caused by that perturbation. A faithful explanation should yield a value close to the actual model response.
  • Sensitivity: This measures the robustness of an explanation. If an explanation changes drastically when the input is nudged by insignificant noise, it likely captures noise rather than the model's underlying decision-making process.

The Smoothing Meta-Algorithm

A significant contribution of this work is the theoretical justification for smoothing techniques like Smooth-Grad. The authors prove that applying a kernel smoothing operation—averaging explanations within a local neighborhood—does more than just produce cleaner-looking maps. It mathematically reduces both sensitivity and infidelity, thereby improving the explanation's faithfulness to the model.

Novel Explanations

The authors discovered that many existing methods are actually optimal solutions for specific types of infidelity. For example, the "occlusion-1" method is optimal when perturbations are coordinate basis vectors. By optimizing for infidelity under different perturbation distributions, the researchers derived two new explanation methods:

  1. Noisy Baseline (NB): A robust version of the completeness axiom that accounts for input noise.
  2. Square Removal: Specifically designed for image data, this method removes square patches to better capture spatial dependencies compared to pixel-wise noise.
Saliency maps for various methods on ImageNet, including the proposed Square method and smoothed variants (SG).

Key Results and Sanity Checks

The proposed metrics and methods were evaluated on MNIST, CIFAR-10, and ImageNet. Key findings include:

  • Quantitative Performance: The "Square" and "Noisy Baseline" methods consistently achieved the lowest infidelity scores across all benchmarks.
  • Smoothing Benefits: Applying Smooth-Grad (SG) to vanilla Gradient, Integrated Gradients (IG), and Guided Backprop (GBP) consistently improved both sensitivity and infidelity.
  • Human Alignment: In a controlled study, the "Optimal" explanation (OPT) derived from their framework helped humans predict model behavior with 88% accuracy, far exceeding standard methods.
  • Sanity Checks: Crucially, the methods passed the "Sanity Check" for saliency maps. As shown below, the explanations change significantly when model weights are randomized, confirming they are tied to learned parameters rather than just input structure.
Sanity check showing that saliency maps for various methods change significantly when model weights are randomized.

Conclusion

This work provides a solid theoretical foundation for evaluating and improving saliency-based explanations. By framing existing methods as optimal solutions to specific infidelity problems and proving the benefits of smoothing, the authors offer a path toward more reliable and interpretable machine learning models.

Summary updated

BibTeX
@inproceedings{yeh2019fidelity,
  author = {Chih-Kuan Yeh and Cheng-Yu Hsieh and Arun Sai Suggala and David I. Inouye and Pradeep Ravikumar},
  title = {{On the (In)fidelity and Sensitivity of Explanations.}},
  booktitle = {NeurIPS},
  year = {2019},
  url = {https://openreview.net/forum?id=TAmPCc59ua},
}
Figure