HiSMatch: Historical Structure Matching based Temporal Knowledge Graph Reasoning

Zixuan Li, Zhongni Hou, Saiping Guan, Xiaolong Jin, Weihua Peng, Long Bai, Yajuan Lyu, Wei Li, Jiafeng Guo, Xueqi Cheng

Abstract

Temporal Knowledge Graph (TKG) reasoning aims to predict future facts based on historical information. Current approaches often suffer from one-sided historical modeling or a lack of global context. This paper introduces HiSMatch, a framework that treats TKG reasoning as a matching problem between query-related historical structures and candidate-related historical structures. By integrating a Background Knowledge Encoder and multi-semantic components (structure, time, and sequence), HiSMatch achieves state-of-the-art performance across several benchmarks, including a 5.6% MRR improvement on ICEWS14.

Introduction

Temporal Knowledge Graphs (TKGs) represent evolving facts as quadruples $(s, r, o, t)$. The task of TKG extrapolation—predicting future events—is critical for applications in event forecasting and recommendation. However, existing methods typically focus on either the subject's history or the object's history in isolation, failing to capture the mutual interaction between entities. Furthermore, many models rely on local neighborhoods, missing the broader global context provided by higher-order associations in the graph.

HiSMatch addresses these gaps by reframing prediction as a matching task. It encodes the historical behavioral patterns of both the query subject and potential candidates, grounded in a global background knowledge base.

Methodology

The HiSMatch architecture consists of four integrated modules designed to capture the complex dynamics of TKGs.

The HiSMatch architecture overview.
  1. Query Structure Encoder: This module extracts subgraphs related to the query subject and relation over time. It uses a Gated Recurrent Unit (GRU) to model the subject's evolving behavioral trends.
  2. Candidate Structure Encoder: To evaluate potential answers, this encoder processes the historical subgraphs of every candidate entity. It utilizes CompGCN (Composition-based Graph Convolutional Network) to effectively manage the multi-relational nature of these histories.
  3. Background Knowledge Encoder: A global "Background KG" is constructed from recent snapshots. A Graph Convolutional Network (GCN) processes this graph to provide foundational entity representations that inform the other encoders.
  4. Matching Function: The final matching score is calculated using ConvTransE, a convolutional scoring function that compares the query representation against each candidate's historical profile.

Each encoder incorporates three semantic layers: Structure Semantic (local topology), Time Semantic (using a periodic cosine function to map intervals), and Sequential Pattern (temporal ordering via GRU).

Experimental Evaluation

HiSMatch was evaluated on six standard TKG benchmarks: ICEWS14, ICEWS14*, ICEWS18, ICEWS05-15, GDELT, and WIKI. These datasets vary significantly in time granularity, ranging from 15-minute intervals (GDELT) to yearly snapshots (WIKI).

Results and Analysis

HiSMatch consistently outperformed all baseline models, including RE-GCN, CyGNet, and xERTE, across all datasets and metrics.

Performance comparison of HiSMatch against baselines on ICE14, ICE05-15, and GDELT datasets.

Key findings from the experimental results include:

  • Performance Gains: The model achieved significant improvements in Mean Reciprocal Rank (MRR), notably 5.6% on ICEWS14 and 4.8% on ICEWS05-15.
  • Component Impact: Ablation studies revealed that query-related history is crucial for precision (Hits@1), while candidate-related history significantly improves recall (Hits@10).
  • Global Context and Time Sparsity: The Background Knowledge Encoder proved essential for datasets with sparse local history, like WIKI. Additionally, explicitly modeling numerical time intervals through the Time Semantic component allowed the model to handle irregular temporal gaps more effectively than simple sequence modeling.

Conclusion

HiSMatch demonstrates that reframing TKG reasoning as a historical structure matching problem is a highly effective strategy. By balancing query-specific trends with candidate-specific behavioral patterns and global context, the model achieves superior predictive accuracy. Future research directions include developing learnable history-discovery strategies to replace fixed heuristics and exploring cross-encoder architectures for deeper interaction between query and candidate histories.

Summary updated

BibTeX
@inproceedings{li2022hismatch,
  author = {Zixuan Li and Zhongni Hou and Saiping Guan and Xiaolong Jin and Weihua Peng and Long Bai and Yajuan Lyu and Wei Li and Jiafeng Guo and Xueqi Cheng},
  title = {{HiSMatch: Historical Structure Matching based Temporal Knowledge Graph Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.542},
}
Figure