TL;DR
EA-GraphRAG introduces a dynamic, syntax-aware routing framework that decides whether a query needs simple text-based retrieval (vanilla RAG) or deep, graph-based relational reasoning (GraphRAG). By evaluating query complexity using a lightweight machine learning adapter, it achieves state-of-the-art accuracy across both simple and complex questions while drastically reducing retrieval latency.
What Problem Does This Paper Address?
Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external knowledge. However, vanilla RAG struggles with complex, multi-hop queries that require connecting the dots across multiple documents. To fix this, Graph-augmented RAG (GraphRAG) was introduced, mapping text corpora into structured knowledge graphs to enable relational reasoning.
Paradoxically, recent studies show that GraphRAG often underperforms vanilla RAG on simple, single-hop questions. It rigidly applies heavy graph traversal to every query, which not only incurs massive latency but also introduces irrelevant graph noise that confuses the LLM.
The authors identify this "one-size-fits-all" application as a fundamental flaw. The ideal system should be adaptive: using fast, dense retrieval for simple questions and reserving expensive graph retrieval for complex ones.
Methods
The authors propose EA-GraphRAG (Efficient and Adaptive GraphRAG), which features a tri-routing architecture driven by three core components:
- Syntactic Feature Constructor: Instead of using an expensive LLM to judge query complexity, the framework uses lightweight linguistic tools (Stanza and SpaCy) to extract over 80 structural features from the query's parse tree (e.g., clause lengths, dependency distances, sentence complexity ratios).
- Lightweight Complexity Scorer: A small Multi-Layer Perceptron (MLP) with feature attention maps these syntactic features to a continuous complexity score $s(q) \in (0, 1)$.
- Score-Driven Routing Policy: Based on two tuned thresholds ($\tau_L$ and $\tau_H$), the query takes one of three paths:
- Low Complexity ($s(q) \le \tau_L$): Routes to the RAG path (dense vector retrieval).
- High Complexity ($s(q) \ge \tau_H$): Routes to the GraphRAG path (Personalized PageRank over a heterogeneous knowledge graph).
- Borderline Cases ($\tau_L < s(q) < \tau_H$): Routes to a Fusion path, combining the results of both dense and graph retrieval using a complexity-weighted Reciprocal Rank Fusion (wRRF) algorithm.
Datasets
The framework was evaluated on four established question-answering benchmarks:
- Single-hop QA (Simple): Natural Questions (NQ) and PopQA.
- Multi-hop QA (Complex): 2WikiMultihopQA and HotpotQA.
- Mixed Benchmark: A custom dataset created by uniformly mixing equal numbers of queries from the single-hop and multi-hop datasets to simulate a realistic, heterogeneous production workload.
Key Insights and Ideas
- Syntax as a Proxy for Complexity: The most elegant insight is that a query's grammatical structure strongly correlates with its retrieval complexity. Evaluating syntax using traditional NLP tools is computationally negligible compared to semantic scoring via LLMs, making it highly practical for production.
- The Danger of Graph Noise: GraphRAG's global entity linking can be its downfall for simple questions. For instance, asking "When is season 8 of Game of Thrones?" might cause a graph retriever to pull information about The Walking Dead season 8 due to shared structural patterns, whereas vanilla RAG directly targets the semantic text match.
- Soft Fallbacks via Fusion: Rather than making a strict binary choice, the inclusion of a fusion zone handles ambiguous queries where a mix of local semantic text and global graph structure yields the best context.
Key Results
EA-GraphRAG achieves a superior operating point on the accuracy-latency Pareto frontier:
- Accuracy Gains: On the mixed benchmark, EA-GraphRAG achieved 71.6% Accuracy (and 76.9% GPT-Evaluation Accuracy), outperforming the strongest dense baseline (ColBERTv2 at 65.3%) and the strongest graph baseline (HippoRAG2 at 68.5%).
- Latency Reduction: While pure graph-based retrieval took an average of 3.23 seconds per query, EA-GraphRAG cut the average retrieval time down to 2.19 seconds (a significant saving under mixed workloads), and down to 1.14 seconds when the fusion module was bypassed.
Limitations and Future Work
The authors note that the framework's overhead is primarily driven by the fusion path when handling borderline queries. Tuning the thresholds $\tau_L$ and $\tau_H$ remains a manual trade-off between maximum accuracy and minimal latency. Future work could explore automating threshold adjustments dynamically based on real-time system load or expanding the syntactic feature set to support multi-lingual queries where sentence structures vary significantly.
Summary updated