Memory Augmented Large Language Models are Computationally Universal

Dale Schuurmans
1/10/2023
cs.CLcs.FL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We show that transformer-based large language models are computationally universal when augmented with an external memory. Any deterministic language model that conditions on strings of bounded length is equivalent to a finite automaton, hence computationally limited.

Show full abstract

However, augmenting such models with a read-write memory creates the possibility of processing arbitrarily large inputs and, potentially, simulating any algorithm. We establish that an existing large language model, Flan-U-PaLM 540B, can be combined with an associative read-write memory to exactly simulate the execution of a universal Turing machine, $U_{15,2}$. A key aspect of the finding is that it does not require any modification of the language model weights. Instead, the construction relies solely on designing a form of stored instruction computer that can subsequently be programmed with a specific set of prompts.

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. 1 weaker match is hidden by default — 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{schuurmans2023memory,
  title  = {Memory Augmented Large Language Models are Computationally Universal},
  author = {Dale Schuurmans},
  year   = {2023},
  eprint = {2301.04589},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.04589v1}
}

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/2301.04589.svg)](https://codeofpaper.com/paper/2301.04589)

Discussion