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

关于用于可解释性的双线性层的技术说明

A technical note on bilinear layers for interpretability

Conjecture(康杰科彻尔(注:Conjecture为AI安全研究机构,暂无通用标准译名,采用音译))

Lee Sharkey

AI总结:

该研究针对神经网络超叠加导致的可解释性难题,分析了双线性层的数学特性,证明其可通过线性运算和三阶张量表示,可整合进此前仅支持纯注意力transformer的电路框架,为机制可解释性和安全研究提供新路径。

摘要:

神经网络能够表征比神经元数量更多的特征,这一特性使其解释工作颇具挑战。这种被称为“超叠加(superposition)”的现象,推动了研究者们寻找比带有逐元素激活函数的标准多层感知器(MLPs)更具可解释性的架构。在本技术说明中,我研究了双线性层(bilinear layers)——这是一类MLP层,在数学上更易于分析,同时性能优于标准MLP。尽管双线性层是其输入的非线性函数,我证明了它可以仅通过线性运算和三阶张量来表示。我们可以将双线性层的这一表达式整合到transformer电路(transformer circuits)的数学框架中,而该框架此前仅适用于纯注意力transformer。这些结果表明,双线性层在数学上比现有架构更易于分析,因此或许能让我们更正式地探讨神经网络中的电路,从而带来更深入的安全洞见。此外,双线性层可能为机制可解释性提供另一条路径:通过理解特征构建的机制,而非枚举大模型中(可能呈指数级增长的)大量特征。

英文摘要:

The ability of neural networks to represent more features than neurons makes interpreting them challenging. This phenomenon, known as superposition, has spurred efforts to find architectures that are more interpretable than standard multilayer perceptrons (MLPs) with elementwise activation functions. In this note, I examine bilinear layers, which are a type of MLP layer that are mathematically much easier to analyze while simultaneously performing better than standard MLPs. Although they are nonlinear functions of their input, I demonstrate that bilinear layers can be expressed using only linear operations and third order tensors. We can integrate this expression for bilinear layers into a mathematical framework for transformer circuits, which was previously limited to attention-only transformers. These results suggest that bilinear layers are easier to analyze mathematically than current architectures and thus may lend themselves to deeper safety insights by allowing us to talk more formally about circuits in neural networks. Additionally, bilinear layers may offer an alternative path for mechanistic interpretability through understanding the mechanisms of feature construction instead of enumerating a (potentially exponentially) large number of features in large models.

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

↑