Abstract
Temporal Knowledge Graphs (TKGs) represent facts as quadruples $(s, p, o, \tau)$, adding a temporal dimension to traditional knowledge representation. Reasoning on these graphs, particularly link prediction, requires capturing complex intra-event semantics and inter-event temporal correlations. We present ECEformer, a novel reasoning model that constructs an "Evolutionary Chain of Events" (ECE) for entities. ECEformer utilizes a Transformer encoder for intra-quadruple representation learning and an MLP-Mixer inspired module for global context reasoning. Evaluated on six benchmarks, ECEformer achieves state-of-the-art performance, notably improving MRR by 14.09% on the GDELT dataset.
Introduction
Temporal Knowledge Graphs (TKGs) extend static knowledge graphs by incorporating timestamps, transforming triples into quadruples. A primary challenge in TKG reasoning is predicting missing entities at specific times. Existing models often suffer from two main drawbacks: neglecting the internal semantic structure of individual quadruples and failing to capture a unified context across multiple related events over time.
To address these, we propose ECEformer. It shifts the focus from global graph structures to chronological sequences of events related to specific entities, termed the Evolutionary Chain of Events (ECE). This approach allows the model to leverage sequential modeling techniques to better understand the causal and temporal flow of facts.
Methodology
The ECEformer architecture consists of four primary stages designed to extract and reason over temporal patterns.
1. Evolutionary Chain of Events (ECE) Construction
The model extracts a neighborhood subgraph for a target entity and linearizes it into a chronological sequence. This transformation makes the TKG reasoning problem amenable to sequence-based architectures.
2. ECE Representation Learning (ECER)
The ECER module employs a Transformer-based core unit to process each event in the chain. By treating the subject, predicate, object, and timestamp as distinct tokens, the Transformer captures the "intra-quadruple" semantics, modeling how these components interact within a single point in time.
3. Mixed-Context Knowledge Reasoning (MCKR)
Inspired by the MLP-Mixer architecture, the MCKR module performs "inter-quadruple" reasoning. It uses two types of mixing:
- Channel MLP: Facilitates interaction across feature dimensions within the same event.
- Patch MLP: Enables interaction between different events along the evolutionary chain, capturing long-term dependencies.
4. Temporal Enhancement Task
To further sensitize the model to temporal dynamics, a masked time prediction task is introduced. During training, the model must predict the correct timestamp for events where the time token has been replaced by a [MASK], forcing it to learn the underlying temporal logic of the ECE.
Experiments and Results
ECEformer was evaluated on six major TKG benchmarks, including extrapolation (GDELT, ICEWS05-15, ICEWS18) and interpolation (ICEWS14, YAGO11K, Wikidata12K) tasks.
The model demonstrated significant performance gains over 20 state-of-the-art baselines. On the GDELT dataset, ECEformer achieved a 14.09% improvement in Mean Reciprocal Rank (MRR) over the previous best model, SToKE. It also consistently improved Hits@1 (the probability that the top-1 predicted entity is correct) across all datasets, with gains ranging from 1% to over 12%. Ablation studies confirmed that both the MCKR module and the temporal enhancement task are critical to the model's success.
Conclusion
ECEformer effectively models the evolutionary chain of events in TKGs by combining the strengths of Transformers and MLP-Mixers. While it achieves high precision (MRR and Hits@1), future work will focus on improving recall (Hits@10) and enhancing robustness on datasets with sparse temporal information, such as YAGO11K.
Summary updated