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.
Create a lesson
Related papers
Not Every Token Deserves Softmax
Shared title terminologycs.LGAviv Bick, Arshia Afzal, Roger Waleffe et al.
Source-Free Cross-Domain Continual Learning via Orthogonal Sharpness-Aware Vision Language Models
Shared title terminologycs.LGAmri Muhaimin, Mahardhika Pratama, Rizal Hamdan Arigusti et al.
UADT: Uplift-Aware Decision Transformer for Budget-Constrained Sequential Marketing Incentive Allocation
Shared title terminologycs.LGZixing Shi, Yilei Zhao, Hua Wei et al.
Thoughtful Prediction for Data-Efficient Pretraining
Shared title terminologycs.LGJack Hsieh, Neil Band, Tengyu Ma et al.
CORE: Counterfactual Robust Expert Learning for Backdoor-Resilient Continual Learning
Shared title terminologycs.LGKeyu Lin, Qihe Liu, Fei Ye et al.
TRACE: Continual Learning for Pretrained ECG Foundation Models
Shared title terminologycs.LGWenhao Zhao, Kanglei Zhou, Yuyang Miao et al.