Abstract
Representing dynamic, time-evolving networks as dense vectors is a significant challenge in graph mining. This paper introduces a novel framework that captures both structural topology and historical evolution by employing a "temporal backtracking" random walk on a multilayer graph structure. By integrating these walks with natural language processing techniques, the model generates unsupervised graph-level embeddings that significantly outperform existing methods in temporal similarity tasks.
Introduction
While graph embedding—the process of representing complex networks as low-dimensional vectors—is well-established for individual nodes or static graphs, real-world networks are inherently dynamic. Social media interactions, communication logs, and biological networks evolve over time, necessitating "graph-level" embeddings that represent the state of an entire network at specific moments. Such embeddings are critical for downstream tasks like anomaly detection and similarity ranking. Previous approaches often treated dynamic graphs as independent snapshots, failing to capture the temporal "flow" and structural dependencies across time steps.
Methodology
The proposed framework bridges the gap between static structure and temporal dynamics through a two-step process:
- Multilayer Graph & Temporal Backtracking: The dynamic graph is modeled as a multilayer structure where each layer $G_t$ represents a snapshot at time $t$. Unidirectional edges connect nodes in layer $t$ to their counterparts in layer $t-1$. A temporal backtracking random walk is then introduced. A "stay constant" parameter ($\alpha$) controls the probability of the walker remaining in the current layer to explore local structure versus "backtracking" to a previous layer to capture historical context.
- Doc2vec Integration: The sequences generated by these random walks are treated as "sentences" within a "document" (the graph snapshot). Using a modified
doc2veclanguage model, the framework learns a "paragraph vector" for each snapshot, serving as its low-dimensional embedding.
This unsupervised approach allows the model to learn representations without the need for labeled data.
Experimental Evaluation
The model was evaluated on five diverse dynamic interaction datasets: Reddit (Game of Thrones and Formula1 subreddits), Facebook wall posts, Enron email communications, and Slashdot social interactions. The primary evaluation task was Temporal Similarity Ranking: identifying past snapshots that are structurally and temporally most similar to a given query snapshot.
Performance Results
The proposed method consistently outperformed baselines, including static graph-level embeddings (e.g., graph2vec) and temporal node-level embeddings (e.g., node2vec aligned). Performance was measured using Precision@K, Spearman’s $\rho$, and Kendall’s $\tau$.
Scalability
Efficiency is a core advantage of this framework. The random walk process is inherently parallelizable. Empirical analysis shows that the running time for both sampling and training scales sub-linearly with the number of edges, making the approach suitable for large-scale real-world networks.
Discussion and Future Work
A key insight of this work is the use of temporal decay; by setting $\alpha > 0.5$, the influence of older timestamps decays exponentially, prioritizing recent history while maintaining long-term context. Unlike previous state-of-the-art methods like tdGraphEmbed, this approach explicitly models inter-snapshot interactions.
Future research directions include:
- Bidirectional History: Exploring "forward-looking" walks for scenarios where the full history is available.
- Continuous-Time Dynamics: Adapting the model for graphs with high-resolution, continuous timestamps rather than discrete snapshots.
- Automated Parameter Tuning: Developing methods to automatically learn the optimal "stay constant" $\alpha$ based on network volatility.
Summary updated