Interpreting Language Models with Contrastive Explanations
Not on the map. Why?
Abstract (arXiv)
Model interpretability methods are often used to explain NLP model decisions on tasks such as text classification, where the output space is relatively small. However, when applied to language generation, where the output space often consists of tens of thousands of tokens, these methods are unable to provide informative explanations. Language models must consider various features to predict a token, such as its part of speech, number, tense, or semantics. Existing explanation methods conflate evidence for all these features into a single explanation, which is less interpretable for human understanding. To disentangle the different decisions in language modeling, we focus on explaining language models contrastively: we look for salient input tokens that explain why the model predicted one token instead of another. We demonstrate that contrastive explanations are quantifiably better than non-contrastive explanations in verifying major grammatical phenomena, and that they significantly improve contrastive model simulatability for human observers. We also identify groups of contrastive decisions where the model uses similar evidence, and we are able to characterize what input tokens models use during various language generation decisions.
Key facts. Cited by 92 papers in the map (data through 14 Oct 2026). Builds on 23 of its 36 references that are in the map. First posted on arXiv 21 Feb 2022.
Builds on
23 of 36 references.
References · 23
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,416
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
- 2016Not Just a Black Box: Learning Important Features Through Propagating Activation Differencescited by 297
- 2018Analysis Methods in Neural Language Processing: A Surveycited by 277
- 2016Understanding Neural Networks through Representation Erasurecited by 224
- 2018Marian: Fast Neural Machine Translation in C++cited by 203
- 2015Visualizing and Understanding Neural Models in NLPcited by 200
- 2020Evaluating Explainable AI: Which Algorithmic Explanations Help Users Predict Model Behavior?cited by 190
11 more
- 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 156
- 2021Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Modelscited by 131
- 2020Evaluating Explanations: How much do explanations from the teacher aid students?cited by 94
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
- 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 59
- 2018Do Explanations make VQA Models more Predictable to a Human?cited by 52
- 2014Extraction of Salient Sentences from Labelled Documentscited by 50
- 2021When Does Translation Require Context? A Data-driven, Multilingual Explorationcited by 36
- 2019Fine-grained Sentiment Analysis with Faithful Attentioncited by 23
- 2021Do Context-Aware Translation Models Pay the Right Attention?cited by 21
Built on by
Citing papers per year: 2022: 4; 2023: 27; 2024: 23; 2025: 22; 2026: 16.
92 papers.
Sort:
By area:
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 401
- 2023Faithful Chain-of-Thought Reasoningcited by 288
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 130
- 2024Aligner: Efficient Alignment by Learning to Correctcited by 98
- 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2024LLM-based NLG Evaluation: Current Status and Challengescited by 73
- 2023Post Hoc Explanations of Language Models Can Improve Language Modelscited by 50
- 2023Explaining How Transformers Use Context to Build Predictionscited by 43
- 2023How are Prompts Different in Terms of Sensitivity?cited by 35
- 2023Interpreting Pretrained Language Models via Concept Bottleneckscited by 33
38 more
- 2023Analyzing Chain-of-Thought Prompting in Large Language Models via Gradient-based Feature Attributionscited by 32
- 2024MambaLRP: Explaining Selective State Space Sequence Modelscited by 32
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2025Is Conversational XAI All You Need? Human-AI Decision Making With a Conversational XAI Assistantcited by 26
- 2024Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generationcited by 25
- 2024On the Similarity of Circuits across Languages: a Case Study on the Subject-verb Agreement Taskcited by 24
- 2024AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attributioncited by 23
- 2024Explainable Generative AI (GenXAI): A Survey, Conceptualization, and Research Agendacited by 22
- 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Languagecited by 18
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documentscited by 17
- 2025LinguaLens: Towards Interpreting Linguistic Mechanisms of Large Language Models via Sparse Auto-Encodercited by 14
- 2025Learning to Attribute with Attentioncited by 13
- 2023Surfacing Biases in Large Language Models using Contrastive Input Decodingcited by 11
- 2023Rather a Nurse than a Physician -- Contrastive Explanations under Investigationcited by 11
- 2023ALMANACS: A Simulatability Benchmark for Language Model Explainabilitycited by 11
- 2025A Close Look at Decomposition-based XAI-Methods for Transformer Language Modelscited by 11
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
- 2025On the Consistency of Multilingual Context Utilization in Retrieval-Augmented Generationcited by 10
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2024Facilitating Human-LLM Collaboration through Factuality Scores and Source Attributionscited by 9
- 2023Feature Interactions Reveal Linguistic Structure in Language Modelscited by 8
- 2023Explaining with Contrastive Phrasal Highlighting: A Case Study in Assisting Humans to Detect Translation Differencescited by 8
- 2022Mediators: Conversational Agents Explaining NLP Model Behaviorcited by 7
- 2023Causal interventions expose implicit situation models for commonsense language understandingcited by 7
- 2023Quantifying the Plausibility of Context Reliance in Neural Machine Translationcited by 7
- 2023On the Interplay between Fairness and Explainabilitycited by 7
- 2024Interactive Prompt Debugging with Sequence Saliencecited by 6
- 2024Unveiling and Manipulating Prompt Influence in Large Language Modelscited by 6
- 2025Dagger Behind Smile: Fool LLMs with a Happy Ending Storycited by 6
- 2025GrAInS: Gradient-based Attribution for Inference-Time Steering of LLMs and VLMscited by 6
- 2023Faithfulness Measurable Masked Language Modelscited by 5
- 2024LLM Attributor: Interactive Visual Attribution for LLM Generationcited by 5
- 2024A Comparative Analysis of Counterfactual Explanation Methods for Text Classifierscited by 5
- 2024Attention with Dependency Parsing Augmentation for Fine-Grained Attributioncited by 5
- 2022Extend and Explain: Interpreting Very Long Language Modelscited by 4
- 2023Explanation-aware Soft Ensemble Empowers Large Language Model In-context Learningcited by 4
- 2023Attribution and Alignment: Effects of Local Context Repetition on Utterance Production and Comprehension in Dialoguecited by 4
- 2023TaCo: Targeted Concept Erasure Prevents Non-Linear Classifiers From Detecting Protected Attributescited by 4
50 most cited of 92 All 92 (JSON)
- 2026Mind the Gaps: From Failure Attribution to Closed-Form Repair of Code Language Models4 Oct 2026
- 2026Auditing Agent Actions through Query-Conditioned Attribution27 Sep 2026
- 2026Does a model's stated reason for rejecting a candidate do any work?24 Sep 2026
- 2026Scaling Attention Head Analysis via Gradient-Based Attribution in Context-Aware Machine Translation23 Sep 2026
- 2026Conversational versus Dashboard Explainable AI for UAV Intrusion Detection: An Empirical Study of Operator Trust and Reliance11 Aug 2026
- 2026Interpreting Black-Box Large Language Models with Sentence-Level Energy Landscapes3 Aug 2026
- 2026Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations14 Jun 2026
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classification8 Jun 2026
- 2026The Attribution Contract for Generative Language Models21 May 2026
- 2026Explaining GAND: A Resource on Gender-Ambiguous Natural Data & Contrastive Attribution6 May 2026
- 2026Understanding the Prompt Sensitivity20 Apr 2026
- 2026Contrastive Attribution in the Wild: An Interpretability Analysis of LLM Failures on Realistic Benchmarks20 Apr 2026
38 more
- 2026Unifying Formal Explanations: A Complexity-Theoretic Perspective20 Feb 2026
- 2026Quantifying Retriever-Generator Alignment in RAG with Local Explanations29 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphs17 Dec 2025
- 2025What Triggers my Model? Contrastive Explanations Inform Gender Choices by Translation Models9 Dec 2025
- 2025Orthographic Constraint Satisfaction and Human Difficulty Alignment in Large Language Models26 Nov 2025
- 2025Imperceptible Jailbreaking against Large Language Models6 Oct 2025
- 2025The Unheard Alternative: Contrastive Explanations for Speech-to-Text Models30 Sep 2025
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?26 Sep 2025
- 2025How Instruction-Tuning Imparts Length Control: A Cross-Lingual Mechanistic Analysis2 Sep 2025
- 2025GrAInS: Gradient-based Attribution for Inference-Time Steering of LLMs and VLMs24 Jul 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation21 May 2025
- 2025Contextures: Representations from Contexts2 May 2025
- 2025Learning to Attribute with Attention18 Apr 2025
- 2025On the Consistency of Multilingual Context Utilization in Retrieval-Augmented Generation1 Apr 2025
- 2025Conceptual Contrastive Edits in Textual and Vision-Language Retrieval1 Mar 2025
- 2025LinguaLens: Towards Interpreting Linguistic Mechanisms of Large Language Models via Sparse Auto-Encoder27 Feb 2025
- 2025A Close Look at Decomposition-based XAI-Methods for Transformer Language Models21 Feb 2025
- 2025B-cos LM: Efficiently Transforming Pre-trained Language Models for Improved Explainability18 Feb 2025
- 2025Conversational Explanations: Discussing Explainable AI with Non-AI Experts16 Feb 2025
- 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language13 Feb 2025
- 2025Which Words Matter Most in Zero-Shot Prompts?5 Feb 2025
- 2025Is Conversational XAI All You Need? Human-AI Decision Making With a Conversational XAI Assistant29 Jan 2025
- 2025Dagger Behind Smile: Fool LLMs with a Happy Ending Story19 Jan 2025
- 2024Attention with Dependency Parsing Augmentation for Fine-Grained Attribution16 Dec 2024
- 2024A Context-aware Framework for Translation-mediated Conversations5 Dec 2024
- 2024NormXLogit: The Head-on-Top Never Lies25 Nov 2024
- 2024AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attribution22 Nov 2024
- 2024A Comparative Analysis of Counterfactual Explanation Methods for Text Classifiers4 Nov 2024
- 2024On Explaining with Attention Matrices24 Oct 2024
- 2024On the Similarity of Circuits across Languages: a Case Study on the Subject-verb Agreement Task9 Oct 2024
- 2024Differentiating Choices via Commonality for Multiple-Choice Question Answering21 Aug 2024
- 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Models21 Aug 2024
- 2024Optimal and efficient text counterfactuals using Graph Neural Networks4 Aug 2024
- 2024Black Big Boxes: Tracing Adjective Order Preferences in Large Language Models2 Jul 2024
- 2024Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation19 Jun 2024
50 newest of 92 All 92 (JSON)
- 2023Faithful Chain-of-Thought Reasoningcited by 288
- 2023Analyzing Chain-of-Thought Prompting in Large Language Models via Gradient-based Feature Attributionscited by 32
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documentscited by 17
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphscited by 3
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphs17 Dec 2025
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documents3 Dec 2023
- 2023Analyzing Chain-of-Thought Prompting in Large Language Models via Gradient-based Feature Attributions25 Jul 2023
- 2023Faithful Chain-of-Thought Reasoning31 Jan 2023
- 2026The Attribution Contract for Generative Language Modelscited by 0
- 2026The Attribution Contract for Generative Language Models21 May 2026
- 2024MambaLRP: Explaining Selective State Space Sequence Modelscited by 32
- 2024MambaLRP: Explaining Selective State Space Sequence Models11 Jun 2024
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 401
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 130
- 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2024LLM-based NLG Evaluation: Current Status and Challengescited by 73
- 2023Post Hoc Explanations of Language Models Can Improve Language Modelscited by 50
- 2023Explaining How Transformers Use Context to Build Predictionscited by 43
- 2023How are Prompts Different in Terms of Sensitivity?cited by 35
- 2023Interpreting Pretrained Language Models via Concept Bottleneckscited by 33
- 2025Is Conversational XAI All You Need? Human-AI Decision Making With a Conversational XAI Assistantcited by 26
- 2024On the Similarity of Circuits across Languages: a Case Study on the Subject-verb Agreement Taskcited by 24
12 most cited of 71 All 71 (JSON)
- 2026Mind the Gaps: From Failure Attribution to Closed-Form Repair of Code Language Models4 Oct 2026
- 2026Does a model's stated reason for rejecting a candidate do any work?24 Sep 2026
- 2026Scaling Attention Head Analysis via Gradient-Based Attribution in Context-Aware Machine Translation23 Sep 2026
- 2026Conversational versus Dashboard Explainable AI for UAV Intrusion Detection: An Empirical Study of Operator Trust and Reliance11 Aug 2026
- 2026Interpreting Black-Box Large Language Models with Sentence-Level Energy Landscapes3 Aug 2026
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classification8 Jun 2026
- 2026Explaining GAND: A Resource on Gender-Ambiguous Natural Data & Contrastive Attribution6 May 2026
- 2026Understanding the Prompt Sensitivity20 Apr 2026
- 2026Unifying Formal Explanations: A Complexity-Theoretic Perspective20 Feb 2026
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025What Triggers my Model? Contrastive Explanations Inform Gender Choices by Translation Models9 Dec 2025
- 2025Orthographic Constraint Satisfaction and Human Difficulty Alignment in Large Language Models26 Nov 2025
12 newest of 71 All 71 (JSON)