NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Temporal Knowledge Base Completion: New Algorithms and Evaluation Protocols

Prachi Jain, Sushant Rathi, Mausam, Soumen Chakrabarti

Introduction

Knowledge Bases (KBs) such as Wikidata and YAGO serve as vital structured data sources, yet they are inherently incomplete. Knowledge Base Completion (KBC) seeks to predict missing links between entities. However, many facts are temporally bounded—for instance, political roles or marital status. Temporal KBC (TKBC) addresses this by predicting not only the relationship but also the valid time interval. This paper identifies two critical shortcomings in existing TKBC research: limited modeling of common-sense temporal logic and flawed evaluation protocols that fail to account for temporal overlaps.

The TIMEPLEX Framework

To address these gaps, the authors introduce TIMEPLEX, a framework built upon the ComplEx (Complex Embeddings) architecture. TIMEPLEX represents entities, relations, and time points as vectors in a complex-valued space. Beyond the base scoring function, the framework incorporates "Temporal Gadgets" to enforce logical constraints:

  1. Recurrence Score: This component learns periodicity in relations (e.g., recurring sporting events) and penalizes predictions falling outside these expected cycles.
  2. Relation Pairs Score: This learns typical temporal distances between different relations. For example, it captures the expected gap between a person's birth and their graduation.
Learning temporal constraints between relation pairs through the Relation Pairs Score

By explicitly modeling these gaps, TIMEPLEX avoids the logical inconsistencies common in previous state-of-the-art models, such as predicting a graduation date that precedes a birth date. The authors also found that their learned time embeddings naturally correlate with physical time, where years closer together in reality are positioned closer in the embedding space.

Improved Evaluation Protocols

A significant contribution of this work is the critique and improvement of standard evaluation metrics. The authors demonstrate that "time-insensitive" filtering often overestimates model performance. If a model predicts a fact for the year 2020 that the KB only records for 1990, previous evaluators might incorrectly treat this as a known fact rather than a temporal error.

To rectify this, the authors propose:

  • Time-Aware Filtering: Splitting query intervals into discrete time points to ensure models are rewarded for temporal precision.
  • aeIOU (Affinity Enhanced Intersection Over Union): A new metric for interval prediction that provides "partial credit" for near-misses, unlike standard IOU which is binary regarding overlap.

Experimental Results

TIMEPLEX was evaluated against four standard benchmarks: interval-based datasets (WIKIDATA12k, YAGO11k) and instant-based event datasets (ICEWS14, ICEWS05-15).

Link prediction performance (MRR and Hits@k) across four benchmark datasets

As shown in the results, TIMEPLEX establishes a new state-of-the-art in link prediction. It outperforms the previous leading model, TNT-Complex, by over 3 MRR points on ICEWS datasets and by up to 5.6 points on interval-based datasets. Time prediction gains were even more significant; on YAGO11k, TIMEPLEX achieved an aeIOU of 20.03 compared to 8.40 for TNT-Complex. Furthermore, the model reduced "ordering violations" (logical errors) from 8.8% to just 1.9% on the YAGO11k dataset.

Conclusion

TIMEPLEX demonstrates that incorporating explicit temporal constraints and natural time representations significantly improves the accuracy and logical consistency of Knowledge Base Completion. While the model currently utilizes global averages for time gaps, future work may explore entity-specific distributions to account for regional or demographic variances. The framework's success in completion tasks also suggests potential for application in temporal forecasting.

Summary updated

BibTeX
@inproceedings{jain2020temporal,
  author = {Prachi Jain and Sushant Rathi and Mausam and Soumen Chakrabarti},
  title = {{Temporal Knowledge Base Completion: New Algorithms and Evaluation Protocols}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.305},
}
Figure