The paper studies how transformer models learn to perform graph search, specifically depth‑first search (DFS), on directed graphs. It shows that a single‑layer transformer needs a quadratic number of parameters to implement the DFS child‑selection step, while a two‑layer transformer can perform full DFS with near‑linear size. Moreover, each additional layer exponentially increases the look‑ahead horizon, and the authors prove that two‑layer transformers can learn DFS through gradient flow and generalize to unseen graphs.
By Xutao Ma, Somayeh Sojoudi
arXiv:2503. 01805v3 Announce Type: replace-cross Abstract: Transformers have revolutionized the field of machine learning.
By Gilad Yehudai, Clayton Sanford, Maya Bechler-Speicher, Orr Fischer, Ran Gilad-Bachrach, Amir Globerson
arXiv:2604. 07822v2 Announce Type: replace-cross Abstract: We study implicit reasoning, i.
By Harsh Kohli, Srinivasan Parthasarathy, Huan Sun, Yuekun Yao
arXiv:2607. 19405v1 Announce Type: new Abstract: The CoTFormer architecture formalizes Chain-of-Thought as a form of recurrent latent computation, preserving intermediate states as attendable representations to mimic explicit reasoning traces.
By Aras Kavuncu, Bryan Vullo, Alberto Berni
arXiv:2603.21676v2 Announce Type: replace-cross
Abstract: Standard Transformers have a fixed computational depth, limiting their ability to generalize to tasks that require variable-depth reasoning....
By Hung-Hsuan Chen
arXiv:2604. 11912v2 Announce Type: replace-cross Abstract: While next-token prediction (NTP) has been the standard objective for training language models, it often struggles to capture global structure in reasoning tasks.
By Jianhao Huang, Zhanpeng Zhou, Renqiu Xia, Baharan Mirzasoleiman, Weijie Su, Wei Huang