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

Knowledge Graph-Guided Retrieval Augmented Generation

Xiangrong Zhu, Yuexiang Xie, Yi Liu, Yaliang Li, Wei Hu

Introduction

Standard Retrieval-Augmented Generation (RAG) has become a cornerstone for grounding Large Language Models (LLMs) in external data. However, most current implementations rely almost exclusively on semantic similarity—mapping user queries and document chunks into a vector space to find the closest matches. While effective for simple lookups, this approach suffers from two critical limitations: redundancy and a lack of structural coherence.

Semantic search often retrieves multiple chunks containing the same information while missing the "connective tissue" between disparate facts. This results in a "Frankenstein" prompt—a collection of isolated snippets that lack the logical flow necessary for complex reasoning. To address these issues, the proposed KG²RAG (Knowledge Graph-Guided Retrieval Augmented Generation) framework moves beyond simple similarity by leveraging Knowledge Graphs (KGs) to capture and utilize fact-level relationships between text chunks.

Comparison of RAG paradigms: LLM-only, Semantic RAG, and the proposed Graph RAG.

The KG²RAG Framework

KG²RAG introduces a sophisticated three-stage pipeline designed to bridge the gap between unstructured text and structured knowledge. By establishing a map of factual relationships, the system can navigate through documents more effectively than vector search alone.

1. Document Offline Processing

Before retrieval occurs, documents are partitioned into chunks. An LLM is then employed to extract "triplets" (subject-relation-object) from each chunk, constructing a local Knowledge Graph. This graph serves as a structural skeleton, mapping how different pieces of information across the corpus relate to one another factually.

2. KG-Enhanced Chunk Retrieval

The retrieval process begins with a Semantic Seed, where standard vector search identifies initial relevant chunks. KG²RAG then performs Graph-guided Expansion, treating these seeds as entry points into the Knowledge Graph. Using a breadth-first search (BFS), the system identifies related chunks that may not be semantically similar to the query but are factually indispensable for a complete answer (e.g., a "bridge" chunk connecting a film to its director’s background).

3. KG-Based Context Organization

To ensure the LLM receives a high-quality prompt, the system performs two final steps:

  • Filtering: A Maximum Spanning Tree (MST) algorithm is used to prune the graph, retaining only the most relevant and non-redundant links to avoid overwhelming the model with noise.
  • Arranging: A depth-first search (DFS) orders the remaining chunks into logically coherent paragraphs. This ensures the context flows naturally, mirroring the structure of the underlying knowledge graph.
The workflow of KG²RAG, illustrating semantic retrieval, graph-guided expansion, and context organization.

Experimental Evaluation

The authors evaluated KG²RAG against several challenging benchmarks, including HotpotQA (multi-hop reasoning) and MuSiQue. To test the model's reliance on retrieved context versus internal memory, they introduced Shuffle-HotpotQA, a variant where entities are randomly replaced (e.g., swapping famous film titles). This forces the LLM to rely strictly on the provided documents.

Key Results

  • Accuracy Gains: On the "Fullwiki" setting of HotpotQA, KG²RAG achieved an improvement of at least 8% in F1 score over competitive baselines like GraphRAG.
  • Robustness: In the Shuffle-HotpotQA tests, KG²RAG outperformed LLM-only approaches by over 29%, demonstrating its superior ability to ground models in new or modified information.
  • Precision and Recall: By filtering redundant information through graph structures, the system achieves significantly higher precision than standard RAG, which often retrieves "noisy" or repetitive content.

Discussion and Key Insights

The success of KG²RAG stems from the "Bridge Effect." In complex queries, the information needed to answer a question is often distributed across multiple documents that do not share common keywords. By using a KG to find these hidden connections, KG²RAG can synthesize answers that semantic-only systems miss. Furthermore, the framework is designed for efficiency; unlike other graph-based methods that require extensive real-time LLM calls, KG²RAG uses a query-independent KG construction that maintains retrieval speeds comparable to standard RAG.

Conclusion and Future Directions

KG²RAG demonstrates that the structural organization of retrieved information is just as important as the retrieval itself. By treating a document collection as a linked graph rather than a flat list of chunks, the framework significantly reduces hallucinations and improves reasoning performance. Future work aims to evolve this into "KG⁴RAG," a more modular, plug-and-play tool that can integrate with broader RAG optimization frameworks, including query rewriting and multi-turn dialogue management.

Summary updated

BibTeX
@inproceedings{zhu2025knowledge,
  author = {Xiangrong Zhu and Yuexiang Xie and Yi Liu and Yaliang Li and Wei Hu},
  title = {{Knowledge Graph-Guided Retrieval Augmented Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.449},
}
Figure