Can Mechanistic Interpretability Help Explain LLM Agent Failures? A Case Study on Web Element Hallucination
On the map: LLM agents and tool use → Agent threats, guardrails and governance also fits: General LLM agent frameworks and benchmarks
also in 1 more
Abstract (arXiv)
Mechanistic Interpretability (MI) has made significant progress in explaining the internal computations of Large Language Models (LLMs); however, these advances have yet to demonstrate comparable success in explaining the decision-making processes of LLM-based agents. This paper examines the challenges MI tools face when applied to realistic agentic failures. We focus on one such failure: web agents hallucinating actions that are not available on a website. We apply a series of mechanistic analyzes to Qwen2.5-7B-Instruct as it interacts with live websites. We find that a linear probe trained on the last prompt token can predict hallucinations before generation begins (0.80 AUC) and steering along a probe direction corrects 85% of hallucinations, but disrupts 7% of valid actions. However, these results only provide a partial explanation of why the agent hallucinates. The probe direction is sensitive to prompt formatting, losing much of its steering effect after a minor change to how actions are represented. Additionally, circuit identification can be difficult as the computation is distributed across multiple components and positions, and the information the agent relies on varies across examples. We discuss how these observations challenge the assumptions underlying standard MI methods for circuit discovery and feature identification, and outline future directions for making these methods better suited to explain failures in LLM-based agents.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 51 of its 87 references that are in the map. Submitted 13 Nov 2026.
Builds on
51 of 87 references.
Closest ancestors · 1
Same direction, newest first
Other references · 50
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,607
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,424
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,270
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,269
- 2023Steering Language Models With Activation Engineeringcited by 1,128
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,106
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 787
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
38 more
- 2025Why Do Multi-Agent LLM Systems Fail?cited by 703
- 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 489
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 458
- 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 450
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 345
- 2025An Illusion of Progress? Assessing the Current State of Web Agentscited by 196
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 172
- 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 159
- 2025SAEBench: A Comprehensive Benchmark for Sparse Autoencoders in Language Model Interpretabilitycited by 155
- 2025Where LLM Agents Fail and How They can Learn From Failurescited by 153
- 2021Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Modelscited by 138
- 2025Are Sparse Autoencoders Useful? A Case Study in Sparse Probingcited by 137
- 2023AutoTAMP: Autoregressive Task and Motion Planning with LLMs as Translators and Checkerscited by 121
- 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 121
- 2025Superintelligent Agents Pose Catastrophic Risks: Can Scientist AI Offer a Safer Path?cited by 87
- 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 60
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 58
- 2023Can Large Language Models be Good Path Planners? A Benchmark and Investigation on Spatial-temporal Reasoningcited by 51
- 2024Steering Large Language Models using Conceptors: Improving Addition-Based Activation Engineeringcited by 46
- 2026Do Sparse Autoencoders Capture Concept Manifolds?cited by 43
- 2021Counterfactual Explanations in Sequential Decision Making Under Uncertaintycited by 38
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectoriescited by 37
- 2024Towards Universality: Studying Mechanistic Similarity Across Language Model Architecturescited by 33
- 2024Unlocking the Future: Exploring Look-Ahead Planning Mechanistic Interpretability in Large Language Modelscited by 24
- 2025How does Chain of Thought Think? Mechanistic Interpretability of Chain-of-Thought Reasoning with Sparse Autoencodingcited by 23
- 2025An Empirical Study on Failures in Automated Issue Solvingcited by 23
- 2025AutoSDT: Scaling Data-Driven Discovery Tasks Toward Open Co-Scientistscited by 14
- 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Modelscited by 13
- 2026Why Do LLM-based Web Agents Fail? A Hierarchical Planning Perspectivecited by 11
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMscited by 10
- 2026Stop Probing, Start Coding: Why Linear Probes and Sparse Autoencoders Fail at Compositional Generalisationcited by 10
- 2024Look Further Ahead: Testing the Limits of GPT-4 in Path Planningcited by 9
- 2026Activation Steering via Generative Causal Mediationcited by 9
- 2024Evaluating Vision-Language Models as Evaluators in Path Planningcited by 8
- 2024Counterfactual Effect Decomposition in Multi-Agent Sequential Decision Makingcited by 7
- 2026Hallucinations Undermine Trust; Metacognition is a Way Forwardcited by 7
- 2026RPMS: Enhancing LLM-Based Embodied Planning through Rule-Augmented Memory Synergycited by 5
- 2025Internal Planning in Language Models: Characterizing Horizon and Branch Awarenesscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Hallucination Cascade: Analyzing Error Propagation in Multi-Agent LLM Systems
- 2026Closed-World Resolution Against Tool Hallucination in LLM Agents
- 2026Internal Representations as Indicators of Hallucinations in Agent Tool Selection
- 2025MIRAGE-Bench: LLM Agent is Hallucinating and Where to Find Them
- 2025Mitigating Hallucination in Large Language Models (LLMs): An Application-Oriented Survey on RAG, Reasoning, and Agentic Systems
- 2026AgentHallu: Benchmarking Automated Hallucination Attribution of LLM-based Agents
- 2026Causally Grounded Mechanistic Interpretability for LLMs with Faithful Natural-Language Explanations
- 2026The Hallucination Snowball: Modeling Error Propagation as State Transitions in Multi-Agent LLM Pipelines