Incorporating Attribution Importance for Improving Faithfulness Metrics

Zhixue Zhao, Nikolaos Aletras

TL;DR

Current metrics for evaluating how "faithful" an AI explanation is rely on a binary "keep or delete" approach that often confuses the model. This paper introduces Soft-Sufficiency and Soft-Comprehensiveness, new metrics that use a "soft erasure" criterion—randomly masking parts of a token’s vector representation based on its importance—to provide a more accurate and robust measure of whether an explanation truly reflects a model's reasoning.

What Problem Does This Paper Address?

In Natural Language Processing (NLP), we use Feature Attribution (FA) methods to understand why a model made a specific prediction. These methods assign importance scores to input tokens (words), creating a "rationale" or saliency map. But how do we know if these explanations are faithful—meaning, do they actually reflect the model's internal logic, or are they just pretty pictures?

The standard way to measure faithfulness is through two metrics:

  1. Sufficiency: If we keep only the important words, does the model still reach the same conclusion?
  2. Comprehensiveness: If we remove only the important words, does the model's confidence drop significantly?

The problem is that these metrics use a hard erasure criterion. They either keep a word entirely or delete it entirely. This has two major flaws:

  • Equality Bias: It treats all words in a rationale as equally important, ignoring the fine-grained scores the FA method actually provided.
  • Out-of-Distribution (OOD) Issues: Deleting words creates "broken" sentences that look nothing like the data the model was trained on. This can cause the model to behave erratically, leading to misleading faithfulness scores.

Methods

The authors propose a soft erasure criterion. Instead of deleting a token, they perturb its vector representation (the embedding).

They achieve this using a specialized form of dropout. For every element in a token's embedding vector, they apply a Bernoulli mask. The probability ($q$) of an element being retained or removed is tied directly to the importance score assigned by the FA method.

  • Soft-Sufficiency (Soft-NS): The more important a token is, the more of its embedding elements are retained.
  • Soft-Comprehensiveness (Soft-NC): The more important a token is, the more of its embedding elements are masked.

This "grayscale" approach allows the metric to account for the entire distribution of importance scores across the whole sentence, rather than just looking at a top-k subset of words.

Datasets

The researchers evaluated their metrics across four diverse NLP tasks:

  • SST: Binary sentiment classification (short texts).
  • AG News: Four-class news topic categorization.
  • Evidence Inference (Ev.Inf): A complex biomedical task requiring reasoning over randomized controlled trials (long texts).
  • MultiRC (M.RC): A reading comprehension task converted into binary classification.

They tested these against several popular FA methods, including Attention, Integrated Gradients, and DeepLift, using models like BERT, SciBERT, and RoBERTa.

Key Insights and Ideas

  • Beyond the Top-K: Traditional metrics require researchers to manually choose a rationale length (e.g., "the top 20% of words"). Faithfulness scores can vary wildly depending on this choice. Soft metrics bypass this by considering the importance of every token in the input.
  • Mitigating OOD Confusion: By masking vector elements rather than deleting whole words, the input remains closer to the model's expected distribution. This leads to more stable and "diagnostic" results.
  • Handling Redundancy: In long documents (like medical abstracts), important words are often repeated. Hard erasure might delete one instance but keep another, confusing the metric. Soft erasure handles these repetitions more gracefully by looking at the cumulative importance.
  • Diagnosticity is Key: To prove their metrics were better, the authors used "diagnosticity"—a meta-metric that measures how well a faithfulness metric can distinguish a real, informed explanation from a completely random one.

Key Results

The soft metrics consistently outperformed their "hard" counterparts:

  • Higher Diagnosticity: Soft-NC and Soft-NS achieved significantly higher diagnosticity scores across almost all tasks and FA methods (p < .01).
  • Quantitative Edge: The average diagnosticity for Soft-NC was 0.529, compared to just 0.394 for hard NC. Similarly, Soft-NS hit 0.462 vs. 0.349 for hard NS.
  • Robustness: The soft metrics showed lower variance, meaning they are less sensitive to the specific quirks of a dataset or the length of the input text.
  • FA Ranking Shifts: Interestingly, the soft metrics often disagreed with hard metrics on which FA method was "best." For example, DeepLift was ranked as highly faithful by Soft-NC but poorly by hard NC, suggesting that hard erasure may have been unfairly penalizing certain types of explanations.

Limitations and Future Work

While promising, the study has a few boundaries:

  • Task Scope: The experiments were limited to binary and multi-class classification. The authors suggest that sequence labeling (like Named Entity Recognition) is a logical next step.
  • Language: The study focused exclusively on English-language data.
  • Architectures: While they used various Transformers, exploring how these metrics behave with even larger models or different architectures (like RNNs or CNNs) remains for future work.

Overall, this paper provides a compelling argument that if we want to understand "black box" models, our evaluation tools need to be as nuanced as the models themselves.

Summary updated

BibTeX
@inproceedings{zhao2023incorporating,
  author = {Zhixue Zhao and Nikolaos Aletras},
  title = {{Incorporating Attribution Importance for Improving Faithfulness Metrics}},
  booktitle = {myPublications at the University of Sheffield},
  year = {2023},
  url = {https://openreview.net/forum?id=JVbJDI2VMy},
}
Figure