Lune

ICLR2024Top-tier venue

Chain of Thought Empowers Transformers to Solve Inherently Serial Problems

Zhiyuan Liu, Hong Liu, Denny Zhou, Tengyu Ma

Abstract

Instructing the model to generate a sequence of intermediate steps, a.k.a., a chain of thought (CoT), is a highly effective method to improve the accuracy of large language models (LLMs) on arithmetics and symbolic reasoning tasks. However, the mechanism behind CoT remains unclear. This work provides a theoretical understanding of the power of CoT for decoder-only transformers through the lens of expressiveness. Conceptually, CoT empowers the model with the ability to perform inherently serial computation, which is otherwise lacking in transformers, especially when depth is low. Given input length nn, previous works have shown that constant-depth transformers with finite precision poly(n)\mathsf{poly}(n) embedding size can only solve problems in TC0\mathsf{TC}^0 without CoT. We first show an even tighter expressiveness upper bound for constant-depth transformers with constant-bit precision, which can only solve problems in AC0\mathsf{AC}^0, a proper subset of TC0 \mathsf{TC}^0. However, with TT steps of CoT, constant-depth transformers using constant-bit precision and O(log⁡n)O(\log n) embedding size can solve any problem solvable by boolean circuits of size TT. Empirically, enabling CoT dramatically improves the accuracy for tasks that are hard for parallel computation, including the composition of permutation groups, iterated squaring, and circuit value problems, especially for low-depth transformers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

109 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers cites On Layer Normalization in the Transformer Architecture
  • Large Language Models are Zero-Shot Reasoners cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thought cites Large Language Models are Zero-Shot Reasoners
  • Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thought cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thought cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective cites Thinking Like Transformers
  • Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective cites Large Language Models are Zero-Shot Reasoners
  • Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thought cites A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers
  • Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thought cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thought cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • When More is Less: Understanding Chain-of-Thought Length in LLMs cites Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thought
  • When More is Less: Understanding Chain-of-Thought Length in LLMs cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • When More is Less: Understanding Chain-of-Thought Length in LLMs cites Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers109

  1. When More is Less: Understanding Chain-of-Thought Length in LLMsYuyang Wu, Yifei Wang, Ziyu Ye, Tianqi Du et al.ICLR 2026 · 225 citations
  2. RM-R1: Reward Modeling as ReasoningXiusi Chen, Gaotang Li, Ziqi Wang, Bowen Jin et al.ICLR 2026 · 147 citations
  3. Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-ThoughtQiguang Chen, Libo Qin, Jiaqi Wang, Jingxuan Zhou et al.NeurIPS 2024 · 104 citations
  4. Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous ThoughtHanlin Zhu, Shibo Hao, Zhiting Hu, Jiantao Jiao et al.NeurIPS 2025 · 86 citations
  5. A Little Depth Goes a Long Way: The Expressive Power of Log-Depth TransformersWilliam Merrill, Ashish SabharwalNeurIPS 2025 · 62 citations

Builds on15

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
  3. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
  4. Towards Revealing the Mystery behind Chain of Thought: A Theoretical PerspectiveGuhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye et al.NeurIPS 2023 · 470 citations
  5. Thinking Like TransformersGail Weiss, Yoav Goldberg, Eran YahavICML 2021 · 183 citations

Related papers

  1. Chain-of-Thought Provably Enables Learning the (Otherwise) UnlearnableChenxiao Yang, Zhiyuan Li, David WipfICLR 2025
  2. From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample EfficiencyKaiyue Wen, Huaqing Zhang, Hongzhou Lin, Jingzhao ZhangICLR 2025
  3. Transformers Learn to Implement Multi-step Gradient Descent with Chain of ThoughtJianhao Huang, Zixuan Wang, Jason D. LeeICLR 2025
  4. Analyzing the Power of Chain of Thought through Memorization CapabilitiesLijia Yu, Xiao-Shan Gao, Lijun ZhangNeurIPS 2025 · 2 citations
  5. To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningZayne Rea Sprague, Fangcong Yin, Juan Diego Rodriguez, Dongwei Jiang et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines