Abstract
Temporal Knowledge Graph Question Answering (TKGQA) has traditionally focused on simple, year-based queries, often overlooking the complexities of multi-granularity time scales and the issue of "pseudo-temporality" in benchmarks. This paper introduces MULTITQ, a large-scale dataset featuring 500,000 question-answer pairs across day, month, and year granularities. We also propose MultiQA, a transformer-based model with a novel time-aggregation module designed to reason across these varying temporal scales. Experimental results demonstrate that MultiQA significantly outperforms existing baselines, particularly on complex queries requiring fine-grained temporal reasoning.
Introduction
Knowledge Graphs (KGs) are effective for storing factual information, yet many facts are inherently temporal. While Temporal Knowledge Graphs (TKGs) address this by incorporating timestamps, current TKGQA research faces two primary challenges: single-granularity constraints and pseudo-temporality. Most existing datasets, such as CRONQUESTIONS, primarily operate at the "year" level, failing to capture the nuances of daily or monthly queries. Furthermore, many benchmark questions are "pseudo-temporal," where the answer can be retrieved without considering time because only one fact matches the entities provided.
To address these gaps, we present MULTITQ, a dataset where temporal constraints are essential for accurate retrieval across multiple time scales. By forcing models to distinguish between facts that are valid at different times, we move towards more robust temporal reasoning.
The MULTITQ Dataset
MULTITQ is built upon the ICEWS05-15 dataset, a subset of the Integrated Crisis Early Warning System. Unlike the Wikidata subsets used in previous benchmarks, ICEWS is significantly more dense and semantically complex. We define Semantic Complexity (SC) as the average number of relation types per entity; ICEWS scores 7.05 compared to 1.32 for the Wikidata subset in CRONQUESTIONS.
The dataset includes questions at Day, Month, and Year levels, categorized into "Single" (one temporal constraint) and "Multiple" (reasoning over multiple constraints, e.g., "Who first visited X after Y did?"). By intentionally mapping questions to multiple facts in the KG, we ensure that models must perform genuine temporal reasoning rather than relying on entity-based shortcuts.
Methodology: The MultiQA Model
The proposed MultiQA model architecture is designed to handle the hierarchical nature of time. It consists of three primary stages:
- Question Pre-processing: Utilizing a pre-trained RoBERTa model, natural language questions are transformed into a semantic matrix. Named Entity Recognition (NER) and rule-based extraction link the question to specific KG entities and timestamps.
- Multi-granularity Time Aggregation: Since the underlying TKG stores facts at a day granularity, MultiQA employs a Transformer-based fusion layer to aggregate day-level embeddings into representative month or year embeddings. Sinusoidal position encoding is used to preserve chronological order during this process.
- Answer Scoring: Candidate answers are scored using a function based on TComplEx, which represents relations as complex-valued vectors to capture temporal dynamics effectively.
Experimental Results
MultiQA was evaluated against several baselines, including BERT, ALBERT, and CronKGQA. MultiQA achieved a Hits@1 of 0.293, outperforming CronKGQA (0.279). The most significant improvements were observed in month and year granularities. Specifically, for "Before/After" queries at the month level, MultiQA surpassed CronKGQA by approximately 7% (0.548 vs 0.474 in Hits@1). Ablation studies confirmed that while KG-specific embeddings improve general reasoning, the Multi-granularity Time Aggregation module is critical for solving mixed-scale temporal questions.
Conclusion and Future Work
This work highlights the importance of multi-granularity reasoning in TKGQA. While MULTITQ provides a robust testbed, future work will address current limitations, such as the reliance on template-based question generation and domain-specific focus. Improving entity linking through advanced Neural Entity Linking (NEL) models and expanding the dataset to multiple domains are key areas for future exploration.
Summary updated