Answering Natural Language Questions via Phrasal Semantic Parsing

Kun Xu, Yansong Feng, Dongyan Zhao

Abstract

Querying large-scale structured knowledge bases (KBs) using natural language remains a significant challenge in information retrieval. This paper presents Xser, a system that decouples the semantic parsing process into two distinct stages: a KB-independent phase that identifies the linguistic "intention structure" of a question, and a KB-dependent phase that grounds this structure into specific database entities and relations. By representing query intentions as Directed Acyclic Graphs (DAGs) rather than simple trees, Xser captures complex semantic relationships. Evaluation on the QALD-4 benchmark demonstrates that this pipeline approach achieves a competitive F-measure of 0.72, balancing computational efficiency with high precision.

Introduction

As structured knowledge bases like DBpedia, YAGO, and Freebase grow to encompass billions of facts, the ability to query them using natural language becomes increasingly vital. However, systems face two primary hurdles: Intention Recognition (understanding the structural relationships within a question) and Grounding (mapping linguistic phrases to specific KB identifiers).

Most state-of-the-art systems attempt to solve these problems jointly. However, joint training is computationally expensive and difficult to maintain as KB schemas evolve. Xser addresses this by separating the "logic" of the question from the specific "vocabulary" of the database, allowing for a more flexible and scalable architecture.

The Xser Pipeline

The Xser framework operates as a pipeline that transforms a natural language question into a formal SPARQL query through four primary steps: phrase detection, parsing, instantiation, and query generation.

The Xser pipeline: from phrase detection to SPARQL query generation.

Phase 1: KB-Independent Semantic Parsing

In the first phase, the system focuses purely on the linguistic structure of the question, ignoring the underlying database schema.

  1. Phrase Detection: Using a structured perceptron, Xser identifies "phrases of interest" and classifies them into four categories: entity, relation, category, or variable.
  2. Phrase DAG Parsing: Unlike standard dependency trees, Xser utilizes a Directed Acyclic Graph (DAG). This is essential for natural language questions where a single word may play multiple roles (re-entrancy). The system employs a transition-based algorithm (Shift-Reduce) modified to handle these complex graph structures.

Phase 2: KB-Dependent Instantiation

Once the abstract "intention" graph is constructed, the system grounds it into the specific knowledge base.

  1. Mapping: Candidate matches for the identified phrases are retrieved using external tools and resources like Wikipedia Miner and PATTY.
  2. Global Optimization: A structured perceptron with beam search identifies the most coherent global mapping. Rather than selecting the best individual match for each word, the system evaluates the combination of entities and relations that best fits the overall graph structure.
  3. Query Generation: The final instantiated DAG is converted into a formal SPARQL query to retrieve the answer from the KB.
A Phrase DAG with candidate knowledge base mappings for instantiation.

Experimental Results

Xser was evaluated using the QALD-4 (Question Answering over Linked Data) test set. The system demonstrated strong performance, particularly in its ability to handle complex queries efficiently.

  • F-measure: 0.72
  • Precision: 0.72
  • Recall: 0.71
  • Success Rate: The system successfully processed 40 out of 50 questions, yielding 36 completely correct and 6 partially correct answers.

These results were highly competitive at the time of publication, proving that decoupling the parsing and grounding phases does not necessarily sacrifice accuracy.

Discussion and Future Work

The primary insight of this work is the power of decoupling. By separating intention recognition from grounding, the model becomes more flexible; theoretically, one could adapt Xser to a different knowledge base by only retraining the second phase of the pipeline. Furthermore, the move from trees to DAGs allows the model to capture overlapping query logic that simpler models often miss.

However, the pipeline approach is susceptible to error propagation, where a mistake in phrase detection can derail the entire process. Future work may explore joint modeling for phrase detection and DAG parsing to mitigate this, while still maintaining the separation from the KB-grounding step. Additionally, the authors aim to reduce the annotation burden by moving toward weakly supervised learning from question-answer pairs.

Summary updated

BibTeX
@inproceedings{xu2014answering,
  author = {Kun Xu and Yansong Feng and Dongyan Zhao},
  title = {{Answering Natural Language Questions via Phrasal Semantic Parsing}},
  booktitle = {CLEF (Working Notes)},
  year = {2014},
}
Figure