Do Temporal Knowledge Graph Embedding Models Learn or Memorize Shortcuts?

Jiaxin Pan, Mojtaba Nayyeri, Yinan Li, Steffen StaabTGL @ NeurIPS 2023

TL;DR

This paper reveals that current Temporal Knowledge Graph Embedding (TKGE) models, like their static counterparts, heavily rely on "shortcuts" (e.g., inverse relations, repeated facts) in existing datasets, leading to inflated performance. The authors propose a simple rule-based model that matches state-of-the-art performance on these datasets and introduce new, more challenging benchmarks to better evaluate TKGE models.

What Problem Does This Paper Address?

Temporal Knowledge Graphs (TKGs) represent real-world facts with associated timestamps, making them crucial for understanding dynamic information. Temporal Knowledge Graph Embedding (TKGE) models aim to predict missing facts in these graphs. However, prior research on static knowledge graphs has shown that many models achieve high performance not by true understanding, but by exploiting "test set leakage" – patterns present in the training data that are also present in the test data, acting as shortcuts. This paper investigates whether a similar problem exists in TKGs and, if so, how to address it.

Methods

The core of the paper's methodology involves two main parts:

  1. A Naive Rule-Based Model: The authors propose a simple, non-deep-learning model that leverages four types of "shortcuts" for link prediction:
  2. Static Symmetry/Inverse Patterns: Exploiting relations that are inherently symmetric or inverse (e.g., "host a visit" and "make a visit").
  3. Dynamic Symmetry/Inverse Patterns: Similar to static patterns but considering temporal flexibility.
  4. Repeated Facts: Recognizing that certain events or relationships can occur multiple times over a period.
  5. Connected Entities: Inferring relationships based on entities that frequently co-occur across various relations. This model combines the predictions from these rules to rank potential entities.

  6. New Challenging Datasets: To overcome the limitations of existing TKGE benchmarks (ICEWS14 and ICEWS05-15), the authors create two new datasets: ICEWS14RR and ICEWS05-15RR. These datasets are constructed by ensuring that complete symmetry or inverse relation pairs are never split between the training and test sets. This forces models to learn more complex inference rather than relying on simple direct pattern matching.

Datasets

  • ICEWS14 and ICEWS05-15: These are existing, widely used temporal knowledge graph benchmark datasets.
  • ICEWS14RR and ICEWS05-15RR: These are newly constructed datasets by the authors. They are derived from ICEWS14 and ICEWS05-15, respectively, but with a modified splitting strategy to prevent test set leakage from symmetry and inverse relations. Specifically, if two entities and a relation form a symmetric or inverse pair, both instances are kept together in either the training or test set, not split across them.

Key Insights and Ideas

  • TKGs Suffer from Test Set Leakage Too: The paper confirms that popular TKGE datasets like ICEWS14 and ICEWS05-15 are also susceptible to test set leakage, primarily due to symmetry, inverse relations, and repeated facts.
  • Simple Rules Can Be Powerful: A surprisingly simple, rule-based model can achieve performance comparable to sophisticated deep learning models on existing TKGE benchmarks. This strongly suggests that current models are not learning complex temporal reasoning but are instead memorizing these easy patterns.
  • Deep Learning Models Need More Than Just Embeddings: The performance of advanced models like TLT-KGE, even with large embedding dimensions, is surpassed by the naive rule-based model on the original datasets, highlighting a reliance on simple patterns rather than deep temporal understanding.
  • New Benchmarks are Crucial: The newly created ICEWS14RR and ICEWS05-15RR datasets reveal a significant performance drop for all tested models, demonstrating their inadequacy in handling more complex inference tasks when simple shortcuts are removed.

Key Results

  • The proposed "Naive Rules" model achieves performance comparable to state-of-the-art TKGE models on the original ICEWS14 and ICEWS05-15 datasets, with metrics like MRR and Hits@k being very close. For example, on ICEWS14, Naive-Rules achieved an MRR of 57.3, while the best baseline TLT-KGE (dim=1200) achieved 63.0.
  • On the newly constructed ICEWS14RR and ICEWS05-15RR datasets, the performance of all models, including the Naive Rules model, drops significantly. For instance, on ICEWS14RR, the Naive Rules model achieved an MRR of 41.6, a drop of 15.7 from the original dataset, and T(NT)ComplEx dropped from 60.7 to 48.2.
  • The performance gap between the rule-based model and neural network models marginally enlarges on the new datasets, but the overall performance drop indicates that existing models are not robust to the removal of simple shortcuts.

Limitations and Future Work

  • Limitations: The paper acknowledges that the current rule-based model is "naive" and doesn't capture all possible complex temporal reasoning. The performance drop on the new datasets, while significant, still leaves room for improvement, suggesting that more sophisticated inference mechanisms are needed.
  • Future Work: The authors plan to construct temporal knowledge graph datasets with more diverse inference types. They also suggest that future TKGE models will need to move beyond simple pattern memorization and develop stronger capabilities for multi-step inference, such as discovering unobserved relations and then inferring their consequences.

Summary updated

BibTeX
@inproceedings{pan2023do,
  author = {Jiaxin Pan and Mojtaba Nayyeri and Yinan Li and Steffen Staab},
  title = {{Do Temporal Knowledge Graph Embedding Models Learn or Memorize Shortcuts?}},
  booktitle = {TGL @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=UMokRwWfLW},
}
Figure