The Gist of It Logo
🧠 LLMs & ML ★ Impact 9.2/10 arXiv:2611.13594v1 • November 10, 2026
📄 arXiv Preprint • Not Peer-Reviewed

Transformers Provably Learn Graph Search: Training Dynamics and the Exponential Power of Depth

Authors: Xutao Ma, Somayeh Sojoudi

Proves theoretically how transformer depth provides exponential power in learning graph search and multi-step reasoning.

This paper was scored on our daily Full Radar. Generate a full plain-English analogy, key takeaways, and PhD technical brief on demand inside the interactive web reader.

Generate Full Breakdown →
📑 Original arXiv Technical Abstract

Large Language Models (LLMs) have achieved remarkable progress on complex reasoning tasks, yet the mechanisms by which they acquire reasoning capabilities and the efficiency of their reasoning remain poorly understood. In this paper, we investigate the path-finding problem over directed graphs, a symbolic abstraction of multi-step reasoning. We first characterize the architectural requirements for this task, proving that one-layer transformers require Ω(N^2) size on dense graphs to implement the key DFS child-selection primitive. While a two-layer transformer implements full DFS with O(Nlog(N)) size. Thus, a second layer is necessary and sufficient for near-linear DFS reasoning. We then extend this expressivity analysis to deeper models: for every k≥3, a k-layer transformer implements a bounded-reachability DFS policy with look-ahead horizon 1+2 (k-3) , establishing an exponential increase in reachability horizon with depth. Finally, going beyond expressivity, given appropriately curated training data, we show that two-layer transformers can provably learn to execute DFS via gradient flow and generalize to unseen graphs. Together, our results provide a mechanistic account of how transformers implement graph search, how depth expands bounded look-ahead, and how such reasoning algorithms can emerge through training.

✍️ Are you an author of this paper? Add code/demo links or a note

Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.

𝕏 Share Your Paper's Gist on X

📬 Get daily LLMs & ML breakthroughs in your inbox

We scan hundreds of daily arXiv preprints across 6 frontier fields and send the top breakthroughs in plain English—with everyday analogies and 1-click PhD briefs. Free forever.

More Curated Breakthroughs

Hand-picked from the November 10, 2026 edition.