Abstract
Temporal Knowledge Graph Completion (TKGC) aims to predict missing facts in knowledge graphs where relations are time-stamped. Traditional models often struggle to capture the dynamic evolution of entities or rely on computationally expensive architectures. We present TempCaps, a novel embedding model that leverages Capsule Networks and a time-aware dynamic routing mechanism. By aggregating information from local and global relational neighbors with temporal weighting, TempCaps achieves state-of-the-art performance on benchmark datasets like GDELT and ICEWS while maintaining high efficiency.
Introduction
Knowledge Graphs (KGs) represent facts as triples $(s, r, o)$. However, real-world information is frequently temporal, leading to Temporal Knowledge Graphs (tKGs) where facts are quadruples $(s, r, o, t)$. For instance, diplomatic relations or political roles change over time. Completing these graphs requires models that can reason across both relational and temporal dimensions. Existing approaches often use complex recurrent neural networks (RNNs) or high-dimensional manifolds, which can be computationally intensive. TempCaps addresses these challenges by introducing a lightweight architecture based on Capsule Networks, designed to capture the multi-faceted, time-varying nature of entities.
Methodology: The TempCaps Architecture
The core of TempCaps is the adaptation of Capsule Networks to handle relational data over time. The model processes a query through four distinct stages:
- Neighbor Selector: For a given query, the model identifies "local neighbors" (entities that interacted with the subject via the same relation recently) and "global relational neighbors" (entities participating in that relation within a specific time window).
- Temporal Weighting: To account for the diminishing relevance of older facts, a decay function initializes neighbor importance based on the time difference from the query.
- Dynamic Routing Aggregator: This component serves as the model's primary reasoning engine. Using an iterative "routing by agreement" process, lower-level capsules (neighbor features) vote on the properties of higher-level capsules (the entity's current state). This allows the model to dynamically focus on relevant historical facets of an entity.
- MLP Decoder: A multi-layer perceptron ranks candidate entities based on the aggregated representations to predict the missing element.
Experimental Evaluation
TempCaps was evaluated on three standard benchmarks: GDELT, ICEWS14, and ICEWS05-15. These datasets capture large-scale societal behaviors and international political events with precise timestamps.
Key Results
TempCaps demonstrated superior performance across multiple metrics, including Mean Reciprocal Rank (MRR) and Hits@1/3/10:
- GDELT: Outperformed the previous state-of-the-art (DE-SimplE) by 2.8% in MRR and 3.9% in Hits@1.
- ICEWS05-15: Achieved the best results in MRR and Hits@1, with a 3.1% improvement in the latter.
- Efficiency: The model is notably lightweight; a training epoch on ICEWS14 takes approximately 54 seconds on a single GPU, significantly faster than many complex recurrent models.
Analysis and Hyperparameter Sensitivity
The performance of TempCaps is influenced by several key hyperparameters, including the time window size ($\Delta t$), the temporal weighting decay ($\gamma$), and the balancing factor ($\alpha$). Ablation studies confirmed that the dynamic routing mechanism significantly outperforms standard mean aggregation, highlighting the importance of the iterative voting process in capturing temporal context.
Conclusion and Future Work
TempCaps provides an efficient and effective solution for temporal knowledge graph completion by leveraging the strengths of Capsule Networks. While it excels at interpolating missing links within known timeframes, future research will focus on extending the model to forecasting future events. Additionally, the authors aim to explore automated methods for learning optimal temporal constraints and investigate more sophisticated continuous time representations.
Summary updated