Double Trouble: How to not explain a text classifier's decisions using counterfactuals synthesized by masked language models?

Thang M. Pham, Trung Bui, Long Mai, Anh Nguyen
10/22/2021
cs.CLcs.AI

Official code: anguyen8/im (5 stars, Python, last commit 2022-10-11).

Abstract

A principle behind dozens of attribution methods is to take the prediction difference between before-and-after an input feature (here, a token) is removed as its attribution. A popular Input Marginalization (IM) method (Kim et al., 2020) uses BERT to replace a token, yielding more plausible counterfactuals.

Show full abstract

While Kim et al. (2020) reported that IM is effective, we find this conclusion not convincing as the DeletionBERT metric used in their paper is biased towards IM. Importantly, this bias exists in Deletion-based metrics, including Insertion, Sufficiency, and Comprehensiveness. Furthermore, our rigorous evaluation using 6 metrics and 3 datasets finds no evidence that IM is better than a Leave-One-Out (LOO) baseline. We find two reasons why IM is not better than LOO: (1) deleting a single word from the input only marginally reduces a classifier's accuracy; and (2) a highly predictable word is always given near-zero attribution, regardless of its true importance to the classifier. In contrast, making LIME samples more natural via BERT consistently improves LIME accuracy under several ROAR metrics.

View on arXivView PDF

Code Implementations(1)

anguyen8/imOfficial100%

Code for [ Double Trouble: How to not explain a text classifier's decisions using counterfactuals synthesized by masked language models? ] AACL 2022 https://arxiv.org/abs/2110.11929

51Python, Rich Text FormatSep 14, 20214 years ago

Similar Papers

Cite this paper

@article{pham2021double,
  title  = {Double Trouble: How to not explain a text classifier's decisions using counterfactuals synthesized by masked language models?},
  author = {Thang M. Pham and Trung Bui and Long Mai and Anh Nguyen},
  year   = {2021},
  eprint = {2110.11929},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.11929}
}

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.11929.svg)](https://codeofpaper.com/paper/2110.11929)

Discussion