← Back to Paper Radar

GTA: Graph Theory Agent and Benchmark for Algorithmic Graph Reasoning with LLMs

Zi-Xiang Xu, Yan-Bo Wang, Chenxi Wang, Lang Gao, Zirui Song, Yue Huang, Zhao-Run Chen, Xiang-Liang Zhang, Xiu-Ying Chen
arXiv.org | 2026

Reading guide · Based on sections of the original paper

The authors present GT Bench, a synthetic benchmark of 24 classical graph problems, each posed in four equivalent text encodings. They use it to show that LLM accuracy depends on the input format, then propose GTA, which pairs a learned representation selector with plan-and-decompose scaffolding around a frozen executor.

Why read this

This is for practitioners who prompt LLMs to reason over explicit graphs in language rather than through generated code, and who want evidence on format choice and decomposition at modest inference cost.

What the authors found

  • With Phi-4 as a frozen executor shared by all methods, the authors report that GTA scores 69.1% on GT Bench Easy and 41.5% on Hard. The strongest baseline, MaAS, scores 63.2% and 37.6%; vanilla prompting scores 53.5% and 33.0%. GTA also leads on GraCoRe (80.5%) and NLGraph (89.4%) despite training only on GT Bench. Each method was run on 1,000 instances per dataset. 6.2 Comparative Performance of GTA
  • Across eight models, the gap between the best and worst input format is 6.1 to 9.2 points for mid-capability models. It falls to 2.8 points for o3-mini and 1.9 for DeepSeek-R1. Each configuration was run once at temperature 0.01. 4.1 Representation Sensitivity
  • GTA components tuned with Phi-4 transfer to other executors. With DeepSeek-R1, changes on the near-saturated splits range from -0.2 to +0.1 points, while the Hard split gains 8.1 points. 6.6 Generality across Executor Models

Main limitation

All instances are synthetic and contain 6 to 60 nodes. The authors state that the results do not establish performance on domain-attributed graphs. They also report that on larger Hard graphs, GTA still degrades more steeply than QwQ-32B. B.4 Evaluation Scope and Statistical Protocol

Where to start

6.3 Ablation Study of GTA Components · Check how much each component contributes. Removing the selector, removing decomposition, and swapping the learned selector for a heuristic each change accuracy, and the same ordering holds across all four test sets.

Abstract

Large Language Models (LLMs) are increasingly asked to reason over structured data such as graphs, yet how reliably they can carry out multi-step graph algorithms in language remains unclear. Existing evaluations tend to use simple tasks on small graphs, to score code generation rather than reasoning over the graph itself, or to fix a single input format. We introduce Graph Theory Bench (GT Bench), a benchmark covering 24 classical graph problems in 44 task-structure settings, with over 100,000 examples across four representations: natural language, structured language, adjacency list, and adjacency matrix. Evaluating eight LLMs on GT Bench shows that accuracy is strongly tied to the input representation, that the best representation shifts with graph density, size, and topology as well as with the model, and that this sensitivity persists, attenuated, in the strongest reasoning models. Building on these observations, we propose the Graph Theory Agent (GTA), which pairs a preference-trained representation selector with plan-and-decompose scaffolding around a frozen executor LLM. GTA lifts Phi-4 from 53.5% to 69.1% on the benchmark's easy split and from 33.0% to 41.5% on its hard split, outperforming eight prompting and agent baselines, and transfers without retraining to GraCoRe and NLGraph. Code for benchmark generation and evaluation: https://github.com/xzx34/GTA. The project homepage is available at https://xzx34.github.io/gta/.

Generated automatically from paper sections on 2026-11-28.