[Paper Review] Efficient Graph Computation for Node2Vec
This paper proposes Fast-Node2Vec, a Pregel-like distributed framework that efficiently computes Node2Vec on large-scale graphs by computing transition probabilities on-demand and optimizing for high-degree vertices. It achieves 7.7–122x speedups over Spark-Node2Vec and up to 17.2x over baseline methods, enabling scalable, high-quality feature learning on billion-node graphs with moderate hardware.
Node2Vec is a state-of-the-art general-purpose feature learning method for network analysis. However, current solutions cannot run Node2Vec on large-scale graphs with billions of vertices and edges, which are common in real-world applications. The existing distributed Node2Vec on Spark incurs significant space and time overhead. It runs out of memory even for mid-sized graphs with millions of vertices. Moreover, it considers at most 30 edges for every vertex in generating random walks, causing poor result quality. In this paper, we propose Fast-Node2Vec, a family of efficient Node2Vec random walk algorithms on a Pregel-like graph computation framework. Fast-Node2Vec computes transition probabilities during random walks to reduce memory space consumption and computation overhead for large-scale graphs. The Pregel-like scheme avoids space and time overhead of Spark's read-only RDD structures and shuffle operations. Moreover, we propose a number of optimization techniques to further reduce the computation overhead for popular vertices with large degrees. Empirical evaluation show that Fast-Node2Vec is capable of computing Node2Vec on graphs with billions of vertices and edges on a mid-sized machine cluster. Compared to Spark-Node2Vec, Fast-Node2Vec achieves 7.7--122x speedups.
Motivation & Objective
- To address the scalability limitations of existing Node2Vec implementations on large-scale graphs with billions of vertices and edges.
- To overcome the poor result quality and high memory overhead of Spark-Node2Vec, which limits neighbor sampling to 30 edges per vertex and incurs excessive shuffle and RDD overhead.
- To enable efficient, exact Node2Vec computation on mid-sized machine clusters by avoiding Spark’s read-only RDDs and I/O-heavy shuffle operations.
- To design and evaluate optimization techniques—FN-Cache and FN-Approx—that improve performance on high-degree vertices in skewed graphs.
- To demonstrate that high-quality, scalable Node2Vec feature learning is feasible on large graphs using only moderate computational resources.
Proposed method
- Fast-Node2Vec uses a Pregel-like graph computation framework to avoid Spark’s read-only RDDs and costly shuffle operations, reducing memory and I/O overhead.
- It computes Node2Vec transition probabilities on-demand during random walks instead of pre-storing them, significantly reducing memory usage for large graphs.
- The framework employs a vertex-centric computation model where each vertex processes incoming messages to generate the next step in a random walk.
- FN-Cache caches computed transition probabilities for frequently accessed high-degree vertices to reduce redundant computation.
- FN-Approx approximates transition probabilities for high-degree vertices using sampling, trading a small accuracy loss for substantial performance gains.
- The system is evaluated on synthetic Skew-K graphs with varying degree skewness to study the impact of graph structure on optimization effectiveness.
Experimental results
Research questions
- RQ1Can Node2Vec be efficiently computed on billion-node graphs using only a mid-sized cluster of machines?
- RQ2How does on-demand computation of transition probabilities reduce memory usage compared to pre-storing them?
- RQ3To what extent do optimizations like FN-Cache and FN-Approx improve performance on high-degree vertices in skewed graphs?
- RQ4How does graph degree skewness affect the performance of optimization techniques in Fast-Node2Vec?
- RQ5What is the trade-off between result quality and performance in approximate vs. exact Node2Vec computation on large graphs?
Key findings
- Fast-Node2Vec achieves 7.7–122x speedups over Spark-Node2Vec on large-scale graphs, demonstrating significant performance improvements.
- The use of on-demand transition probability computation reduces memory overhead and avoids the need to store all probabilities, enabling scalability to billion-node graphs.
- FN-Cache achieves up to 2.68x speedup over the baseline FN-Base on highly skewed graphs, particularly benefiting high-degree vertices.
- FN-Approx achieves up to 17.2x speedup over FN-Base on skewed graphs, showing strong performance gains with minimal impact on result quality.
- As graph skewness increases (e.g., Skew-5), the benefits of FN-Cache and FN-Approx grow significantly, confirming their effectiveness on real-world graphs with power-law degree distributions.
- The system successfully computes Node2Vec on graphs with up to 1 billion vertices and edges using only a 12-node cluster, proving feasibility for moderate-resource environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.