Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions

Kazuki Irie, Róbert Csordás, Jürgen Schmidhuber
10/24/2023
cs.LG

No confident code implementation found for this paper.

Abstract

Recent studies of the computational power of recurrent neural networks (RNNs) reveal a hierarchy of RNN architectures, given real-time and finite-precision assumptions. Here we study auto-regressive Transformers with linearised attention, a.k.a. linear Transformers (LTs) or Fast Weight Programmers (FWPs). LTs are special in the sense that they are equivalent to RNN-like sequence processors with a fixed-size state, while they can also be expressed as the now-popular self-attention networks. We show that many well-known results for the standard Transformer directly transfer to LTs/FWPs. Our formal language recognition experiments demonstrate how recently proposed FWP extensions such as recurrent FWPs and self-referential weight matrices successfully overcome certain limitations of the LT, e.g., allowing for generalisation on the parity problem. Our code is public.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{irie2023practical,
  title  = {Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions},
  author = {Kazuki Irie and Róbert Csordás and Jürgen Schmidhuber},
  year   = {2023},
  eprint = {2310.16076},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.16076v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.16076.svg)](https://codeofpaper.com/paper/2310.16076)

Discussion