Abstract
Dynamic graph clustering is essential for tracking evolving communities in complex networks, yet traditional Matrix Factorization (MF) approaches often struggle with high computational complexity and sensitivity to noise. This paper introduces DyG-MF, a novel framework designed to make MF-based clustering both scalable and robust. By decomposing massive matrices into independent sub-problems and selectively updating only the nodes that change over time, DyG-MF achieves state-of-the-art accuracy while significantly outperforming existing neural network and factorization-based methods in speed.
Introduction
Detecting and tracking evolving communities in networks like social media or citation indices is a computationally demanding task. While Matrix Factorization (MF) is a popular choice for its ability to learn node embeddings and cluster assignments simultaneously, it faces two primary challenges in real-world applications:
- Weak Scalability: Standard MF typically has a time complexity of $O(n^3)$. For modern graphs with millions of nodes, these algorithms can take dozens of hours to process a single dataset.
- Low Robustness: Real-world data is often noisy. Random edges or missing data points can disrupt the mathematical patterns MF relies on, leading to significant drops in clustering accuracy.
DyG-MF addresses these gaps, providing an algorithm that is both fast enough for large-scale data and resilient enough for noisy environments.
Methodology
DyG-MF introduces three core innovations to the standard MF pipeline to enhance performance and efficiency:
- Temporal Separated Matrix Factorization (TSMF): To address scalability, DyG-MF uses a "divide and conquer" strategy. Nodes are randomly divided into small subsets and factorized independently. To prevent "embedding drift"—where different subsets end up in different coordinate systems—the framework selects temporal landmarks. These representative nodes act as anchors, ensuring consistency across all subsets and time steps.
- Bi-clustering Regularization (BR): To handle noise, the model incorporates bi-clustering theory. This mathematical constraint forces learned embeddings to maintain a low-rank structure corresponding to the number of clusters, effectively filtering out random noise edges that do not align with the broader community structure.
- Selective Embedding Updating (SEU): Recognizing that most nodes in a dynamic system remain relatively static between snapshots, DyG-MF identifies stable nodes and freezes their embeddings. Expensive updates are performed only on "dynamic" nodes, providing fine-grained temporal smoothing and massive computational savings.
Experimental Setup
The researchers evaluated DyG-MF on 11 diverse benchmarks, including:
- Synthetic Datasets: Six datasets (SYN-FIX, SYN-VAR, and four "Green" datasets) designed to simulate specific community evolution events like birth, death, expansion, and merging.
- Real-World Datasets: Five benchmarks including Wikipedia (edits), Dublin (proximity), arXiv (citations), and two massive social networks: Flickr (2.3M nodes) and Youtube (3.2M nodes).
Key Results and Discussion
Experimental results demonstrate that DyG-MF consistently outperforms state-of-the-art baselines in both accuracy and efficiency.
- Superior Accuracy: DyG-MF achieved the highest Normalized Mutual Information (NMI) and NF1 scores across all 11 benchmarks, often by a significant margin on real-world data.
- Massive Speedup: Compared to the fastest baseline (SepNE), DyG-MF reduced total running time by 44.6%. On the arXiv dataset, where traditional MF methods required approximately 40,000 seconds, DyG-MF finished in a small fraction of that time.
- Noise Resistance: In "noise attack" tests where up to 30% of edges were randomized, DyG-MF showed significantly less performance degradation than other advanced methods like jLMDC or RDMA.
Key Insights
- Landmarks as Glue: Using landmarks allows for independent factorization while maintaining a unified latent space, solving the alignment problem without processing giant matrices as a whole.
- Stability as a Feature: Freezing static nodes does more than save time; it improves accuracy by preventing new noise from corrupting well-established historical embeddings.
- Linear Complexity: While many baselines show near-exponential growth in processing time as graphs scale, DyG-MF’s complexity remains linear relative to the number of nodes and snapshots.
Conclusion
DyG-MF represents a significant advancement in MF-based dynamic graph clustering. While currently limited to non-overlapping clusters and snapshot-based (discrete) time, its linear scalability and high noise resistance make it a powerful tool for large-scale network analysis. Future work may involve integrating Large Language Models (LLMs) for better initialization and adapting the framework for continuous-time dynamic graphs.
Summary updated