Abstract
Knowledge Graph Question Answering (KGQA) is often hindered by the dual challenges of multi-hop reasoning and complex constraint satisfaction, especially in the presence of sparse Knowledge Graphs (KGs). We propose a novel framework that integrates KG embeddings with a step-by-step query graph generation process. By applying constraints early to partial paths, the system effectively prunes the search space while maintaining robustness against missing links via ComplEx embeddings. Our approach achieves state-of-the-art results on the CWQ, WQSP, and CQ benchmarks, demonstrating the power of unified logical actions for complex query resolution.
Introduction
Knowledge Graph Question Answering (KGQA) involves translating natural language questions into structured queries. Most existing systems struggle with two specific types of complexity: multi-hop relations, where the answer is not directly connected to the subject, and constraints, which include filters like "first" or "latest." Furthermore, real-world Knowledge Graphs are often sparse, leading to failures in traditional path-finding algorithms. This paper proposes a framework to solve both complexity types while remaining resilient to missing data.
Methodology
The proposed architecture consists of five main modules designed to handle the complexities of modern KGQA.
- KG Embedding Module: Uses ComplEx (Complex Embeddings) to represent entities and relations, allowing the system to predict missing links and handle graph sparsity.
- Question Embedding Module: A RoBERTa model transforms questions into vectors in the same complex space as the KG embeddings, facilitating semantic matching.
- Relation Matching: Identifies relevant KG relations (e.g., "composer_of") based on the question text.
- Query Graph Generation: The core innovation, building a query graph through two primary actions: "Extend" (adding hops to the path) and "Aggregate" (attaching constraints to specific points).
- Early Constraint Application: Unlike traditional methods that filter results at the end, this system applies constraints to partial paths. This drastically prunes the search space, preventing the exponential explosion of possible answers.
Experimental Evaluation
The model was evaluated on three standard benchmarks: WebQuestions Semantic Parses (WQSP), ComplexWebQuestions (CWQ), and ComplexQuestions (CQ).
As shown in the results table, the proposed method achieved state-of-the-art (SOTA) performance across all datasets. On the challenging CWQ dataset, it achieved 46.3% Prec@1 and 41.9% F1, outperforming the previous best model (Lan and Jiang, 2020) by approximately 2.2%. On WQSP, it reached an F1 score of 77.8%, a significant improvement over previous benchmarks. Ablation studies indicated that removing either the "aggregate" or "extend" actions led to substantial performance drops, confirming that both multi-hop reasoning and constraint satisfaction are essential for modern KGQA.
Conclusion
This research demonstrates that multi-hop reasoning and constraint satisfaction can be unified into a single logical graph-building process. By leveraging embeddings as a safety net for sparse data and pruning the search space early through constraint application, the framework achieves superior accuracy and efficiency. Future work will address limitations in entity linking and the handling of non-standard abbreviations to improve real-world robustness.
Summary updated