arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.16112cs.LGcond-mat.dis-nn
收藏

自注意力作为吸引子网络:无需反向传播的瞬态记忆

Self-attention as an attractor network: transient memories without backpropagation

University of Rome Sapienza(罗马智慧大学)

Francesco D'Amico, Matteo Negri

AI总结:

本文提出将自注意力层表示为局部能量项的导数,利用与伪似然的类比设计无需反向传播训练的循环模型,为从物理学视角理解Transformers提供了新的吸引子网络框架。

摘要:

Transformers 是现代神经网络中最成功的架构之一。其核心是所谓的注意力机制,最近引起了物理学界的兴趣,因为在某些情况下它可以被写成能量函数的导数:虽然可以将交叉注意力层写成现代 Hopfield 网络,但对于 GPT 架构和其他自回归模型中使用的自注意力,这是不可能的。在这项工作中,我们表明可以将自注意力层作为局部能量项的导数来获得,这些局部能量项类似于伪似然。我们利用与伪似然的类比设计了一个无需反向传播即可训练的循环模型:其动力学表现出与训练和测试样本都强相关的瞬态。总体而言,我们提出了一个将自注意力解释为吸引子网络的新颖框架,可能为受物理学启发的新理论方法来理解 transformers 铺平道路。

英文摘要:

Transformers are one of the most successful architectures of modern neural networks. At their core there is the so-called attention mechanism, which recently interested the physics community as it can be written as the derivative of an energy function in certain cases: while it is possible to write the cross-attention layer as a modern Hopfield network, the same is not possible for the self-attention, which is used in the GPT architectures and other autoregressive models. In this work we show that it is possible to obtain the self-attention layer as the derivative of local energy terms, which resemble a pseudo-likelihood. We leverage the analogy with pseudo-likelihood to design a recurrent model that can be trained without backpropagation: the dynamics shows transient states that are strongly correlated with both train and test examples. Overall we present a novel framework to interpret self-attention as an attractor network, potentially paving the way for new theoretical approaches inspired from physics to understand transformers.

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

↑