SiMFy: A Simple Yet Effective Approach for Temporal Knowledge Graph Reasoning

Zhengtao Liu, Lei Tan, Mengfan Li, Yao Wan, Hai Jin, Xuanhua Shi

Researchers at the Huazhong University of Science and Technology, in a paper presented at EMNLP 2023, are challenging the prevailing "bigger is better" trend in artificial intelligence. Focusing on the sub-field of Temporal Knowledge Graph (TKG) reasoning, the authors demonstrate that a surprisingly simple architecture can outperform the complex, computationally expensive models currently considered state-of-the-art (SOTA).

Abstract

Temporal Knowledge Graph (TKG) reasoning aims to predict future facts based on historical event sequences. While current state-of-the-art models rely on complex Graph Neural Networks (GNNs) and Recurrent Neural Networks (RNNs) to capture spatial and temporal dependencies, these architectures often suffer from low training efficiency and poor generalization. This paper introduces SiMFy (Simple MLP-Frequency-based model), which replaces heavy machinery with a single-layer MLP for similarity matching and a fixed historical frequency strategy. Experimental results across four major benchmarks show that SiMFy not only achieves superior performance but also trains significantly faster and generalizes better than its complex counterparts.

The TKG Reasoning Challenge

Knowledge Graphs (KGs) store facts as triples (subject, relation, object). Temporal Knowledge Graphs (TKGs) add a time dimension, storing facts as quadruples like (Germany, negotiate, Russia, 2022-05). The goal of TKG reasoning is to predict future facts based on historical data.

Existing SOTA models typically use GNNs to capture spatial structure and RNNs or Transformers to capture temporal evolution. However, the authors observed that these models are often "over-designed," leading to two major issues:

  1. Low Training Efficiency: They require massive compute and long convergence times.
  2. Poor Generalization: They tend to overfit training data, struggling with truly "unseen" future events.

The SiMFy Architecture

SiMFy consists of two remarkably straightforward modules designed to answer whether complex architectures are truly necessary for TKG reasoning:

  1. Similarity Matching (The MLP): Instead of using multi-layer GNNs to aggregate neighbor information, SiMFy uses a one-layer Multilayer Perceptron (MLP). It takes the embeddings of the subject and relation, concatenates them, and passes them through the MLP to generate a query vector. This vector is then compared against all candidate object embeddings to find the best match.
  2. Historical Frequency Learning: Many TKG facts are repetitive (e.g., countries negotiate frequently). While other models try to learn a "copy mechanism" during training to handle this, SiMFy uses a fixed-frequency strategy. It simply counts how often an object has appeared with a specific subject-relation pair in the past. This count is converted into a score during inference.
The SiMFy architecture combines Similarity Matching via a simple MLP with a Historical Frequency Learning module.

The Secret Sauce: During the final inference stage, SiMFy combines the MLP's prediction and the historical frequency score using a simple weighting coefficient ($\alpha$). Crucially, the frequency component is not "learned" during training, which prevents the model from becoming over-reliant on past repetitions and allows it to focus on learning the underlying structural dependencies.

Experimental Evaluation

The model was evaluated on four widely-used TKG benchmarks:

  • ICEWS14, ICEWS18, and ICEWS05-15: Subsets of the Integrated Crisis Early Warning System, containing political and social events.
  • GDELT: A much larger dataset (Global Database of Events, Language, and Tone) with a high temporal resolution (15-minute intervals).

Key Results and Insights

SiMFy achieved the highest scores (MRR and Hits@1/3/10) across all four datasets. For example, on ICEWS14, it achieved an MRR of 39.54, outperforming the previous best GNN-based model (RE-GCN) at 37.58.

  • MLPs as GNN Killers: A one-layer MLP captures structural dependencies for "unseen events" just as well as complex GNNs, suggesting the high computational cost of GNNs in this task may be unnecessary.
  • Efficiency and Convergence: SiMFy is an order of magnitude faster than its competitors. It reaches peak performance in just a few epochs (often under 10), whereas complex models require significantly more iterations.
Comparison of average training time per epoch across different models and datasets, highlighting SiMFy's extreme efficiency.
  • The Simplicity Advantage: SiMFy exhibits a much smaller "generalization gap" (the difference between training and test performance) than complex models like CEN or RE-GCN, indicating superior robustness when applied to new, real-world data.

Limitations and Future Work

While SiMFy excels at standard TKG reasoning, the authors note that the paper does not deeply explore the mutual influence between historical and unseen events. Future work could involve implementing a more precise, sliding time window for historical frequency to better capture short-term and long-term evolutionary patterns. Additionally, it remains to be seen if such a simple architecture can handle more complex, multi-hop reasoning or logical queries in TKGs.

Summary updated

BibTeX
@inproceedings{liu2023simfy,
  author = {Zhengtao Liu and Lei Tan and Mengfan Li and Yao Wan and Hai Jin and Xuanhua Shi},
  title = {{SiMFy: A Simple Yet Effective Approach for Temporal Knowledge Graph Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.249},
}
Figure