Introduction
Knowledge Graph Question Answering (KGQA) has traditionally relied on semantic parsing, a process where natural language questions are translated into structured queries like SPARQL. While this approach offers high precision, it is inherently brittle. Minor discrepancies between a user's phrasing and the Knowledge Graph (KG) schema—such as using "genre" instead of "description"—can lead to total retrieval failure. Furthermore, Large Language Models (LLMs) frequently struggle with "tail entities" (obscure facts) and complex multi-hop reasoning, often resulting in hallucinations.
To address these challenges, we present KERAG, a novel Retrieval-Augmented Generation (RAG) pipeline. KERAG shifts away from rigid triple-based parsing toward a flexible "retrieve-filter-summarize" framework. By retrieving broader entity neighborhoods and employing a fine-tuned LLM for Chain-of-Thought (CoT) reasoning, KERAG significantly improves truthfulness and robustness across diverse datasets.
Methodology
The KERAG pipeline consists of three distinct stages designed to maximize information coverage while minimizing computational noise.
1. Planning and Schema-Level Filtering
Rather than generating a specific, restrictive query, the system first identifies the "topic entity" within the question. It then determines the necessary exploration depth (the number of "hops" from the entity). A critical innovation here is schema-level filtering: the model identifies relevant predicates (relation types) before fetching data. For instance, if a question concerns a film's "box office," the system proactively ignores irrelevant predicates like "birth_date," streamlining the subsequent retrieval.
2. Subgraph Retrieval
The plan is executed via API calls or SPARQL queries to retrieve a broad subgraph surrounding the topic entity. Unlike traditional methods that search for a single "gold path," KERAG captures the entity's neighborhood, ensuring that relevant context—even if stored in non-standard fields—is included in the context window.
3. Chain-of-Thought (CoT) Summarization
The core of KERAG is a Llama-3.1-8B model fine-tuned specifically to reason over retrieved subgraphs. To train this model, a "Critic" model was employed to evaluate LLM-generated reasoning paths against ground-truth answers. Only reasoning paths verified as correct were used for fine-tuning. This process ensures the model learns to effectively cross-reference facts and ignore irrelevant noise within the subgraph.
Experimental Setup
KERAG was evaluated against several rigorous benchmarks:
- CRAG (Comprehensive RAG Benchmark): A Meta-developed benchmark focusing on real-world questions across Movie, Finance, Sports, Music, and Open domains.
- Head2Tail: A dataset specifically designed to test robustness on popular ("head") versus obscure ("tail") entities.
- Classic KGQA Sets: Including QALD-10-en, WebQSP, AdvHotpotQA, and CWQ.
Performance was measured using a Truthfulness Metric ($T$): $$T = \text{Accuracy} - \text{Hallucination}$$ This metric penalizes models that provide confident but incorrect answers, a vital consideration for reliable RAG systems.
Results and Discussion
KERAG demonstrates a significant advancement over existing state-of-the-art (SOTA) methods and native LLM capabilities.
Performance Benchmarks
On the CRAG benchmark, KERAG achieved a truthfulness score of 0.529, substantially outperforming the previous SOTA (0.458). Notably, it nearly doubled the performance of base GPT-4o (0.251). Even when GPT-4o was equipped with native KG tool-use capabilities, KERAG maintained a lead of 10-21% in truthfulness. This suggests that GPT-4o’s internal tool-calling often fails to retrieve the comprehensive context required for complex, multi-hop queries.
Robustness and Efficiency
A key insight from the study is the advantage of entity-level retrieval over triple-level retrieval. By looking at the broader neighborhood, KERAG ensures that information is found even if the KG schema is inconsistent. Furthermore, schema-level filtering makes the system more cost-effective and faster than instance-level filtering methods like Talk-on-Graph (ToG).
The model also showed remarkable stability on "tail entities." While standard LLMs typically see a sharp performance decline as entities become less prominent, KERAG’s retrieval mechanism provides the necessary factual grounding to maintain high accuracy.
Limitations and Future Work
Despite its success, KERAG’s performance is currently bounded by the accuracy of its initial entity linking step. If the system fails to correctly identify the starting entity in the KG, the subsequent pipeline cannot recover. Additionally, as a multi-stage pipeline, errors in the planning or filtering phases can propagate to the final answer.
Future research will focus on integrating more advanced entity-linking techniques and refining the schema-level filtering to handle even more complex, cross-domain ontologies.
Summary updated