arXiv · 2612.05083
Turing Equivalence and Characterizing P with Chain of Continuous Thought Softmax Transformers
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Peng Yin, Xiao-Shan Gao. 2026-12-03. Turing Equivalence and Characterizing P with Chain of Continuous Thought Softmax Transformers. https://searcharxiv.org/abs/2612.05083
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.