Skip to main content
QUICK REVIEW

[Paper Review] Linear Transformers Are Secretly Fast Weight Memory Systems

Imanol Schlag, Kazuki Irie|arXiv (Cornell University)|Feb 22, 2021
Topic ModelingComputer Science44 references14 citations
TL;DR

This paper establishes a formal equivalence between linearised self-attention and fast weight memory systems from the 1990s, revealing a memory capacity limitation in current linear attention variants. It proposes a novel update rule and kernel function to enable dynamic memory manipulation, demonstrating improved performance on retrieval, translation, and language modeling tasks.

ABSTRACT

We show the formal equivalence of linearised self-attention mechanisms and fast weight memories from the early '90s. From this observation we infer a memory capacity limitation of recent linearised softmax attention variants. With finite memory, a desirable behaviour of fast weight memory models is to manipulate the contents of memory and dynamically interact with it. Inspired by previous work on fast weights, we propose to replace the update rule with an alternative rule yielding such behaviour. We also propose a new kernel function to linearise attention, balancing 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.

Motivation & Objective

  • To identify and address the memory capacity limitations in existing linearised softmax attention mechanisms.
  • To establish a formal equivalence between linearised self-attention and fast weight memory systems from the early 1990s.
  • To enable dynamic memory interaction by replacing the standard update rule with a more expressive alternative.
  • To design a new kernel function that balances simplicity and effectiveness in linearising attention.
  • To validate the proposed method on synthetic retrieval tasks and standard NLP benchmarks.

Proposed method

  • Proposes a new update rule for linear attention that enables dynamic manipulation of memory contents, inspired by fast weight memory mechanisms.
  • Introduces a novel kernel function to linearise the attention mechanism, improving the trade-off between simplicity and performance.
  • Leverages the formal equivalence between linearised self-attention and fast weight memories to reframe attention as a memory system with controllable dynamics.
  • Employs a modified weight update mechanism that allows the model to actively modify and interact with its internal memory state.
  • Applies the revised mechanism to sequence modeling tasks, including machine translation and language modeling, using standard benchmarks.

Experimental results

Research questions

  • RQ1Is there a formal mathematical equivalence between linearised self-attention and fast weight memory systems?
  • RQ2What are the limitations of current linearised softmax attention variants in terms of memory capacity and dynamics?
  • RQ3Can a modified update rule enable more effective and dynamic memory manipulation in attention mechanisms?
  • RQ4How does the proposed kernel function compare to existing approaches in balancing simplicity and effectiveness?
  • RQ5Does the improved memory dynamics lead to measurable gains on standard NLP benchmarks?

Key findings

  • Linearised self-attention mechanisms are formally equivalent to fast weight memory systems from the early 1990s.
  • Existing linearised softmax attention variants suffer from a fundamental memory capacity limitation due to their fixed update rule.
  • The proposed update rule enables dynamic interaction with memory, allowing manipulation of stored contents during inference.
  • The new kernel function improves the linearisation of attention while maintaining computational efficiency.
  • Experiments on synthetic retrieval tasks show the model can learn complex memory operations, such as associative recall.
  • On standard machine translation and language modeling tasks, the proposed method achieves competitive or improved performance over baselines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.