Know-Evolve: Deep Temporal Reasoning for Dynamic Knowledge Graphs

Rakshit Trivedi, Hanjun Dai, Yichen Wang, Le Song

Overview

Know-Evolve is a deep learning framework that moves beyond static Knowledge Graphs (KGs) by modeling them as dynamically evolving systems. By treating the occurrence of facts as a multivariate point process, the model learns non-linear entity representations that update over time. This allows it to predict not just what relationship will form next, but exactly when it will happen.

The Challenge of Static Knowledge Graphs

Traditional Knowledge Graphs (like Freebase or WordNet) are typically treated as static snapshots of facts structured as Subject—Relation—Object. However, real-world data is often event-based and highly fluid. For example, two countries might be allies for a decade before a conflict arises; a static graph fails to capture this "knowledge evolution."

Example of a dynamic knowledge graph with timestamped events.

Existing relational learning methods (like TransE or RESCAL) struggle with the temporal dimension. They either ignore time entirely or discretize it into "snapshots," which loses the intricate, continuous-time dependencies between events. The challenge is to create a model that understands how an entity’s past interactions change its future behavior in a multi-relational setting.

The Know-Evolve Architecture

The authors introduce a deep evolutionary network that combines three main components to capture temporal dynamics:

  1. Temporal Point Processes (TPP): Instead of discrete time steps, the model uses TPPs to characterize the timing of events. Specifically, it models the "intensity" (likelihood) of a fact occurring at time $t$ based on the history of the entities involved.
  2. Dynamically Evolving Embeddings: Unlike static embeddings, Know-Evolve uses a deep recurrent architecture (similar to an RNN) to update entity representations. When an event occurs, the embeddings of the subject and object are updated based on their previous state, the specific relationship, and the time elapsed since their last event.
  3. Rayleigh Intensity Function: The authors chose a specific functional form for the event intensity that leads to a Rayleigh distribution. This provides a simple, analytic way to calculate the expected time of the next event, making time prediction computationally feasible.
The recurrent architecture of Know-Evolve updating entity embeddings over time.

To train this efficiently, they developed a Global Back-Propagation Through Time (BPTT) algorithm that uses a sliding window over the global timeline, ensuring that temporal dependencies aren't broken by random mini-batching.

Key Insights

  • Mutual Evolution: The model recognizes that entities don't evolve in a vacuum. When two entities interact, they influence each other's future "trajectories" in the latent embedding space.
  • Temporal Drift: The recurrent update includes a term for the time difference between events ($t_p - t_{p-1}$). This captures "temporal drift," allowing entity features to evolve smoothly even when they aren't actively participating in events.
  • Open World Assumption: Unlike many models that assume a missing link is a "false" fact, Know-Evolve supports the Open World Assumption. It treats missing links as events that simply haven't happened yet, which is more realistic for dynamic systems.
  • Piecewise Constant Embeddings: Entity embeddings only change when an event occurs. Between events, the "knowledge" about an entity remains constant, which mirrors how we perceive historical facts.

Datasets and Key Results

The model was evaluated on two massive, real-world temporal event datasets: GDELT (Global Database of Events, Language, and Tone, recorded at 15-minute granularity) and ICEWS (Integrated Crisis Early Warning System, recorded with daily granularity). Both contain millions of timestamped edges and hundreds of relationship types.

Know-Evolve was tested on two primary tasks:

  • Link Prediction (Who will interact?): Know-Evolve consistently outperformed state-of-the-art static models (TransE, TransR, RESCAL, NTN) across both datasets. It achieved significantly lower Mean Absolute Rank (MAR) and higher HITS@10 scores, proving that temporal information is vital for accuracy.
  • Time Prediction (When will they interact?): Compared to standard temporal baselines like the Multi-dimensional Hawkes Process (MHP), Know-Evolve reduced the Mean Absolute Error (MAE) for time prediction by an order of magnitude. For example, on GDELT, Know-Evolve had an MAE of ~110 hours, while the best baseline was over 1,100 hours.

Limitations and Future Work

While highly effective, the model faces a computational bottleneck with its "survival term" (the probability that an event didn't happen between $t_1$ and $t_2$). Calculating this for every possible pair of entities is $O(N^2)$, which is expensive. The authors used a stochastic sampling trick to mitigate this, but scaling to even larger graphs remains a challenge.

Future directions include swapping the simple RNN units for more expressive units like LSTMs or GRUs to capture longer-term dependencies, and incorporating spatial reasoning (where events happen) to model global events more comprehensively.

Summary updated

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