On the Expressive Power of Transformers
A survey measuring exactly how powerful transformers are, using circuit theory as the ruler
This is a survey paper that maps out what transformers, the core building block behind nearly all of today's LLMs, can and cannot compute, using circuit complexity as the yardstick. It formalizes transformers as language recognizers and shows how choices like attention type and numerical precision determine which circuit classes they land in. It also shows that chain-of-thought reasoning can push transformers far beyond these limits, up to simulating arbitrary Turing machines.
METAL MEDIA explanatory visual
A survey measuring exactly how powerful transformers are, using circuit theory as the ruler
- 01The paper formally defines transformers as language recognizers, distinguishing encoders (which output accept/reject) from decoders (which generate tokens one at a time, autoregressively).
- 02Instead of classical automata theory or the Chomsky hierarchy, the survey uses circuit complexity, because transformers compute in parallel, fixed-depth layers, which maps naturally onto Boolean/threshold circuits rather than sequential state machines.
- 03It compiles known results showing that whether attention is 'hard' or softmax, and how many bits of precision are used, determines whether a transformer's power stays within AC0 or reaches the larger class TC0.
- 04Without chain-of-thought, transformer expressivity is largely bounded within TC0; but with chain-of-thought of increasing length, transformers can reach LOGSPACE, PTIME, and with unbounded chain-of-thought, simulate arbitrary Turing machines.
- 05The paper itself doesn't introduce new proofs but organizes and connects existing results from the field into a coherent overview.
What they did
- The paper formally defines transformers as language recognizers, distinguishing encoders (which output accept/reject) from decoders (which generate tokens one at a time, autoregressively).
- Instead of classical automata theory or the Chomsky hierarchy, the survey uses circuit complexity, because transformers compute in parallel, fixed-depth layers, which maps naturally onto Boolean/threshold circuits rather than sequential state machines.
- It compiles known results showing that whether attention is 'hard' or softmax, and how many bits of precision are used, determines whether a transformer's power stays within AC0 or reaches the larger class TC0.
- Without chain-of-thought, transformer expressivity is largely bounded within TC0; but with chain-of-thought of increasing length, transformers can reach LOGSPACE, PTIME, and with unbounded chain-of-thought, simulate arbitrary Turing machines.
- The paper itself doesn't introduce new proofs but organizes and connects existing results from the field into a coherent overview.

| 𝐲i | =𝐖(O)(∑j=1nαi,j𝐯j), | 𝐯j | =𝐖(V)𝐱j, | αi,∗ | =𝒮(si,∗), | (1) | ||
|---|---|---|---|---|---|---|---|---|
| si,j | =𝐪i⊤𝐤jdkey, | 𝐪i | =𝐖(Q)𝐱i, | 𝐤j | =𝐖(K)𝐱j. | (2) |

| (𝐲1(ℓ),…,𝐲n(ℓ)) | :=∑h=1H𝗌𝖺(h,ℓ)(𝐱1(ℓ−1),…,𝐱n(ℓ−1))+(𝐱1(ℓ−1),…,𝐱n(ℓ−1)), | ||
|---|---|---|---|
| (𝐱1(ℓ),…,𝐱n(ℓ)) | :=(𝖿𝖿(ℓ)(𝐲1(ℓ)),…,𝖿𝖿(ℓ)(𝐲n(ℓ)))+(𝐲1(ℓ),…,𝐲n(ℓ)). |
| F𝒯0(w) | :=w | ||
|---|---|---|---|
| F𝒯i(w) | :=F𝒯i−1(w)⋅F𝒯(F𝒯i−1(w)) for i≥1, |
Why it matters
Understanding these computational limits clarifies why LLMs succeed at some tasks and fundamentally struggle at others, which matters for setting realistic expectations about model capabilities. It also highlights that chain-of-thought is not just a prompting trick but can genuinely expand a model's computational power in a formal sense.
Terms in this paper
- circuit complexity · the study of how efficiently logic circuits built from gates like AND/OR/NOT can solve computational problems
- AC0 / TC0 · classes of problems solvable by constant-depth logic circuits; TC0 additionally allows majority-vote gates, making it more powerful than AC0
- hard attention / softmax attention · hard attention only looks at the highest-scoring position(s), while softmax attention (used in real LLMs) assigns weighted probabilities across all positions
- precision · the number of bits used for internal computations; low precision limits expressivity, while logarithmic precision enables operations like addition
- chain-of-thought (CoT) · a method where the model generates intermediate reasoning tokens and feeds them back as input before producing a final answer
Original abstract (English)
Multi-layer transformers form the critical component of essentially all large language models (LLMs) in use today. Because of their ubiquity and computational capability, there is a rapidly growing body of work that aims to precisely calibrate the expressive power of transformers as language recognizers by comparing them against standard models of computation studied for decades by the theoretical computer science community. In this endeavor, circuit complexity has by and large emerged as the "correct" branch of computational complexity to analyze the expressive power of transformers; the reason is that parameterizing transformers by the various resources they use, such as attention and precision, leads to direct comparisons with different classes of circuits parameterized by resources such as type of gates, size, and depth. Here, we present an overview of selected results that delineate the expressive power of transformers using concepts and methods from circuit complexity.
Read on arXivLatest papers
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?AI coding agents were tested on fixing real scientific software, and even the best one failed more than half the time
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM ServingMaking sparse attention fast enough and accurate enough for real LLM serving, not just papers
- PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM AgentsMaking customer-service AI agents follow the whole procedure, not just avoid one bad action
- EXIMO: VLM Guided Exploration of VLA PoliciesTeaching a robot new chores without human teleoperation, by letting a chatty AI supervise it
- EnvHarness: Awakening Static Worlds for Agent LearningInstead of building new training worlds from scratch, this work adds a plug-in layer that reshapes existing ones around each agent's actual weaknesses
- Bounded Sovereignty and the Control Tax: Pricing AI Oversight When the Deployer Does Not Own the ModelCompanies that rent AI instead of owning it can only do half of AI safety oversight
- PersonalBench: Measuring the Authorship Gap in LLM PersonalizationAI can be prompted to write 'like someone,' but its own voice never fully disappears
- Automated Summarization of Financial News Using Large Language Models and Retrieval-Augmented Generation: An Early Empirical Study (Fall 2023)Testing AI summaries of stock news, the simple approach beat the trendy retrieval-based one
Latest from METAL MEDIA
Figures: Phokion Kolaitis et al., arXiv:2608.12671, CC BY 4.0