Lune

NeurIPS2025顶会

Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent

Tong Yang, Yu Huang, Yingbin Liang, Yuejie Chi

摘要

Transformers have demonstrated remarkable capabilities in multi-step reasoning tasks. However, understandings of the underlying mechanisms by which they acquire these abilities through training remain limited, particularly from a theoretical standpoint. This work investigates how transformers learn to solve symbolic multi-step reasoning problems through chain-of-thought processes, focusing on path-finding in trees. We analyze two intertwined tasks: a backward reasoning task, where the model outputs a path from a goal node to the root, and a more complex forward reasoning task, where the model implements two-stage reasoning by first identifying the goal-to-root path and then reversing it to produce the root-to-goal path. Our theoretical analysis, grounded in the dynamics of gradient descent, shows that trained one-layer transformers can provably solve both tasks with generalization guarantees to unseen trees. In particular, our multi-phase training dynamics for forward reasoning elucidate how different attention heads learn to specialize and coordinate autonomously to solve the two subtasks in a single autoregressive path. These results provide a mechanistic explanation of how trained transformers can implement sequential algorithmic procedures. Moreover, they offer insights into the emergence of reasoning abilities, suggesting that when tasks are structured to take intermediate chain-of-thought steps, even shallow multi-head transformers can effectively solve problems that would otherwise require deeper architectures.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization 引用了 The Expressive Power of Transformers with Chain of Thought
  • Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization 引用了 Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
  • Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization 引用了 Why think step by step? Reasoning emerges from the locality of experience
  • Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization 引用了 Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • The Expressive Power of Transformers with Chain of Thought 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • The Expressive Power of Transformers with Chain of Thought 引用了 Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently 引用了 The Expressive Power of Transformers with Chain of Thought
  • Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently 引用了 Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
  • Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently 引用了 On the Emergence of Implicit Curriculum in RLVR Learning Dynamics
  • On the Emergence of Implicit Curriculum in RLVR Learning Dynamics 引用了 Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently
  • Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Chain of Thought Empowers Transformers to Solve Inherently Serial Problems 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Chain of Thought Empowers Transformers to Solve Inherently Serial Problems 引用了 Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
  • Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning 引用了 Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization
  • Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning 引用了 The Expressive Power of Transformers with Chain of Thought
  • Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning 引用了 Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
  • Why think step by step? Reasoning emerges from the locality of experience 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • On the Emergence of Implicit Curriculum in RLVR Learning Dynamics 引用了 Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization
  • Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Transformers Provably Learn Chain-of-Thought Reasoning with Length GeneralizationYu Huang, Zixin Wen, Aarti Singh, Yuejie Chi 等NeurIPS 2025 · 22 次引用
  2. On the Emergence of Implicit Curriculum in RLVR Learning DynamicsYu Huang, Zixin Wen, Yuejie Chi, Yuting Wei 等ICML 2026 · 6 次引用
  3. Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But DifferentlyBochen Lyu, Yiyang Jia, Xiaohao Cai, Zhanxing ZhuICML 2026
  4. Provable Sample Efficiency of Curriculum Post-Training for Transformer ReasoningDake Bu, Wei Huang, Andi Han, Atsushi Nitanda 等ICML 2026
  5. Focus and Dilution: The Multi-stage Learning Process of AttentionZheng-An Chen, Pengxiao Lin, Zhi-Qin John Xu, Tao LuoICML 2026

它引用的 Paper25

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
  2. Towards Revealing the Mystery behind Chain of Thought: A Theoretical PerspectiveGuhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye 等NeurIPS 2023 · 470 次引用
  3. Chain of Thought Empowers Transformers to Solve Inherently Serial ProblemsZhiyuan Liu, Hong Liu, Denny Zhou, Tengyu MaICLR 2024 · 259 次引用
  4. The Expressive Power of Transformers with Chain of ThoughtWilliam Merrill, Ashish SabharwalICLR 2024 · 243 次引用
  5. Why think step by step? Reasoning emerges from the locality of experienceBen Prystawski, Michael Li, Noah D. GoodmanNeurIPS 2023 · 168 次引用

相关 Paper

  1. Emergence of Superposition: Unveiling the Training Dynamics of Chain of Continuous ThoughtHanlin Zhu, Shibo Hao, Zhiting Hu, Jiantao Jiao 等ICLR 2026 · 21 次引用
  2. Can Transformers Reason Logically? A Study in SAT SolvingLeyan Pan, Vijay Ganesh, Jacob D. Abernethy, Chris Esposo 等ICML 2025
  3. Measuring Systematic Generalization in Neural Proof Generation with TransformersNicolas Gontier, Koustuv Sinha, Siva Reddy, Christopher PalNeurIPS 2020 · 69 次引用
  4. Towards a Theoretical Understanding of the 'Reversal Curse' via Training DynamicsHanlin Zhu, Baihe Huang, Shaolun Zhang, Michael I. Jordan 等NeurIPS 2024 · 37 次引用
  5. Transformers Provably Solve Parity Efficiently with Chain of ThoughtJuno Kim, Taiji SuzukiICLR 2025
黄昏的海面,两侧是细线勾勒的悬崖