Abstract
Representation learning on graphs has emerged as a powerful mechanism to automate feature vector generation for downstream machine learning tasks. The advances in representation on graphs have centered on both homogeneous and heterogeneous graphs, where the latter presenting the challenges associated with multi-typed nodes and/or edges. In this paper, we consider the additional challenge of evolving graphs. We ask the question of whether the advances in representation learning for static graphs can be leveraged for dynamic graphs and how? It is important to be able to incorporate those advances to maximize the utility and generalization of methods. To that end, we propose the Framework for Incremental Learning of Dynamic Networks Embedding (FILDNE), which can utilize any existing static representation learning method for learning node embeddings, while keeping the computational costs low. FILDNE integrates the feature vectors computed using the standard methods over different timesteps into a single representation by developing a convex combination function and alignment mechanism. Experimental results on several downstream tasks, over seven real-world data sets, show that FILDNE is able to reduce memory and computational time costs while providing competitive quality measure gains with respect to the contemporary methods for representation learning on dynamic graphs.
Introduction
Most graph embedding techniques—which transform complex network structures into compact mathematical vectors—are designed for static graphs. However, real-world networks such as social media, financial transactions, and protein interactions are constantly evolving. The traditional approach to handling this evolution is "naive retraining," where the entire embedding process is re-run from scratch every time the graph changes. This is computationally prohibitive for large-scale, fast-moving networks.
While specialized dynamic embedding methods exist, they are often locked into specific architectures like LSTMs or specific random walk strategies. FILDNE (Framework for Incremental Learning of Dynamic Networks Embedding) addresses this gap by providing a general-purpose framework that can take any existing static embedding tool and make it work efficiently on a stream of data without losing the "memory" of the past.
Data Representation and Snapshots
FILDNE operates by partitioning a stream of graph events into discrete time intervals, known as snapshots. This allows the framework to process updates in batches rather than requiring a true real-time online update for every single edge arrival. The framework can handle both non-overlapping snapshots, which focus on events within a specific window, and cumulative snapshots that aggregate history.
The FILDNE Framework
The FILDNE framework follows a three-step pipeline for every new snapshot of the graph:
- Batch Embedding: It uses a "Base Method" (such as Node2vec or LINE) to compute embeddings only for the new edges and nodes in the current time step. This model-agnostic approach allows users to swap in the best static embedding techniques as they are developed.
- Embedding Alignment: Because many embedding algorithms are stochastic, two runs on similar data can result in vectors that are rotated or reflected differently. FILDNE uses Orthogonal Procrustes to align the new embedding space with the previous one. Crucially, it selects "reference nodes"—nodes that have remained structurally stable—to calculate the best transformation matrix, ensuring the alignment is not corrupted by noisy, highly active nodes.
- Composition: The framework merges the past and present representations. The standard FILDNE uses a convex combination (a weighted average) of the previous aggregate embedding and the new aligned snapshot. A more advanced variant, k-FILDNE, combines the last $k$ embeddings using a Bayesian approach to automatically estimate which past time steps are most relevant based on their performance in downstream tasks.
Experimental Evaluation
The framework was evaluated on seven diverse, real-world dynamic datasets: communication networks (Enron-employees, Radoslaw-email), social/proximity networks (Hypertext09, FB-forum, FB-messages), and financial/trust networks (Bitcoin-Alpha, Bitcoin-OTC). These datasets vary significantly in density and temporal volatility, providing a robust stress test for the framework.
Key Results
- Efficiency: FILDNE is remarkably fast, achieving up to a 30x to 50x speedup compared to competing dynamic methods like
tNodeEmbedordyngraph2vec. - Memory Footprint: It reduced peak memory usage by up to 6x, making it feasible to run on commodity hardware where other methods might fail due to resource exhaustion.
- Accuracy: Despite being much faster, FILDNE remained competitive. In link prediction and edge classification tasks, it often outperformed specialized dynamic models. For example, on the
fb-messagesdataset, FILDNE usingLINEas a base achieved the best mean rank across all tested methods. - Stability: The alignment step proved essential; without it, the stochastic nature of base embeddings would make incremental learning impossible.
Conclusion
FILDNE provides a flexible and efficient solution for learning representations of dynamic networks. By decoupling the embedding generation from the temporal integration, it allows for the use of any state-of-the-art static embedding method in a dynamic context. While currently dependent on snapshot-based batching and node overlap for alignment, future work aims to extend the framework to handle real-time edge arrivals and networks with high node turnover.
Summary updated