用递归快速加权程序超越线性Transformers
Going Beyond Linear Transformers with Recurrent Fast Weight Programmers
摘要:
具有线性化注意力的Transformers(“线性transformers”)已经证明了90年代基于外积的快速权重编程器(FWP)的实际可扩展性和有效性。然而,原始的FWP公式比线性Transformers公式更通用:一个缓慢的神经网络(NN)不断地重新编程具有任意结构的快速NN的权重。在现有的线性Transformers中,两个NN都是前馈的并且由单层组成。在这里,我们通过向慢网和快网添加递归来探索新的变化。我们评估我们的新的经常性FWP(RFWP)的两个合成算法任务(代码执行和顺序ListOps),Wikitext-103语言模型,和Atari 2600 2D游戏环境。我们的模型展示了Transformers和RNN的特性。在强化学习设置中,我们报告了几个Atari游戏中LSTM的大幅改进。代码是公开的。
英文摘要:
Transformers with linearised attention (''linear Transformers'') have demonstrated the practical scalability and effectiveness of outer product-based Fast Weight Programmers (FWPs) from the '90s. However, the original FWP formulation is more general than the one of linear Transformers: a slow neural network (NN) continually reprograms the weights of a fast NN with arbitrary architecture. In existing linear Transformers, both NNs are feedforward and consist of a single layer. Here we explore new variations by adding recurrence to the slow and fast nets. We evaluate our novel recurrent FWPs (RFWPs) on two synthetic algorithmic tasks (code execution and sequential ListOps), Wikitext-103 language models, and on the Atari 2600 2D game environment. Our models exhibit properties of Transformers and RNNs. In the reinforcement learning setting, we report large improvements over LSTM in several Atari games. Our code is public.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。