Abstract
Network Representation Learning (NRL) aims to map graph nodes into low-dimensional vectors that preserve structural properties. Traditional methods often rely on factorizing large $n \times n$ proximity matrices, which is computationally prohibitive for massive networks. This paper introduces GC-NRL, an efficient framework that leverages cluster-to-cluster similarity instead of node-to-node proximity. By factorizing a significantly smaller cluster similarity matrix, GC-NRL achieves superior node classification accuracy and remarkable speedups—up to five orders of magnitude—compared to state-of-the-art methods. Experiments on datasets with up to 65 million nodes demonstrate the scalability and robustness of the proposed approach.
1. Introduction
Network Representation Learning (NRL) is fundamental for downstream graph analysis tasks such as node classification and link prediction. The current "gold standard" involves factorizing a proximity matrix (e.g., NetMF) derived from random walks. However, for a graph with $n$ nodes, the resulting $n \times n$ matrix typically requires $O(n^3)$ time and $O(n^2)$ space for factorization. For modern networks with millions of nodes, this is computationally impossible. While approximation techniques like sketching or sampling exist, they often trade off accuracy for speed or still struggle with truly large-scale data.
2. Methodology: GC-NRL
The proposed GC-NRL (Graph Clustering-based Network Representation Learning) method is based on the principle that nodes within the same cluster share similar structural roles. The framework shifts the computational burden from individual nodes to clusters.
2.1 Notation and Definitions
The algorithm first partitions the graph into $l$ clusters using the efficient IncMod method. The mathematical notation used throughout the framework is summarized in Table 1.
2.2 Cluster Similarity Matrix Computation
Instead of a node-level proximity matrix, GC-NRL computes an $l \times l$ cluster similarity matrix $S$. Similarity is defined by comparing actual edge weights between clusters against expected weights in a random graph model, a concept borrowed from modularity. Figure 1 illustrates how clusters in a graph correspond to specific blocks in the adjacency matrix.
2.3 Matrix Factorization and Embedding Generation
Since the number of clusters $l$ is much smaller than the number of nodes $n$ ($l \ll n$), factorizing $S$ via Singular Value Decomposition (SVD) is extremely fast.
- Dimensionality Handling: If $l$ is smaller than the target dimension $d$, a sparse expansion matrix projects vectors into a higher-dimensional space while maintaining orthogonality. If $l > d$, a randomized SVD approach is used to reduce dimensions efficiently.
- Node Embeddings: A node's final representation is calculated as a weighted sum of the representation vectors of the clusters it belongs to or is connected to.
3. Experimental Evaluation
The researchers evaluated GC-NRL on five real-world datasets: CoCit (44k nodes), com-DBLP (317k nodes), YouTube (1.1M nodes), com-LiveJournal (3.9M nodes), and com-Friendster (65.6M nodes, 3.6B edges).
3.1 Key Results
- Extreme Speedups: GC-NRL was consistently the fastest method, outperforming LouvainNE by 5.5x and NetMF by over 290,000x on smaller graphs. It successfully processed the massive Friendster dataset, where many baseline methods failed due to memory limits.
- Superior Accuracy: In multi-label node classification, GC-NRL outperformed competitors like FastRP, NetSMF, and DeepWalk in both Micro-F1 and Macro-F1 scores. For instance, on the CoCit dataset, it achieved a Micro-F1 score of 37.1%, compared to NetMF's 13.8%.
4. Discussion and Conclusion
GC-NRL's "cluster-first" approach captures global network structure at a fraction of the computational cost of node-centric methods. By using sparse matrices for dimensionality expansion, the method preserves the desirable property of orthogonality. Furthermore, by focusing on clusters, GC-NRL effectively filters out local node-level noise, leading to improved classification performance across diverse network types.
While highly efficient, GC-NRL's performance is tied to the quality of the initial clustering. Future research may explore alternative clustering techniques or extend this framework to heterogeneous networks with multiple node and edge types.
Summary updated