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

图解张量记号法导论:面向机制可解释性

An introduction to graphical tensor notation for mechanistic interpretability

School of Mathematics and Physics, University of Queensland(昆士兰大学数学与物理学院)

Jordan K. Taylor

AI总结:

本文介绍图解张量记号法,用于机制可解释性,帮助直观理解张量运算,并应用于分解及语言模型电路分析,如归纳头电路。

摘要:

图解张量记号法是一种简洁的表示张量线性运算的方法,源自物理学。现代深度学习几乎完全由张量之间或张量内部的运算组成,因此轻松理解张量运算对于理解这些系统至关重要。这在试图逆向工程神经网络所学算法以理解其行为时尤为关键,该领域被称为机制可解释性。人们常常容易混淆张量之间发生的运算,并忽视整体结构,但图解张量记号法使人们能够一目了然地解析事物并看到有趣的等价关系。本文前半部分介绍该记号法并将其应用于一些分解(SVD、CP、Tucker和张量网络分解),后半部分将其应用于一些现有的理解语言模型的基础方法,大致遵循《Transformer电路数学框架》,然后用图解张量记号法构建一个示例“归纳头”电路。

英文摘要:

Graphical tensor notation is a simple way of denoting linear operations on tensors, originating from physics. Modern deep learning consists almost entirely of operations on or between tensors, so easily understanding tensor operations is quite important for understanding these systems. This is especially true when attempting to reverse-engineer the algorithms learned by a neural network in order to understand its behavior: a field known as mechanistic interpretability. It's often easy to get confused about which operations are happening between tensors and lose sight of the overall structure, but graphical tensor notation makes it easier to parse things at a glance and see interesting equivalences. The first half of this document introduces the notation and applies it to some decompositions (SVD, CP, Tucker, and tensor network decompositions), while the second half applies it to some existing some foundational approaches for mechanistically understanding language models, loosely following ``A Mathematical Framework for Transformer Circuits'', then constructing an example ``induction head'' circuit in graphical tensor notation.

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

↑