Prioritized Restreaming Algorithms for Balanced Graph Partitioning

Amel Awadelkarim, Johan UganderKDD 2020

Introduction

In modern distributed computing, processing massive networks—such as social graphs or web crawls—requires partitioning the data across multiple machines. The primary objective is balanced graph partitioning: dividing a graph into $k$ equal-sized "shards" while minimizing the "edge-cut" (the number of edges spanning different shards). Minimizing edge-cuts is critical for reducing communication bottlenecks in distributed environments.

Finding an optimal partition is an NP-hard problem. Current industry standards typically rely on either synchronous label propagation methods or streaming heuristics. However, synchronous methods often suffer from "oscillations," where nodes repeatedly switch between shards, while streaming methods are highly sensitive to the initial processing order.

The Restreaming Paradigm

This research introduces a modular framework for graph partitioning that emphasizes restreaming. Unlike traditional streaming, which processes nodes in a single pass, restreaming iteratively refines partitions by processing nodes one by one in multiple passes.

A significant advantage of the streaming approach is its inherent constraint: by updating nodes sequentially, the algorithm avoids the "passing" problem common in synchronous updates, where neighboring nodes move simultaneously and inadvertently break their connectivity. This sequential nature leads to more stable convergence.

Figure 6: Convergence of node assignments over iterations for the notredame and pokec datasets. The dominance of 'period 1' (blue) indicates that most nodes quickly settle into stable shard assignments.

Priority Ordering and Ambivalence

The core innovation of this work is Prioritized Restreaming. The authors demonstrate that the order in which nodes are processed significantly impacts the final partition quality. They introduce a new metric called ambivalence to guide this ordering.

A node is considered "ambivalent" if the benefit of moving it to a different shard is nearly equal to the benefit of remaining in its current shard. The proposed algorithm, reLDG (Restreamed Linear Deterministic Greedy), prioritizes nodes with low ambivalence—those with a strong preference for a specific shard. By assigning these "certain" nodes first, the algorithm reserves remaining shard capacity for "undecided" (highly ambivalent) nodes later in the stream.

Interestingly, the study finds that node degree is a strong proxy for ambivalence. Sorting nodes by degree (highest to lowest) provides a computationally efficient way to achieve performance gains similar to dynamic ambivalence calculations.

Experimental Results

The researchers evaluated reLDG against several state-of-the-art baselines, including Facebook’s Social Hash Partitioner (SHP) and Balanced Label Propagation (BLP), across seven large-scale networks from the SNAP repository.

Figure 5: Performance comparison of partitioning algorithms across four major datasets. The restreaming methods (reLDG and reLDG-a) consistently achieve higher internal edge fractions compared to synchronous baselines (BLP, KL-SHP).

The results consistently favor prioritized restreaming:

  • Superior Quality: reLDG and its ambivalence-sorted variant (reLDG-a) outperformed synchronous methods across all tested networks.
  • Web Graph Performance: On the google web graph, reLDG achieved an internal edge fraction of 0.964, vastly outperforming BLP's 0.606.
  • Efficiency: High-quality partitions were reached in significantly fewer iterations than required by synchronous alternatives.

Conclusion

Prioritized restreaming represents a significant advancement in balanced graph partitioning. By combining the stability of sequential updates with intelligent node ordering, the reLDG framework achieves state-of-the-art results on massive real-world datasets. Future work may involve extending these principles to hypergraphs and exploring parallelized versions of restreaming that maintain the performance benefits of serial processing.

Summary updated

BibTeX
@inproceedings{awadelkarim2020prioritized,
  author = {Amel Awadelkarim and Johan Ugander},
  title = {{Prioritized Restreaming Algorithms for Balanced Graph Partitioning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403239},
}
Figure