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

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

10 Sep 2026arXiv:2609.12265added by Syntology

Zixiang Xu, Yanbo Wang, Chenxi Wang, Lang Gao, Zirui Song, Yue Huang, Zhaorun Chen, Xiangliang Zhang, Xiuying Chen

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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/.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2609.12265")

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xzx34/GTA found in paper text by SyntologyMIT report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 0 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from xzx34/GTA. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

attributes xzx34/GTA/src/gtbench/formats.py found in paper text by Syntology unverified MIT (permissive) · fb9e59aac275392c · report
determinant xzx34/GTA/src/gtbench/solvers.py found in paper text by Syntology unverified MIT (permissive) · be97d5a30ae5391c · report
digest xzx34/GTA/src/gtbench/data.py found in paper text by Syntology unverified MIT (permissive) · 6f7602f3af1e189f · report
extract_answer xzx34/GTA/src/gtbench/evaluate.py found in paper text by Syntology unverified MIT (permissive) · 0a5cb941be6403a6 · report
generate_dataset xzx34/GTA/src/gtbench/generate.py found in paper text by Syntology unverified MIT (permissive) · f9b6c86d13541248 · report
generate_graph xzx34/GTA/src/gtbench/generate.py found in paper text by Syntology unverified MIT (permissive) · a36efd4d6a7768ff · report
generate_instance xzx34/GTA/src/gtbench/generate.py found in paper text by Syntology unverified MIT (permissive) · d6925f96db385b05 · report
get_task xzx34/GTA/src/gtbench/tasks.py found in paper text by Syntology unverified MIT (permissive) · 61d7b30722025b3d · report
json_text xzx34/GTA/src/gtbench/data.py found in paper text by Syntology unverified MIT (permissive) · f5e2b9aa7af37032 · report
make_record xzx34/GTA/src/gtbench/data.py found in paper text by Syntology unverified MIT (permissive) · 7aa74ae08a432497 · report
read_config xzx34/GTA/src/gtbench/evaluate.py found in paper text by Syntology unverified MIT (permissive) · bdaaccbb96c37a8e · report
score_examples xzx34/GTA/src/gtbench/evaluate.py found in paper text by Syntology unverified MIT (permissive) · 04876e2b0114d507 · report
second_mst xzx34/GTA/src/gtbench/solvers.py found in paper text by Syntology unverified MIT (permissive) · 633e68fffeaf19b3 · report
spanning_tree_count xzx34/GTA/src/gtbench/solvers.py found in paper text by Syntology unverified MIT (permissive) · 8aea140b5b8b6e24 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2609.12265, was issued in September 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections