Lune

NeurIPS2025Top-tier venue

Constant Bit-size Transformers Are Turing Complete

Qian Li, Yuyi Wang

Abstract

We prove that any Turing machine running on inputs of arbitrary length can be simulated by a constant bit-size transformer, as long as the context window is sufficiently long. This improves previous works, which require scaling up either the model's precision or the number of parameters on longer inputs. Furthermore, we prove that the complexity class SPACE[s(n)][s(n)] exactly characterizes the expressive power of a constant bit-size transformer with a context window of length s(n)s(n). Our approach relies on simulating Post machines, a Turing-complete computational model. Post machines can be modeled as automata equipped with a queue, exhibiting computational behaviors naturally aligned with those of transformers. The behavioral similarity between transformers and Post machines may offer new insights into the mechanisms underlying the reasoning abilities of transformers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Bridging Kolmogorov Complexity and Deep Learning: Asymptotically Optimal Description Length Objectives for Transformers cites The Expressive Power of Transformers with Chain of Thought
  • Bridging Kolmogorov Complexity and Deep Learning: Asymptotically Optimal Description Length Objectives for Transformers cites A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers
  • Bridging Kolmogorov Complexity and Deep Learning: Asymptotically Optimal Description Length Objectives for Transformers cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • The Expressive Power of Transformers with Chain of Thought cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • Softmax Transformers are Turing-Complete cites The Expressive Power of Transformers with Chain of Thought
  • A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers cites The Expressive Power of Transformers with Chain of Thought
  • A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
  • Probability Distributions Computed by Autoregressive Transformers cites The Expressive Power of Transformers with Chain of Thought
  • Probability Distributions Computed by Autoregressive Transformers cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
  • Transformer Circuits Can Realize Clustering Algorithms cites The Expressive Power of Transformers with Chain of Thought
  • Transformer Circuits Can Realize Clustering Algorithms cites Softmax Transformers are Turing-Complete
  • Chain of Thought Empowers Transformers to Solve Inherently Serial Problems cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • Efficient Turing Machine Simulation with Transformers cites The Expressive Power of Transformers with Chain of Thought
  • Efficient Turing Machine Simulation with Transformers cites A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers
  • Efficient Turing Machine Simulation with Transformers cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
  • Efficient Turing Machine Simulation with Transformers cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Softmax Transformers are Turing-CompleteHongjian Jiang, Michael Hahn, Georg Zetzsche, Anthony W. LinICLR 2026 · 12 citations
  2. Bridging Kolmogorov Complexity and Deep Learning: Asymptotically Optimal Description Length Objectives for TransformersPeter Shaw, James Cohan, Jacob Eisenstein, Kristina ToutanovaICLR 2026 · 7 citations
  3. Efficient Turing Machine Simulation with TransformersQian Li, Yuyi WangICLR 2026 · 5 citations
  4. Probability Distributions Computed by Autoregressive TransformersAndy Yang, Anej Svete, Jiaoda Li, Anthony W. Lin et al.ICLR 2026 · 2 citations
  5. Transformer Circuits Can Realize Clustering AlgorithmsKenneth Clarkson, Lior Horesh, Takuya Ito, Charlotte Park et al.ICML 2026 · 1 citation

Builds on9

  1. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  2. Towards Revealing the Mystery behind Chain of Thought: A Theoretical PerspectiveGuhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye et al.NeurIPS 2023 · 470 citations
  3. Chain of Thought Empowers Transformers to Solve Inherently Serial ProblemsZhiyuan Liu, Hong Liu, Denny Zhou, Tengyu MaICLR 2024 · 259 citations
  4. The Expressive Power of Transformers with Chain of ThoughtWilliam Merrill, Ashish SabharwalICLR 2024 · 243 citations
  5. A Little Depth Goes a Long Way: The Expressive Power of Log-Depth TransformersWilliam Merrill, Ashish SabharwalNeurIPS 2025 · 62 citations

Related papers

  1. Transformers Learn Shortcuts to AutomataBingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy et al.ICLR 2023 · 11 citations
  2. Transformers are Inherently SuccinctPascal Bergsträßer, Ryan Cotterell, Anthony W. LinICLR 2026 · 5 citations
  3. Transformers, parallel computation, and logarithmic depthClayton Sanford, Daniel Hsu, Matus TelgarskyICML 2024 · 64 citations
  4. Are Transformers universal approximators of sequence-to-sequence functions?Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi et al.ICLR 2020 · 481 citations
  5. Two Heads are Better than One: Simulating Large Transformers with Small OnesHantao Yu, Josh AlmanNeurIPS 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines