Know-Evolve: Deep Reasoning in Temporal Knowledge Graphs

Rakshit Trivedi, Hanjun Dai, Yichen Wang, Le Song

Abstract

The availability of large scale event data with time stamps has given rise to dynamically evolving knowledge graphs that contain temporal information for each edge. Reasoning over time in such dynamic knowledge graphs is not yet well understood. To this end, we present Know-Evolve, a novel deep evolutionary knowledge network that learns non-linearly evolving entity representations over time. The occurrence of a fact (edge) is modeled as a multivariate point process whose intensity function is modulated by the score for that fact computed based on the learned entity embeddings. We demonstrate significantly improved performance over various relational learning approaches on two large scale real-world datasets. Further, our method effectively predicts occurrence or recurrence time of a fact which is novel compared to prior reasoning approaches in multi-relational setting.

Introduction

Traditional Knowledge Graphs (KGs), such as Freebase or WordNet, typically represent static facts (e.g., "Paris is the capital of France"). However, real-world information is often event-driven and highly dynamic. In domains like geopolitics or social networks, relationships shift over continuous time—alliances are forged, treaties are broken, and conflicts arise at specific timestamps. These are known as Temporal Knowledge Graphs (TKGs).

Example of a Temporal Knowledge Graph (TKG) where relationships between entities evolve over continuous time.

Existing relational learning models like TransE or RESCAL assume entity features are fixed, ignoring "temporal drift"—the concept that an entity's current state is a product of its historical interactions. Furthermore, most models are limited to link prediction (predicting what happens) and cannot predict the timing of future events.

The Know-Evolve Framework

Know-Evolve addresses these challenges by treating the occurrence of a fact (a subject-relation-object triplet) as a multivariate point process.

Continuous-Time Modeling

Instead of discretizing time into snapshots, Know-Evolve treats time as a continuous random variable. It utilizes a Rayleigh Process to model the intensity (likelihood) of an event, effectively capturing bursts of activity or "fads" in the data.

Deep Evolutionary Embeddings

The core of the system is a recurrent architecture where entity embeddings are updated every time they participate in an event. As shown in the architecture diagram below, these updates account for:

  • Temporal Drift: The time elapsed since the entity's last interaction.
  • Mutual Evolution: The current state of the other entity involved in the relationship.
The Know-Evolve architecture illustrating how entity embeddings evolve over time through recurrent updates triggered by observed events.

Relational Score and Training

The intensity of the point process is modulated by a bilinear score measuring the compatibility of subject and object entities within a specific relationship space. To scale to massive graphs, the authors developed a "Global BPTT" algorithm and a stochastic sampling strategy to approximate the computationally expensive "survival term" (the probability of no event occurring between known points).

Experimental Evaluation

The model was evaluated on two massive real-world datasets: GDELT (over 31 million global events) and ICEWS (political interactions).

Key Results

  • Link Prediction: Know-Evolve significantly outperformed static and temporal baselines. On GDELT, it achieved a much lower Mean Absolute Rank (MAR) than models like TransE, maintaining stable performance over time while static models deteriorated.
  • Time Prediction: This is a primary contribution. Know-Evolve predicts the timing of next events with high accuracy. On GDELT-500, its Mean Absolute Error (MAE) was ~110 hours, compared to ~1116 hours for a Multi-dimensional Hawkes Process (MHP).
  • Qualitative Analysis: Case studies showed the model correctly predicting complex geopolitical shifts by accounting for the recent intensity of interactions, which static models failed to capture.

Discussion and Future Work

Know-Evolve demonstrates that entities are defined by their history; an embedding is a piecewise constant function that "jumps" to new states upon interaction. By modeling the "when," the model gains a deeper understanding of relationship strength.

Future work includes moving to more sophisticated units like LSTMs or GRUs to capture longer-term dependencies and integrating spatial coordinates into the point process to account for the "where" of events. Additionally, the authors suggest modeling the evolution of relationship matrices themselves, as the nature of relations like "trade agreements" can change over decades.

Summary updated

BibTeX
@inproceedings{trivedi2017know,
  author = {Rakshit Trivedi and Hanjun Dai and Yichen Wang and Le Song},
  title = {{Know-Evolve: Deep Reasoning in Temporal Knowledge Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=rkWLOnZuWH},
}
Figure