NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hybrid Edge Partitioner: Partitioning Large Power-Law Graphs under Memory Constraints

Ruben Mayer, Hans-Arno JacobsenSIGMOD 2021 · DOI

Introduction

Distributed graph processing is essential for analyzing massive datasets, such as social networks or web graphs. A critical step in this process is partitioning the graph across multiple machines to minimize inter-node communication. However, real-world graphs often follow a "power-law" distribution, where a small number of hub vertices possess a disproportionately large number of connections. This structural skew makes traditional partitioning methods either memory-prohibitive or low-quality.

The Hybrid Edge Partitioner (HEP) addresses this challenge by breaking the dichotomy between high-quality, memory-intensive in-memory partitioners and low-memory, streaming partitioners. By combining a novel in-memory algorithm for low-degree vertices with informed streaming for high-degree hubs, HEP achieves state-of-the-art partitioning quality with significantly reduced memory requirements.

The Challenge of Power-Law Graphs

In distributed systems, engineers must choose between vertex partitioning (edge cut) and edge partitioning (vertex cut). For power-law graphs, edge partitioning is generally more effective because it distributes the edges of high-degree hubs across multiple partitions, minimizing the replication of state.

Comparison of Edge Partitioning (Vertex Cut) and Vertex Partitioning (Edge Cut), illustrating why edge partitioning is preferred for hub-heavy graphs.

Existing solutions present a trade-off:

  1. In-memory partitioners: Offer excellent quality but require loading the entire graph into RAM, which is often impossible for billion-edge datasets.
  2. Streaming partitioners: Use minimal memory by processing edges sequentially but produce lower-quality partitions due to a lack of global structural visibility.

Methodology: The Hybrid Approach

HEP introduces a hybrid strategy that adapts its memory footprint to available hardware without sacrificing quality. It divides edges into two groups based on a degree threshold $\tau$:

1. NE++ (Neighborhood Expansion++)

Low-degree edges (incident to at least one low-degree vertex) are handled by NE++, an optimized in-memory algorithm. NE++ reduces its RAM footprint by using a Pruned Graph Representation, storing adjacency lists only for low-degree vertices. It also employs Lazy Edge Removal, which improves cache locality and processing speed by deferring the tracking of assigned edges to a periodic clean-up phase.

2. Informed Streaming

High-to-High (H2H) edges, which connect two high-degree hubs, are partitioned using a streaming approach (HDRF). Unlike standard streaming, this phase is "informed"—it inherits the partitioning state established by NE++, allowing it to make smarter placement decisions for the remaining edges.

Vertex degree distribution and replication factor for LJ and WI graphs, showing that most vertices have low degrees while hubs drive replication.

Key Insights

  • The Power of Skew: Most vertices in power-law graphs have low degrees. By focusing in-memory resources on these "easy" vertices and streaming the "hubs," HEP optimizes for the majority of the graph's structure. Hubs are likely to be replicated regardless of the algorithm, so using a simpler streaming approach for them has a negligible impact on the overall replication factor.
  • Memory as a Tuning Knob: The threshold $\tau$ allows users to scale the algorithm's memory usage based on system constraints. High $\tau$ values utilize more RAM for better quality, while lower values prioritize memory efficiency.

Performance and Results

Evaluated on diverse datasets—including the 64-billion-edge wdc-2014 web graph—HEP demonstrated significant advantages:

  • Efficiency: HEP uses up to 10x less memory than traditional in-memory partitioners like NE or METIS.
  • Quality: It consistently achieves lower replication factors than state-of-the-art streaming partitioners like HDRF.
  • Speed: On the twitter-2010 graph, HEP completed partitioning in 15 minutes, compared to 10 hours for METIS, while providing a superior replication factor (1.99 vs. 5.68).

Conclusion

HEP successfully bridges the gap between memory-hungry in-memory partitioners and low-quality streaming methods. By leveraging the inherent skew of power-law graphs, it provides a flexible, high-performance solution for large-scale distributed graph analytics. Future work may involve parallelizing the NE++ phase and extending the hybrid paradigm to hypergraph partitioning.

Summary updated

BibTeX
@inproceedings{mayer2021hybrid,
  author = {Ruben Mayer and Hans-Arno Jacobsen},
  title = {{Hybrid Edge Partitioner: Partitioning Large Power-Law Graphs under Memory Constraints}},
  booktitle = {SIGMOD},
  year = {2021},
  doi = {10.1145/3448016.3457300},
}
Figure