[Paper Review] Learning Sequence Encoders for Temporal Knowledge Graph Completion
This paper proposes a sequence encoding method using LSTMs to learn time-aware representations for relation types in temporal knowledge graphs, enabling improved link prediction. By modeling timestamps and temporal predicates as token sequences, the approach enhances standard scoring functions like TransE and distMult, achieving state-of-the-art performance on four benchmark datasets, especially in handling sparse and heterogeneous temporal expressions.
Research on link prediction in knowledge graphs has mainly focused on static multi-relational data. In this work we consider temporal knowledge graphs where relations between entities may only hold for a time interval or a specific point in time. In line with previous work on static knowledge graphs, we propose to address this problem by learning latent entity and relation type representations. To incorporate temporal information, we utilize recurrent neural networks to learn time-aware representations of relation types which can be used in conjunction with existing latent factorization methods. The proposed approach is shown to be robust to common challenges in real-world KGs: the sparsity and heterogeneity of temporal expressions. Experiments show the benefits of our approach on four temporal KGs. The data sets are available under a permissive BSD-3 license 1.
Motivation & Objective
- Address the challenge of link prediction in temporal knowledge graphs where relations are time-bound, a problem often neglected in static KG models.
- Overcome the sparsity and heterogeneity of temporal expressions in real-world knowledge graphs, which hinder effective representation learning.
- Integrate temporal information into existing knowledge graph embedding methods without modifying their core scoring functions.
- Enable generalization to unseen timestamps by learning a shared inductive bias through sequence modeling of temporal tokens.
Proposed method
- Represent temporal facts as sequences of tokens, including relation types like 'since' or 'until' and digit sequences from timestamps.
- Use a bidirectional LSTM to encode these token sequences into time-aware relation embeddings, capturing temporal patterns and structural regularities.
- Combine the learned time-aware relation embeddings with standard scoring functions such as TransE and distMult for link prediction.
- Train the model end-to-end using Adam optimization with categorical cross-entropy loss and dropout for regularization.
- Apply the method to both subject and object prediction tasks, evaluating using standard metrics like MRR, hits@10, and hits@1.
- Use t-SNE visualization to demonstrate that learned embeddings capture meaningful temporal structure in the latent space.
Experimental results
Research questions
- RQ1Can recurrent neural networks effectively encode temporal token sequences (e.g., 'since', '2009-01') to improve knowledge graph completion?
- RQ2How does modeling time at the token level compare to learning independent embeddings per timestamp in terms of generalization and performance?
- RQ3To what extent can time-aware representations improve link prediction in sparse and heterogeneous temporal knowledge graphs?
- RQ4Does the proposed method generalize to unseen timestamps, especially when training data lacks sufficient examples for those timestamps?
- RQ5Can the approach be seamlessly integrated with existing knowledge graph embedding models like TransE and distMult without architectural changes?
Key findings
- TA-TransE and TA-distMult consistently outperform standard TransE and distMult across all four temporal knowledge graph datasets in MRR, hits@10, and hits@1.
- The method achieves lower training loss than TransE on YAGO15k, demonstrating better optimization due to effective temporal signal utilization.
- TTransE, which learns independent embeddings per timestamp, performs poorly on datasets with high temporal diversity (e.g., Wikidata) due to sparsity, while the proposed method generalizes better.
- The t-SNE visualization confirms that learned embeddings for temporal predicate sequences cluster meaningfully, indicating effective capture of temporal semantics.
- The approach generalizes well to unseen timestamps, as the RNN-based sequence encoding provides inductive bias for similar temporal patterns (e.g., same century or decade).
- The model shows robustness to irregular and heterogeneous temporal expressions, such as '2009-01' or 'since 2009', by treating them as sequences of tokens.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.