mlsanityData to 14 Oct 2026

Zero-shot Graph Reasoning via Retrieval Augmented Framework with LLMs

arXiv 2509.12743 ↗First posted 16 Sep 2025cs.AI cs.CLcited by 1

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

also in 1 more
Abstract (arXiv)

We propose a new, training-free method, Graph Reasoning via Retrieval Augmented Framework (GRRAF), that harnesses retrieval-augmented generation (RAG) alongside the code-generation capabilities of large language models (LLMs) to address a wide range of graph reasoning tasks. In GRRAF, the target graph is stored in a graph database, and the LLM is prompted to generate executable code queries that retrieve the necessary information. This approach circumvents the limitations of existing methods that require extensive finetuning or depend on predefined algorithms, and it incorporates an error feedback loop with a time-out mechanism to ensure both correctness and efficiency. Experimental evaluations on the GraphInstruct dataset reveal that GRRAF achieves 100% accuracy on most graph reasoning tasks, including cycle detection, bipartite graph checks, shortest path computation, and maximum flow, while maintaining consistent token costs regardless of graph sizes. Imperfect but still very high performance is observed on subgraph matching. Notably, GRRAF scales effectively to large graphs with up to 10,000 nodes.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 13 of its 55 references that are in the map. First posted on arXiv 16 Sep 2025.

Builds on

13 of 55 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024Scalable and Accurate Graph Reasoning with LLM-based Multi-Agents7 Oct
  2. 2024Graph Reasoning with Large Language Models via Pseudo-code Prompting26 Sep
  3. 2024GraphEval36K: Benchmarking Coding and Reasoning Capabilities of Large Language Models on Graph Datasets23 Jun
  4. 2024GNN-RAG: Graph Neural Retrieval for Large Language Model Reasoning30 May
  5. 2024Reasoning on Efficient Knowledge Paths:Knowledge Graph Guides Large Language Model for Domain Question Answering16 Apr
  6. 2023Graph-ToolFormer: To Empower LLMs with Graph Reasoning Ability via Prompt Augmented by ChatGPT10 Apr

Other references · 7

  1. 2019A Comprehensive Survey on Graph Neural Networkscited by 2,919
  2. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
  3. 2024Graph Retrieval-Augmented Generation: A Surveycited by 324
  4. 2023GPT4Graph: Can Large Language Models Understand Graph Structured Data ? An Empirical Evaluation and Benchmarkingcited by 210
  5. 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 118
  6. 2023Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysiscited by 35
  7. 2024LangGFM: A Large Language Model Alone Can be a Powerful Graph Foundation Modelcited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025GRAIL:Learning to Interact with Large Knowledge Graphs for Retrieval Augmented Reasoning
  2. 2025Rethinking and Benchmarking Large Language Models for Graph Reasoning
  3. 2026GraphSkill: Documentation-Guided Hierarchical Retrieval-Augmented Coding for Complex Graph Reasoning
  4. 2025Reasoning by Exploration: A Unified Approach to Retrieval and Generation over Graphs
  5. 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capability
  6. 2024CodeGraph: Enhancing Graph Reasoning of LLMs with Code
  7. 2024Can LLM Graph Reasoning Generalize beyond Pattern Memorization?
  8. 2026GTA: Graph Theory Agent and Benchmark for Algorithmic Graph Reasoning with LLMs