Abstract
The performance of modern language models (LMs) has been improved by chain-of-thought (CoT) reasoning, i.e., the process of generating intermediate results that guide the model towards a final answer. A possible explanation for this improvement is that CoT reasoning extends an LM's computational power, as RNNs and transformers with additional scratch space are known to be Turing complete. Comparing LMs to Turing machines, however, introduces a category error - Turing machines decide language membership, whereas LMs define distributions over strings. To bridge this gap, we formalize CoT reasoning in a probabilistic setting. We present several results on the representational capacity of recurrent and transformer LMs with CoT reasoning, showing that they can represent the same family of distributions over strings as probabilistic Turing machines.
Introduction
Chain-of-Thought (CoT) reasoning has emerged as a cornerstone of empirical success in Large Language Models (LLMs). By generating intermediate "thoughts" before arriving at a final answer, models can solve complex reasoning tasks that were previously out of reach. However, the theoretical justification for this success has often relied on a "category error." While researchers frequently claim that LMs with a scratchpad are Turing complete, classical Turing machines are designed to decide if a string belongs to a set (a binary classification), whereas LMs are designed to define probability distributions over strings.
This paper provides a formal theoretical foundation for CoT by treating LMs as probabilistic generators. By mapping different LM architectures to well-known probabilistic models of computation, the authors demonstrate how CoT fundamentally expands the representational power of neural networks.
The Framework: Regular Reducibility
To bridge the gap between neural architectures and probabilistic computation, the authors introduce Regular Reducibility. In this framework, a CoT-augmented LM generates strings in an "augmented alphabet" that includes both the final answer and the intermediate scratchpad steps. A "regular function" $\phi$—essentially a simple post-processing filter like a Finite State Transducer—is then used to strip away the intermediate steps, revealing the final output distribution.
This formalization allows the authors to prove "weak equivalence," meaning the distribution of the final output strings (after removing CoT) is identical to the distribution produced by classical probabilistic models of computation.
CoT as a Non-Determinism Hack
A striking insight from this research is that CoT allows deterministic neural networks to simulate non-deterministic probabilistic models. In a standard LM, the hidden state update is deterministic. However, by writing a "choice" into the CoT and then reading it back, the model effectively tracks a specific path through a non-deterministic execution tree.
- For RNNs: The model uses its output to store the current state of a probabilistic automaton, allowing it to simulate transitions that a standard, deterministic RNN recurrence could not handle alone.
- For Transformers: The model utilizes its attention mechanism to "read" its own previous CoT steps, allowing it to reconstruct the configuration of a Turing machine across multiple time steps.
The Precision Pivot
The paper highlights that the computational "power" of an LM is inextricably linked to its numerical precision. The authors establish a hierarchy of equivalence based on this factor:
- Fixed-Precision (e.g., 16-bit floats): CoT-augmented models are equivalent to Probabilistic Finite State Automata (PFSAs). This is a significant step up from standard fixed-precision LMs, which are limited to representing deterministic PFSAs.
- Unbounded-Precision (rational numbers of arbitrary length): These models are equivalent to Probabilistic Turing Machines (PTMs). This confirms that with sufficient precision and "ink" (scratchpad space), CoT-augmented LMs can represent any computable probability distribution over strings.
Discussion and Limitations
While this work provides a rigorous proof of representational capacity, it also highlights several practical limitations:
- Physical Constraints: The results for Turing completeness rely on "unbounded precision," which is not physically possible on modern hardware. In practice, the capacity of current LMs likely resides at the PFSA level.
- Existence vs. Learnability: The paper proves that these models can represent these distributions, but it does not guarantee that standard training algorithms like Gradient Descent can actually find these solutions.
- Efficiency: The proofs focus on what is mathematically possible, not what is computationally efficient. A Turing machine simulation might require an astronomical number of CoT steps to solve even simple problems.
By formalizing the relationship between intermediate reasoning and probabilistic output, this research provides a necessary theoretical lens through which to view the continued evolution of reasoning-capable AI.
Summary updated