Skip to content
Preprint

On the Turing Completeness of Transformers and Agents

Sep 2026 · 0 citations · 28 references
Computer Science

TL;DR

It is shown that a single fixed finite precision transformer cannot memorize certain Turing machines with inputs of arbitrary length, such as the arithmetic; and a single fixed infinite precision transformer trained with a random algorithm is not Turing complete with probability one under reasonable conditions.

Abstract

Transformers have emerged as the dominant architecture in sequence modeling, achieving remarkable success in natural language processing and reasoning tasks. While existing literature has established the Turing completeness of transformers under bounded input length, the reasoning power of a single transformer operating on inputs of unbounded length is not fully explored. In this paper, we theoretically investigate the reasoning limitations of a single transformer and the enhanced capabilities of agent systems. We show that a single fixed finite precision transformer cannot memorize certain Turing machines with inputs of arbitrary length, such as the arithmetic; and a single fixed infinite precision transformer trained with a random algorithm is not Turing complete with probability one under reasonable conditions. To overcome the limitation of a single transformer, we define a formal agent architecture consisting of decision, execution, and memory modules and show that for any Turing machine $\mathbb{T}$, there exists an agent that can memorize $\mathbb{T}$ and is computationally the same as $\mathbb{T}$. Thus, agents are Turing complete.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Ceiling of a Task: When Can a Transformer Succeed Without Its Chain of Thought?

Reasoning models generate long chains of thought before they answer, yet it is debated whether the content of these chains does real computational work or is largely decorative. We study this question by viewing a transformer as a shallow circuit. One forward pass through a fixed number of layers has constant depth, so...

Jia-Shu He, Jin-Xuan Fan, Xiao Xiao et al. · 0 citations
Preprint Oct 2026

The smallest programmable machine and the hardness of analyzing it

We investigate the computational complexity of analyzing the structural and behavioral properties of deterministic k-pebble automata, which represent a natural framework for studying minimal programmable machines. First, we provide an explicit construction of a three-pebble automaton U capable of simulating any determi...

J. Montoya · 0 citations
#machine learning Preprint Aug 2026

Universal Transformers for Circuit Computations: Perfect Length Generalization in Tiny Transformers

Though the construction provably evaluates Boolean expressions -- a universal symbolic computation -- of arbitrary length perfectly, in other experiments it is demonstrated that the transformer variant can learn and generalize perfectly on other common length generalization benchmarks, including modular arithmetic and...

Takuya Ito, Ruchir Puri, Murray Campbell et al. · 0 citations
#artificial intelligence Preprint Oct 2026

Verification and Self-Improvement in Agentic AI: Foundations and Limits

Agentic AI systems can improve by searching longer, receiving additional support, or modifying how they propose and verify outputs. A performance score does not distinguish these mechanisms. We compare these changes through bounded verification with hidden terminal randomness. A stage specifies admissible transcripts,...

Chien-Ping Lu · 0 citations
Book Open access Oct 2026

Visualizing Turing Machines and Multitape Turing Machines

An important computational model studied in Formal Languages and Automata Theory is the Turing machine and its extensions, including the multitape Turing machine. Designing such machines is challenging because they operate at a low level of abstraction, making it difficult to understand why words in an unrestricted lan...

David Anthony K. Fields, Sophia G. Turano, Andrés M. Garced et al. · 0 citations
#machine learning Preprint Open access Oct 2026

From Transformers to Weighted Automata: Towards the Verification of Large Language Models

Large language models (LLMs) are increasingly deployed in safety-critical settings, yet their black-box nature makes it difficult to provide formal guaranties about their behavior. Existing verification approaches rely primarily on empirical probing and testing, leaving open the question of how to reason rigorously abo...

Smayan Agarwal, Aslah Ahmad Faizi, Shobhit Singh et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.