TR-Rules: Rule-based Model for Link Forecasting on Temporal Knowledge Graph Considering Temporal Redundancy

Ningyuan Li, Haihong E, Shi Li, Mingzhi Sun, Tianyu Yao, Meina Song, Yong Wang, Haoran Luo

Introduction

Temporal Knowledge Graphs (TKGs) represent evolving facts as quadruples $(subject, relation, object, timestamp)$. A primary challenge in this domain is link forecasting—predicting future events based on historical patterns. While deep learning models have shown high accuracy, they often operate as "black boxes." Rule-based models are preferred for their inherent interpretability, yet they frequently struggle with two phenomena: temporal redundancy and the neglect of entity-specific acyclic patterns. This paper introduces TR-Rules, a novel framework designed to address these hurdles through window-based confidence estimation and acyclic rule mining.

Methodology

Window Confidence Estimation

Existing rule-based models often suffer from "Temporal Redundancy," where the frequent repetition of a single event (e.g., multiple diplomatic visits within a short period) artificially inflates the confidence of a rule. Standard metrics treat these repetitions as independent evidence, leading to biased predictions.

TR-Rules introduces a Window Confidence mechanism to regularize this data. Instead of counting every instance, the model groups events into time windows and checks for the presence of a pattern at least once within that window. This approach "squashes" redundant bursts of activity into a single valid body instance, resulting in more realistic and robust confidence scores.

The window confidence mechanism 'squashes' redundant temporal events into discrete windows to prevent confidence inflation.

Acyclic Rule Mining

Traditional models typically focus on "cyclic rules"—general patterns where variables represent entities (e.g., "If $X$ visits $Y$, then $Y$ will later visit $X$"). However, many real-world geopolitical events are entity-specific. TR-Rules is the first to effectively mine acyclic rules, which keep specific entities fixed (e.g., patterns involving specific nations like the US or China).

Comparison of cyclic rules (general patterns) and acyclic rules (entity-specific patterns) within a temporal knowledge graph.

To efficiently discover these rules, the model employs Exponentially Weighted Sampling. This strategy prioritizes random walks that are closer in time to the target prediction, reflecting the intuition that recent history is a stronger predictor of the immediate future than distant history.

Experimental Evaluation

Datasets

The model was evaluated on three standard benchmarks from the Integrated Crisis Early Warning System (ICEWS):

  • ICEWS14: Political events from 2014.
  • ICEWS18: Political events from 2018.
  • ICEWS0515: A long-term dataset spanning a decade (2005–2015).

Results and Discussion

TR-Rules achieved state-of-the-art performance, outperforming both traditional rule-based models like TLogic and embedding-based models like RE-Net. On the ICEWS18 dataset, TR-Rules reached a Mean Reciprocal Rank (MRR) of 30.41, surpassing TLogic's 29.82.

A key finding was the synergy between acyclic rules and window confidence. Ablation studies revealed that while acyclic rules are "data-hungry"—requiring a high volume of sampled walks to be effective—they provide a significant performance boost when paired with the windowing mechanism. On ICEWS14, this combination improved the Hits@10 score by nearly 15% as the number of samples increased.

Conclusion

TR-Rules demonstrates that rule-based models can achieve state-of-the-art accuracy on TKGs without sacrificing interpretability. By addressing temporal redundancy through windowing and capturing entity-specific behaviors via acyclic rules, the model provides a more nuanced and accurate reflection of real-world temporal dynamics. Future work will explore more sophisticated window aggregation functions and strategies to mine longer causal sequences efficiently.

Summary updated

BibTeX
@inproceedings{li2023tr,
  author = {Ningyuan Li and Haihong E and Shi Li and Mingzhi Sun and Tianyu Yao and Meina Song and Yong Wang and Haoran Luo},
  title = {{TR-Rules: Rule-based Model for Link Forecasting on Temporal Knowledge Graph Considering Temporal Redundancy}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.529},
}
Figure