Abstract
There has been an increasing interest in inferring future links on temporal knowledge graphs (KG). While links on temporal KGs vary continuously over time, the existing approaches model the temporal KGs in discrete state spaces. To this end, we propose a novel continuum model by extending the idea of neural ordinary differential equations (ODEs) to multi-relational graph convolutional networks. The proposed model preserves the continuous nature of dynamic multi-relational graph data and encodes both temporal and structural information into continuous-time dynamic embeddings. In addition, a novel graph transition layer is applied to capture the transitions on the dynamic graph, i.e., edge formation and dissolution. We perform extensive experiments on five benchmark datasets for temporal KG reasoning, showing our model's superior performance on the future link forecasting task.
Introduction
Knowledge graphs (KGs) are essential for modern AI, yet real-world relationships are inherently dynamic. Temporal Knowledge Graphs (TKGs) attempt to capture this by timestamping facts, but most existing models adopt a discrete-time approach, treating graph evolution as a series of snapshots. This "flipbook" methodology often fails to capture the predictive signals inherent in the transitions between states and struggles with irregular time intervals. To address these limitations, we introduce TANGO (Temporal Knowledge Graph Forecasting with Neural Ordinary Equations), a model that treats graph evolution as a continuous flow.
Methodology
TANGO integrates structural and temporal information through a "continuum model" using a Neural Ordinary Differential Equation (NODE) framework. The architecture consists of three primary components:
1. Multi-Relational Graph Convolutional Network (MGCN)
The MGCN layer captures the structural neighborhood of an entity by considering both the related entities and the specific types of relationships (e.g., "Bob" livesIn "New York"). This provides a rich spatial representation of the graph at any given time $t$.
2. Graph Transition Layer
A key innovation in TANGO is the graph transition layer. Instead of relying solely on the current state, the model calculates a transition tensor: $T(t) = A(t) - A(t - \Delta t)$. This allows the model to explicitly identify edge formation (+1), dissolution (-1), or stability (0), focusing specifically on the evolving parts of the graph.
3. Neural ODE Wrapper
TANGO defines the derivative of the hidden state $\mathbf{H}(t)$ using a function that combines the MGCN and the Transition Layer. An ODE solver then integrates this function over time to find entity representations at any future point, ensuring smooth transitions in the latent space.
Experimental Results
The model was evaluated on five standard TKG benchmarks: ICEWS14, ICEWS18, ICEWS05-15, WIKI, and YAGO. TANGO outperformed nine baseline models, including strong competitors like RE-Net and CyGNet, across all datasets.
The Impact of Graph Transitions
Ablation studies highlight the critical role of the Graph Transition Layer. In dynamic graphs, the "delta" (what changed) often carries more predictive weight than the static base graph. By explicitly modeling these transitions, TANGO achieves significant boosts in Mean Reciprocal Rank (MRR).
Efficiency and Generalization
Despite the complexity of ODE solvers, TANGO is computationally efficient, training significantly faster than the strongest temporal baseline, RE-Net. Furthermore, the model demonstrates strong inductive capabilities, successfully predicting relationships for entities never seen during training, and maintains high accuracy in long-horizon forecasting where discrete models typically degrade.
Conclusion
TANGO represents a significant shift from discrete snapshots to continuous-time modeling for TKGs. By leveraging Neural ODEs and a specialized transition layer, it effectively captures the nuances of graph evolution. Future work will explore dynamic relation embeddings and the application of adaptive ODE solvers to further enhance precision and scalability.
Summary updated