Abstract
There has been an increasing interest in studying graph reasoning over hyper-relational KGs (HKGs). Compared with traditional knowledge graphs (KGs), HKGs introduce additional factual information in the form of qualifiers (key-value pairs) for each KG fact that helps to better restrict the fact validity. Meanwhile, due to the ever-evolving nature of world knowledge, extensive parallel works have been studying temporal KG (TKG) reasoning. Each TKG fact can be viewed as a KG fact coupled with a timestamp (or time period) specifying its time validity. The existing HKG reasoning approaches do not consider temporal information because it is not explicitly specified in previous benchmark datasets. Besides, traditional TKG reasoning methods only focus on temporal reasoning and have no way to learn from qualifiers. To this end, we aim to fill the gap between TKG and HKG reasoning. We develop two new benchmark hyper-relational TKG (HTKG) datasets, i.e., Wiki-hy and YAGO-hy, and propose an HTKG reasoning model that efficiently models both temporal facts and qualifiers. We further exploit additional time-invariant relational knowledge from the Wikidata knowledge base to improve HTKG reasoning. Time-invariant relational knowledge serves as the knowledge that remains unchanged in time (e.g., Sasha Obama is the child of Barack Obama). Experimental results show that our model achieves strong performance on HTKG link prediction and can be enhanced by jointly leveraging both temporal and time-invariant relational knowledge.
Introduction: Bridging Context and Time
Traditional Knowledge Graphs (KGs) store facts as simple triples: (subject, relation, object). However, real-world knowledge is rarely that simple. Hyper-Relational KGs (HKGs) add "qualifiers" to provide context (e.g., Einstein was "educated at" ETH Zurich with a "degree" of "Bachelor"), while Temporal KGs (TKGs) add timestamps to show when a fact was true.
Until now, these two advancements lived in separate worlds. Existing HKG models assume facts are static, while TKG models ignore the rich context provided by qualifiers. This research bridges the gap by introducing Hyper-Relational Temporal Knowledge Graphs (HTKGs), where a fact’s validity depends on both when it happened and the specific conditions (qualifiers) surrounding it.
Methodology: The HypeTKG Framework
The authors propose HypeTKG, a novel reasoning model designed to handle the dual complexity of time and qualifiers. The architecture consists of two main components:
- Qualifier-Attentional Time-Aware Graph Encoder (QATGE): This module learns entity representations by examining their "temporal neighbors." It employs an attention mechanism to weigh the importance of qualifiers relative to the primary relation and utilizes time-aware embeddings (sine/cosine functions) to capture temporal dynamics.
- Qualifier Matching Decoder (QMD): To predict missing entities, this decoder searches for "subject-related facts" across the graph to find supporting qualifiers. This "global" view allows the model to find clues that might be missing from a specific query but are present elsewhere in the subject's history.
Additionally, the model variant HypeTKG$^{\psi}$ incorporates Time-Invariant (TI) knowledge. These are static facts (e.g., "place of birth") that remain true regardless of time. A gated structure is used to adaptively balance the influence of these static facts against evolving temporal data.
Datasets and Experimental Setup
To evaluate the model, the researchers introduced two new benchmark datasets:
- Wiki-hy: Derived from Wikidata, containing facts from 1513 to 2020.
- YAGO-hy: Built from YAGO3 and Wikidata, covering 1830 to 2018.
Both datasets map temporal facts to their original qualifiers and include a curated set of 10 frequent TI relations (e.g., official language, ethnic group) to test the impact of static knowledge integration.
Key Insights and Results
Experimental results demonstrate that HypeTKG achieves a new state-of-the-art (SOTA) in link prediction, outperforming 15 baselines including top-tier TKG and HKG models. On the Wiki-hy dataset, HypeTKG achieved a Mean Reciprocal Rank (MRR) of 0.687, significantly higher than the best TKG baseline (0.602) and HKG baseline (0.669).
Key findings include:
- Correlation of Time and Context: Modeling temporal validity and qualifiers together provides a sharper "filter" for link prediction, as they are often inextricably linked (e.g., an award won in a specific year for a specific movie).
- Effective Qualifier Matching: The QMD's ability to pull qualifiers from other facts about the same subject significantly improves accuracy.
- Handling Distributional Shift: Unlike other models that degrade when given extra static data, HypeTKG$^{\psi}$ uses its gated encoder to prevent TI knowledge from overwhelming temporal signals, leading to consistent performance boosts (e.g., MRR increasing from 0.832 to 0.842 on YAGO-hy).
Conclusion and Future Work
While HypeTKG sets a new standard for HTKG reasoning, limitations remain. Currently, the model predicts missing objects in primary facts but does not yet predict missing elements within qualifiers or the timing of future facts (extrapolation). Future research will focus on these more complex predictive challenges in hyper-relational temporal environments.
Summary updated