Using context information to enhance simple question answering

Lin Li, Mengjing Zhang, Zhaohui Chao, Jianwen Xiang

TL;DR

This paper demonstrates that "simple" question answering—answering single-relation factoid questions—isn't so simple when multiple entities share the same name. By integrating context information like an entity’s "notable type" and its "out-degree" (popularity) into both pipeline and end-to-end deep learning frameworks, the authors achieve state-of-the-art accuracy while slashing training and inference times by over 90%.

What Problem Does This Paper Address?

Knowledge Base Question Answering (KB-QA) aims to map natural language questions (e.g., "Where was Barack Obama born?") to structured data in a Knowledge Base (KB) like Freebase. While "simple" questions involve only a single subject and a single relation, they face a major hurdle: entity ambiguity.

If a question mentions "Apple," does it mean the fruit, the tech giant, or the record label? Standard models often struggle to distinguish between entities with identical labels. Furthermore, there is a "semantic gap" between how humans ask questions and how KBs store data. Existing state-of-the-art models often require massive computational resources and long training times to bridge this gap.

Methods

The authors propose and compare two distinct architectural approaches:

  1. Pipeline Framework: This breaks the task into two sequential steps: entity detection (using a Bi-LSTM) and relation detection (using a Bi-GRU matching model). To solve ambiguity, they introduce re-ranking algorithms that use:
  2. Out-degree: The number of relations an entity has in the KB (a proxy for "importance").
  3. Notable Type: The primary category of an entity (e.g., "Musical Artist").
  4. End-to-End Framework: This model processes the question, subject, and predicate simultaneously. Key features include:
  5. Multi-granular Encoding: Combining word-level and character-level embeddings to handle "Out of Vocabulary" (OOV) words.
  6. Self-Attention Mechanisms: Allowing the model to focus on specific parts of the question that correspond to the subject versus the predicate.
  7. Multi-task Learning (QA-T): Instead of just predicting a final score, the model learns to score the subject-question match and the predicate-question match as separate but related tasks.

Datasets

The study primarily uses the SimpleQuestions dataset, which contains over 100,000 natural language questions linked to Freebase (specifically the FB2M subset). They also utilized Freebase data dumps to extract "notable type" information for over 2 million entities.

Key Insights and Ideas

  • Popularity Matters: The "out-degree" of an entity is a surprisingly effective tie-breaker. If two entities have the same name, the one with more connections in the knowledge graph is statistically more likely to be the subject of a general question.
  • Type Filtering: Knowing that a question is about a "release" allows the model to ignore entities labeled "Equator" that are geographical locations in favor of the album titled Equator.
  • Attention is All You Need (for Speed): By using self-attention and a multi-task approach, the model learns more efficiently. The "Aha!" moment here is that the model doesn't just need to see the whole question; it needs to know which words belong to the subject and which to the relation.
  • Multi-task > Concatenation: The authors found that treating subject-matching and predicate-matching as distinct tasks (QA-T) performed better than simply mashing their scores together (QA-S).

Key Results

  • Accuracy Boost: Adding context information improved accuracy across the board. In the pipeline model, adding out-degree and type info boosted accuracy from 65.5% to 66.6%.
  • Competitive Performance: Their best end-to-end model (QA-T-mwst) achieved 71.8% accuracy, outperforming several previous benchmarks.
  • Massive Speedup: Compared to the previous state-of-the-art (Lukovnikov et al.), which took 48 hours to train, the authors' model achieved slightly better results in just 4 hours. This makes the approach much more viable for real-world applications.

Limitations and Future Work

  • Lack of Interaction: The current model encodes the question, entity, and relation separately. The authors suggest that future models should allow for "interaction" between these encodings (e.g., cross-attention) to capture deeper semantic links.
  • Limited Context: While out-degree and type are helpful, they are just the tip of the iceberg. The authors plan to explore using full entity descriptions as additional context.
  • Negative Sampling: The performance of these models is highly sensitive to how "wrong" answers are chosen during training. Refining the negative sampling strategy is a noted area for future research to improve training efficiency further.

Summary updated

BibTeX
@article{li2021using,
  author = {Lin Li and Mengjing Zhang and Zhaohui Chao and Jianwen Xiang},
  title = {{Using context information to enhance simple question answering}},
  journal = {World Wide Web},
  year = {2021},
  doi = {10.1007/s11280-020-00842-7},
}
Figure