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

自动识别具有线性计算图的局部与全局电路

Automatically Identifying Local and Global Circuits with Linear Computation Graphs

Xuyang Ge, Fukang Zhu, Wentao Shu, Junxuan Wang, Zhengfu He, Xipeng Qiu

AI总结:

本文提出一种基于稀疏自编码器和Transcoders的线性计算图电路发现流程,无需线性近似即可识别GPT-2 Small中的括号、归纳和间接对象识别电路,并揭示新发现。

摘要:

对任何特定模型行为的电路分析是机制可解释性中的核心任务。我们引入了基于稀疏自编码器(SAEs)及其变体Transcoders的电路发现流程。将这两种模块插入模型后,模型相对于OV和MLP电路的计算图变得严格线性。我们的方法不需要线性近似即可计算每个节点的因果效应。这种细粒度图能够识别端到端和局部电路,这些电路分别解释logits或中间特征。我们可以通过一种称为层次归因(Hierarchical Attribution)的技术可扩展地应用此流程。我们在GPT-2 Small中分析了三类电路:括号、归纳和间接对象识别电路。我们的结果揭示了现有发现背后的新发现。

英文摘要:

Circuit analysis of any certain model behavior is a central task in mechanistic interpretability. We introduce our circuit discovery pipeline with Sparse Autoencoders (SAEs) and a variant called Transcoders. With these two modules inserted into the model, the model's computation graph with respect to OV and MLP circuits becomes strictly linear. Our methods do not require linear approximation to compute the causal effect of each node. This fine-grained graph identifies both end-to-end and local circuits accounting for either logits or intermediate features. We can scalably apply this pipeline with a technique called Hierarchical Attribution. We analyze three kinds of circuits in GPT-2 Small: bracket, induction, and Indirect Object Identification circuits. Our results reveal new findings underlying existing discoveries.

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

↑