Evaluating the Faithfulness of Importance Measures in NLP by Recursively Masking Allegedly Important Tokens and Retraining

Andreas Madsen, Nicholas Meade, Vaibhav Adlakha, Siva Reddy
10/15/2021
cs.CLcs.AIcs.LG

Official code: AndreasMadsen/nlp-roar-interpretability (22 stars, Python, MIT, last commit 2023-03-03).

Abstract

To explain NLP models a popular approach is to use importance measures, such as attention, which inform input tokens are important for making a prediction. However, an open question is how well these explanations accurately reflect a model's logic, a property called faithfulness.

Show full abstract

To answer this question, we propose Recursive ROAR, a new faithfulness metric. This works by recursively masking allegedly important tokens and then retraining the model. The principle is that this should result in worse model performance compared to masking random tokens. The result is a performance curve given a masking-ratio. Furthermore, we propose a summarizing metric using relative area-between-curves (RACU), which allows for easy comparison across papers, models, and tasks. We evaluate 4 different importance measures on 8 different datasets, using both LSTM-attention models and RoBERTa models. We find that the faithfulness of importance measures is both model-dependent and task-dependent. This conclusion contradicts previous evaluations in both computer vision and faithfulness of attention literature.

View on arXivView PDF

Code Implementations(1)

MIT

Measuring if attention is explanation with ROAR

221Python, ShellNov 21, 20203 years agoMIT

Similar Papers

Cite this paper

@article{madsen2021evaluating,
  title  = {Evaluating the Faithfulness of Importance Measures in NLP by Recursively Masking Allegedly Important Tokens and Retraining},
  author = {Andreas Madsen and Nicholas Meade and Vaibhav Adlakha and Siva Reddy},
  year   = {2021},
  eprint = {2110.08412},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.08412}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.08412.svg)](https://codeofpaper.com/paper/2110.08412)

Discussion