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

Towards Time-Aware Knowledge Graph Completion

Tingsong Jiang, Tianyu Liu, Tao Ge, Lei Sha, Baobao Chang, Sujian Li, Zhifang Sui

Abstract

Most knowledge graph completion methods treat facts as static, ignoring that many relationships (like jobs or marriages) are only valid for specific times. This paper introduces a "time-aware" framework that uses a novel embedding model to capture the chronological order of events and an Integer Linear Programming (ILP) inference step to enforce logical temporal constraints. Experimental results on several temporal datasets show significant improvements over state-of-the-art static models.

Introduction

Knowledge Graphs (KGs) like Freebase and YAGO are massive databases of facts, but they are notoriously incomplete. Knowledge Graph Completion (KGC) is the task of automatically predicting missing links between entities.

The challenge is that the real world is dynamic. A fact like (Cristiano Ronaldo, playsFor, Real Madrid) was true in 2014 but is false today. Traditional embedding models (like TransE) map entities and relations into a static vector space, failing to distinguish between facts that happened at different times. They struggle with:

  1. Temporal Order: Knowing that a person must be born before they graduate.
  2. Temporal Consistency: Knowing that a person generally cannot have two different "spouseOf" relations during the same overlapping time interval.

Methods

The authors propose a two-pronged approach to make KG completion time-sensitive:

1. Time-Aware Embedding (TAE)

Building on the popular TransE model, the authors introduce a Temporal Evolving Matrix ($T$).

  • The Idea: If relation $A$ (e.g., wasBornIn) typically happens before relation $B$ (e.g., diedIn), the model learns a transformation matrix $T$ such that the vector for relation $A$ projected by $T$ is close to the vector for relation $B$ ($r_A T \approx r_B$).
  • The Benefit: This regularizes the embedding space so that the geometric distance between relations reflects their chronological sequence.
Comparison of standard TransE and the proposed Temporal Evolving Matrix Projection (TAE).

2. Joint Inference via Integer Linear Programming (ILP)

Embeddings provide a "plausibility score," but they don't understand logic. The authors use ILP to filter these scores through three types of temporal constraints:

  • Temporal Disjointness: Prevents overlapping intervals for functional relations (e.g., you can't be the president of two different countries at the exact same time).
  • Temporal Ordering: Enforces sequences (e.g., wasBornIn must happen before workAt).
  • Temporal Spans: Limits facts to valid windows (e.g., a "President of USA" fact is only valid during a specific term).

The final Joint Model (TAE-ILP) uses the TAE embeddings to calculate initial scores and then solves the ILP problem to ensure the final predictions are globally consistent.

Datasets

The authors created four temporal datasets to evaluate their models: YG15k & YG36k (derived from YAGO2) and FB42 & FB87 (derived from Freebase). These datasets are specifically designed to test temporal reasoning capabilities by preserving time metadata often stripped from standard benchmarks.

Key Results

The time-aware models significantly outperformed traditional baselines (TransE, TransH, TransR) across all datasets.

Experimental results comparing baseline models with TAE and ILP enhancements across four datasets.
  • Entity Prediction: The TAE model reduced the Mean Rank (the average position of the correct answer in a list of candidates) by approximately 75% compared to standard TransE.
  • Accuracy: On the Hits@10 metric, the joint TAE-ILP model saw improvements of 19% to 30% over baselines.
  • Relation Prediction: In predicting the type of relationship between two entities, the ILP constraints improved precision by about 10%, effectively filtering out logically impossible relations (like predicting someone worked at a job after they died).

Discussion and Conclusion

By treating time as a structural regularizer and applying global logical constraints, the authors demonstrate that temporal awareness is critical for accurate KG completion. Key insights include the necessity of asymmetric evolution in temporal matrices—reflecting the forward flow of time—and the power of global inference to correct local embedding errors. Future work will focus on handling data sparsity and extracting temporal facts directly from raw text to further populate these knowledge bases.

Summary updated

BibTeX
@inproceedings{jiang2016towards,
  author = {Tingsong Jiang and Tianyu Liu and Tao Ge and Lei Sha and Baobao Chang and Sujian Li and Zhifang Sui},
  title = {{Towards Time-Aware Knowledge Graph Completion}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
}
Figure