Attention Is Not Explanation. Jain, S. & Wallace, B. C.
Attention Is Not Explanation [link]Paper  abstract   bibtex   
Attention mechanisms have seen wide adoption in neural NLP models. In addition to improving predictive performance, these are often touted as affording transparency: models equipped with attention provide a distribution over attended-to input units, and this is often presented (at least implicitly) as communicating the relative importance of inputs. However, it is unclear what relationship exists between attention weights and model outputs. In this work, we perform extensive experiments across a variety of NLP tasks that aim to assess the degree to which attention weights provide meaningful `explanations' for predictions. We find that they largely do not. For example, learned attention weights are frequently uncorrelated with gradient-based measures of feature importance, and one can identify very different attention distributions that nonetheless yield equivalent predictions. Our findings show that standard attention modules do not provide meaningful explanations and should not be treated as though they do. Code for all experiments is available at https://github.com/successar/AttentionExplanation.
@article{jainAttentionNotExplanation2019,
  archivePrefix = {arXiv},
  eprinttype = {arxiv},
  eprint = {1902.10186},
  primaryClass = {cs},
  title = {Attention Is Not {{Explanation}}},
  url = {http://arxiv.org/abs/1902.10186},
  abstract = {Attention mechanisms have seen wide adoption in neural NLP models. In addition to improving predictive performance, these are often touted as affording transparency: models equipped with attention provide a distribution over attended-to input units, and this is often presented (at least implicitly) as communicating the relative importance of inputs. However, it is unclear what relationship exists between attention weights and model outputs. In this work, we perform extensive experiments across a variety of NLP tasks that aim to assess the degree to which attention weights provide meaningful `explanations' for predictions. We find that they largely do not. For example, learned attention weights are frequently uncorrelated with gradient-based measures of feature importance, and one can identify very different attention distributions that nonetheless yield equivalent predictions. Our findings show that standard attention modules do not provide meaningful explanations and should not be treated as though they do. Code for all experiments is available at https://github.com/successar/AttentionExplanation.},
  urldate = {2019-04-05},
  date = {2019-02-26},
  keywords = {Computer Science - Artificial Intelligence,Computer Science - Computation and Language},
  author = {Jain, Sarthak and Wallace, Byron C.},
  file = {/home/dimitri/Nextcloud/Zotero/storage/3K7ULXYM/Jain and Wallace - 2019 - Attention is not Explanation.pdf;/home/dimitri/Nextcloud/Zotero/storage/K7N98VCP/1902.html}
}

Downloads: 0