Complex Temporal Question Answering on Knowledge Graphs

Zhen Jia, Soumajit Pramanik, Rishiraj Saha Roy, Gerhard WeikumarXiv 2021 · DOI

This post explores the paper "Complex Temporal Question Answering on Knowledge Graphs" by Jia et al., presented at CIKM '21.

TL;DR

EXAQT is the first end-to-end system designed specifically for complex temporal questions over Knowledge Graphs (KGs). By combining a recall-oriented graph construction stage with a precision-oriented, time-aware Relational Graph Convolutional Network (R-GCN), it significantly outperforms general-purpose KG-QA models on a new 16k-question benchmark.

What Problem Does This Paper Address?

While Knowledge Graph Question Answering (KG-QA) has advanced rapidly, most systems struggle with temporal intent. Simple temporal questions like "When was Barack Obama born?" are relatively easy. However, complex ones—like "Where did Obama’s children study when he became president?"—require sophisticated reasoning.

These complex questions present two major hurdles:

  1. Multi-hop constraints: The answer isn't directly connected to the main entity (Obama $\rightarrow$ child $\rightarrow$ school).
  2. Temporal reasoning: The system must find the intersection of time points and intervals (e.g., the start of the presidency in 2009 must overlap with the school enrollment period).

General-purpose KG-QA systems often ignore these temporal qualifiers, which are frequently stored as "n-ary" facts (qualifiers attached to a main triple) in modern KGs like Wikidata.

Methods

The authors propose EXAQT (EXplainable Answering of complex Questions with Temporal intent), a two-stage pipeline:

Stage 1: Answer Graph Construction (Recall-oriented)

The goal here is to prune the massive KG into a small, relevant subgraph that likely contains the answer.

  • NERD & Fact Filtering: It starts with Named Entity Recognition and Disambiguation (NERD) to identify entities in the question. A fine-tuned BERT model then filters the thousands of associated KG facts down to a relevant few.
  • Connectivity via GST: To ensure the entities are connected, the system uses Group Steiner Trees (GST) to find the most compact "backbone" structure connecting the question's keywords.
  • Temporal Augmentation: Crucially, the subgraph is then augmented with temporal facts (dates, intervals) related to the entities in the GST, ensuring the reasoning engine has the necessary time data.
Figure 2: An overview of the two-stage Exaqt pipeline.

Stage 2: Answer Prediction (Precision-oriented)

This stage uses a modified Relational Graph Convolutional Network (R-GCN) to rank candidate nodes in the subgraph. The authors introduce several "temporal prongs" to make the R-GCN time-aware:

  • Time-aware Entity Embeddings (TEE): Entity representations are enriched by passing their chronological history of temporal facts through an LSTM.
  • Time Encoding (TE): Timestamps are converted into vectors using sinusoidal encodings (similar to position encodings in Transformers), allowing the model to understand sequential order.
  • Attention over Temporal Relations (ATR): This allows the model to distinguish between the same relation (e.g., "educated at") occurring at different times, focusing on the one that matches the question's temporal scope.
Figure 3: Architecture of the R-GCN model in Exaqt, that includes several signals of temporal information.

Datasets

The authors introduced TimeQuestions, a large-scale benchmark for temporal KG-QA.

  • Scale: 16,181 questions.
  • Source: Compiled from 8 existing general-purpose benchmarks (like WebQuestions and ComplexWebQ) and mapped to Wikidata.
  • Categories: Questions are tagged as Explicit (contains a year), Implicit (e.g., "during the ninth crusade"), Ordinal (e.g., "last husband"), or Temporal Answer (the answer itself is a date).

Key Insights and Ideas

  • Structure isn't enough: The authors found that while Group Steiner Trees are great for finding the relational path to an answer, they often prune away the temporal qualifiers needed to verify that answer. Explicitly augmenting the graph with temporal facts was critical for success.
  • Time as a Sequence: Treating time similarly to word positions in a sentence—using sinusoidal encodings—proved highly effective for neural models to grasp concepts like "before" and "after."
  • The Multi-hop Trap: Existing multi-hop systems like PullNet often assume a fixed number of hops (e.g., exactly 2). Temporal answers are often "hidden" in qualifiers or require varying path lengths, causing these rigid systems to fail.

Key Results

EXAQT was evaluated against three state-of-the-art baselines: Uniqorn, GRAFT-Net, and PullNet.

  • Overall Performance: EXAQT achieved a P@1 of 0.565, significantly outperforming the strongest baseline, GRAFT-Net (0.452).
  • Category Wins: It outperformed all baselines across every temporal category. It was particularly strong on "Implicit" temporal questions, where R-GCN's ability to learn complex patterns shines.
  • Ablation Study: The "Attention over Temporal Relations" (ATR) was identified as the most vital component; removing it caused the largest drop in performance.

Limitations and Future Work

  • Ordinal Challenges: Questions involving ordinals (e.g., "Who was the second person to...") remain the most difficult, with P@1 scores still below 0.5. The authors suggest that purely neural approaches might need to be hybridized with symbolic reasoning to master these.
  • NERD Dependency: The system's final recall is capped by the initial entity linking stage. If the NERD system misses a crucial entity, the entire pipeline fails.
  • Complex Classifiers: While the current temporal intent tagger is effective (~90% accuracy), more sophisticated multi-label classification for questions could further improve results.

Summary updated

BibTeX
@misc{jia2021complex,
  author = {Zhen Jia and Soumajit Pramanik and Rishiraj Saha Roy and Gerhard Weikum},
  title = {{Complex Temporal Question Answering on Knowledge Graphs}},
  year = {2021},
  eprint = {2109.08935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.08935},
}
Figure