Abstract
Retrieval-Augmented Generation (RAG) enhances the performance of LLMs across various tasks by retrieving relevant information from external sources, particularly on text-based data. For structured data, such as knowledge graphs, GraphRAG has been widely used to retrieve relevant information. However, recent studies have revealed that structuring implicit knowledge from text into graphs can benefit certain tasks, extending the application of GraphRAG from graph data to general text-based data. Despite their successful extensions, most applications of GraphRAG for text data have been designed for specific tasks and datasets, lacking a systematic evaluation and comparison between RAG and GraphRAG on widely used text-based benchmarks. In this paper, we systematically evaluate RAG and GraphRAG on well-established benchmark tasks, such as Question Answering and Query-based Summarization. Our results highlight the distinct strengths of RAG and GraphRAG across different tasks and evaluation perspectives. Inspired by these observations, we investigate strategies to integrate their strengths to improve downstream tasks. Additionally, we provide an in-depth discussion of the shortcomings of current GraphRAG approaches and outline directions for future research.
1. Introduction
Retrieval-Augmented Generation (RAG) has become the industry standard for grounding Large Language Models (LLMs) in external data by retrieving relevant text chunks via vector search. Recently, GraphRAG has gained traction as a powerful alternative that structures text into a knowledge graph (entities and relationships) prior to retrieval. While anecdotal evidence suggested GraphRAG was superior for "complex" queries, the community lacked a rigorous, head-to-head comparison. This study addresses this gap by benchmarking both systems across diverse tasks, identifying when the overhead of graph construction is justified.
2. Methodology
We evaluated three distinct "flavors" of GraphRAG against a baseline RAG system:
- KG-based GraphRAG: Extracts (subject, relation, object) triplets and retrieves information by traversing the graph.
- Community-based GraphRAG: Groups entities into hierarchical "communities" and generates summaries for these groups (using both Local and Global search).
- Text-based GraphRAG (HippoRAG2): Treats original text chunks as nodes and links them via shared entities.
To leverage the strengths of both paradigms, we proposed two hybrid strategies: Selection (routing queries based on complexity) and Integration (combining results from both systems).
3. Experimental Setup
The study utilized a wide array of established benchmarks, including Natural Questions (NQ) for single-hop QA, HotpotQA and MultiHop-RAG for multi-hop reasoning, and NovelQA for long-context understanding. For summarization, we used SQuALITY, QMSum, and ODSum. All experiments were conducted using Llama-3.1-8B and 70B models.
4. Results and Discussion
Our evaluation reveals a fundamental "Detail vs. Reasoning" trade-off. Standard RAG acts as a "sniper," excelling at pinpointing fine-grained details for direct, single-hop questions. Conversely, GraphRAG acts as a "detective," better suited for connecting disparate information across a corpus for multi-hop reasoning.
4.1 Multi-hop and Hybrid Performance
On the MultiHop-RAG dataset, GraphRAG (Local) consistently outperformed standard RAG. The Integration strategy yielded the best overall performance, improving QA accuracy by up to 6.4 points on multi-hop benchmarks. However, for query-based summarization, standard RAG and HippoRAG2 generally performed better as they remained closer to the source text, whereas community-based GraphRAG often produced overly abstract summaries.
4.2 Bottlenecks and Evaluation Challenges
GraphRAG faces significant efficiency hurdles, with construction times often 40-50x slower than standard vector indexing. Additionally, KG-based methods are limited by "graph incompleteness"—if an LLM misses a relationship during indexing, that knowledge becomes inaccessible. We also identified a significant "position bias" in LLM-based evaluation, where the order of presented answers influenced the judge's preference, necessitating more robust metrics.
5. Conclusion
RAG and GraphRAG are complementary rather than competing technologies. While standard RAG is efficient for fact-retrieval, GraphRAG provides the relational context necessary for complex reasoning. Future research should focus on optimizing graph construction costs and improving the completeness of extracted knowledge representations.
Summary updated