English

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

Machine Learning 2023-10-26 v1

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.

Keywords

Cite

@article{arxiv.2310.16076,
  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},
  journal= {arXiv preprint arXiv:2310.16076},
  year   = {2023}
}

Comments

Accepted to EMNLP 2023 (short paper)

R2 v1 2026-06-28T13:00:39.717Z