TLDR: A new framework, SynthKGQA, generates high-quality synthetic Knowledge Graph Question Answering (KGQA) datasets with ground-truth facts. This enables more informative benchmarking and improved training of Knowledge Graph-augmented Large Language Models (LLMs), leading to enhanced factual accuracy and generalization abilities, particularly for complex multi-hop questions. The accompanying GTSQA dataset challenges current models and demonstrates that training with ground-truth subgraphs significantly outperforms traditional shortest-path methods.
Large Language Models (LLMs) have made incredible strides in understanding and generating human-like text, but they often struggle with factual accuracy, sometimes producing convincing but incorrect information, a phenomenon known as hallucination. To combat this, a technique called Retrieval Augmented Generation (RAG) is widely used, where LLMs retrieve relevant information from a knowledge source before generating an answer. While RAG traditionally uses documents, a promising alternative is to retrieve information from Knowledge Graphs (KGs), which store facts as structured triples (subject, predicate, object).
However, evaluating and training these KG-augmented LLMs has been challenging due to a lack of high-quality datasets that provide the ‘ground-truth’ facts needed for reasoning over questions. Existing datasets often have issues with factual correctness, are outdated, or lack the detailed ground-truth information required to properly assess how well a model retrieves information from a KG. This makes it difficult to compare different KG retrieval methods and truly understand their strengths and weaknesses. This is where a new research paper, “Ground-Truth Subgraphs for Better Training and Evaluation of Knowledge Graph Augmented LLMs” by Alberto Cattaneo, Carlo Luschi, and Daniel Justus from Graphcore Research, introduces a significant advancement.
Introducing SynthKGQA: A New Approach to Dataset Generation
The researchers propose SynthKGQA, a novel framework designed to generate large-scale, high-quality synthetic Knowledge Graph Question Answering (KGQA) datasets from any Knowledge Graph. What makes SynthKGQA unique is its ability to provide the complete set of ground-truth facts (known as ground-truth answer subgraphs) from the KG that are necessary to answer each question. This is crucial for both evaluating and training KG retrievers effectively.
The SynthKGQA framework operates in four key steps:
- Seed Subgraph Sampling: It begins by randomly sampling a small, connected subgraph from the KG to serve as context for question generation.
- LLM-powered Candidate Proposal: A frontier LLM (like GPT-4.1) is then prompted to generate a natural language question, the exact ground-truth answer subgraph required to answer it, the answer itself, the seed entities mentioned in the question, and a SPARQL query (a standard query language for KGs) that logically represents the question.
- Candidate Validation: The generated SPARQL query is executed against the KG to verify that the LLM’s proposed answer is correct and that all the ground-truth triples and seed entities are indeed necessary and valid. Incorrect or inconsistent data points are discarded.
- Augmentation and Classification: To enhance diversity, another LLM paraphrases the question. Additionally, the framework classifies the structure of the ground-truth answer subgraph (its ‘graph isomorphism type’) to objectively measure question complexity and identify redundant information.
GTSQA: A Challenging New Dataset for Knowledge Graph Question Answering
As a direct application of SynthKGQA, the researchers created Ground-Truth Subgraphs for Question Answering (GTSQA), a new synthetic dataset grounded in the regularly updated Wikidata KG. GTSQA contains over 32,000 questions, with a specific design to test the ‘zero-shot generalization’ abilities of KG retrievers. This means the test set includes questions with unseen graph structures and relation types that were not present in the training data, making it a truly challenging benchmark.
The dataset features multi-hop and multi-seed questions, covering 27 different graph isomorphism types. A rigorous filtering process ensures high quality, with only 0.47% of generated data failing a sanity check where an advanced LLM (GPT-4o-mini) couldn’t answer correctly even with the ground-truth subgraph provided. This confirms the reliability of GTSQA as a benchmark.
Benchmarking KG-RAG Models: Key Findings
The paper presents a comprehensive benchmark of state-of-the-art LLMs and KG-augmented LLMs on GTSQA. The results reveal several important insights:
- Pure LLMs Struggle: LLMs relying solely on their internal knowledge show limited accuracy, highlighting the challenging nature of GTSQA and the need for external knowledge.
- Trainable Retrievers Outperform KG Agents: Models specifically trained to retrieve information from KGs generally perform better than ‘KG agents’ that use LLMs to explore the graph without explicit training.
- SubgraphRAG Leads: Among the evaluated models, SubgraphRAG (an ‘all-at-once’ retriever) achieved the best results, often surpassing ‘path-based’ retrievers.
- Recall Over Precision: The F1 score for retrieved triples was generally low across models, but the study suggests that increasing the recall of ground-truth triples (retrieving more of the correct facts) is more beneficial for final answer accuracy than increasing precision (retrieving only correct facts).
- Multi-Seed and Multi-Hop Challenges: All models, especially KG agents, struggled significantly with questions requiring the intersection of paths from three or more seed entities, or those requiring multiple hops. GTSQA’s design, which ensures all seed entities are necessary to answer, makes these failure modes visible.
The Power of Ground-Truth Subgraphs in Training
One of the most impactful findings of this research is the benefit of using ground-truth answer subgraphs as supervision signals for training KG retrievers. Traditionally, in the absence of such detailed ground-truth, models were trained using shortest paths between seed and answer nodes. However, the paper demonstrates that shortest paths often fail to capture the full reasoning required for multi-hop questions, sometimes providing incorrect reasoning or too much irrelevant information.
Experiments showed that models trained on the ground-truth subgraphs from SynthKGQA achieved 5% to 20% higher EM Hits scores compared to those trained on shortest paths. This improvement was particularly striking for multi-hop questions, where the gap between shortest paths and ground-truth paths is most significant. This provides definitive evidence that high-quality, ground-truth datasets are not just for benchmarking, but are indispensable for training more accurate and reliable KG retrievers.
Also Read:
- Bridging LLMs and Knowledge Graphs for Smarter Question Answering
- A Hybrid AI Approach for More Reliable and Interpretable Fact-Checking
Looking Ahead
The introduction of SynthKGQA and the GTSQA dataset marks a significant step forward in the development of more trustworthy LLMs. By providing a robust framework for generating high-quality, procedurally verified KGQA datasets with explicit ground-truth subgraphs, this work enables more informative benchmarking and, crucially, the training of better KG retrievers. This will ultimately contribute to LLMs that are more factually accurate and reliable in their responses.


