Learning to Deceive with Attention-Based Explanations

Danish Pruthi, Mansi Gupta, Bhuwan Dhingra, Graham Neubig, Zachary C. Lipton
9/17/2019
221 citations
cs.CLcs.LG
transformer-attention

Official code: danishpruthi/deceptive-attention (18 stars, PLSQL, last commit 2021-01-22).

Abstract

Attention mechanisms are ubiquitous components in neural architectures applied to natural language processing. In addition to yielding gains in predictive accuracy, attention weights are often claimed to confer interpretability, purportedly useful both for providing insights to practitioners and for explaining why a model makes its decisions to stakeholders.

Show full abstract

We call the latter use of attention mechanisms into question by demonstrating a simple method for training models to produce deceptive attention masks. Our method diminishes the total weight assigned to designated impermissible tokens, even when the models can be shown to nevertheless rely on these features to drive predictions. Across multiple models and tasks, our approach manipulates attention weights while paying surprisingly little cost in accuracy. Through a human study, we show that our manipulated attention-based explanations deceive people into thinking that predictions from a model biased against gender minorities do not rely on the gender. Consequently, our results cast doubt on attention's reliability as a tool for auditing algorithms in the context of fairness and accountability.

View on arXivView PDF

Code Implementations(1)

Code & Data for the paper "Learning to Deceive with Attention-Based Explanations"

185PLSQL, PythonApr 4, 20205 years ago

Similar Papers

Cite this paper

@article{pruthi2019learning,
  title  = {Learning to Deceive with Attention-Based Explanations},
  author = {Danish Pruthi and Mansi Gupta and Bhuwan Dhingra and Graham Neubig and Zachary C. Lipton},
  year   = {2019},
  eprint = {1909.07913},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.07913}
}

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

Discussion