HackerPapers

arXiv:1908.04626cs.CL

Attention is not not Explanation

Sarah Wiegreffe, Yuval Pinter

Abstract

Attention mechanisms play a central role in NLP systems, especially within recurrent neural network (RNN) models. Recently, there has been increasing interest in whether or not the intermediate representations offered by these modules may be used to explain the reasoning for a model's prediction, and consequently reach insights regarding the model's decision-making process. A recent paper claims that `Attention is not Explanation' (Jain and Wallace, 2019). We challenge many of the assumptions underlying this work, arguing that such a claim depends on one's definition of explanation, and that testing it needs to take into account all elements of the model, using a rigorous experimental design. We propose four alternative tests to determine when/whether attention can be used as explanation: a simple uniform-weights baseline; a variance calibration based on multiple random seed runs; a diagnostic framework using frozen weights from pretrained models; and an end-to-end adversarial attention training protocol. Each allows for meaningful interpretation of attention mechanisms in RNN models. We show that even when reliable adversarial distributions can be found, they don't perform well on the simple diagnostic, indicating that prior work does not disprove the usefulness of attention mechanisms for explainability.

arXiv comments
Accepted to EMNLP 2019; related blog post at https://medium.com/@yuvalpinter/attention-is-not-not-explanation-dbc25b534017
Journal reference
DOI
Subjects
cs.CLComputation and Language

On Hacker News

Linked by 3 identifiable commenters in 3 comments across 3 threads, from Sep 2019 to Jan 2026.

Comments linking this paper, per year.

Discussed in comments3 threads

  1. The Q, K, V Matrices 1 comment
    • Read the third link / review paper, it is not at all the case that all attention is based on QKV projections. Your terms "sensitivity", "visibility", and "important" are too vague and lack any clear mathematical meaning, so IMO add nothing to any understanding. "Important" also…

      D-MachineView on HNParent context

    • The pair of these papers: (Don't read them in full.) 1.Attention is not explanation (https://arxiv.org/abs/1902.10186) 2.Attention is not not Explanation (https://arxiv.org/abs/1908.04626) Goes to show the complete lack of agreement between researchers in the explainability…

      screyeView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.