atlas

Research map / Architectures and efficiency / Attention and transformers

The Expressive Power of Transformers with Chain of Thought

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows theoretically that chain-of-thought decoding steps extend decoder-only transformer expressive power: log steps stay within L, linear steps recognize all regular languages (within context-sensitive), and polynomial steps yield exactly P, via a layer-norm hash construction.

Problem

Whether intermediate generation (chain of thought / scratchpad) fundamentally extends the computational power of decoder-only transformers, and how the number of decoding steps affects this power.

Approach

Characterizes transformer decoders with t(n) intermediate decoding steps against complexity classes, introducing a layer-norm hash for retrieval by numerical query-key matching and a projected/multi-pre-norm generalization that lets the construction simulate Turing machines step by step.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a polynomial number of decoding stepsDecoder-only transformers with strict causal attention and projected pre-norm · Polynomial decoding stepsrecognized language classHelped
Add a linear number of decoding stepsDecoder-only transformers with projected pre-norm · Regular languagesrecognized language classHelped
Add a linear number of decoding stepsDecoder-only transformer · Linear decoding stepsrecognized language classMixed
Add a logarithmic number of decoding stepsDecoder-only transformer · Logarithmic decoding stepsrecognized language classHelped
Add a logarithmic number of decoding stepsDecoder-only transformer · Directed graph connectivityrecognized language classNo clear effect
Add a quadratic number of decoding stepsDecoder-only transformer · Directed graph connectivitydecoding steps requiredHelped

Surprising findings

Limitations

Experimental setup

Builds on: Pre-norm transformers Turing machine simulation of transformers (Pérez et al.) saturated attention TC^0 upper bound for transformers

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy