NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoning

Wenjie Wu, Yongcheng Jing, Yingjie Wang, Wenbin Hu, Dacheng TaoarXiv 2025

Abstract: Recent large language model (LLM) reasoning, despite its success, suffers from limited domain knowledge, susceptibility to hallucinations, and constrained reasoning depth, particularly in small-scale models deployed in resource-constrained environments. This paper presents the first investigation into integrating step-wise knowledge graph retrieval with step-wise reasoning to address these challenges, introducing a novel paradigm termed as graph-augmented reasoning. Our goal is to enable frozen, small-scale LLMs to retrieve and process relevant mathematical knowledge in a step-wise manner, enhancing their problem-solving abilities without additional training. To this end, we propose KG-RAR, a framework centered on process-oriented knowledge graph construction, a hierarchical retrieval strategy, and a universal post-retrieval processing and reward model (PRP-RM) that refines retrieved information and evaluates each reasoning step. Experiments on the Math500 and GSM8K benchmarks across six models demonstrate that KG-RAR yields encouraging results, achieving a 20.73% relative improvement with Llama-3B on Math500.

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in reasoning, yet they frequently encounter limitations when applied to complex, multi-step mathematical problems. Smaller models, in particular, suffer from limited domain knowledge, a tendency toward step-wise hallucinations, and constrained reasoning depth. Traditional Retrieval-Augmented Generation (RAG) often fails in these scenarios because it typically retrieves information only once at the start of a problem, whereas multi-step reasoning requires dynamic, context-aware knowledge at each stage of the solution.

Comparison of reasoning paradigms: CoT, Traditional RAG, and Step-by-Step KG-RAR.

To address these challenges, we introduce KG-RAR (Knowledge Graph-based Retrieval-Augmented Reasoning). This framework integrates step-wise knowledge graph retrieval with step-wise reasoning, allowing frozen LLMs to consult a structured "process-oriented" knowledge graph at every juncture of a problem-solving journey.

Methodology: The KG-RAR Framework

The KG-RAR framework is built upon three core components designed to provide "turn-by-turn" guidance for reasoning models.

1. Process-Oriented Math Knowledge Graph (MKG)

Unlike standard KGs that store static facts, the MKG is constructed using the PRM800K dataset to capture procedural knowledge. It contains nodes representing specific problems, correct solution procedures, common error patterns, and foundational mathematical concepts. This structure allows the model to retrieve not just facts, but the "how-to" logic required for specific reasoning steps.

2. Hierarchical Retrieval Strategy

To ensure the model receives the most relevant information without being overwhelmed by noise, KG-RAR employs a two-stage hierarchical retrieval process. It first narrows the search space by identifying the relevant mathematical branch (e.g., Number Theory) and subfield. Subsequently, it uses semantic similarity to extract a specific "sub-graph" tailored to the current reasoning step.

3. Post-Retrieval Processing and Reward Model (PRP-RM)

A critical innovation of KG-RAR is the PRP-RM, a training-free module that utilizes frozen LLMs as "teachers" to refine retrieved data:

  • Responsible Teacher: Distills raw KG data into concise guidance.
  • Socratic Teacher: Reformulates information into helpful prompts or questions to guide the model without revealing the final answer prematurely.
  • Critical Teacher: Acts as a verifier, evaluating the correctness of the current reasoning step before the model proceeds.
A detailed example of the KG-RAR workflow showing retrieval and refining at each step.

Experimental Evaluation

We evaluated KG-RAR across six models on two primary benchmarks: Math500 (a challenging subset of the MATH dataset) and GSM8K (grade-school math). The Math Knowledge Graph was constructed using process-supervision data from PRM800K.

The results demonstrate significant performance gains, particularly for smaller models. For instance, Llama-3B achieved a 20.73% relative improvement on Math500 compared to standard Chain-of-Thought (CoT) prompting. Llama-8B also saw substantial improvements, with a 15.22% gain on Math500 and an 8.68% gain on GSM8K.

Key Insights and Discussion

  • Dynamic Guidance: KG-RAR acts as a "GPS" for reasoning, providing real-time corrections and warnings about common "potholes" (errors) that static RAG methods miss.
  • Empowering Small Models: Small models (1B-8B) benefit most from this framework. While they possess the logic to reason, they often lack the internal memory for niche domain knowledge; KG-RAR effectively bridges this gap.
  • The Value of Structure: Experiments confirm that retrieving from a structured graph—where relationships between steps are explicit—is far more effective than retrieving from unstructured, flat document lists.
  • Refinement is Crucial: Ablation studies show that the "Refining" stage (via PRP-RM) is essential; providing raw, unrefined KG data to the model is significantly less effective.

Conclusion

KG-RAR presents a viable, training-free paradigm for enhancing LLM reasoning through step-wise knowledge integration. While the framework introduces some computational overhead due to repeated retrieval and evaluation, it successfully scales a model's intelligence during inference. Future work will focus on reducing this overhead, improving KG quality to minimize noise, and extending the framework to other complex domains such as scientific discovery and legal reasoning.

Summary updated

BibTeX
@misc{wu2025graph,
  author = {Wenjie Wu and Yongcheng Jing and Yingjie Wang and Wenbin Hu and Dacheng Tao},
  title = {{Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoning}},
  year = {2025},
  eprint = {2503.01642},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01642},
}
Figure