TEQUILA: Temporal Question Answering over Knowledge Bases

Zhen Jia, Abdalghani Abujabal, Rishiraj Saha Roy, Jannik Stroetgen, Gerhard Weikum · DOI

This summary explores TEQUILA, a framework designed to handle temporal reasoning in Knowledge Base Question Answering (KB-QA), as presented in the paper "TEQUILA: Temporal Question Answering over Knowledge Bases."

TL;DR

TEQUILA is a four-stage framework that acts as an "enabler" for existing question-answering systems, allowing them to solve complex temporal queries (e.g., "Who coached Neymar at Barcelona?"). By decomposing questions into simpler sub-queries and applying interval-based reasoning, it significantly boosts the precision and F1-scores of standard KB-QA engines.

What Problem Does This Paper Address?

Standard KB-QA systems are surprisingly good at answering simple questions like "Which teams did Neymar play for?" by mapping natural language to structured database queries (like SPARQL). However, they stumble when questions involve time-based constraints, such as:

  • Explicit dates: "Who won the World Cup in 2014?"
  • Implicit events: "Which teams did Neymar play for before joining PSG?"
  • Ordinal constraints: "Who was the first husband of Julia Roberts?"
  • Temporal overlaps: "Under which coaches did Neymar play in Barcelona?"

The challenge lies in the fact that these questions require more than just a simple lookup; they require decomposing the question, identifying temporal "signals" (like before, after, or during), and performing mathematical reasoning over time intervals stored in the knowledge base.

Methods

TEQUILA operates as a pipeline that can sit on top of any existing KB-QA engine (the authors tested it with systems called QUINT and AQQU). It follows four distinct stages:

  1. Detection: The system identifies if a question has temporal intent. It uses tools like HeidelTime to spot explicit dates and curated dictionaries to find "signal" words (e.g., before, since) and "ordinal" words (e.g., first, last).
  2. Decomposition and Rewriting: This is the core innovation. The system breaks a complex question into non-temporal sub-questions (to find candidate answers) and temporal sub-questions (to find time constraints). For example, "Where did Neymar play before joining PSG?" becomes:
  3. Sub-question 1: "Where did Neymar play?"
    • Sub-question 2: "When did Neymar join PSG?"
  4. Answering Sub-questions: The rewritten sub-questions are fed into a standard KB-QA engine. TEQUILA also performs a specialized lookup to find "time scopes" (start and end dates) for the candidate answers by using word embeddings to match predicates (e.g., matching "played for" to a KB predicate like joinedOnDate).
  5. Temporal Reasoning: Finally, TEQUILA applies Allen’s interval algebra to reconcile the results. It checks if the time scope of a candidate answer satisfies the constraint found in the second sub-question.
Table 2: Temporal reasoning constraints.

Datasets

The authors evaluated TEQUILA using two primary benchmarks:

  • TempQuestions: A dataset of 1,271 temporal questions categorized by constraint type (explicit, implicit, ordinal, and temporal answers).
  • ComplexQuestions: The authors used a subset of 341 temporal questions from this existing benchmark to compare against other state-of-the-art systems.

Key Insights and Ideas

  • Decomposition is the "Enabler": Rather than building a new KB-QA engine from scratch, the authors showed that pre-processing (decomposition) and post-processing (reasoning) can make existing "simple" engines capable of handling complex logic.
  • Semantic Similarity for Time Scopes: Knowledge bases often store temporal data in inconsistent ways. TEQUILA uses word2vec embeddings to calculate the similarity between a question's verb (e.g., "play") and the KB's temporal predicates (e.g., "joinedOnDate"), allowing it to find the correct time intervals even when the vocabulary doesn't match perfectly.
  • Precision Boost: The reasoning stage acts as a powerful filter. By strictly enforcing temporal constraints, TEQUILA significantly reduces "noise" and incorrect answers, leading to a systematic boost in precision.

Key Results

TEQUILA-enabled systems consistently outperformed their standalone counterparts across all categories.

Table 3: Detailed performance showing significant F1-score improvements (marked with asterisks) when TEQUILA is added to AQQU and QUINT.
  • AQQU + TEQUILA saw its aggregate F1-score jump from 27.2 to 36.7 on the TempQuestions benchmark.
  • QUINT + TEQUILA improved from 30.0 to 34.0 F1-score.
  • The system proved particularly effective at handling ordinal constraints (e.g., "first", "last"), where F1-scores improved by over 10 points in some cases.

Limitations and Future Work

The authors identified three main areas where TEQUILA can fail:

  1. NLP Errors: If the initial linguistic analysis (like Part-of-Speech tagging) is wrong, the decomposition rules might misfire. For example, mistaking the verb "landing" for a noun can lead to incorrect sub-questions.
  2. Predicate Matching: The similarity function sometimes fails to find the correct temporal predicate in the Knowledge Base if the semantic gap is too wide.
  3. Signal Misidentification: If the system wrongly identifies the temporal relation (e.g., confusing "before" with "during"), the final reasoning step will filter out the correct answers.

Future work could involve using deep learning to make the decomposition stage more robust to linguistic variations.

Summary updated

BibTeX
@inproceedings{jia2018tequila,
  author = {Zhen Jia and Abdalghani Abujabal and Rishiraj Saha Roy and Jannik Stroetgen and Gerhard Weikum},
  title = {{TEQUILA: Temporal Question Answering over Knowledge Bases}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2018},
  doi = {10.1145/3269206.3269247},
}
Figure