NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Complex KBQA System using Multiple Reasoning Paths

Kechen Qin, Yu Wang, Cheng Li, Kalpa Gunaratna, Hongxia Jin, Virgil Pavlu, Javed A. AslamarXiv 2020

Abstract

Multi-hop knowledge based question answering (KBQA) is a complex task for natural language understanding. Many KBQA approaches have been proposed in recent years, and most of them are trained based on labeled reasoning path. This hinders the system's performance as many correct reasoning paths are not labeled as ground truth, and thus they cannot be learned. In this paper, we introduce an end-to-end KBQA system which can leverage multiple reasoning paths' information and only requires labeled answer as supervision. We conduct experiments on several benchmark datasets containing both single-hop simple questions as well as muti-hop complex questions, including WebQuestionSP (WQSP), ComplexWebQuestion-1.1 (CWQ), and PathQuestion-Large (PQL), and demonstrate strong performance.

Introduction

Answering complex questions using a Knowledge Base (KB) requires "multi-hop" reasoning—connecting a sequence of entities and relations. For instance, to answer "In what city is Purdue University located?", a system might navigate from the topic entity Purdue University through various relations to reach the answer West Lafayette.

The traditional bottleneck in training such systems is the reliance on human-annotated "ground truth" paths. Human annotators typically provide only a single path, even when multiple valid logical routes exist within the KB. As shown in Figure 1, an answer like "West Lafayette" can be reached via a "headquarters" relation or a "mailing address" relation.

Multiple reasoning paths in a knowledge graph leading to the same answer.

If a model is forced to learn only one specific path, it becomes brittle and fails to generalize when a test question requires a slightly different but equally valid logical route. Furthermore, annotating these paths is labor-intensive. This research proposes a system that learns to navigate the KB using only (Question, Answer) pairs as supervision, treating the reasoning path as a latent variable.

Methods

The core innovation is treating the reasoning path as a latent variable and marginalizing over all possible valid paths. Instead of picking one "golden" path, the model calculates the probability of an answer by summing the probabilities of all discovered paths leading to it.

Model Architecture

The architecture utilizes a Recurrent Neural Network (RNN) with Gated Recurrent Units (GRU) and a Bahdanau-style attention mechanism. At each reasoning step (or "hop"), the model processes the question embedding, the current entity, and the previous relation to predict the next relation in the sequence.

The end-to-end model architecture showing the multi-hop reasoning process.

Training and Inference

  • Marginalized Objective: The training objective maximizes the sum of probabilities of all paths $p$ that lead to the correct answer $y$. This "marginalization" allows the model to reward multiple valid reasoning chains rather than forcing a single choice.
  • Path Discovery: Since the KB is vast, the authors use Depth First Search (DFS) to find candidate paths (up to 3 hops) between the topic entity and the answer during training.
  • EM-style Training: An Expectation-Maximization (EM) approach is used to dynamically select the top $k$ most probable paths discovered by DFS. This helps the model filter out "noisy" paths that might coincidentally hit the right answer for the wrong reasons.
  • PMI-based Prediction: During inference, Point-wise Mutual Information (PMI) is used to de-emphasize the topic entity, preventing the model from guessing common relations regardless of the specific question context.

Experimental Results

The model was evaluated on three major benchmarks: WebQuestionsSP (WQSP), ComplexWebQuestions-1.1 (CWQ), and PathQuestion-Large (PQL).

The system demonstrated state-of-the-art performance, particularly on complex queries. On the CWQ dataset, it achieved an F1 score of 41.9, significantly outperforming the previous best of 36.5. On the PQL+ set, it reached 98.0% accuracy. For WQSP, it achieved a competitive 67.9 F1, matching or exceeding most models that rely on answer-level supervision.

Ablation studies confirmed that the "inference during training" (EM-style path filtering) is critical, as its removal led to a 3.4% drop in F1 score. This proves that intelligent path selection is vital when ground-truth labels are unavailable.

Conclusion

By treating reasoning paths as latent variables and marginalizing over multiple paths, this system overcomes the limitations of single-path "golden" supervision. It effectively leverages the inherent redundancy in knowledge bases to build more robust and accurate QA models. Future work will focus on extending the search depth beyond 3 hops and reducing dependency on external entity linking tools.

Summary updated

BibTeX
@misc{qin2020complex,
  author = {Kechen Qin and Yu Wang and Cheng Li and Kalpa Gunaratna and Hongxia Jin and Virgil Pavlu and Javed A. Aslam},
  title = {{A Complex KBQA System using Multiple Reasoning Paths}},
  year = {2020},
  eprint = {2005.10970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.10970},
}
Figure