Chain-of-thought transformers can mirror Word RAM algorithms with small overhead
An arXiv paper argues reasoning models can efficiently simulate algorithms designed for random-access machines, not just Turing machines, with only poly-logarithmic overhead in three transformer settings.
In plain words
Reasoning models generate a chain of thought before answering, and theory says this lets them imitate any computer program. Earlier results measured this against Turing machines, an abstract but clumsy model of computing. The paper shows these models can also imitate Word RAM algorithms, which resemble how real programs work, with only modest extra steps.
What was announced
The authors note that chain-of-thought transformers have been justified partly by proofs they can simulate Turing machines, but algorithms are usually designed for the Word RAM model, where random-access memory and unit-cost operations make programs faster than Turing machine equivalents. They ask whether CoT transformers can match that efficiency, for example sorting n items in O(n log n) steps or running Dijkstra's algorithm in O(E + V log V) steps.
The answer is yes for three transformer types, up to poly-logarithmic overhead: fixed-precision transformers with poly-logarithmic width and rightmost unique hard attention, then two more practical settings with fixed width and log-precision — continuous CoT, where reasoning is vectors rather than tokens, and a hybrid stacking transformer layers on a recurrent linear RNN layer. The overhead falls to log-square with a flat instruction set and to logarithmic for multiplication-free flat instructions, unlike known CoT simulations of Turing machines, which need quadratic overhead over Word RAM.
What it does not show
- The source is the paper's abstract only; proofs, assumptions and experimental support are not visible in the excerpt.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.