# Understanding Transformer Reasoning Capabilities via Graph Algorithms

Authors: 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: 2024-05-28.
ArXiv initial submission: 2024-05-28.

[Original paper](https://arxiv.org/abs/2405.18512) · [PDF](https://arxiv.org/pdf/2405.18512) · [HTML](https://arxiv.org/html/2405.18512v1) · [Reading-list entry](https://latent-implicit-thinking.github.io/papers/2405.18512/)
[Preprint BibTeX](https://latent-implicit-thinking.github.io/papers/2405.18512/citation.bib) · [Preprint CSL-JSON](https://latent-implicit-thinking.github.io/papers/2405.18512/citation.csl.json) · [JSON record](https://latent-implicit-thinking.github.io/papers/2405.18512/record.json)

## Approaches

- [Thinking tokens](https://latent-implicit-thinking.github.io/topics/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.
- [Analysis and evaluation](https://latent-implicit-thinking.github.io/topics/implicit-reasoning-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.

Reading-list version 0.21.0; last additions 2026-12-01; literature checked through 2026-11-03.
