QUACKIE: A NLP Classification Task With Ground Truth Explanations

Yves Rychener, Xavier Renard, Djamé Seddah, Pascal Frossard, Marcin DetynieckiarXiv 2020

Abstract

NLP Interpretability aims to increase trust in model predictions. This makes evaluating interpretability approaches a pressing issue. There are multiple datasets for evaluating NLP Interpretability, but their dependence on human provided ground truths raises questions about their unbiasedness. In this work, we take a different approach and formulate a specific classification task by diverting question-answering datasets. For this custom classification task, the interpretability ground-truth arises directly from the definition of the classification problem. We use this method to propose a benchmark and lay the groundwork for future research in NLP interpretability by evaluating a wide range of current state of the art methods.

Introduction

In the field of NLP interpretability, a significant tension exists between plausibility—how much an explanation makes sense to a human—and faithfulness—how accurately the explanation reflects the model's internal decision-making process. Most current benchmarks rely on human-annotated "rationales," which are segments of text humans deem important. However, models often rely on different features than humans do, such as statistical shortcuts. If a model uses a shortcut, a human-centric explanation might appear "good" to a user while being factually incorrect about the model's actual logic. The QUACKIE framework addresses this by creating an objective, non-human-biased ground truth for evaluating interpretability methods.

Methodology: The Diverted Task

The core innovation of QUACKIE is the "diverted task" approach. Instead of evaluating a model on a standard task where "importance" is subjective, the authors repurpose extractive Question Answering (QA) datasets into a binary classification task.

The QUACKIE diverted task architecture, transforming extractive QA into a binary classification problem.

In this setup, a classifier predicts whether a context $C$ contains the answer to a question $Q$. By design, if the model correctly predicts "Yes," the most important part of the input must be the sentence containing the answer. Removing this sentence would cause the answer to disappear, fundamentally changing the model's prediction. This provides a mathematically locked ground truth: the "signal" is the answer-bearing sentence.

To evaluate word-level interpretability methods against this sentence-level ground truth, the authors aggregate word scores using either the sum or max function. They employ three primary metrics:

  • Intersection over Union (IoU): Measures the accuracy of identifying the "important" sentence.
  • Highest Precision for Detection (HPD): Evaluates if the ground-truth sentence is ranked highest by the model.
  • Signal to Noise Ratio (SNR): Quantifies the score difference between the "important" sentence and the rest of the text.

Experimental Setup

The benchmark suite, named QUACKIE (QUestion and Answering for Classification tasK Interpretability Evaluation), primarily uses SQuAD 2.0. To ensure robustness across domains and writing styles, it also incorporates SQuADShifts, which includes New Wiki, NYT, Reddit, and Amazon datasets.

Results and Discussion

The evaluation revealed a significant performance gap between "White-Box" methods (which utilize model gradients) and "Black-Box" methods (which rely solely on outputs).

IoU performance across different interpretability methods, showing the superiority of gradient-based approaches.

White-Box Superiority

Gradient-based methods like Saliency (Gradient) and Integrated Gradients consistently outperformed sampling-based methods. For instance, Saliency maps achieved IoU scores above 0.90 on SQuAD, whereas black-box methods like LIME and SHAP struggled to reach comparable fidelity.

Sampling Sensitivity

For LIME and SHAP, performance is highly sensitive to the number of samples. Using a small number of samples (e.g., 10) for speed leads to very poor explanation fidelity. Significant improvements were seen when increasing to 100 samples, though they still lagged behind gradient-based methods.

Domain Variance

Performance was generally lower on noisier datasets like Reddit and Amazon. This suggests that informal language makes it more difficult for both the classification models and the interpretability algorithms to isolate the relevant signal.

Conclusion

QUACKIE provides a framework where models are judged solely on whether their explanations identify the data that actually drove the prediction, rather than how well they align with human intuition. While the current method assumes a single-sentence rationale and focuses on true positives, it lays the groundwork for more objective interpretability evaluation. Future research should extend this to complex multi-hop reasoning and more efficient black-box methods.

Summary updated

BibTeX
@misc{rychener2020quackie,
  author = {Yves Rychener and Xavier Renard and Djamé Seddah and Pascal Frossard and Marcin Detyniecki},
  title = {{QUACKIE: A NLP Classification Task With Ground Truth Explanations}},
  year = {2020},
  eprint = {2012.13190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.13190},
}
Figure