Abstract
In the realm of distributed systems tasked with managing and processing large-scale graph-structured data, optimizing graph partitioning stands as a pivotal challenge. The primary goal is to minimize communication overhead and runtime cost. However, alongside the computational complexity associated with optimal graph partitioning, a critical factor to consider is memory overhead. Real-world graphs often reach colossal sizes, making it impractical and economically unviable to load the entire graph into memory for partitioning. This is also a fundamental premise in distributed graph processing, where accommodating a graph with non-distributed systems is unattainable. Currently, existing streaming partitioning algorithms exhibit a skew-oblivious nature, yielding satisfactory partitioning results exclusively for specific graph types. In this paper, we propose a novel streaming partitioning algorithm, the Skewness-aware Vertex-cut Partitioner S5P, designed to leverage the skewness characteristics of real graphs for achieving high-quality partitioning. S5P offers high partitioning quality by segregating the graph's edge set into two subsets, head and tail sets. Following processing by a skewness-aware clustering algorithm, these two subsets subsequently undergo a Stackelberg graph game. Our extensive evaluations conducted on substantial real-world and synthetic graphs demonstrate that, in all instances, the partitioning quality of S5P surpasses that of existing streaming partitioning algorithms, operating within the same load balance constraints. For example, S5P can bring up to a 51% improvement in partitioning quality compared to the top partitioner among the baselines. Lastly, we showcase that the implementation of S5P results in up to an 81% reduction in communication cost and a 130% increase in runtime efficiency for distributed graph processing tasks on PowerGraph.
Introduction
In distributed graph processing (e.g., running PageRank on a massive social network), a graph must be split across multiple machines. The goal is to minimize the Replication Factor (RF)—the number of times a vertex is copied across different machines—because every replica increases communication overhead and slows down the system.
The Challenge of Skewed Graphs
Most real-world graphs are "skewed," meaning they follow a power-law distribution: a tiny number of "hub" vertices have massive connections, while the vast majority have very few. Existing "streaming" partitioners, which process edges one by one to save memory, are often skew-oblivious. They treat all vertices equally, failing to account for the fact that high-degree vertices have a disproportionately large impact on the replication factor.
As illustrated in the degree distributions above, datasets ranging from social networks like com-orkut to web graphs like uk-2007-05 exhibit clear power-law behavior. S5P is specifically designed to exploit this structural property.
The S5P Methodology
The authors propose S5P (Skewness-aware Vertex-cut Partitioner), which operates in a biphasic "clustering-refinement" framework:
- Skewness-aware Clustering: Instead of partitioning individual edges (which is computationally expensive), S5P first groups them into "head" (high-degree) and "tail" (low-degree) clusters. It uses a global degree-aware approach for head edges and a local degree-aware approach for tail edges to maintain accuracy without excessive overhead.
- Stackelberg Game Partitioning: The core innovation is treating the assignment of clusters to machines as a sequential game.
- Leaders (Head Clusters): These move first, choosing partitions that minimize their own costs.
-
Followers (Tail Clusters): These observe the leaders' moves and then choose their partitions. This hierarchy ensures that the most influential parts of the graph are optimized first, leading to a more stable and efficient global state (a Nash Equilibrium).
-
Count-Min Sketch (CMS) Optimization: To calculate the "inter-cluster" edge counts needed for the game without using massive amounts of memory, S5P employs a Count-Min Sketch. This probabilistic data structure allows for a 70-fold reduction in memory usage with negligible loss in partitioning quality.
Experimental Results
S5P was evaluated on 11 real-world graphs and 6 synthetic R-MAT graphs. The results demonstrate significant advantages over state-of-the-art baselines like CLUGP and HDRF:
- Partitioning Quality: S5P consistently outperformed baselines, showing up to a 51% improvement in replication factor on web graphs.
- System Efficiency: When deployed on PowerGraph, S5P reduced communication costs by up to 81% and increased runtime efficiency by 130% for PageRank tasks.
- Scalability and Memory: S5P’s runtime remains stable as the number of partitions increases. Furthermore, it uses roughly 50x less memory than the widely-used METIS partitioner, successfully handling massive graphs that caused METIS to crash due to memory limits.
Conclusion
S5P demonstrates that sequential decision-making (Stackelberg) better reflects the structural reality of power-law graphs than simultaneous decision-making. By playing the partitioning game at the cluster level and utilizing memory-efficient sketching, S5P provides a scalable solution for modern distributed graph processing. Future work may extend this skewness-aware paradigm to Graph Neural Networks (GNNs) and dynamic graph environments.
Summary updated