A Benchmark for Generalizable and Interpretable Temporal Question Answering over Knowledge Bases

Sumit Neelam, Udit Sharma, Hima Karanam, Shajith Ikbal, Pavan Kapanipathi, Ibrahim Abdelaziz, Nandana Mihindukulasooriya, Young-Suk Lee, Santosh K. Srivastava, Cezar Pendus, Saswati Dana, Dinesh Garg, Achille Fokoue, G. P. Shrivatsa Bhargav, Dinesh Khandelwal, Srinivas Ravishankar, Sairam Gurajada, Maria Chang, Rosario Uceda-Sosa, Salim Roukos, Alexander G. Gray, Guilherme Lima, Ryan Riegel, Francois P. S. Luus, L. Venkata SubramaniamarXiv 2022

Introduction

Researchers from IBM have introduced TempQA-WD, a new benchmark dataset designed to push the boundaries of temporal reasoning in Knowledge Base Question Answering (KBQA). By providing parallel annotations for Wikidata and Freebase along with intermediate SPARQL queries, this dataset aims to make AI systems not just more accurate at answering time-sensitive questions, but also more interpretable and generalizable across different knowledge bases.

The Challenge of Temporal Reasoning

Most current AI systems that answer questions using Knowledge Bases (KBs) excel at "multi-hop" reasoning—for example, identifying "the director of the movie starring Leonardo DiCaprio." However, they often stumble when time is a critical factor. Questions like "What team did Joe Hart play for before Man City?" require a system to understand time intervals, sequences, and overlaps.

Existing research in this area faces three major hurdles:

  1. Lack of Temporal Focus: Most datasets prioritize static facts and ignore the "when."
  2. The "Black Box" Problem: Many temporal datasets only provide question-answer pairs. Without intermediate logic, it is difficult to diagnose why a system failed.
  3. Outdated Data: Many older benchmarks rely on Freebase, which has been discontinued since 2014.

Methods: An Interpretable Pipeline

To bridge these gaps, the team created TempQA-WD by porting the older TempQuestions dataset to Wikidata, the most active and curated open knowledge base today. The key innovation lies in the richness of the annotations. For each question, the authors provided a multi-stage representation:

  • AMR (Abstract Meaning Representation): Captures the semantic structure of the sentence.
  • $\lambda$-expressions: Formal logical forms representing the question's intent.
  • SPARQL Queries: The executable code used to fetch answers from Wikidata.
The modular pipeline for temporal question answering, showing intermediate representations from AMR to SPARQL.

By providing these intermediate steps, researchers can evaluate AI systems at every stage of the pipeline—from natural language understanding to entity linking and final query execution.

Representing Time via Reification

A significant insight from the paper is the importance of "reification." Wikidata handles temporal data by adding "tags" or qualifiers to facts, such as start and end dates. This structure is far superior for temporal QA compared to older, flatter knowledge bases.

Wikidata's reification approach for representing temporal facts, such as Joe Hart's tenure at Manchester City.

The TempQA-WD Dataset

The dataset consists of 839 questions mapped to Wikidata, with 664 in the test set and 175 in the development set. It provides parallel answers for both Wikidata and Freebase, testing a model's ability to generalize across different database schemas. Questions are categorized by complexity:

  • Simple: Retrieving a single temporal fact (e.g., "When was Titanic released?").
  • Medium: Involving two temporal events and reasoning like "before" or "after."
  • Complex: Involving multiple events plus additional constraints like age (e.g., "Who was president when Douglas Bravo was a teenager?").

Key Results and Insights

The researchers evaluated a baseline system called SYGMA on the new dataset, yielding several critical findings:

  • Performance Gaps: SYGMA achieved an overall F1 score of 0.32. While seemingly low, this reflects the genuine difficulty of temporal reasoning on modern, complex KBs. Performance dropped significantly from "Simple" (0.38 F1) to "Medium" (0.13 F1) questions.
  • The Entity Linking Bottleneck: Ablation studies showed that when the system was provided with "ground truth" entities and relations, performance improved dramatically. This suggests that the primary hurdle is often identifying the correct database nodes rather than the temporal logic itself.
  • The "Gold Standard" Jump: When fed the correct SPARQL query directly, the system achieved a perfect 1.0 F1. This confirms the accuracy of the dataset's queries and highlights that the core challenge remains "semantic parsing"—the translation of English into structured code.

Conclusion

TempQA-WD advocates for a modular, interpretable approach to AI. By moving away from "black box" neural networks and toward verifiable pipelines, the research community can better address the nuances of temporal logic. Future work will focus on improving entity and relation linking to overcome the bottlenecks identified in this study.

Summary updated

BibTeX
@misc{neelam2022benchmark,
  author = {Sumit Neelam and Udit Sharma and Hima Karanam and Shajith Ikbal and Pavan Kapanipathi and Ibrahim Abdelaziz and Nandana Mihindukulasooriya and Young-Suk Lee and Santosh K. Srivastava and Cezar Pendus and Saswati Dana and Dinesh Garg and Achille Fokoue and G. P. Shrivatsa Bhargav and Dinesh Khandelwal and Srinivas Ravishankar and Sairam Gurajada and Maria Chang and Rosario Uceda-Sosa and Salim Roukos and Alexander G. Gray and Guilherme Lima and Ryan Riegel and Francois P. S. Luus and L. Venkata Subramaniam},
  title = {{A Benchmark for Generalizable and Interpretable Temporal Question Answering over Knowledge Bases}},
  year = {2022},
  eprint = {2201.05793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.05793},
}
Figure