跳到正文
arXiv (AI + Vision + Imaging)· Mohamed Aghzal, Mor Geva, Gregory J. Stein, Ziyu Yao·· 10 天前AI 评分30

机制可解释性能否解释LLM Agent失败?基于Web元素幻觉的案例研究

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

AI 导读

研究将机制可解释性(MI)工具用于Qwen2.5-7B-Instruct与真实网站交互时的Web元素幻觉问题。基于最后一个prompt token训练的线性探针可在生成前预测幻觉(0.80 AUC),沿探针方向引导可纠正85%的幻觉,但会破坏7%的有效动作。探针方向对prompt格式敏感,动作表示方式稍作改动后引导效果大幅下降,且计算分散于多个组件和位置,电路识别困难。

正文 · 原文

arXiv:2611.18514v1 Announce Type: new Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org