Reproduce “Revisiting the Graph Reasoning Ability of Large Language Models: Case Studies in Translation, Connectivity and Shortest Path” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xinnan Dai, Qihao Wen, Yifei Shen, Hongzhi Wen, Dongsheng Li, Jiliang Tang, Caihua Shan

This research identifies that Large Language Models frequently struggle with graph reasoning tasks, showing sensitivity to graph complexity and description format, and introduces a comprehensive benchmark to diagnose these limitations. The study finds that while LLMs often lack true structural comprehension, their performance can be substantially improved through algorithmic prompting and sufficient task-specific data.

Key insights

  • LLMs exhibit "faithfulness hallucinations," ignoring existing edges or introducing non-existent ones, indicating a lack of true structural comprehension rather than merely reasoning failure.
  • Performance is highly sensitive to graph description format; Node Lists generally lead to better performance for connectivity tasks compared to Edge Lists, attributed to algorithmic complexity differences for token search.
  • Algorithmic Chain-of-Thought prompting (e.g., BFS-CoT) and meaningful node naming significantly enhance LLM graph reasoning, suggesting that guidance and contextual knowledge are crucial.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.