Introduction
Temporal Knowledge Graphs (TKGs) represent evolving facts as quadruples $(subject, relation, object, timestamp)$. Reasoning in this domain typically involves extrapolation—predicting future events based on historical sequences. While existing models have made significant progress, they often struggle with long-term dependencies and the irregular nature of repetitive events. This paper introduces SRPL (Sequential and Repetitive Pattern Learning), a framework designed to explicitly model these patterns, leading to substantial performance gains, particularly on high-frequency datasets like GDELT.
Problem Statement
The authors identify two primary limitations in current TKG reasoning approaches:
- Implicit Sequential Modeling: Many models rely on Recurrent Neural Networks (RNNs) to encode history. However, RNNs often suffer from "information oblivion," where gradients vanish over long sequences, making it difficult to capture specific long-term dependencies. They capture sequences implicitly rather than modeling the relationship between specific past time steps and the present.
- Irregular Repetition: Real-world events often repeat at irregular intervals (e.g., recurring diplomatic conflicts). Existing "copy-mode" mechanisms frequently focus on frequency while ignoring the specific time intervals between occurrences, which carries vital predictive information.
Methodology: The SRPL Framework
The SRPL architecture consists of three integrated components designed to generate robust entity embeddings for future fact prediction.
Spatial Encoder
A Relational Graph Convolutional Network (RGCN) serves as the spatial encoder, capturing structural relationships between entities within individual time snapshots.
Dependency-aware Sequential Pattern Learning (DSPL)
To address the limitations of RNNs, DSPL utilizes explicit temporal dependency embeddings. Instead of relying on a hidden state, it calculates the influence of $K$ previous timestamps using a timestamp-wise attention mechanism. This allows the model to learn which specific past time steps are most relevant to the current prediction, effectively bypassing the "oblivion" problem.
Time-interval guided Repetitive Pattern Learning (TRPL)
TRPL focuses on repetitive events by identifying the last occurrence of a fact and calculating the time gap $q$. It employs a logarithmic decay function, $f(x) = (\ln(x + e))^{-1}$, to weight the influence of historical repetitions. This decay signal informs an attention layer, helping the model prioritize facts that follow established temporal repetition patterns.
Finally, the model employs ConvTransE as a decoder to compute the probability of a specific entity completing a query, such as predicting the object in a $(subject, relation, ?, t+1)$ query.
Experimental Results
The SRPL framework was evaluated on four benchmark datasets: ICEWS14, ICEWS18, WIKI, and GDELT. The results demonstrate that SRPL consistently outperforms state-of-the-art baselines like RE-GCN and TiRGN across all metrics (MRR, Hits@1, @3, and @10).
Performance Breakthrough on GDELT
The most notable improvement occurred on the GDELT dataset, which is characterized by high-frequency (15-minute) intervals and significant noise. SRPL achieved an MRR of 40.85%, a staggering improvement over the previous best of approximately 22%. This suggests that explicit pattern matching is highly effective at filtering noise in dense temporal data.
Sensitivity to History Length
A key hyperparameter in SRPL is the history length $K$. The model's performance is sensitive to this value, as it determines the window of past events considered for sequential and repetitive patterns.
As shown in the sensitivity analysis, the optimal value for $K$ varies by dataset. For instance, ICEWS14 peaks around $K=6$, while WIKI shows a peak at $K=7$. This variation underscores the importance of tuning the history window to the specific temporal dynamics of the data. If $K$ is too small, the model misses long-term patterns; if it is too large, it introduces unnecessary noise.
Conclusion
SRPL represents a significant advancement in TKG reasoning by shifting from implicit to explicit modeling of sequential and repetitive patterns. By incorporating dependency-aware embeddings and time-decayed attention, the model effectively captures the nuances of event evolution over time. Future work may explore extending this framework to predict relations or specific timestamps, further enhancing the predictive capabilities of Temporal Knowledge Graphs.
Summary updated