The Gist of It Logo
🧠 LLMs & ML ★ Impact 9.6/10 arXiv:2612.05083v1 • December 4, 2026 • 1 min read
📄 arXiv Preprint • Not Peer-Reviewed ✓ Full-Text Verified

How AI's Hidden Thoughts Enable Universal Computation

Original paper: Turing Equivalence and Characterizing P with Chain of Continuous Thought Softmax Transformers

Authors: Peng Yin, Xiao-Shan Gao

By feeding an AI's final thoughts back into itself, researchers proved standard language models can compute anything a computer ever could.

"Imagine an author writing a mystery novel who reads the final sentence of each page and feeds it directly into their mind as the sole inspiration for the next page. By looping these continuous thoughts over and over without ever looking back at the original book, the author can painstakingly calculate and solve any logical puzzle imaginable."

This breakthrough proves that modern AI architectures are not just fancy autocomplete tools; they possess the theoretical power of universal computers. This bridges a massive gap in computer science, showing that latent reasoning in large language models can theoretically execute any algorithm or solve any solvable problem.

  • AI models can simulate Turing machines using continuous feedback.
  • Latent reasoning outperforms traditional token-by-token chains of thought.
  • Standard softmax transformers can achieve universal computation.

Turing Equivalence and $\mathsf{P}$ Characterization via Chain of Continuous Thought Softmax Transformers

Key Contribution Over Prior Work

The paper establishes that a fixed-width, fixed-depth causal softmax decoder-only transformer with rational parameters and continuous hidden-state feedback (Coconut) can simulate any deterministic Turing machine. In contrast to prior work relying on hard attention, recurrent neural network simulations, or modified sequence-length attention scalings, this work achieves Turing completeness and exact $\mathsf{P}$ recognition under polynomial feedback deadlines using standard causal softmax, ReLU feedforward layers, and LayerNorm, evaluated under both geometric positional encoding and NoPE settings.

Core Methodology

The architecture uses the final-layer hidden vector at each step directly as input for the subsequent feedback step, effectively executing latent reasoning in a continuous vector space ($z_{N+t} = y_{N+t-1}$). The hidden states are structured using a paired representation $\kappa P(s) = \kappa (s, -s)^{ op}$ to maintain mean-zero inputs for LayerNorm, with a dedicated carrier coordinate $h$ where $s_{h}=1$. Input loading is executed either instantaneously at $\mathsf{EOS}$ via geometric common-mode positional encoding ($\operatorname{PE}(i) = -(i-1)\log B\,\mathbf{1}_{d}$) or iteratively over a polynomial number of feedback steps without positional encoding.

Theoretical Assumptions

The framework assumes fixed rational parameters, a fixed stabilizer $\varepsilon \in \mathbb{Q}_{>0}$ for LayerNorm, and a coordinatewise evaluation precision growing polynomially with input length and sequence position ($q_{i} = a(n+i+2)^{k_{0}}$). It operates under the assumption that finite-precision representations can faithfully track Turing machine tape configurations and stack expansions when error amplification due to stack operations is bounded.

Empirical Evaluation

As a theoretical paper, the evaluation is formalized through mathematical proofs rather than empirical benchmarks. The main theorems prove that $\mathcal{C}^{\mathrm{LN},\infty}_{\mathrm{geom},\varepsilon} = \mathsf{RE}$ and $\mathcal{C}^{\mathrm{LN}}_{\mathrm{geom},\varepsilon} = \mathsf{P}$ under polynomial feedback deadlines, with reciprocal simulations demonstrating that deterministic Turing machines can simulate any fixed rational decoder in the model.

Limitations & Edge Cases

Limitations include the reliance on an unbounded precision growth schedule along infinite runs to maintain exact discrete equivalence, and a degree-nine polynomial upper bound for NoPE input recovery that leaves open the existence of faster procedures or associated lower bounds. Furthermore, whether standard gradient-based training can discover these discrete-simulation routines and generalize to longer inputs remains an open question.

📑 Original arXiv Technical Abstract

Language models typically produce a chain of thought by generating one token at a time. Chain of Continuous Thought (Coconut) is a latent reasoning architecture that carries out intermediate reasoning steps in a continuous hidden space. It feeds the entire final-layer hidden vector at each step directly into the next step, allowing the model to store and update intermediate results in continuous vectors before generating an answer. On logical reasoning tasks that require searching for a proof, Coconut achieved higher accuracy than the explicit chain of thought. Theoretical work has also studied how continuous feedback can solve problems such as graph reachability. In this paper, we investigate the reasoning expressive power of Coconut: Can an ordinary causal softmax decoder only transformer (abbr. transformer) with continuous feedback simulate any Turing machine? Which languages can such transformers recognize with polynomially many feedback steps? We study transformers of fixed width and depth, with fixed rational parameters, to handle binary inputs of arbitrary length. The precision of the hidden vectors grows polynomially with input length and sequence position. Two configurations are evaluated: one uses geometric common-mode positional encoding, and the other omits positional encoding. In both settings, for every deterministic Turing machine, we construct a fixed transformer that simulates it on every binary input. Given a fixed acceptance gap, the class of languages recognized in either setting is exactly P with a polynomial feedback deadline and exactly RE with no deadline.

✍️ Are you an author of this paper? Add code/demo links or a note

Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.

𝕏 Share Your Paper's Gist on X

📬 Get daily LLMs & ML breakthroughs in your inbox

We scan hundreds of daily arXiv preprints across 6 frontier fields and send the top breakthroughs in plain English—with everyday analogies and 1-click PhD briefs. Free forever.

More Curated Breakthroughs

Hand-picked from the December 4, 2026 edition.