Deep learning models, including Transformers, CNNs, and LSTMs, have achieved state-of-the-art performance across nearly all Natural Language Processing (NLP) tasks. However, their "black box" nature makes it difficult to understand how they process semantics, handle negations, or resolve ambiguities. This review provides a structured taxonomy of interpretability methods, categorizing techniques into training-based, test-based, and hybrid approaches to navigate the complex landscape of Explainable AI (XAI) in NLP.
The Challenge of NLP Interpretability
Unlike computer vision, where saliency can be mapped to continuous pixels, NLP deals with discrete tokens (words). This makes identifying the "reason" behind a prediction more complex. As AI is increasingly deployed in high-stakes domains like healthcare and law, the need for systematic, comparable, and evaluable interpretation techniques has become paramount. This paper addresses the need to sort and compare these diverse techniques.
A Taxonomy of Interpretation Methods
The authors organize the field along two primary axes: the timing of the interpretation and the source of the evidence used for explanation.
Joint vs. Post-hoc Methods
- Joint methods build the interpretation mechanism directly into the model architecture (e.g., using interpretable units or specific attention mechanisms).
- Post-hoc methods involve probing an already-trained model to figure out what it learned without altering its original structure.
Training, Test, and Hybrid Approaches
The second axis focuses on what information is used to generate the explanation:
- Test-based: Answers which parts of the input text (e.g., specific words) caused a prediction. Common techniques include saliency maps and attention weights.
- Training-based: Identifies which training examples caused the model to make a specific prediction, often using Influence Functions or KNN-based retrieval in latent space.
- Hybrid: Combines both, identifying salient words in a test input and the specific training examples that taught the model to focus on those words.
Key Insights and Debates
The review highlights several critical areas of ongoing research and controversy:
- The Attention Debate: There is significant disagreement over whether attention weights serve as faithful explanations. While some researchers show that attention weights don't always correlate with feature importance, others argue that within the full architecture, they provide meaningful insights.
- BERT as a Linguist: Probing models like BERT reveals that they naturally learn classical linguistic structures—such as part-of-speech tags and dependency relations—without explicit supervision.
- Explanation Indeterminacy: Simple saliency scores often fail to explain why a choice was made. This is driving a shift toward Explanation Generation, where models are trained to output human-readable rationales (e.g., "I predicted 'positive' because the phrase 'visually stunning' outweighs the word 'long'").
Quantitative Progress
The field has seen significant technical progress, aggregated across various benchmarks like SST-2, e-SNLI, and the ERASER suite:
- Algorithmic Efficiency: Newer tweaks like FastIF have achieved 80x speedups in calculating influence functions, making training-data attribution feasible for modern large language models.
- Syntactic Probing: Attention probes have shown up to 85.8% accuracy in extracting syntax directly from self-attention weights.
- Rationale Extraction: Extractive models have demonstrated that they can maintain high classification accuracy while relying on only concise, human-verifiable snippets of text.
Challenges and Future Directions
Despite these successes, the authors note several critical open problems. The field lacks a formal, mathematical definition of "interpretability," and evaluation remains highly subjective. Furthermore, different methods often produce contradictory results for the same prediction. Finally, while classification interpretability is maturing, extending these techniques to complex generative tasks like summarization or dialogue remains a massive open challenge.
Summary updated