Open Question Answering with Weakly Supervised Embedding Models

Antoine Bordes, Jason Weston, Nicolas Usunier · DOI

Abstract

This paper introduces a novel approach to open-domain question answering (QA) using weakly supervised embedding models. By mapping natural language questions and knowledge base (KB) triples into a shared vector space, the system bypasses the brittleness of traditional semantic parsers. Leveraging massive, automatically generated datasets and paraphrase multitasking, the model achieves state-of-the-art performance on noisy KBs like ReVerb, demonstrating significant improvements over previous rule-based systems.

Introduction

Building a computer capable of answering questions on any subject remains a fundamental challenge in artificial intelligence. Traditionally, this has been approached via semantic parsing: the process of converting a natural language question (e.g., "Where was Churchill born?") into a formal database query (e.g., SELECT birth_place FROM people WHERE name='Winston Churchill').

However, semantic parsers are often expensive to build and brittle in practice. They require experts to hand-craft lexicons and grammars for every new database schema or language. Furthermore, they struggle with the "lexical gap"—the nearly infinite variety of ways humans can phrase the same inquiry. This paper proposes a departure from these rigid systems, presenting a model that learns to "feel" the similarity between a question and a potential answer in a high-dimensional vector space with minimal human intervention.

Methodology

The core of the proposed system is the learning of two functions, $f(q)$ and $g(t)$, which project a question $q$ and a KB triple $t$ (consisting of a subject, relation, and object) into the same $k$-dimensional vector space. The relevance of a triple to a question is determined by the dot product of these two vectors.

Weak Supervision and Question Generation

Because human-labeled (question, answer) pairs are scarce, the authors utilize "weak" supervision from two primary sources:

  1. Question Generation: The researchers took 14 million triples from the ReVerb KB and applied 16 simple templates to generate 224 million noisy questions. For example, the triple (dodo, live-in, makassar) might be transformed into "What environment does a dodo live in?"
  2. Paraphrase Multitasking: To help the model handle linguistic variability, they used 18 million question pairs from WikiAnswers that users had tagged as synonymous (e.g., "How do you lose weight?" and "How can I shed pounds?").
Table of question patterns used to generate training data from KB triples.

Training and Fine-Tuning

The model is trained using Stochastic Gradient Descent (SGD) with a ranking loss, which encourages the score of a correct triple to be higher than that of randomly sampled "corrupted" triples. Given the massive scale of the embedding space (275 million parameters), the authors introduced a critical Fine-tuning step. After the initial training, the embeddings are fixed, and a single $k \times k$ matrix ($M$) is learned to parameterize the similarity: $S(q, t) = f(q)^\top M g(t)$. This small parameter set can be optimized quickly using convex optimization (L-BFGS), significantly sharpening the model's ranking accuracy.

Experimental Setup

The model was evaluated using several key datasets:

  • ReVerb: An automatically extracted KB containing 14M triples, known for being noisier and less curated than structured bases like Freebase.
  • WikiAnswers: Utilized for its massive collection of user-generated paraphrases.
  • WebQuestions: A standard benchmark used to test the model's ability to generalize to questions from an entirely different source.

Key Insights and Results

  • Embeddings as "Universal Schema": By mapping all components to vectors, the model becomes schema-agnostic. It learns the semantic meaning of relations and entities directly from their usage patterns.
  • The Power of Noise: Despite the ungrammatical nature of generated questions and errors in the KB, the sheer scale of the data allowed the model to capture robust linguistic signals.
  • Asymmetric Entities: The authors found that assigning each entity two embeddings—one for its role as a "subject" and another as an "object"—was crucial for handling directed relationships.
  • Performance: On the WikiAnswers+ReVerb test set, the model achieved an F1 score of 0.73, substantially outperforming the previous state-of-the-art system, Paralex, which scored 0.54. Even when searching the entire 14M-triple KB, the model maintained a strong F1 of 0.57 when paired with a simple string-matching filter.

Limitations and Future Work

While successful, the model is currently limited to "single-hop" questions that can be resolved by a single KB triple. It cannot yet process complex queries requiring joins (e.g., "Who is the wife of the president of France?"). Additionally, the model employs a "bag-of-words" approach that ignores word order. Future research will focus on incorporating more sophisticated natural language generation and capturing complex syntactic structures to improve performance on more nuanced queries.

Summary updated

BibTeX
@inproceedings{bordes2014open,
  author = {Antoine Bordes and Jason Weston and Nicolas Usunier},
  title = {{Open Question Answering with Weakly Supervised Embedding Models}},
  booktitle = {ECML/PKDD},
  year = {2014},
  doi = {10.1007/978-3-662-44848-9\_11},
}
Figure