mlsanityData to 24 Nov 2026

Can Mechanistic Interpretability Help Explain LLM Agent Failures? A Case Study on Web Element Hallucination

arXiv 2611.18514 ↗Submitted 13 Nov 2026cs.AI cs.CLcited by 0

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

  1. 2024A Trembling House of Cards? Mapping Adversarial Attacks against Language Agents15 Feb

Other references · 50

  1. 2022Locating and Editing Factual Associations in GPTcited by 2,951
  2. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
  4. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,607
  5. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,424
  6. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,270
  7. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,269
  8. 2023Steering Language Models With Activation Engineeringcited by 1,128
  9. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,106
  10. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
  11. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 787
  12. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
38 more
  1. 2025Why Do Multi-Agent LLM Systems Fail?cited by 703
  2. 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 489
  3. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 458
  4. 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 450
  5. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 345
  6. 2025An Illusion of Progress? Assessing the Current State of Web Agentscited by 196
  7. 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 172
  8. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 159
  9. 2025SAEBench: A Comprehensive Benchmark for Sparse Autoencoders in Language Model Interpretabilitycited by 155
  10. 2025Where LLM Agents Fail and How They can Learn From Failurescited by 153
  11. 2021Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Modelscited by 138
  12. 2025Are Sparse Autoencoders Useful? A Case Study in Sparse Probingcited by 137
  13. 2023AutoTAMP: Autoregressive Task and Motion Planning with LLMs as Translators and Checkerscited by 121
  14. 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 121
  15. 2025Superintelligent Agents Pose Catastrophic Risks: Can Scientist AI Offer a Safer Path?cited by 87
  16. 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 60
  17. 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 58
  18. 2023Can Large Language Models be Good Path Planners? A Benchmark and Investigation on Spatial-temporal Reasoningcited by 51
  19. 2024Steering Large Language Models using Conceptors: Improving Addition-Based Activation Engineeringcited by 46
  20. 2026Do Sparse Autoencoders Capture Concept Manifolds?cited by 43
  21. 2021Counterfactual Explanations in Sequential Decision Making Under Uncertaintycited by 38
  22. 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectoriescited by 37
  23. 2024Towards Universality: Studying Mechanistic Similarity Across Language Model Architecturescited by 33
  24. 2024Unlocking the Future: Exploring Look-Ahead Planning Mechanistic Interpretability in Large Language Modelscited by 24
  25. 2025How does Chain of Thought Think? Mechanistic Interpretability of Chain-of-Thought Reasoning with Sparse Autoencodingcited by 23
  26. 2025An Empirical Study on Failures in Automated Issue Solvingcited by 23
  27. 2025AutoSDT: Scaling Data-Driven Discovery Tasks Toward Open Co-Scientistscited by 14
  28. 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Modelscited by 13
  29. 2026Why Do LLM-based Web Agents Fail? A Hierarchical Planning Perspectivecited by 11
  30. 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMscited by 10
  31. 2026Stop Probing, Start Coding: Why Linear Probes and Sparse Autoencoders Fail at Compositional Generalisationcited by 10
  32. 2024Look Further Ahead: Testing the Limits of GPT-4 in Path Planningcited by 9
  33. 2026Activation Steering via Generative Causal Mediationcited by 9
  34. 2024Evaluating Vision-Language Models as Evaluators in Path Planningcited by 8
  35. 2024Counterfactual Effect Decomposition in Multi-Agent Sequential Decision Makingcited by 7
  36. 2026Hallucinations Undermine Trust; Metacognition is a Way Forwardcited by 7
  37. 2026RPMS: Enhancing LLM-Based Embodied Planning through Rule-Augmented Memory Synergycited by 5
  38. 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

  1. 2026Hallucination Cascade: Analyzing Error Propagation in Multi-Agent LLM Systems
  2. 2026Closed-World Resolution Against Tool Hallucination in LLM Agents
  3. 2026Internal Representations as Indicators of Hallucinations in Agent Tool Selection
  4. 2025MIRAGE-Bench: LLM Agent is Hallucinating and Where to Find Them
  5. 2025Mitigating Hallucination in Large Language Models (LLMs): An Application-Oriented Survey on RAG, Reasoning, and Agentic Systems
  6. 2026AgentHallu: Benchmarking Automated Hallucination Attribution of LLM-based Agents
  7. 2026Causally Grounded Mechanistic Interpretability for LLMs with Faithful Natural-Language Explanations
  8. 2026The Hallucination Snowball: Modeling Error Propagation as State Transitions in Multi-Agent LLM Pipelines