Towards Benchmarking the Utility of Explanations for Model Debugging

Maximilian Idahl, Lijun Lyu, Ujwal Gadiraju, Avishek Anand

Abstract

Post-hoc explanation methods are an important class of approaches that help understand the rationale underlying a trained model's decision. But how useful are they for an end-user towards accomplishing a given task? In this vision paper, we argue the need for a benchmark to facilitate evaluations of the utility of post-hoc explanation methods. As a first step to this end, we enumerate desirable properties that such a benchmark should possess for the task of debugging text classifiers. Additionally, we highlight that such a benchmark facilitates not only assessing the effectiveness of explanations but also their efficiency.

The Challenge of Model Debugging

Deep learning models are notorious for "shortcut learning" or "Clever Hans" behavior—picking up on spurious correlations in data (like a watermark on an image) rather than the actual concept (the object in the image). These models appear highly accurate on standard test sets but fail miserably in the real world when those shortcuts are absent.

Post-hoc explanation methods, such as LIME, SHAP, or Integrated Gradients, are often touted as debugging tools to catch these issues. However, current evaluations of these tools suffer from two major flaws:

  1. The Ground-Truth Problem: There is no standardized collection of "buggy" models where the underlying error is known, making it difficult to compare different explanation methods objectively.
  2. The Efficiency Problem: Most studies focus on instances where a bug is already known to exist. In practice, a developer must sift through thousands of correct predictions to find the few "right for the wrong reasons" cases. If an explanation method is effective but requires excessive manual review, its utility is limited.

Benchmarking via Decoy Datasets

To address these gaps, this paper proposes a framework for benchmarking explanation utility using Decoy Datasets. Instead of searching for bugs in existing models, researchers should intentionally inject "decoys" (artificial decision rules) into training data to create models that are "right for the wrong reasons."

The authors define several formal properties for these decoys:

  • Applicability ($a$): The number of instances affected by the decoy.
  • Productivity ($p_d$): How much the decoy helps the model minimize its loss function compared to the intended signal.
  • Coverage ($c_d$): The signal strength (fraction of the total dataset containing the decoy).

Furthermore, decoys must be Adoptable (simpler or more productive than intended features) and Natural (adhering to linguistic properties so they are not immediately obvious to a human without the aid of an explanation).

Case Study: Natural vs. Unnatural Decoys

The authors demonstrate these concepts using the Stanford Sentiment Treebank (SST). They critique previous approaches that used "unnatural" decoys, such as inserting the word "text" into positive reviews. Because this makes the sentences grammatically incorrect, humans can spot the bug easily without complex explanations.

Comparison of model explanations for original sequences (left) and sequences with an 'unnatural' decoy word 'text' injected (right).

In contrast, they propose a "natural" decoy: removing the word "movie" from all negative reviews. The model then learns that the presence of the word "movie" is a strong signal for a "positive" sentiment—a shortcut that is linguistically natural but logically flawed. This type of decoy necessitates the use of post-hoc explanations to reveal the model's reliance on the word "movie" rather than the actual sentiment of the text.

Key Insights and Results

  • Utility $\neq$ Accuracy: An explanation might perfectly represent model behavior, but if it doesn't lead a developer to a faster fix, its utility is low. The benchmark focuses on how quickly a human-in-the-loop can identify the specific decoy injected.
  • The Selection Gap: Instance selection (which examples are shown to the developer) is as critical as the explanation method itself. In their natural decoy setup, a developer sampling instances uniformly has less than a 3.3% chance of seeing an instance that reveals the bug.
  • Model Deception: A BERT-base model trained on the natural decoy dataset saw its performance on the original (non-decoy) test set drop to 47.5% (random chance), proving it had completely adopted the spurious "movie" rule despite appearing accurate on the decoyed training data.

Future Outlook

As a vision paper, this work sets the stage for a full benchmark collection of buggy models and decoy datasets. Future research will focus on developing more sophisticated instance selection algorithms (like "Submodular Pick") and conducting large-scale user studies to validate which explanation types lead to the fastest "aha!" moments for developers trying to fix shortcut learning.

Summary updated

Abstract

Post-hoc explanation methods are an important class of approaches that help understand the rationale underlying a trained model's decision. But how useful are they for an end-user towards accomplishing a given task? In this vision paper, we argue the need for a benchmark to facilitate evaluations of the utility of post-hoc explanation methods. As a first step to this end, we enumerate desirable properties that such a benchmark should possess for the task of debugging text classifiers. Additionally, we highlight that such a benchmark facilitates not only assessing the effectiveness of explanations but also their efficiency.
BibTeX
@inproceedings{idahl2021towards,
  author = {Maximilian Idahl and Lijun Lyu and Ujwal Gadiraju and Avishek Anand},
  title = {{Towards Benchmarking the Utility of Explanations for Model Debugging}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
}
Figure