arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.13483cs.LGcs.AI
收藏

在语言模型中寻找可解释的提示特定电路

Finding Interpretable Prompt-Specific Circuits in Language Models

Department of Computer Science(计算机科学系);Boston University(波士顿大学);Faculty of Computing & Data Sciences(计算与数据科学学院)

Gabriel Franco, Lucas M. Tassis, Azalea Rohr, Mark Crovella

AI总结:

本文提出ACC++方法,用于识别语言模型中可解释的提示特定电路,通过分析注意力机制揭示模型行为,展示电路在不同任务中的可解释性及语言相关性。

摘要:

理解语言模型用于解决任务的内部电路仍然是机械可解释性中的核心挑战。寻找电路的关键部分是理解每个注意力头为何关注特定位置。为此,我们引入ACC++,一种基于注意力因果通信(ACC)原理的改进电路追踪方法,该方法识别信号,即导致注意力在token对上聚焦的低维子空间内容。ACC++从单次正向传递中提取电路,无需替换模型或修补。ACC++识别的电路由对模型注意力决策因果的组件以及用于它们之间的通信的低维信号组成。本文首先详细阐述ACC++相对于先前工作的概念进步。随后展示在多个模型中,ACC++信号的大量部分具有可解释性:许多信号允许简短的自然语言描述。接下来,通过ACC++揭示了通过ACC++的可解释电路获得的模型行为的新见解。首先,我们利用ACC++的可解释电路来表征间接对象识别(IOI)电路对提示结构的敏感性。我们发现提示特定的电路形成明确的聚类,跨聚类,头部接收到系统性不同的信号,对应于不同的IO名称识别机制。接着,在多语言IOI中,ACC++电路显示,尽管模型组件在不同语言中被重用,但信号往往语言特定。在四语言IOI案例研究中,跨语言电路距离与语言相关性一致。这些结果表明,ACC++能够揭示广泛模型行为的光谱。

英文摘要:

Understanding the internal circuits that language models use to solve tasks remains a central challenge in mechanistic interpretability. A crucial part of finding circuits is understanding why each attention head attends where it does. To this end, we introduce ACC++, an improved circuit-tracing method based on the principle of attention-causal communication (ACC) [1], which identifies signals, i.e., contents of low dimensional subspaces that cause attention on a token pair. ACC++ extracts circuits from a single forward pass, without replacement models or patching. Circuits identified by ACC++ consist of components that are causal for the model's attention decisions, together with the low-dimensional signals used to communicate between them. Here, we first detail the conceptual advances that ACC++ makes over previous work. We then show that across multiple models, a substantial portion of ACC++ signals are interpretable: many signals admit a short natural-language description. We next present a number of new insights into model behavior obtained via ACC++. First, we use ACC++'s interpretable circuits to characterize the sensitivity of indirect object identification (IOI) circuits to prompt structure. We find that prompt-specific circuits form well-defined clusters, and across clusters, heads receive systematically different signals corresponding to distinct mechanisms for identifying the IO name. Next, in multilingual IOI, ACC++ circuits show that while model components are reused across languages, signals are often language-specific. In a four-language IOI case study, cross-language circuit distances are consistent with linguistic relatedness. Together, these results show that ACC++ can shed light on a broad spectrum of model behaviors.

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

↑