Knowledge Informed Semantic Parsing for Conversational Question Answering

Raghuveer Thirukovalluru, Mukund Sridhar, Dung Thai, Shruti Chanumolu, Nicholas Monath, Sankaranarayanan Ananthakrishnan, Andrew McCallum

Abstract

Conversational Knowledge Base Question Answering (KBQA) systems often struggle to generate executable logical forms that accurately reflect the underlying Knowledge Base (KB) structure. We propose Knowledge Informed Semantic Parsing (KISP), a framework that incorporates real-time knowledge graph information into the decoding process. By utilizing a Knowledge Injection Layer (KIL) and Attention on KG Walks (AKW), KISP provides the model with a "map" of the KB, reducing hallucinated queries. Our evaluation on the CSQA dataset shows that KISP-Small, with only 15M parameters, outperforms 155M-parameter BERT-based models, demonstrating superior efficiency and performance in complex logical reasoning tasks.

Introduction

Smart assistants face significant challenges in KBQA, particularly in multi-turn conversations where context and complex constraints (e.g., temporal or quantitative filters) are prevalent. Standard Neural Semantic Parsers (NSPs) often treat query generation as a sequence-to-sequence translation task. However, without grounding in the KB schema, these models frequently produce queries that are syntactically correct but semantically invalid or non-executable. KISP addresses this by providing the decoder with direct access to KB structure during generation.

Methodology

The core of KISP is a Knowledge-Informed Decoder designed to ground the generation process in the KB's reality. It consists of two primary mechanisms:

  1. Knowledge Injection Layer (KIL): This component acts as a feedback loop. When the model predicts a KB entity or relationship, the KIL feeds the actual embedding of that item back into the decoder. This ensures subsequent predictions are consistent with the properties of the selected entity.
  2. Attention on KG Walks (AKW): This mechanism allows the model to "look ahead" by performing random walks on the Knowledge Graph starting from the current entity. By attending to these local neighborhoods, the decoder can identify valid relationship paths and avoid generating non-existent links.
The KISP architecture integrates knowledge graph look-aheads and entity embeddings directly into the decoding process.

Experimental Setup

KISP was evaluated on the Complex Sequential Question Answering (CSQA) dataset, which contains 1.6 million question-answer pairs across 200,000 dialogues. The dataset covers 10 question types, including logical reasoning and quantitative comparisons, querying a Wikidata-based KB with over 12.8 million entities.

Results and Discussion

KISP demonstrates significant improvements over strong baselines like MaSP. Key findings include:

  • Superior Logic and Efficiency: KISP-Small (15M parameters) achieved an overall F1 of 81.52, outperforming the 155M-parameter MaSP (BERT) baseline. Notably, on "Logical Reasoning" questions, KISP improved performance by approximately 7 F1 points.
  • Reduced Hallucination: The AKW layer improved "sketch" accuracy by up to 2.3 points, indicating a better grasp of the overall query structure and a reduction in non-executable paths.
  • Data Efficiency: In low-resource settings (10% training data), KISP maintained a significant performance lead over baselines, suggesting that structural knowledge compensates for limited training examples.
Comparison of KISP-Small against larger BERT-based models, highlighting its efficiency and performance across various question types.

Conclusion

KISP proves that incorporating domain-specific knowledge into the model architecture is more effective than simply increasing model scale. By grounding the decoder in the Knowledge Graph, KISP achieves state-of-the-art results with 90.3% fewer parameters than BERT-based alternatives. Future work will focus on improving entity linking and integrating more specialized action grammars for boolean and counting queries.

Summary updated

BibTeX
@inproceedings{thirukovalluru2021knowledge,
  author = {Raghuveer Thirukovalluru and Mukund Sridhar and Dung Thai and Shruti Chanumolu and Nicholas Monath and Sankaranarayanan Ananthakrishnan and Andrew McCallum},
  title = {{Knowledge Informed Semantic Parsing for Conversational Question Answering}},
  booktitle = {RepL4NLP @ ACL},
  year = {2021},
  doi = {10.18653/v1/2021.repl4nlp-1.24},
}
Figure