Question Answering over Linked Data Using First-order Logic

Shizhu He, Kang Liu, Yuanzhe Zhang, Liheng Xu, Jun Zhao

Abstract

Traditional Question Answering over Linked Data (QALD) systems often rely on brittle, manual pipelines that suffer from error propagation and limited linguistic coverage. This paper introduces a novel framework based on Markov Logic Networks (MLNs) that treats phrase detection, semantic mapping, and query construction as a joint optimization problem. By formulating linguistic features and knowledge base constraints as first-order logic clauses with learned weights, the system overcomes the limitations of sequential processing. Evaluation on QALD benchmarks demonstrates that this joint inference approach significantly outperforms traditional pipeline methods and state-of-the-art rule-based systems.

Introduction

The "Web of Data," comprising massive knowledge bases like DBpedia and Freebase, offers a wealth of structured information. However, accessing this data typically requires knowledge of formal query languages like SPARQL. QALD aims to bridge this semantic gap by translating natural language questions into structured triples.

Conventional systems typically employ a sequential pipeline: detecting phrases, mapping them to entities or relations, grouping these items into triples, and finally generating SPARQL. This approach has two primary weaknesses. First, error propagation: a mistake in an early stage (e.g., misidentifying a phrase) cannot be corrected later. Second, manual pattern dependency: systems often rely on hand-crafted linguistic rules that fail to capture the vast diversity of natural language expressions.

Methodology: Joint Inference with Markov Logic

To address these issues, the proposed framework utilizes Markov Logic Networks (MLNs), which combine first-order logic with probabilistic graphical models. This allows the system to handle both rigid constraints and uncertain linguistic signals within a single unified model.

System Architecture

The process begins with phrase detection and mapping, followed by feature extraction and joint inference. Unlike a pipeline, the MLN allows information to flow bidirectionally; for instance, the likelihood of a specific relation can influence the detection of its surrounding phrases.

The system architecture illustrating the flow from natural language input to SPARQL generation through joint inference.

Joint Disambiguation and Meta-Patterns

The framework defines two types of constraints: hard constraints (logical rules that must be satisfied) and soft constraints (weighted rules representing probabilistic tendencies). Instead of hard-coding specific linguistic patterns, the authors introduce meta-patterns. These are general logic formulas based on dependency paths and POS tags. The MLN learns the weights for these patterns from training data, allowing the system to automatically discover how different linguistic structures map to semantic relations.

Examples of different mapping types (1_1, 2_1, etc.) used to bridge natural language questions and knowledge base relations.

Experimental Evaluation

The system was evaluated on the QALD-1, QALD-3, and QALD-4 benchmarks using DBpedia and YAGO. The focus was on "factoid" questions to ensure a direct comparison with existing semantic mapping techniques.

Key Results

  • Joint vs. Pipeline: Ablation studies confirmed that the joint model consistently outperformed the pipeline version. On QALD-3, the joint model achieved an F1-score of 0.52, compared to 0.48 for the pipeline.
  • State-of-the-Art Comparison: On the QALD-1 test set, the system achieved an F1 of 0.46, significantly surpassing the previous leading system, DEANNA (F1 0.33).
  • Feature Learning: The system successfully learned meaningful weights for POS tags, correctly identifying that nouns (nn) strongly correlate with Entities, while verbs (vb) correlate with Relations.

Discussion and Conclusion

The primary advantage of this approach is its ability to leverage global context to resolve local ambiguities. For example, the system can determine that "California" refers to the state rather than a film by observing its relationship with the "foundationPlace" predicate in the query graph.

While effective, the model currently faces challenges with implicit relations, complex aggregations, and computational scalability over web-scale data. Future work will explore the use of latent query graphs to reduce the need for manual labeling. By moving from manual rules to learned logic, this research provides a robust path toward more flexible and accurate natural language interfaces for the Web of Data.

Summary updated

BibTeX
@inproceedings{he2014question,
  author = {Shizhu He and Kang Liu and Yuanzhe Zhang and Liheng Xu and Jun Zhao},
  title = {{Question Answering over Linked Data Using First-order Logic}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  doi = {10.3115/v1/d14-1116},
}
Figure