Skip to main content

Understanding Transformer Reasoning Capabilities via Graph Algorithms

Clayton Sanford, Bahare Fatemi, Ethan Hall, Anton Tsitsulin, Mehran Kazemi, Jonathan Halcrow, Bryan Perozzi, Vahab Mirrokni

Characterizes graph-reasoning tasks by the transformer depth, width, and blank-token workspace needed to solve them. Combines formal capability bounds with graph-algorithm experiments comparing trained transformers, graph neural networks, and prompted language models.

First public: · Added to this list: November 25, 2026

Cite this paper

ArXiv preprint

arXiv:2405.18512 · Initial submission: 2024-05-28

BibTeX · CSL-JSON

Explore this approach

Analysis and evaluation — Measure how well these methods work, investigate what their internal computation does, and identify where they fail. This includes experiments, studies of model internals, and mathematical results.

Thinking tokens — Give a model extra tokens for computation, such as pauses, filler symbols, or learned planning tokens. These tokens need not spell out the solution.