HyTE: Hyperplane-based Temporally aware Knowledge Graph Embedding

Shib Sankar Dasgupta, Swayambhu Nath Ray, Partha TalukdarEMNLP 2018

Abstract

Knowledge Graphs (KGs) are traditionally modeled as static collections of triples, which fails to account for the temporal nature of real-world facts. We introduce HyTE (Hyperplane-based Temporally aware Knowledge Graph Embedding), a novel framework that incorporates time by projecting entities and relations onto time-specific hyperplanes. This approach allows for the representation of dynamic facts and enables the prediction of missing temporal information. Our experiments on YAGO11k and Wikidata12k demonstrate that HyTE significantly outperforms existing static and temporal embedding models in both entity and relation prediction tasks.

Introduction

Standard Knowledge Graph embedding methods treat information as "universal truths." However, many relationships are temporally scoped; for instance, a sportsperson's team affiliation changes over their career. Ignoring these constraints leads to "blurry" representations where conflicting facts overlap in the same semantic space. HyTE addresses this by treating KGs as dynamic entities where the validity of a triple $(h, r, t)$ is conditioned on a specific time $\tau$.

Methodology

The core innovation of HyTE is the use of time-specific hyperplanes to segregate information across the temporal dimension.

Temporal Fragmentation and Projection

The KG is divided into discrete time steps (e.g., years). For each time step $\tau$, the model learns a normal vector $w_\tau$ defining a hyperplane. Entity and relation embeddings are projected onto these hyperplanes before scoring. This allows the same entity vector to occupy different positions in the projected space at different times, effectively modeling changing roles.

Illustration of entity and relation projections onto time-specific hyperplanes.

Translational Scoring and Negative Sampling

Once projected, HyTE employs a modified TransE objective: $P_\tau(e_h) + P_\tau(e_r) \approx P_\tau(e_t)$. To improve temporal sensitivity, the authors introduced Time Dependent Negative Sampling (TDNS). This technique selects negative triples that are valid at other times but false at the current time $\tau$, forcing the model to learn precise temporal boundaries.

Experimental Results

HyTE was evaluated on two temporally rich datasets: YAGO11k (10,623 entities, 10 relations) and Wikidata12k (12,554 entities, 24 relations).

Performance Comparison

HyTE significantly outperforms traditional static models like TransE and HolE, as well as previous temporal models like t-TransE. On YAGO11k, HyTE achieved a Mean Rank of 1.23 for relation prediction and a Hits@1 of 81.2%, marking a substantial improvement over the state-of-the-art.

Comparative performance of HyTE against static and temporal baselines on relation prediction.

Key Insights

  • Temporal Ordering: PCA visualizations reveal that the learned hyperplanes naturally recover the "arrow of time," arranging themselves sequentially in the embedding space without explicit ordering supervision.
  • Temporal Scoping: HyTE is one of the first models to successfully predict the "time interval" of a fact. Using the TDNS strategy, it reduced the error in time prediction by nearly 30% compared to time-agnostic baselines.

Conclusion and Future Work

HyTE provides a robust framework for temporal KG embeddings by leveraging hyperplane projections. Future research will focus on increasing temporal granularity (e.g., months or days) while managing data sparsity, and incorporating logical constraints to prevent temporal inconsistencies, such as predicting events that occur before an entity's birth.

Summary updated

BibTeX
@inproceedings{dasgupta2018hyte,
  author = {Shib Sankar Dasgupta and Swayambhu Nath Ray and Partha Talukdar},
  title = {{HyTE: Hyperplane-based Temporally aware Knowledge Graph Embedding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=B1bb8MMuZB},
}
Figure