Abstract
Updating network embeddings for massive, ever-changing graphs is notoriously slow, forcing a trade-off between computational efficiency and representation accuracy. This paper introduces Dynamic Adjacency Matrix Factorization (DAMF), a novel paradigm that updates the coordinate axes of the embedding space itself rather than recalculating individual node vectors. By doing so, DAMF achieves state-of-the-art accuracy while updating billion-level parameters in less than 10 milliseconds per graph change.
Introduction
Network embedding maps nodes in a graph to low-dimensional vectors, capturing structural relationships for tasks like recommendation and node classification. However, real-world graphs, such as social or citation networks, are highly dynamic. Retraining embeddings from scratch for every change is computationally prohibitive for large-scale graphs.
Existing dynamic embedding methods typically fall into two categories:
- Global Updates: These modify the embedding of nearly every node, maintaining high accuracy but scaling poorly, leading to high latency.
- Local Updates: These only update nodes directly involved in a change, which is fast but ignores global topological shifts, resulting in accumulated errors over time.
DAMF addresses this efficiency-accuracy bottleneck, aiming for real-time updates on billion-edge graphs without sacrificing global structural fidelity.
Methodology: Dynamic Adjacency Matrix Factorization (DAMF)
The core innovation of DAMF is shifting the update operation from individual nodes to the coordinate system of the embedding space. Since the embedding dimension ($d$) is significantly smaller than the number of nodes ($n$), updating a $d \times d$ projection matrix is far more efficient than updating $n$ node vectors.
As shown in the framework overview, the DAMF process consists of four primary steps:
- Orthogonalization: Efficiently calculating projection components based on edge changes.
- Rediagonalization: Updating the singular values and vectors using truncated SVD (t-SVD) on a small core matrix.
- Space Projection: Rotating and scaling the coordinate axes of the entire embedding space. This effectively updates the global topology without touching every node.
- Dynamic Embedding Enhancement: Applying a dynamic Personalized PageRank (PPR) to capture higher-order neighborhood information.
Key Techniques
- Zha-Simon’s t-SVD Update: Adapted to calculate new space projection matrices efficiently. The authors prove that only $\Delta m$ (number of edge changes) node embeddings need direct modification; the rest are handled implicitly via projection.
- Lazy Query Optimization: Successive space projections are merged via matrix multiplication, with node vectors calculated only upon query.
- Dynamic PPR: Using tools like InstantGNN, this step ensures representations reflect complex, multi-hop structural changes that basic matrix factorization might miss.
Evaluation and Results
DAMF was evaluated on datasets ranging from small (Wiki, Cora) to massive (Twitter with 1.4 billion edges).
Performance on Massive Graphs
On the Twitter dataset, DAMF updated billion-level parameters in an average of less than 10 milliseconds per global update. Most baseline methods, such as GloDyNE and Dynnode2vec, timed out on large datasets like YouTube and Orkut. Only DAMF and LocalAction completed these tests, but LocalAction failed to maintain accuracy (scoring ~0.50 AUC on link prediction). In contrast, DAMF maintained high accuracy, scoring between 0.87 and 0.90 AUC.
Accuracy and Scalability
On standard benchmarks, DAMF consistently outperformed or matched existing baselines in node classification and graph reconstruction. By proving a time complexity of $O(\Delta m)$ per graph change, the authors successfully decoupled update latency from the total number of nodes ($n$) in the graph.
Conclusion
DAMF represents a significant advancement in dynamic network embedding by prioritizing the transformation of the embedding space over individual node updates. While it requires substantial memory to store the graph structure and embeddings, its ability to provide millisecond-level updates on billion-edge graphs makes it a powerful tool for real-time graph analytics. Future work may involve distributing memory loads or extending this paradigm to non-linear deep Graph Neural Networks.
Summary updated