Abstract
Knowledge Graph Question Answering (KGQA) typically follows a "parsing then grounding" paradigm, which frequently results in logical forms that are incompatible with the underlying Knowledge Graph (KG) structure. This paper introduces a "generate-and-rank" framework that reverses this process by first generating schema-valid candidate query graphs and then ranking them against the natural language question. Central to this approach is a novel Slot Matching Model that employs self-attention to align question segments with specific graph predicates. The proposed method achieves state-of-the-art results on the LC-QuAD benchmark and demonstrates that transfer learning can significantly improve performance on smaller datasets like QALD-7.
Introduction
Traditional KGQA systems parse natural language questions (NLQ) into formal logic (e.g., SPARQL) before attempting to ground them in a KG. This often leads to "illegal" queries that, while syntactically correct, do not exist within the KG's specific schema. To address this, the authors propose a system that ensures validity by design: candidate query graphs are generated directly from the KG schema, transforming the task into a ranking problem to identify which graph path best matches the user's intent.
Methodology
The authors propose a multi-stage pipeline to bridge the gap between natural language and structured data:
- Core Chain Generation: The system identifies entities in the NLQ and explores paths up to two hops in the KG, linearizing these paths into "core chains."
- Neural Ranking: Various architectures, including BiLSTMs, CNNs, and Decomposable Attention Models (DAM), are used to score the similarity between the NLQ and candidate chains.
- Slot Matching Model: The paper’s primary contribution, this model partitions query graphs into "slots" representing different hops or predicates. A trainable attention mechanism compares each predicate to relevant parts of the question, avoiding the information loss associated with compressing entire graphs into single vectors.
- Auxiliary Constraints: A separate BiLSTM classifier predicts question intent (e.g., "Yes/No" vs. "List") and identifies class constraints (e.g., identifying that "Which movies..." implies an
rdf:typeconstraint).
Evaluation and Results
The models were evaluated on two major DBpedia-based benchmarks: LC-QuAD (5,000 pairs) and QALD-7 (220 training questions).
- Top Performance: The Slot Matching Model achieved a top F1 score of 0.71 on LC-QuAD, outperforming general sequence models like standard BiLSTMs.
- Transfer Learning Success: On the data-starved QALD-7 dataset, training from scratch yielded a Core Chain Accuracy (CCA) of only 0.33. However, pre-training on LC-QuAD boosted this to 0.54, suggesting that the logic of ranking query graphs is transferable across different question types.
- Attention Visualization: The model successfully learned to "attend" to semantically relevant words; for instance, matching the phrase "birth place" in a question to the corresponding predicate in the KG.
Discussion and Conclusion
The study demonstrates that respecting the "hop-by-hop" structure of query graphs is superior to general sequence modeling. By generating candidates from the KG schema first, the system eliminates the "empty result set" problem common in traditional parsers.
However, limitations remain, including a two-hop limit for queries and a heavy dependency on external entity linking. Future work aims to explore "in-network answer supervision," allowing the model to learn directly from final KG answers rather than requiring gold-standard SPARQL queries for training.
Summary updated