atlas

Research map / Architectures and efficiency / Attention and transformers

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

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 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 and empirically that one-layer (one- or two-head) transformers trained with CoT by gradient descent provably learn backward and forward path-finding in trees, with generalization to unseen trees.

Problem

How shallow transformers learn symbolic multi-step reasoning (path-finding in trees) through chain-of-thought during gradient-based training, including autonomous switching between two reasoning stages.

Approach

Explicit one-layer constructions plus gradient-descent training dynamics showing a two-head transformer learns to output the goal-to-root path and then reverse it, with one head traversing the path and the other head controlling the stage switch at the root; the extended CoT replaces the depth that prior work used.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train a one-layer, single-head transformer with autoregressive chain-of-thought for backward path findingOne-layer transformer · Randomly generated trees, backward reasoningtraining lossHelped
Train a one-layer, single-head transformer with autoregressive chain-of-thought for backward path findingOne-layer transformer · Unseen trees, backward reasoningtest lossHelped
Use two attention heads to traverse the path and control the reasoning stageOne-layer transformer · Randomly generated trees, forward reasoningtraining lossHelped
Use two attention heads to traverse the path and control the reasoning stageOne-layer transformer · Unseen trees, forward reasoningtest lossHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic random perfect binary trees randomly generated test trees (1024)

Benchmarks: synthetic random tree test set (1024 trees)

Metrics: squared error loss on test trees training loss entries of attention parameters

Builds on: chain-of-thought parity learning with CoT single-head dynamics

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