Skip to main content
QUICK REVIEW

[Paper Review] Semantic Structure based Query Graph Prediction for Question Answering over Knowledge Graph

Mingchen Li, Jonathan Shihao Ji|arXiv (Cornell University)|Apr 15, 2022
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes SSKGQA, a semantic structure-based framework for query graph prediction in knowledge graph question answering. By introducing a Structure-BERT model to classify questions into six predefined semantic structures, SSKGQA filters noisy candidate query graphs before ranking the remaining ones with a BERT-based ranking model, achieving state-of-the-art performance on MetaQA and WebQuestionsSP benchmarks.

ABSTRACT

Building query graphs from natural language questions is an important step in complex question answering over knowledge graph (Complex KGQA). In general, a question can be correctly answered if its query graph is built correctly and the right answer is then retrieved by issuing the query graph against the KG. Therefore, this paper focuses on query graph generation from natural language questions. Existing approaches for query graph generation ignore the semantic structure of a question, resulting in a large number of noisy query graph candidates that undermine prediction accuracies. In this paper, we define six semantic structures from common questions in KGQA and develop a novel Structure-BERT to predict the semantic structure of a question. By doing so, we can first filter out noisy candidate query graphs, and then rank the remaining candidates with a BERT-based ranking model. Extensive experiments on two popular benchmarks MetaQA and WebQuestionsSP (WSP) demonstrate the effectiveness of our method as compared to state-of-the-arts.

Motivation & Objective

  • To address the high noise in candidate query graphs generated by traditional enumeration methods in complex KGQA.
  • To improve query graph prediction accuracy by leveraging semantic structure information from natural language questions.
  • To reduce error propagation in multi-hop and constrained reasoning by filtering structurally incorrect query graphs early in the pipeline.
  • To enhance ranking performance by using a BERT-based model with a multi-head attention layer on top of pre-trained BERT representations.
  • To develop a scalable and accurate method for semantic structure classification of questions in KGQA.

Proposed method

  • Define six semantic structures based on common question topologies in KGQA benchmarks, such as multi-hop and constraint-based reasoning.
  • Propose Structure-BERT, a BERT-based classifier that jointly encodes the question and topic entity to predict the semantic structure.
  • Use the predicted semantic structure to filter out candidate query graphs that do not match the expected structure.
  • Apply a BERT-based ranking model with a triplet loss to compare question and candidate query graph representations for final ranking.
  • Enhance the BERT representation with an additional multi-head attention layer to better capture semantic relationships in input sequences.
  • Train the ranking model using negative sampling and triplet loss to improve similarity learning between relevant question-query graph pairs.

Experimental results

Research questions

  • RQ1Can semantic structure prediction significantly reduce the number of noisy candidate query graphs in KGQA?
  • RQ2How effective is a BERT-based model that jointly encodes question and topic entity for semantic structure classification?
  • RQ3Does filtering candidate query graphs based on predicted semantic structure improve downstream ranking accuracy?
  • RQ4Can a BERT-based ranking model with an additional attention layer outperform standard BERT and traditional models like CNN and BiGRU?
  • RQ5To what extent does the proposed method generalize across diverse question types in benchmarks like MetaQA and WebQuestionsSP?

Key findings

  • Structure-BERT achieves 99.24%, 99.87%, and 99.73% classification accuracy on MetaQA for hop-1, hop-2, and hop-3 questions, respectively.
  • On the WebQuestionsSP benchmark, Structure-BERT achieves 86.97% accuracy, demonstrating strong generalization despite class imbalance and data scarcity.
  • The BERT-based ranking model with an added multi-head attention layer (BERT*) achieves 71.40% Hits@1 on WebQuestionsSP, outperforming standard BERT and other baselines.
  • The proposed SSKGQA framework achieves state-of-the-art performance on both MetaQA and WebQuestionsSP, surpassing seven SOTA methods.
  • Ablation studies confirm that the additional attention layer and negative sampling strategy significantly improve ranking performance.
  • The method reduces the impact of structurally incorrect candidates, as evidenced by improved ranking of correct graphs even in the presence of semantically relevant but structurally flawed alternatives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.