Abstract
Real-world networks, such as social circles, citation webs, and biological interactions, are inherently dynamic. However, most existing node embedding techniques treat these networks as static entities, failing to capture their temporal evolution. This paper presents tNodeEmbed, a semi-supervised framework designed to learn node representations in temporal graphs. By aligning static embeddings across successive time snapshots and processing them through a Long Short-Term Memory (LSTM) network, tNodeEmbed captures the "trajectory" of a node's role within the network. Our evaluation across eight diverse real-world datasets shows that tNodeEmbed significantly outperforms state-of-the-art baselines in link prediction and node classification tasks, especially in sparse or less cohesive networks.
Introduction
In graph theory, networks are often represented as static snapshots. While this simplification is useful for many tasks, it ignores the "cinematic" nature of real-world networks that evolve, pulse, and shift over time. A node's current position or role is frequently a consequence of its historical trajectory. To address this, researchers have sought ways to incorporate temporal dynamics into node embeddings.
The paper "Node Embedding over Temporal Graphs," presented at IJCAI-19 by Uriel Singer, Ido Guy, and Kira Radinsky, introduces tNodeEmbed. This framework moves beyond treating time steps as independent entities or collapsing history into a single average graph. Instead, it focuses on the evolutionary path of nodes to better predict future states.
The Challenges of Temporal Embedding
The authors identify two primary hurdles in developing effective temporal embeddings:
- Temporal Dynamics: Static models miss the "momentum" or shifting roles of a node. A node's behavior is often a product of its history, which requires a model capable of capturing sequential dependencies.
- The Alignment Problem: Static embedding algorithms, such as node2vec, are often stochastic. Running the same algorithm twice on the same graph can result in different coordinate systems. When comparing a node's position across different time steps, the observed "movement" might simply be mathematical noise rather than structural change.
Methodology: The tNodeEmbed Pipeline
To overcome these challenges, tNodeEmbed employs a multi-step pipeline that integrates static embedding, mathematical alignment, and recurrent learning.
The process begins with Initialization, where static embeddings are generated for every time snapshot ($G_1, ..., G_T$) using node2vec. To resolve the alignment problem, the framework uses Orthogonal Procrustes. This technique finds the optimal rotation to align the coordinate axes of one time step to the next, ensuring that any remaining movement represents actual structural changes.
The sequence of aligned embeddings for each node is then fed into an LSTM network. The LSTM learns the "evolutionary path" or "grammar" of how a node’s connectivity evolves over time. Finally, the entire architecture is optimized end-to-end for a specific task, such as link prediction or node classification, ensuring that the learned representations are task-specific.
Experimental Evaluation
The researchers evaluated tNodeEmbed on eight real-world temporal graphs spanning social, biological, and academic domains. For link prediction, datasets included arXiv hep-ph, Facebook friendships, Facebook wall posts, CollegeMsg, PPI (Protein-Protein Interactions), and Slashdot. For node classification, the Cora and DBLP datasets were used. Notably, the authors released a new temporal version of the PPI dataset, where edges are timestamped by their discovery date.
Key Results in Link Prediction
tNodeEmbed achieved the highest AUC across all six link prediction datasets. It showed particular strength in the Facebook wall posts and Slashdot datasets, where temporal dynamics are highly influential.
Performance in Node Classification
On the Cora dataset, tNodeEmbed reached a Micro F1 score of 0.668, a significant improvement over the static node2vec baseline (0.547). The model's consistency across different domains highlights its robustness compared to baselines that may only perform well on specific graph types.
Discussion and Insights
A critical finding of the study is the Cohesion Threshold. tNodeEmbed provides the most significant value in graphs with low clustering coefficients. In dense, highly cohesive graphs, simple rules like preferential attachment (the "rich-get-richer" effect) are often sufficient for prediction. However, in sparse or less cohesive networks, the specific temporal trajectory of a node becomes a much more powerful predictor.
Furthermore, the paper demonstrates that the Alignment step is essential. Without Orthogonal Procrustes, the temporal signal is frequently lost in the noise generated by the stochastic nature of the embedding process. By treating a node's history like a sentence in Natural Language Processing, tNodeEmbed successfully captures the "grammar" of network evolution.
Conclusion
tNodeEmbed represents a significant step forward in temporal graph analysis. By combining aligned static embeddings with recurrent neural networks, it captures the nuanced trajectories of node evolution. While the model currently relies on discrete time snapshots, future work may explore continuous-time models to capture even faster dynamics without the need for predefined granularity.
Reference: Singer, U., Guy, I., & Radinsky, K. (2019). Node Embedding over Temporal Graphs. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI-19).
Summary updated