Do Feature Attribution Methods Correctly Attribute Features?

Yilun Zhou, Serena Booth, Marco Túlio Ribeiro, Julie Shah

Introduction

As deep learning models are increasingly deployed in high-stakes domains like medical diagnosis, understanding the rationale behind their predictions becomes paramount. Feature attribution methods, such as saliency maps and attention mechanisms, are the primary tools used to provide these explanations. However, evaluating the reliability of these methods is challenging because "ground truth" explanations are typically unavailable for natural datasets. We cannot definitively say if a model is looking at a tumor's pathology or an incidental watermark.

Establishing Ground Truth via Dataset Modification

To address this evaluation gap, the authors propose a rigorous "unit test" framework using "semi-natural" datasets. The core idea is to modify a dataset such that a model must rely on a specific, known feature to achieve high accuracy.

The process involves:

  1. Label Reassignment: Randomizing labels in a natural dataset to break existing feature-label correlations.
  2. Input Manipulation: Introducing controlled "artifacts" that correlate perfectly with the new labels.
  3. Defining the Joint Effective Region: A critical insight is that models can use the absence of a feature as a signal. Therefore, the ground truth for attribution is defined as the union of all potential manipulated regions across all classes.
Defining the Joint Effective Region as the union of all possible manipulated areas across classes.

Experimental Setup

The framework was tested on both image and text data:

  • Images (CUB-200-2011): The authors applied five types of manipulations to bird images, including blurring, brightness changes, hue shifts, pixel noise, and watermarks.
  • Text (BeerAdvocate): Reviews were modified by changing specific articles (e.g., "a" vs. "the") to correlate with labels, testing if attention mechanisms could identify these highly predictive but non-semantic signals.
Examples of image manipulations (blurring, hue shift, watermark) used to create controlled artifacts and their corresponding masks.

Key Findings

The results reveal significant weaknesses in current attribution methods:

  • Saliency Maps are Brittle: Popular methods like GradCAM and LIME often failed to highlight the ground-truth artifacts, even when models achieved near-perfect accuracy. While SHAP generally performed best, its success was highly dependent on the artifact type.
  • Attention is Not Explanation: In text models, attention weights frequently failed to highlight the predictive articles significantly more than random words, suggesting that attention does not necessarily reflect feature importance.
  • Rationales can be Misleading: Rationale-based models often included irrelevant features that "looked" like the signal, potentially misleading human users about the model's actual logic.

Conclusion

This work serves as a cautionary tale for the use of interpretability tools "in the wild." The authors demonstrate that high model accuracy does not guarantee that attribution methods will correctly identify the features driving predictions. They advocate for a validation pipeline where new methods must pass controlled unit tests against known ground truths before deployment in sensitive applications. Future work should focus on developing more realistic, semantic artifacts using generative modeling to further bridge the gap between these tests and real-world scenarios.

Summary updated

BibTeX
@inproceedings{zhou2022do,
  author = {Yilun Zhou and Serena Booth and Marco Túlio Ribeiro and Julie Shah},
  title = {{Do Feature Attribution Methods Correctly Attribute Features?}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i9.21196},
}
Figure