Question Answering with Subgraph Embeddings

Antoine Bordes, Sumit Chopra, Jason Weston

Abstract

This paper presents a system which learns to answer questions on a broad range of topics from a knowledge base using few hand-crafted features. Our model learns low-dimensional embeddings of words and knowledge base constituents; these representations are used to score natural language questions against candidate answers. Training our system using pairs of questions and structured representations of their answers, and pairs of question paraphrases, yields competitive results on a recent benchmark of the literature.

Introduction

Open-domain Question Answering (QA) requires systems to interpret natural language queries—such as "Who did Clooney marry in 1987?"—and retrieve precise answers from massive structured knowledge bases (KBs) like Freebase. Historically, researchers have relied on two primary paradigms: Information Retrieval (IR) and Semantic Parsing. IR methods often lack the depth to handle complex relational queries, while semantic parsers, which map language to formal queries like SPARQL, are notoriously brittle and require extensive manual engineering of lexicons and grammars.

This paper proposes a "middle way": a representation learning approach that embeds both questions and KB subgraphs into a shared low-dimensional vector space. By learning these embeddings directly from data, the system avoids the need for hand-crafted rules and scales more effectively to large, evolving databases.

Methodology: Scoring with Subgraph Embeddings

The core of the system is a scoring function $S(q, a)$ that quantifies the compatibility between a question $q$ and a candidate answer $a$.

Architecture of the embedding model for scoring question-answer pairs.

Shared Embedding Space

Both natural language questions and KB constituents (entities and relations) are mapped into a $k$-dimensional vector space. A question is represented as the sum of its word embeddings. The model's key innovation lies in how it represents the candidate answer. Instead of embedding a single entity, it embeds a subgraph surrounding the answer. This subgraph includes the path (the sequence of relations leading from the subject to the answer) and the context (surrounding entities and relations).

Training and Multitask Learning

The model is trained using a margin-based ranking loss, ensuring that correct answers score higher than incorrect ones. To improve generalization, the authors employ multitask learning, training the model simultaneously on question-answering (WebQuestions), paraphrase detection (WikiAnswers), and mapping Freebase IDs to natural language names.

Experimental Results

The model was evaluated on the WebQuestions benchmark, which contains 5,810 question-answer pairs. The system achieved a state-of-the-art F1 score of 41.8% when ensembled with a semantic parsing-based system (Berant & Liang, 2014).

Comparison of the proposed subgraph embedding approach against baselines and variants on the WebQuestions benchmark.

Ablation studies (shown in the table above) highlight the importance of the subgraph representation. Using a "Single Entity" representation resulted in a significantly lower Precision@1 of 25.8%, compared to 40.4% for the full subgraph model. This confirms that local KB context is essential for capturing the nuances of natural language questions.

Discussion and Limitations

The system demonstrates that a "soft" lexicon can be learned through embeddings, bypassing the need for manual mapping of words to relations. However, some challenges remain. The system's performance is sensitive to the initial entity resolution step; if the subject of the question is not correctly identified via string matching, the search for the answer cannot begin. Furthermore, while the model handles multi-hop relations, it is not yet optimized for complex logical operations like superlatives or aggregations.

Summary updated

BibTeX
@inproceedings{bordes2014question,
  author = {Antoine Bordes and Sumit Chopra and Jason Weston},
  title = {{Question Answering with Subgraph Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  url = {https://openreview.net/forum?id=r1ZMaWzdWr},
}
Figure