Linear Transformers Are Secretly Fast Weight Programmers

By Imanol Schlag, Kazuki Irie, J. Urgen Schmidhuber. International Conference on Machine Learning, 2021

474 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Electrical and Electronic Engineering

View Paper: https://www.semanticscholar.org/paper/1a703f08da01cf737cce3fb9064259b3f4b44e9c

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Percy Liang
  3. Michael Lewis
  4. Sergey Levine
  5. Mohit Bansal
  6. Quoc V. Le
  7. Denny Zhou
  8. Jianfeng Gao

In Electrical and Electronic Engineering

  1. Luke S. Zettlemoyer
  2. Johannes von Oswald
  3. Adrian Weller
  4. Dale Schuurmans
  5. Krzysztof Marcin Choromanski
  6. Tengyu Ma
  7. Jacob Andreas
  8. Bailin Wang

Citations in the corpus