Abstract
Temporal Knowledge Graphs (TKGs) represent dynamic real-world facts as sequences of events over time. Predicting future events within these graphs requires models that can handle both the complexity of neural embeddings and the interpretability of symbolic logic. This paper introduces ALRE-IR (Adaptive Logical Rule Embedding model for Inductive Reasoning), a framework that bridges this gap by embedding historical relation paths into a continuous vector space. By focusing on relational patterns rather than specific entity identities, ALRE-IR achieves state-of-the-art accuracy and enables "zero-shot" inductive reasoning on previously unseen entities.
Introduction
Temporal Knowledge Graphs (TKGs) store dynamic facts as quadruples: (subject, relation, object, timestamp). For example, a political event might be recorded as (United Nations, Consults with, France, 2024-05-20). A primary goal in TKG research is extrapolation—predicting future interactions based on historical patterns.
Existing approaches typically fall into two categories, each with distinct trade-offs:
- Embedding-based methods: These represent entities and relations as high-dimensional vectors. While effective at capturing latent patterns, they are often "black boxes" and transductive, meaning they cannot generalize to new entities introduced after training.
- Rule-based methods: These utilize symbolic logic (e.g., "If A consults B, and B consults C, then A might consult C"). These methods are interpretable and inductive, but they struggle to scale and often rely on rigid, manually defined rules that fail to capture nuanced causal logic.
ALRE-IR addresses these limitations by treating logical rules as learnable embeddings, combining the predictive power of deep learning with the interpretability of symbolic reasoning.
The ALRE-IR Framework
ALRE-IR operates by extracting and encoding historical relation paths to predict future relations. The architecture is divided into three primary phases: Encoding, Decoding, and Training.
1. Encoding: Relation Path Extraction
For a target event, the model analyzes the historical subgraph within a specific time window. It identifies "relation paths"—sequences of relations that connect the subject to the object. Unlike traditional methods that focus on entity embeddings, ALRE-IR uses a Gated Recurrent Unit (GRU) to encode these sequences into "path embeddings." This shift in focus allows the model to learn the underlying logic of interactions (e.g., a sequence of diplomatic meetings leading to a treaty) rather than memorizing specific entity pairs.
2. Decoding: Confidence Estimation
The model evaluates how well a historical path explains a potential future relation. It employs two potential functions—Similarity Matching (cosine similarity) or Concatenation Combination (linear projection)—to assign a confidence score to each rule. The path with the highest confidence determines the final prediction.
3. Training: One-Class Augmented Matching Loss
To optimize the model, the authors introduced a novel "one-class" loss function. This function evaluates events from both a coarse-grained perspective (overall event likelihood) and a fine-grained perspective (whether a specific historical path justifies the relation). This approach improves the model's ability to learn from negative samples and refine its logical reasoning.
Experimental Results
ALRE-IR was evaluated on three benchmark datasets from the Integrated Crisis Early Warning System (ICEWS): ICEWS14, ICEWS0515, and ICEWS18. These datasets track thousands of international political events and are known for their noise and complexity.
Key Performance Metrics
- State-of-the-Art Accuracy: On the ICEWS14 dataset, ALRE-IR achieved a Mean Reciprocal Rank (MRR) of 0.5401, significantly outperforming previous leaders like RE-GCN (0.4435) and TLogic.
- Inductive Reasoning: In zero-shot tests—where the model was trained on ICEWS0515 and tested on the distinct ICEWS14 dataset—it maintained a high MRR of 0.5867. This demonstrates that the model successfully learns transferable logical patterns rather than just entity-specific data.
- Data Efficiency: The model demonstrates high efficiency, reaching near-peak performance with only a fraction of the training data (approximately 100 timestamps), whereas many deep learning models require significantly more data to converge.
Insights and Future Work
The success of ALRE-IR highlights that relations are often more informative than entities for temporal prediction. By treating rules as vectors, the model captures "fuzzy" logic and semantic similarities that traditional symbolic logic misses.
However, limitations remain. The current model is relatively time-insensitive; it treats all events within a historical window with similar weight, regardless of their exact timing. Additionally, it struggles with "same-day" logic where events occur simultaneously. Future iterations of the model may incorporate explicit temporal features, such as time-delta embeddings, to better capture the temporal "rhythm" of real-world events.
Conclusion
ALRE-IR represents a significant step forward in TKG reasoning. By unifying neural embeddings with logical rules, it provides a powerful, interpretable, and inductive framework for predicting the future of dynamic systems. Its ability to perform zero-shot reasoning makes it particularly valuable for real-world applications where new entities and actors constantly emerge.
Summary updated