Is Attention Explanation? An Introduction to the Debate

Adrien Bibal, Rémi Cardon, David Alfter, Rodrigo Wilkens, Xiaoou Wang, Thomas François, Patrick WatrinACL 2022

Abstract

This paper synthesizes the ongoing debate in the Natural Language Processing (NLP) community regarding the interpretability of attention mechanisms. While attention weights are frequently used as post-hoc explanations for model behavior, recent research has questioned their faithfulness. We categorize the literature into thematic frameworks, examining diagnostic analyses, task-specific nuances, and evaluation methodologies. The survey highlights the distinction between faithfulness and plausibility and explores technical and human-in-the-loop solutions to improve model transparency.

Introduction

In the quest to open the "black box" of deep learning, researchers initially gravitated toward attention mechanisms. Because attention weights (the $\alpha$ values) visually highlight which parts of an input the model "focuses" on, they were widely adopted as a built-in explanation for model behavior.

However, a rift formed in the NLP community around 2019. Some researchers argued that attention is a "mirage" of explanation—showing that you can often scramble these weights without changing the model's output. Others countered that just because an explanation isn't exclusive doesn't mean it isn't faithful. This paper addresses the fragmentation of this debate, bringing together disparate viewpoints from theoretical analysis, human evaluation, and architectural design to provide a holistic map of the current landscape.

Methodology and Scope

As a survey paper, the authors do not propose a new algorithm but instead develop a thematic framework to categorize the literature. The review encompasses a wide array of standard NLP benchmarks, including Text Classification (SST, Topic classification), Natural Language Inference (SNLI), Question Answering (SQuAD), Sequence-to-Sequence (Machine Translation), and Syntactic Tasks (Dependency parsing and PoS tagging).

The literature is categorized into five main themes:

  1. The "Attention is/is not Explanation" Clash: Summarizing the seminal debate between Jain & Wallace and Wiegreffe & Pinter.
  2. Diagnostic Analyses: Examining why attention fails, such as "combinatorial shortcuts" where models focus on irrelevant but correlated tokens.
  3. Task-Specific Nuances: Investigating why attention seems more faithful in syntax-heavy tasks compared to simple classification.
  4. Evaluation Methodology: Critiquing measures of explanation, specifically Consistency, Faithfulness, and Plausibility.
  5. Technical & Human-in-the-loop Solutions: Reviewing methods to "fix" attention, such as regularizing weights or training models to match human gaze patterns.
Summary of literature categorized by task, architecture, and relevant sections.

Key Insights

Faithfulness vs. Plausibility

A crucial distinction identified in the literature is between faithfulness and plausibility. An explanation is faithful if it accurately reflects the model's internal logic, whereas it is plausible if it makes sense to a human. Attention is often plausible (it looks right to us) without being faithful (it is not actually what drove the prediction).

"An" vs. "The" Explanation

A model might have multiple internal pathways to reach the same conclusion. Proving that a different set of attention weights could produce the same result doesn't necessarily mean the original weights weren't the ones the model actually used.

Combinatorial Shortcuts and Task Dependency

Models may use attention to focus on "uninteresting" tokens (like punctuation) if they are statistically correlated with a label, bypassing semantic meaning. Furthermore, attention appears to be a more faithful explanation for structural/syntactic tasks than for high-level reasoning. In Transformers, earlier layers often handle broad context, while later layers focus on specific syntactic relationships.

Results and Synthesis

Quantitative findings from the field reveal several challenges:

  • Correlation Gaps: Multiple studies found poor correlation between attention weights and other feature importance methods like Gradients or Leave-One-Out (LOO) measures.
  • Decision Flips: Removing "important" features identified by attention often fails to flip the model's prediction as effectively as gradient-based methods.
  • Human Agreement: Despite technical doubts, human judges show high agreement (Cohen’s $\kappa > 0.8$) on which words should be attended to. This suggests that "supervised attention"—forcing models to look where humans look—can bridge the gap between performance and interpretability.

Limitations and Future Directions

The primary limitation in current research is a lack of common ground. Researchers use different embeddings, architectures, and evaluation metrics, making cross-paper comparisons difficult.

Future work should focus on: * Effective Attention: Moving beyond raw weights to account for transformations applied to values. * Supervised Attention: Integrating human rationales directly into training to create models that are both high-performing and truly explainable. * Causal Frameworks: Adopting non-causal explanation paradigms to better evaluate the explanatory power of attention in complex networks.

Summary updated

BibTeX
@inproceedings{bibal2022is,
  author = {Adrien Bibal and Rémi Cardon and David Alfter and Rodrigo Wilkens and Xiaoou Wang and Thomas François and Patrick Watrin},
  title = {{Is Attention Explanation? An Introduction to the Debate}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.269},
}
Figure