Reproduce “Going Beyond Linear Transformers with Recurrent Fast Weight Programmers” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Kazuki Irie, Imanol Schlag, Róbert Csordás, Jürgen Schmidhuber

Recurrent Fast Weight Programmers (RFWPs) generalize linear Transformers by integrating recurrence into a Fast Weight Programmer framework, enabling linear time/space complexity with unbounded memory. These models match or exceed LSTMs on algorithmic tasks and most Atari reinforcement learning environments, while achieving competitive language modeling performance with full context.

Key insights

  • Modern linear Transformers are specific, simplified instances of the decades-old Fast Weight Programmer (FWP) concept, providing a unifying theoretical framework for sequence models.
  • Integrating recurrence into both the 'slow' and 'fast' networks within the FWP framework creates architectures that combine the linear complexity of linear Transformers with the unbounded memory capacity and sequential processing capabilities of RNNs.
  • Neural networks can successfully learn to program the weights of more complex fast networks (e.g., recurrent LSTMs), leading to highly adaptable and powerful sequence models capable of handling mutable memory and long-range dependencies.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.