Attention is not Explanation

By Sarthak Jain, Byron C. Wallace. 2019

1,871 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Yejin Choi
  4. Yonatan Belinkov
  5. Noah A. Smith
  6. Percy Liang
  7. Graham Neubig
  8. Jianfeng Gao

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Mohit Bansal
  3. Dacheng Tao
  4. Trevor Darrell
  5. Xiaogang Wang
  6. Andrew Zisserman
  7. Ming-Hsuan Yang
  8. Yi Yang

In Safety, Robustness & Interpretability

  1. Yulia Tsvetkov
  2. Yonatan Belinkov
  3. Noah A. Smith
  4. Ana Marasovic
  5. Sarah Wiegreffe
  6. Yoav Goldberg
  7. Eric Wallace
  8. Yejin Choi

Citations in the corpus