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

线性Transformers是秘密快速重量编程器

Linear Transformers Are Secretly Fast Weight Programmers

The Swiss AI Lab IDSIA(瑞士人工智能实验室IDSIA);USI(瑞士意大利语区大学);SUPSI(瑞士意大利语区应用科学大学)

Imanol Schlag, Kazuki Irie, Jürgen Schmidhuber

摘要:

我们展示了90年代早期线性化自我注意机制和快速权重控制器的形式等价性,其中“慢”神经网络通过梯度下降学习,通过基本编程指令序列对另一个网络的"快权重”进行编程,这些指令是自我发明的激活模式(今天称为键和值)的附加外产品。这种快速权重程序员(FWP)学习操纵有限内存的内容,并动态地与之交互。我们推断最近线性化的softmax注意力变体的内存容量限制,并将纯加法外积替换为类似delta规则的编程指令,这样FWP可以更容易地学习纠正当前从键到值的映射。FWP还学习计算动态变化的学习率。我们还提出了一个新的核函数来线性化注意力,平衡简单性和有效性。我们对合成检索问题以及标准机器翻译和语言建模任务进行了实验,这些实验证明了我们方法的好处。

英文摘要:

We show the formal equivalence of linearised self-attention mechanisms and fast weight controllers from the early '90s, where a ``slow" neural net learns by gradient descent to program the ``fast weights" of another net through sequences of elementary programming instructions which are additive outer products of self-invented activation patterns (today called keys and values). Such Fast Weight Programmers (FWPs) learn to manipulate the contents of a finite memory and dynamically interact with it. We infer a memory capacity limitation of recent linearised softmax attention variants, and replace the purely additive outer products by a delta rule-like programming instruction, such that the FWP can more easily learn to correct the current mapping from keys to values. The FWP also learns to compute dynamically changing learning rates. We also propose a new kernel function to linearise attention which balances simplicity and effectiveness. We conduct experiments on synthetic retrieval problems as well as standard machine translation and language modelling tasks which demonstrate the benefits of our methods.

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

↑