arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.18514cs.AIcs.CL
收藏

机制可解释性能否帮助解释大语言模型智能体的失败?一项关于网页元素幻觉的案例研究

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

George Mason University(乔治梅森大学);Tel Aviv University(特拉维夫大学)

Mohamed Aghzal, Mor Geva, Gregory J. Stein, Ziyu Yao

AI总结:

本文以网页元素幻觉为案例,研究机制可解释性(MI)在解释LLM智能体失败时的挑战,发现线性探针可提前预测并纠正多数幻觉但存在局限,指出MI方法需适配智能体失败解释的未来方向。

摘要:

机制可解释性(MI)在解释大语言模型(LLM)的内部计算方面已取得显著进展,但这些进展尚未在解释基于LLM的智能体的决策过程中展现出同等的成功。本文研究将MI工具应用于现实智能体失败案例时面临的挑战,聚焦于其中一类失败:网页智能体生成网站上不存在的动作的幻觉。我们对与真实网站交互的Qwen2.5-7B-Instruct模型应用了一系列机制分析,发现基于最后一个提示词标记训练的线性探针能够在生成开始前预测幻觉(AUC为0.80),沿探针方向进行引导可纠正85%的幻觉,但会干扰7%的有效动作。然而,这些结果仅提供了智能体为何产生幻觉的部分解释:探针方向对提示词格式敏感,在对动作表示方式进行微小更改后,其引导效果会大幅丧失;此外,由于计算分布在多个组件和位置,且智能体依赖的信息随示例变化,电路识别工作存在困难。我们讨论了这些观察结果如何对标准MI方法在电路发现和特征识别方面的假设构成挑战,并概述了使这些方法更适合解释基于LLM的智能体失败的未来方向。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑