arXiv:2611.09759cs.LGNov 2026

Manuscript Offprint

arXiv:2611.09759

A Tight Hierarchy for Chain of Thought

Thanh Le, A. Pavan, N. V. Vinodchandran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Chain-of-thought (CoT) reasoning has emerged as a powerful paradigm for extending the computational capabilities of transformer-based models. A growing body of recent work has begun to uncover the fine-grained computational power of transformers augmented with CoT, as well as their connections to classical complexity theory.

In this work, we advance this line of research by establishing the first hierarchy theorem for CoT-based computation. Our main result shows that for any reasonable resource bound r(n)≥nr(n) \geq n and any ε>0\varepsilon > 0,

CoT(r(n))⊆CoT(r(n)1+ε),\mathrm{CoT}(r(n)) \subseteq \mathrm{CoT}(r(n)^{1+\varepsilon}),

where CoT(r(n))\mathrm{CoT}(r(n)) denotes the class of decision problems solvable by transformers using O(r(n))O(r(n)) CoT reasoning steps on inputs of length nn. Our result shows that increasing the number of CoT reasoning steps provably yields strictly greater computational power, establishing CoT steps as a fundamental resource in transformer-based computation.

Unlike classical hierarchy theorems, which are typically proved via diagonalization, our approach leverages known coarse-grained simulations between CoT-augmented transformers and Turing machines in both directions. Building on these connections, we adapt the classical padding technique from complexity theory to this setting to obtain a tight hierarchy. A key technical contribution of our work is the implementation of padding within the transformer-based CoT model.

1 Introduction

A central objective in computing foundations is to understand how computational power scales with access to additional resources. The classical hierarchy theorems from computational complexity theory establish that increased time or space yields strictly greater computational capability. The two most fundamental results in this regard are the Time Hierarchy Theorem and the Space Hierarchy Theorem. Intuitively, the Time Hierarchy Theorem states that if t(n)≥nt(n) \geq n is a sufficiently nice complexity-bounding function (i.e., time-constructible function), then there are problems solvable in time slightly more than t(n)t(n) that cannot be solved in time t(n)t(n). In particular, the most well-known version of this principle states that TIME(t1(n))⊊TIME(t2(n))\mathrm{TIME}(t_1(n)) \subsetneq \mathrm{TIME}(t_2(n)) if t1(n)log⁡t1(n)=o(t2(n))t_1(n) \log t_1(n) = o(t_2(n)) [HS65]. Here TIME(t(n))\mathrm{TIME}(t(n)) is the class of languages that are decidable in time O(t(n))O(t(n)) on inputs of length nn using a multi-tape Turing machine. Hierarchy theorems formalize a basic structural principle: bounded resources induce strict stratifications of computational

A version of this paper will appear at NeurIPS 2026.

power. Even though hierarchy theorems are intuitive, it is far from trivial to establish such quantitative results. Without such results, we cannot rule out the possibility of universal thresholds on resources that are required to solve any decidable problem.

Modern AI architectures, particularly transformer architectures, have introduced new models of computation that are both practically powerful and theoretically intriguing. Transformers, built on mechanisms such as self-attention and layered representations, have achieved remarkable success across domains including natural language processing, vision, and scientific computing. The success of transformer architectures led to a new line of research to understand their computational power. Recent research formulated this question by modeling transformers as a computation device, thus enabling rigorous study of the power and limitations of this new model.

A growing body of work has identified fundamental limitations of standard transformer architectures [Hah20; CCP23; Liu+23; HAF22; MSS22; MS23a; MS23b]. In particular, under realistic assumptions, constant-depth transformers are less powerful than finite state machines, arguably the simplest computational model. A recent survey [Str+24] gives an excellent account of the expressive power of transformers as a computational device. The intuitive reason is that constant-depth transformers operate in a largely feedforward manner and lack the ability to perform the iterative computation required for multi-step reasoning. As a result, even tasks that are conceptually simple but require sequential composition of intermediate steps fall outside their effective computational capabilities [PNP24; Dzi+23; Zha+24].

Modern AI systems are augmented with interactive reasoning steps where the output of a step can be used to further the computation. This is known as chain-of-thought (CoT) reasoning. Chain of thought (CoT) refers to a mode of computation in which a model produces explicit intermediate steps before arriving at a final answer. Instead of mapping an input directly to an output in one pass, the model generates a sequence of reasoning states that progressively transform the input into the solution.

From a computational perspective, this modification significantly alters the computational landscape. A growing body of work shows that the number of such intermediate reasoning steps plays a crucial role in determining expressivity. Thus, chain of thought emerges not merely as a heuristic for improving empirical performance, but as a fundamental computational resource in transformer-based models. In particular, Perez et al. show that this model is Turing complete in the sense that anything that is computable using a Turing machine is computable by transformers with enough CoT steps [PBM21]. This connection is made more explicit by Merrill and Sabharwal [MS23a]. In particular, they showed that any language recognized by t(n)t(n)-time bounded Turing machine can also be recognized via a transformer with O(t(n))O(t(n)) CoT steps and any transformer with O(t(n))O(t(n)) CoT steps can be simulated by a Turing machine in time O(t2(n))polylog(t(n))O(t^2(n))\text{polylog}(t(n)).

In this work, we propose to view the number of CoT steps as a resource (such as time and space in TM model) and ask the fundamental question:

Is there a strict hierarchy for CoT reasoning?

Let CoT(r(n))\text{CoT}(r(n)) be the class of problems that can be decided by transformers with O(r(n))O(r(n)) chain-of-thought steps. Our main result is that for any reasonable function r(n)r(n), and for any ε>0\varepsilon > 0,

CoT(r(n))⊆CoT(r(n)1+ε).\text{CoT}(r(n)) \subseteq \text{CoT}(r(n)^{1+\varepsilon}).

Our result shows that chain-of-thought reasoning admits a fine-grained hierarchy: a small increase in the number of reasoning steps strictly increases computational power. This establishes CoT as a meaningful computational resource similar to time and space.

A classical technique underlying hierarchy theorems is diagonalization. In the setting of Turing machines, diagonalization constructs a language that disagrees with every Turing machine running within a given resource bound, by simulating each such machine on carefully chosen inputs and flipping its output. This approach relies on two key properties: (i) machines can be effectively enumerated, and (ii) there exists a universal machine that can take the description of another machine as input and simulate its execution with controlled overhead. These properties make it possible in the Turing machine model to carry out self-referential constructions in a clean and uniform way.

For transformers with chain of thought, the situation appears to be different. While one can, in principle, encode a transformer as a finite object (e.g., via its architecture and parameters), there is no conceptually clean notion of what it means for a transformer to take another transformer as input and simulate its computation. Transformer computation is specified by a fixed architecture, layers, attention heads, and learned weights—rather than a discrete, easily interpretable transition function. As a result, even defining a “universal transformer” that can parse such an encoding and simulate another transformer’s behavior in a step-by-step manner is conceptually unclear. This lack of a natural encoding-and-simulation approach makes it difficult to carry out the kind of self-referential constructions that diagonalization relies on.