Skip to main content
QUICK REVIEW

[Paper Review] Deep Multilevel Graph Partitioning

Lars Gottesbüren, Tobias Heuer|arXiv (Cornell University)|May 5, 2021
Graph Theory and AlgorithmsComputer Science6 citations
TL;DR

This paper introduces deep multilevel graph partitioning (deep MGP), a novel multilevel framework that integrates recursive bipartitioning and direct k-way partitioning to enable efficient, balanced graph partitioning for large numbers of blocks (k). By continuing the multilevel coarsening process deep into initial partitioning and maintaining parallelism across all levels, the proposed KaMinPar algorithm achieves up to an order of magnitude speedup over existing methods while consistently producing balanced, high-quality partitions, even for k in the millions.

ABSTRACT

Partitioning a graph into blocks of "roughly equal" weight while cutting only few edges is a fundamental problem in computer science with a wide range of applications. In particular, the problem is a building block in applications that require parallel processing. While the amount of available cores in parallel architectures has significantly increased in recent years, state-of-the-art graph partitioning algorithms do not work well if the input needs to be partitioned into a large number of blocks. Often currently available algorithms compute highly imbalanced solutions, solutions of low quality, or have excessive running time for this case. This is because most high-quality general-purpose graph partitioners are multilevel algorithms which perform graph coarsening to build a hierarchy of graphs, initial partitioning to compute an initial solution, and local improvement to improve the solution throughout the hierarchy. However, for large number of blocks, the smallest graph in the hierarchy that is used for initial partitioning still has to be large. In this work, we substantially mitigate these problems by introducing deep multilevel graph partitioning and a shared-memory implementation thereof. Our scheme continues the multilevel approach deep into initial partitioning -- integrating it into a framework where recursive bipartitioning and direct k-way partitioning are combined such that they can operate with high performance and quality. Our approach is stronger, more flexible, arguably more elegant, and reduces bottlenecks for parallelization compared to other multilevel approaches. For example, for large number of blocks our algorithm is on average an order of magnitude faster than competing algorithms while computing balanced partitions with comparable solution quality. For small number of blocks, our algorithms are the fastest among competing systems with comparable quality.

Motivation & Objective

  • Address the scalability limitations of existing multilevel graph partitioners when partitioning graphs into a large number of blocks (k).
  • Overcome bottlenecks in coarsening and initial partitioning that degrade performance and solution quality for large k.
  • Develop a shared-memory parallel implementation that maintains load balance and high performance across many cores.
  • Integrate recursive bipartitioning and direct k-way partitioning within a unified multilevel framework to improve flexibility and efficiency.
  • Ensure consistent solution quality and balance across diverse graph types and values of k.

Proposed method

  • Propose deep MGP, a multilevel framework that continues coarsening and uncoarsening through multiple levels, integrating recursive bipartitioning during uncoarsening to build k blocks.
  • Use a single coarsening and uncoarsening cycle, with bipartitioning applied only on graphs of size approximately C nodes, where C is a user-defined parameter.
  • Maintain a parallelism invariant: each of p processing elements operates on graphs with at least p×C nodes to ensure load balance and scalability.
  • Integrate k-way local improvement and balancing as explicit components within the hierarchy, enabling high-quality solutions at scale.
  • Implement a shared-memory parallel version (KaMinPar) using size-constrained label propagation for coarsening and refinement, with optimized memory access patterns.
  • Use harmonic mean speedup to evaluate scalability across 1–64 cores, with components separated for detailed performance analysis.

Experimental results

Research questions

  • RQ1Can a multilevel graph partitioning framework be extended deep into the initial partitioning phase to improve scalability for large k?
  • RQ2Does combining recursive bipartitioning with direct k-way partitioning in a unified framework yield better performance and solution quality than existing approaches?
  • RQ3Can deep MGP maintain high load balance and achieve near-linear speedup on shared-memory systems with up to 64 cores for large k?
  • RQ4How does deep MGP compare to state-of-the-art partitioners in terms of solution quality, balance, and running time for k in the range 2^11 to 2^20?
  • RQ5Can deep MGP reliably produce feasible (balanced) solutions within a time limit when other partitioners fail or produce unbalanced results?

Key findings

  • KaMinPar produced feasible, balanced partitions on all 84 test instances (21 graphs × 4 values of k), while Mt-Metis-RB, Mt-Metis-K, PuLP, and Mt-KaHIP failed on 4 to 76 instances due to time limits or imbalance.
  • For large k, KaMinPar was at least an order of magnitude faster than competing algorithms, with Mt-Metis-RB 10 being the fastest competitor but still over 5× slower on average.
  • The harmonic mean speedup of KaMinPar reached 27.9 on 64 cores, with refinement and coarsening components achieving 33.1 and 25.0 speedups respectively, indicating strong parallel scalability.
  • KaMinPar achieved better scalability than coarsening due to more efficient memory access patterns in refinement, especially on high-degree graphs.
  • The algorithm consistently produced balanced solutions with median imbalance below 1.05 and maximum imbalance below 1.15, outperforming Mt-Metis-K in balance quality.
  • Deep MGP enables a favorable quality-performance tradeoff: it is faster than previous systems for small k and dramatically faster for large k, while maintaining solution quality and balance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.