atlas

Research map / Large language models / Agents, code and math

GraphArena: Evaluating and Exploring Large Language Models on Graph Computation

ICLR 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces GraphArena, a benchmark of 10 real-world graph computation tasks (4 polynomial, 6 NP-complete) with path-based evaluation that separates correct, suboptimal, hallucinatory and missing answers, evaluates 10 LLMs, and tests CoT, SFT, code writing, and test-time scaling as remedies.

Problem

Existing graph reasoning benchmarks for LLMs rely on synthetic graphs, cover only basic tasks, and grade by string-matching final answers, which allows guessing and hides failure modes on harder problems such as NP-complete graph tasks.

Approach

Sample subgraphs from real-world graphs (DBLP, Social Network, DBpedia, OpenFlights, PubChemQC) across 10 polynomial and NP-complete tasks, and grade LLM outputs by checking the returned solution path for feasibility and optimality against exact solvers, yielding correct, suboptimal, hallucinatory, or missing categories.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase graph size from small to largeLLMs on polynomial-time tasks · GraphArena polynomial-time tasksaccuracy: Claude-3.5-sonnet: 82.2 -> 58.7; Llama3-70b: 61.2 -> 31.6Hurt
move from polynomial-time to NP-complete tasksLLMs on large graphs · GraphArena large graphsaccuracy: Claude-3.5-sonnet: 58.7 -> 7.2; Llama3-70b: 31.6 -> 4.7Hurt
instruction-tune on 10,000 GraphArena problems with ground-truth solution paths (ablation)Llama3-8b · Polynomial-time tasks (small graphs)accuracy: 28.6 -> 54.7Helped
instruction-tune on 10,000 GraphArena problems with ground-truth solution paths (ablation)Llama3-8b · Polynomial-time tasks (large graphs)accuracy: 20.2 -> 38.1Helped
instruction-tune on 10,000 GraphArena problems with ground-truth solution paths (ablation)Llama3-8b · NP-complete tasks (large graphs)accuracy: 1.4 -> 7.5Helped
prompt to write and execute code (ablation)GPT-4o · Polynomial-time tasks (small graphs)accuracy: 76.9 -> 62.7Hurt
prompt to write and execute code (ablation)GPT-4o · Polynomial-time tasks (large graphs)accuracy: 43.5 -> 51.1Helped
prompt to write and execute code (ablation)DeepSeek-V2 · Polynomial-time tasks (large graphs)hallucination: 61.1% to 31.4%Helped
add chain-of-thought examples (ablation)LLMs on Graph Diameter and Connected Component · GraphArena Diameter and Connected Component tasksaccuracyMixed
increase test-time attempts using parallel sampling or sequential progressive hints (ablation)GPT-4o-mini · three large-scale graph tasksaccuracyMixed
replace Edge List with Adjacency List graph tokenizer (ablation)GPT-4o · Shortest Distance (large graphs)accuracy: 0.720 -> 0.774Helped
replace Edge List with Adjacency Matrix graph tokenizer (ablation)GPT-4o · Shortest Distance (large graphs)accuracy: 0.720 -> 0.448Hurt

Surprising findings

Limitations

Experimental setup

Datasets: DBLP Social Network (Digg, Flixster, Lastfm, Pokec) DBpedia1M OpenFlights PubChemQC / PCQM4Mv2

Benchmarks: GraphArena

Metrics: accuracy feasibility hallucination rate MRR top-1 probability top-3 probability

Baselines: GPT-4o-mini Random algorithm Greedy algorithm Approximation algorithm GIN GAT GraphSAGE GraphWiz GraphToken

Builds on: NLGraph GraphQA CLRS-Text GraphWiz progressive-hint prompting

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy