Skip to content
Back to the collection

Memory Augmented Large Language Models are Computationally Universal

Dale Schuurmans

2023 · arXiv

Read the paper
HN score
0
Mentions
8
Readers
5
Months
6
What’s in a score?

From the 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. 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.

Metadata: arXiv. Abstracts retain their original authors’ rights.

In the conversation

Original HN comments, with labels from simple text rules. A label describes the whole comment and may miss context or irony. Read the discussion to make up your own mind. About the labels

8 selected excerpts · 8 total mentions

Gomotono
Neutral mention · rule
I do. This is the newest thng i'm aware of: https://www.percepta.ai/blog/can-llms-be-computers But there were papers in 2023 with a different approach requiring external memory https://arxiv.org/abs/2301.04589 too
og_kalu
Neutral mention · rule
Transformers with memory can abstract recursively in theory. https://arxiv.org/abs/2301.04589. If it's just extra computation that's the kick then simply more tokens will suffice. You can even even implement a computation token if you wish. https://arxiv.org/abs/2310.02226 Frankly, the ability to truly abstract recursively is by no means necessary either. Humans can't actually do this. Either in every day practice (you will get bored, you will lose interest) or in theory (flawed memory, finite memory, you will die). Limited recursive abilities =/ trivial recursive abilities. The current state of the art is easily general enough by actual testable definitions/baselines.
macawfish
Neutral mention · rule
Well I don't understand the nitroglycerin reference and of course "computationally universal" doesn't mean "sentient" but the point is when you add the external memory they (Flan-U-PaLM 540B to be specific) have been demonstrated to be capable of simulating a specific, well defined Turing machine without special training. There are some other papers out there arguing this from a theoretical angle too, but this is the one whose title I quoted: https://arxiv.org/abs/2301.04589
mad0
Neutral mention · rule
It does to some degree. Some people have shown that you can prompt GPT to behave like shell or python interpreter. Then you can "execute" some statements, of course to some degree of saneness. However I'm not sure if it does in this particular case where we ask it for explanation. Also see this paper: https://arxiv.org/pdf/2301.04589.pdf tldr if we equip LLM models with infinite memory it becomes Turing complete.
og_kalu
Neutral mention · rule
The significance of the paper is moreso the implications of how far ICL can take you rather than the ease/viability of the solution proposed. Sure there are better methods for arithmetic but arithmetic is extremely quantifiable with rigid steps. What happens when you step out of that kind of domain ? Like the above blog. or Code documentation. For example, you can paste new documentation in a gpt-4 instance and it will use it for your queries as if it trained on it. Basically Memory Augmented Large Language Models are Computationally Universal https://arxiv.org/abs/2301.04589. and you kind of get the feeling of that from the previous paper.
macawfish
Neutral mention · rule
The "predicting words" part of the language models is a building block, but the actual applications being built around the LLMs are using that predictive ability in very dynamic ways along with external memory, feedback and sophisticated control methods to attenuate and channel their behavior. And anyhow: > Memory Augmented Large Language Models are Computationally Universal https://arxiv.org/abs/2301.04589

Keep following the thread.

More in Language models

More from the same topics.