arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.14997cs.LG
收藏

迈向面向机制可解释性的自动化电路发现

Towards Automated Circuit Discovery for Mechanistic Interpretability

UCL(伦敦大学学院);University of Cambridge(剑桥大学);FAR AI

Arthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim, Adrià Garriga-Alonso

AI总结:

本文系统化机制可解释性流程,并提出ACDC等算法自动发现Transformer计算图中实现指定行为的电路,在GPT-2 Small的Greater-Than电路上成功复现人工发现结果。

摘要:

通过大量的努力与直觉,近期若干工作已对Transformer模型的非平凡行为进行了逆向工程。本文系统化了它们所遵循的机制可解释性流程。首先,研究者选择一个能够引发期望模型行为的指标和数据集。然后,他们应用激活修补(activation patching)来找出哪些抽象神经网络单元参与了该行为。通过改变所研究的数据集、指标和单元,研究者可以理解每个组件的功能。我们自动化了该流程中的一个步骤:在模型的计算图中识别实现指定行为的电路。我们提出了若干算法,并通过复现先前的可解释性结果来验证它们。例如,ACDC算法在GPT-2 Small中重新发现了一个计算Greater-Than操作的电路的5/5组件类型。ACDC在GPT-2 Small的32,000条边中选择了68条边,这些边全部由先前工作人工发现。我们的代码可在https://github.com/ArthurConmy/Automatic-Circuit-Discovery获取。

英文摘要:

Through considerable effort and intuition, several recent works have reverse-engineered nontrivial behaviors of transformer models. This paper systematizes the mechanistic interpretability process they followed. First, researchers choose a metric and dataset that elicit the desired model behavior. Then, they apply activation patching to find which abstract neural network units are involved in the behavior. By varying the dataset, metric, and units under investigation, researchers can understand the functionality of each component. We automate one of the process' steps: to identify the circuit that implements the specified behavior in the model's computational graph. We propose several algorithms and reproduce previous interpretability results to validate them. For example, the ACDC algorithm rediscovered 5/5 of the component types in a circuit in GPT-2 Small that computes the Greater-Than operation. ACDC selected 68 of the 32,000 edges in GPT-2 Small, all of which were manually found by previous work. Our code is available at https://github.com/ArthurConmy/Automatic-Circuit-Discovery.

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

↑