Calculating Question Similarity is Enough: A New Method for KBQA Tasks

Xiang PanarXiv 2021

TL;DR

This paper introduces a novel Corpus Generation-Retrieve Method (CGRM) for Knowledge Base Question Answering (KBQA) that bypasses traditional multi-step pipelines. By leveraging a knowledge-enhanced T5 model (kT5) to generate a synthetic QA corpus from knowledge graph triples, the system can answer questions through simple retrieval, significantly reducing error propagation and simplifying deployment.

What Problem Does This Paper Address?

Traditional Knowledge Base Question Answering (KBQA) systems typically rely on a pipeline of sequential steps: entity recognition, entity linking, relation extraction, and answer selection. While effective, this pipeline approach is prone to error propagation, where mistakes in early stages can cascade and severely impact the final answer's accuracy. Furthermore, these methods often require extensive domain knowledge and handcrafted features, making them complex to develop and adapt. The paper aims to address these limitations by proposing a more direct and robust approach.

Methods

The core of this paper is the Corpus Generation-Retrieve Method (CGRM). The key innovation lies in a knowledge-enhanced T5 model, termed kT5. This model is built upon mT5 and augmented with two new pre-training tasks:

  • Question Generation Based on Paragraph: This task trains the model to generate question-answer pairs from existing datasets like WebQA and SogouQA, improving its question generation capabilities.
  • Knowledge Masked Language Modeling: Instead of masking random words, this task masks entities within encyclopedia summaries (from WuDaoCorpora). This focuses the model on understanding entity relationships and context within the knowledge graph.

The kT5 model is then fine-tuned to generate natural language QA pairs from knowledge graph triples. The process involves:

  1. Knowledge Extraction: Extracting relevant triples from the knowledge graph.
  2. Question Generation: Using the fine-tuned kT5 model to generate questions for these triples, effectively creating a synthetic QA corpus.
  3. Retrieval: For a user's question, the system retrieves the most similar question from the generated corpus and returns its corresponding answer. This transforms the KBQA task into a question similarity problem.

To facilitate retrieval, the paper uses a combination of the BM25 sparse vector space model and BERT for ranking candidate answers.

Datasets

The primary dataset used for evaluation is the NLPCC-ICCPOL 2016 KBQA dataset. This dataset includes a training set of 14,609 QA pairs and a test set of 9870 QA pairs, built upon a large Chinese knowledge base. The paper also mentions using WebQA and SogouQA for pre-training the question generation component.

Key Insights and Ideas

  • Bypassing the Pipeline: The most significant insight is that by generating a comprehensive QA corpus, the complex multi-step pipeline can be effectively bypassed. This directly addresses the issue of error propagation.
  • Knowledge Enhancement for T5: Augmenting mT5 with specific pre-training tasks (knowledge masked LM and question generation) significantly improves its ability to handle KBQA-related tasks, particularly few-shot learning.
  • Question Similarity as the Core Task: Reframing KBQA as a question similarity problem simplifies the overall architecture and leverages the strengths of pre-trained language models in understanding semantic nuances.
  • Few-Shot Learning Advantage: The kT5 model demonstrates remarkable few-shot learning capabilities, suggesting its potential for rapid deployment in new domains with minimal training data.

Key Results

The proposed CGRM method achieved a F1 score of 85.77% on the NLPCC-ICCPOL 2016 KBQA dataset, outperforming all other baseline methods, including state-of-the-art systems. The paper also highlights that the kT5 model significantly outperforms mT5_small in question generation metrics (Rouge_1, Rouge_2, Rouge_L, and BLUE), even with fewer parameters. In few-shot learning scenarios, kT5 showed substantial improvements over mT5_small, with gains of up to 57% in Rouge_1 for 100 instances. Human evaluation of generated questions also indicated high quality, with an average rating of 4.6 and an accuracy of 96%.

Limitations and Future Work

The paper acknowledges that the current retrieval method uses lexical matching, which could be improved with more advanced semantic matching techniques. Future work includes exploring the generation of more complex questions (e.g., multi-hop relations) and designing more sophisticated question-related generation mechanisms to further enhance system efficiency and accuracy. The authors also suggest that the generated QA corpus itself can be a valuable resource for future KBQA research.

Summary updated

BibTeX
@misc{pan2021calculating,
  author = {Xiang Pan},
  title = {{Calculating Question Similarity is Enough: A New Method for KBQA Tasks}},
  year = {2021},
  eprint = {2111.07658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.07658},
}
Figure