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

Transformer 电路忠实度指标不具备鲁棒性

Transformer Circuit Faithfulness Metrics are not Robust

FAR AI

Joseph Miller, Bilal Chughtai, William Saunders

AI总结:

本研究发现Transformer电路忠实度衡量方法对消融方法的微小变化高度敏感,指出现有分数受方法选择和电路本身共同影响,呼吁明确电路相关主张,并开源了包含多种消融与电路发现算法的auto-circuit库。

摘要:

机制可解释性研究旨在对神经网络内部习得的算法进行逆向工程。该领域的一个研究重点是发现“电路”——即完整模型中能够解释特定任务行为的子图。但我们该如何衡量这类电路的性能?此前的研究尝试衡量电路的“忠实度”,即电路复现完整模型性能的程度。在本研究中,我们调研了通过消融模型部分计算来衡量电路忠实度的实验设计所需考虑的诸多因素。令人担忧的是,我们发现现有方法对消融方法中看似微不足道的变化高度敏感。我们得出结论:现有的电路忠实度分数既反映了研究人员的方法选择,也反映了电路的实际组成——电路所需执行的任务取决于用于测试它的消融方式。机制可解释性研究的最终目标是理解神经网络,因此我们强调,需要更清晰地阐明关于电路的精确主张。我们在 https://github.com/UFO-101/auto-circuit 开源了一个库,其中包含多种消融方法和电路发现算法的高效实现。

英文摘要:

Mechanistic interpretability work attempts to reverse engineer the learned algorithms present inside neural networks. One focus of this work has been to discover 'circuits' -- subgraphs of the full model that explain behaviour on specific tasks. But how do we measure the performance of such circuits? Prior work has attempted to measure circuit 'faithfulness' -- the degree to which the circuit replicates the performance of the full model. In this work, we survey many considerations for designing experiments that measure circuit faithfulness by ablating portions of the model's computation. Concerningly, we find existing methods are highly sensitive to seemingly insignificant changes in the ablation methodology. We conclude that existing circuit faithfulness scores reflect both the methodological choices of researchers as well as the actual components of the circuit - the task a circuit is required to perform depends on the ablation used to test it. The ultimate goal of mechanistic interpretability work is to understand neural networks, so we emphasize the need for more clarity in the precise claims being made about circuits. We open source a library at https://github.com/UFO-101/auto-circuit that includes highly efficient implementations of a wide range of ablation methodologies and circuit discovery algorithms.

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

↑