Contrastive Attribution in the Wild: An Interpretability Analysis of LLM Failures on Realistic Benchmarks
On the map: Mechanistic interpretability → Knowledge and representations inside LLMs
Abstract (arXiv)
Interpretability tools are increasingly used to analyze failures of Large Language Models (LLMs), yet prior work largely focuses on short prompts or toy settings, leaving their behavior on commonly used benchmarks underexplored. To address this gap, we study contrastive, LRP-based attribution as a practical tool for analyzing LLM failures in realistic settings. We formulate failure analysis as textitcontrastive attribution, attributing the logit difference between an incorrect output token and a correct alternative to input tokens and internal model states, and introduce an efficient extension that enables construction of cross-layer attribution graphs for long-context inputs. Using this framework, we conduct a systematic empirical study across benchmarks, comparing attribution patterns across datasets, model sizes, and training checkpoints. Our results show that this token-level contrastive attribution can yield informative signals in some failure cases, but is not universally applicable, highlighting both its utility and its limitations for realistic LLM failure analysis. Our code is available at: https://aka.ms/Debug-XAI.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Knowledge and representations inside LLMs, one of 13 directions in Mechanistic interpretability. Builds on 51 of its 85 references that are in the map. First posted on arXiv 20 Apr 2026.
Builds on
51 of 85 references.
Closest ancestors · 2
Same direction, newest first
- 2025Stream: Scaling up Mechanistic Interpretability to Long Context in LLMs via Sparse Attention22 Oct
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methods27 Sep
Other references · 49
- 2017Attention Is All You Needcited by 60,361
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
37 more
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2017SmoothGrad: removing noise by adding noisecited by 1,109
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 900
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
- 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 612
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 384
- 2020Explaining by Removing: A Unified Framework for Model Explanationcited by 218
- 2024How to use and interpret activation patchingcited by 214
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 200
- 2023Localizing Model Behavior with Path Patchingcited by 195
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 185
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 120
- 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 111
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 95
- 2022Interpreting Language Models with Contrastive Explanationscited by 92
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2024Evaluating Language Models for Efficient Code Generationcited by 73
- 2024Knowledge Circuits in Pretrained Transformerscited by 60
- 2024Spectral Filters, Dark Signals, and Attention Sinkscited by 56
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 51
- 2014Extraction of Salient Sentences from Labelled Documentscited by 50
- 2024From Understanding to Utilization: A Survey on Explainability for Large Language Modelscited by 48
- 2025I Have Covered All the Bases Here: Interpreting Reasoning Features in Large Language Models via Sparse Autoencoderscited by 45
- 2023Explaining How Transformers Use Context to Build Predictionscited by 43
- 2024AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attributioncited by 23
- 2025Verifying Chain-of-Thought Reasoning via Its Computational Graphcited by 20
- 2025Token-Importance Guided Direct Preference Optimizationcited by 14
- 2025A Close Look at Decomposition-based XAI-Methods for Transformer Language Modelscited by 11
- 2025From Reasoning to Answer: Empirical, Attention-Based and Mechanistic Insights into Distilled DeepSeek R1 Modelscited by 6
- 2026ErrorMap and ErrorAtlas: Charting the Failure Landscape of Large Language Modelscited by 6
- 2025Diagnosing Failures in Large Language Models' Answers: Integrating Error Attribution into Evaluation Frameworkcited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Is my model perplexed for the right reason? Contrasting LLMs' Benchmark Behavior with Token-Level Perplexity
- 2025Where Did It Go Wrong? Attributing Undesirable LLM Behaviors via Representation Gradient Tracing
- 2026How Language Models Fail: Token-Level Signatures of Committed and Persistent Reasoning Failures
- 2026LLM attribution analysis across different fine-tuning strategies and model scales for automated code compliance
- 2025Can LLMs Detect Their Confabulations? Estimating Reliability in Uncertainty-Aware Language Models
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMs
- 2026Context Dependence and Reliability in Autoregressive Language Models
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning