mlsanityData to 14 Oct 2026

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

arXiv 2508.08222 ↗First posted 11 Aug 2025cs.LG cs.AI cs.ITcited by 7

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 11 Aug 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 2.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025The Kinetics of Reasoning: How Chain-of-Thought Shapes Learning in Transformers?
  2. 2026How Transformers Learn to Plan via Multi-Token Prediction
  3. 2024Transformers Provably Solve Parity Efficiently with Chain of Thought
  4. 2025How do Transformers Learn Implicit Reasoning?
  5. 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks
  6. 2025Limit Analysis for Symbolic Multi-step Reasoning Tasks with Information Propagation Rules Based on Transformers
  7. 2026Revealing Algorithmic Deductive Circuits for Logical Reasoning
  8. 2026Transformers Provably Learn to Internalize Chain-of-Thought