Abstract
Answering complex questions from Knowledge Bases (KBs) requires both multi-hop reasoning and the application of various constraints. Traditional methods often struggle with the combinatorial explosion of search paths or fail to integrate constraints early enough to prune the search space. This paper introduces a modified staged query graph generation method that interleaves relation path extension with constraint attachment. By utilizing beam search and a BERT-based ranking model trained via reinforcement learning, the proposed approach achieves state-of-the-art performance on major benchmarks, including a 3.3% improvement on the ComplexWebQuestions dataset.
Introduction
Knowledge Base Question Answering (KBQA) aims to map natural language questions to structured queries. While simple questions are largely solved, complex questions pose two significant challenges: multi-hop reasoning (chains of relations) and constraints (filters like "first" or "TV producer"). Existing staged generation methods often separate these tasks, leading to efficiency issues. If constraints are ignored until the end of a multi-hop search, the number of candidate paths grows exponentially. Conversely, if the search is too restricted, valid complex paths may be missed.
Methodology: Modified Staged Generation
The authors propose a flexible framework where query graphs are built incrementally using three primary actions:
- Extend: Adds a new relation to the current path, moving one hop further into the KB.
- Connect: Links an additional entity mentioned in the question to the current path as a constraint.
- Aggregate: Attaches functions such as
count,argmin, orargmaxto handle superlative or numerical requirements.
Unlike previous methods that follow a rigid "path-then-constraint" sequence, these actions can be interleaved. This allows constraints to act as a "compass," narrowing down the possible relations for subsequent extend actions and making deep multi-hop searches computationally tractable.
To manage the search space, the system employs Beam Search, maintaining the top $K$ most promising graphs at each step. Candidates are ranked using a 7-dimensional feature vector, with the primary feature being a semantic matching score from a BERT-based model. Since gold-standard query graphs are often unavailable, the model is trained using Reinforcement Learning (REINFORCE), with the final answer's F1 score serving as the reward signal.
Experimental Results
The model was evaluated on three benchmarks: ComplexWebQuestions (CWQ), WebQuestionsSP (WQSP), and ComplexQuestions (CQ).
As shown in Figure 3(b), the proposed method achieved state-of-the-art (SOTA) results across all datasets. Notably, on CWQ—a dataset characterized by high complexity—the model reached 44.1% Prec@1, outperforming previous methods by 3.3 percentage points.
The ablation study in Figure 3(c) highlights the importance of the extend action; removing it caused the most significant performance drop (from 44.1% to 25.2%), confirming the model's strength in multi-hop reasoning. Furthermore, even when replacing BERT with a simpler LSTM, the architecture still outperformed previous SOTA models, suggesting that the interleaved search strategy itself is a major contributor to the success.
Discussion and Limitations
Despite its success, the model faces several challenges. Error analysis revealed that 65% of failures were "Ranking Errors," where the correct query graph was generated but not ranked first by the BERT model. Additionally, "Topic Linking" errors (27%) occurred when the system failed to correctly ground initial entities from the question into the KB. Linguistic nuances, such as mapping abbreviations like "VP" to "vice president," also remain a hurdle for future work.
Conclusion
This research demonstrates that interleaving path extension with constraint application is a powerful strategy for complex KBQA. By treating constraints as navigational aids rather than final filters, the method effectively manages the complexity of multi-hop reasoning while achieving superior accuracy across diverse benchmarks.
Summary updated