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

Can Knowledge-Graph-based Retrieval Augmented Generation Really Retrieve What You Need?

Junchi Yu, Yujie Liu, Jindong Gu, Philip Torr, Dongzhan Zhou

Introduction

Retrieval-Augmented Generation (RAG) has become the standard approach for grounding Large Language Models (LLMs) in factual data, significantly reducing the risk of hallucinations. While traditional RAG often relies on unstructured text chunks, Knowledge-Graph-based RAG (KG-RAG) leverages structured nodes and edges to provide richer context. However, current KG-RAG systems struggle with complex, multi-hop queries that require navigating dense, text-heavy graphs.

Comparison of simple vs. complex queries in Knowledge Graphs.

As illustrated in Figure 1, while a query like "Who is Alice’s father?" is a straightforward link-following task, a request to "List papers published by University A related to Topic B" requires the model to synthesize information across institutions, researchers, and technical abstracts. This introduces the "Credit Assignment Problem"—identifying which specific traversal steps led to a correct answer—and the challenge of maintaining result diversity.

Methodology: Introducing GraphFlow

To address these challenges, we present GraphFlow, a framework that treats KG retrieval as a multi-step decision process guided by Generative Flow Networks (GFlowNets). Unlike standard reinforcement learning that seeks a single optimal path, GraphFlow learns to sample paths with a probability proportional to their reward, ensuring both accuracy and diversity.

Technical Innovations

  • Reward Factorization: GraphFlow employs a "flow estimator" to mathematically decompose final outcome rewards into intermediate step-level supervision. This provides "process-level" guidance without the need for expensive manual labeling.
  • Detailed Balance Objective: The model is trained to balance the "flow" of probability into and out of states, forcing the policy to align path selection with its contribution to the final answer.
  • LLM-Based Navigation: The system utilizes a LLaMA-3-8B backbone with LoRA (Low-Rank Adaptation) to process node text and make navigation decisions simultaneously.

Experimental Evaluation

GraphFlow was evaluated on the STaRK benchmark, which includes three large-scale, text-rich Knowledge Graphs: STaRK-AMAZON (e-commerce), STaRK-MAG (academic), and STaRK-PRIME (biomedical). These datasets are particularly challenging because they require the AI to understand both structural links and dense textual content.

Results and Discussion

GraphFlow consistently outperformed state-of-the-art baselines, including those powered by GPT-4o, by an average of 10% across key metrics.

Performance comparison of GraphFlow against baselines on STaRK datasets.

As shown in Figure 6, GraphFlow achieves significantly higher Hit@1 scores compared to SubgraphRAG, Supervised Fine-Tuning (SFT), and Process Reward Models (PRM) on the STaRK-AMAZON and STaRK-MAG datasets. Beyond raw accuracy, the framework excels in diversity; on the STaRK-PRIME dataset, GraphFlow achieved a 79.71% Recall@20, compared to just 54.35% for the GPT-4o baseline.

Key Insights

  • Cross-Domain Generalization: Models trained on e-commerce data showed surprising efficacy in biomedical graphs, suggesting that GraphFlow learns a generalizable graph-search strategy rather than just memorizing facts.
  • Handling Complexity: The performance gap between GraphFlow and other methods widened on "hard" queries requiring 15 or more retrieval targets, highlighting its robustness in high-complexity scenarios.

Conclusion

GraphFlow represents a significant step forward for KG-RAG, offering a mathematically grounded approach to diverse and accurate information retrieval. By solving the credit assignment problem through flow networks, it provides the benefits of process-level supervision without the associated labeling costs. Future work will explore incorporating causal reasoning and optimizing computational efficiency for even larger-scale deployments.

Summary updated

BibTeX
@inproceedings{yu2025can,
  author = {Junchi Yu and Yujie Liu and Jindong Gu and Philip Torr and Dongzhan Zhou},
  title = {{Can Knowledge-Graph-based Retrieval Augmented Generation Really Retrieve What You Need?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=po0eyoYFUa},
}
Figure