Abstract
SketchNE (NetMF+) addresses the critical scalability challenges of theoretically grounded network embedding methods like NetMF. By leveraging randomized sketching and a single-pass SVD algorithm, SketchNE enables the processing of billion-scale graphs on a single CPU-only machine. It achieves up to a 90x speedup in eigen-decomposition and significantly outperforms sparsification-based baselines in accuracy, completing embeddings for networks with billions of nodes in approximately one hour.
Introduction
Network embedding maps nodes to low-dimensional vectors to preserve structural relationships, facilitating downstream tasks like link prediction and recommendation. NetMF is a leading method that treats embedding as a matrix factorization problem. However, NetMF requires constructing and factorizing an $n \times n$ matrix, which is computationally prohibitive for massive networks. Existing solutions like NetSMF and LightNE attempt to solve this via sparsification, but this often sacrifices embedding quality to maintain memory efficiency.
Methodology
SketchNE overcomes the scalability bottleneck through three primary innovations:
- Sparse-Sign Randomized Single-Pass SVD: Instead of materializing the full, dense NetMF matrix, SketchNE uses a "sketching" technique. It multiplies the implicit target matrix by a sparse random matrix to capture essential structural information in a compact form. This allows for Singular Value Decomposition (SVD) without the $O(n^2)$ memory requirement.
- Fast Randomized Eigen-Decomposition (freigs): To decompose the graph Laplacian, SketchNE employs a randomized approach that is significantly faster than standard tools like SciPy’s
eigsh, achieving a 90x speedup with minimal accuracy loss. - System-Level Optimizations: The implementation utilizes the Graph Based Benchmark Suite (GBBS) for graph compression and the Intel Math Kernel Library (MKL) for high-performance linear algebra, ensuring maximum performance on standard CPU architectures.
The overall algorithmic framework for SketchNE is detailed below, highlighting the transition from fast eigen-decomposition to the truncated SVD of the implicit matrix $f^o(\mathbf{LR})$.
Experimental Evaluation
The researchers evaluated SketchNE on nine datasets, including small social networks (BlogCatalog, YouTube) and massive web crawls like Hyperlink2012, which contains 3.5 billion vertices and 225 billion edges.
Key Results
- Scalability: SketchNE embedded the 3.5B-node Hyperlink2012 network in just 1.0 hour on a single machine, a task that would take days or weeks for other state-of-the-art systems.
- Accuracy: In link prediction on Hyperlink2012, SketchNE achieved a 282% relative gain in HITS@10 over LightNE, demonstrating that randomized sketching preserves global structure better than edge sampling.
- Efficiency: The model achieved a 90x speedup in eigen-decomposition while maintaining identical downstream task performance compared to traditional methods.
- Complexity: Time complexity is linear with respect to the number of edges ($m$) and vertices ($n$), making it highly scalable for future massive networks.
Discussion and Future Work
SketchNE demonstrates that implicit matrix factorization via randomized sketching is superior to explicit sparsification for large-scale graphs. By visiting the target matrix only once during the sketching process, it minimizes data movement, which is the primary bottleneck in billion-scale computing.
Future research directions include:
- Spectral Propagation: Refining the method to include spectral propagation for the largest graphs within memory limits.
- Dynamic Networks: Adapting the sketching approach for temporal graphs where edges are constantly added or removed.
- Heterogeneous Networks: Extending the technique to graphs with multiple node and edge types.
Summary updated