Ground-Truth Subgraphs for Better Training and Evaluation of Knowledge Graph Augmented LLMs
Alberto Cattaneo, Carlo Luschi, Daniel Justus
TL;DR
This work tackles the reliability gap of KGQA-enabled LLMs by introducing SynthKGQA, a framework that generates large-scale KGQA datasets with ground-truth subgraphs and SPARQL targets from any KG. The authors instantiate GTSQA on Wikidata, a 32k-question dataset designed to probe zero-shot generalization across unseen graph structures and relation types, and provide a comprehensive benchmark of LLM-only and KG-RAG models. They show that using ground-truth subgraphs as supervision signals for training KG retrievers yields substantial gains, especially for multi-hop questions, and that conventional shortest-path supervision is often inadequate. Overall, the work advances fair benchmarking and training signal quality for KG-RAG systems, contributing to more trustworthy LLM-based reasoning over graphs.
Abstract
Retrieval of information from graph-structured knowledge bases represents a promising direction for improving the factuality of LLMs. While various solutions have been proposed, a comparison of methods is difficult due to the lack of challenging QA datasets with ground-truth targets for graph retrieval. We present SynthKGQA, an LLM-powered framework for generating high-quality Knowledge Graph Question Answering datasets from any Knowledge Graph, providing the full set of ground-truth facts in the KG to reason over questions. We show how, in addition to enabling more informative benchmarking of KG retrievers, the data produced with SynthKGQA also allows us to train better models.We apply SynthKGQA to Wikidata to generate GTSQA, a new dataset designed to test zero-shot generalization abilities of KG retrievers with respect to unseen graph structures and relation types, and benchmark popular solutions for KG-augmented LLMs on it.
