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

A Parallel Algorithm for Multilevel Graph Partitioning and Sparse Matrix Ordering

George Karypis, Vipin KumarJ. Parallel Distributed Comput 1998

TL;DR

This paper introduces a novel parallel algorithm for multilevel graph partitioning and sparse matrix ordering, designed to efficiently handle massive graphs on distributed memory systems. The key innovation is a two-dimensional mapping strategy that significantly reduces communication overhead, leading to substantial speedups and high-quality partitions comparable to serial methods.

What Problem Does This Paper Address?

Graph partitioning is a fundamental problem in scientific computing, crucial for tasks like solving large sparse linear systems on parallel computers. The goal is to divide a graph's vertices into roughly equal parts while minimizing the number of edges connecting different parts. This directly impacts communication costs in parallel computations. While serial multilevel algorithms offer excellent partition quality, they struggle with memory limitations for very large graphs and can be a bottleneck for fast parallel solvers. Existing parallel approaches often face high communication overhead, limiting their scalability. This paper tackles the challenge of developing a parallel multilevel graph partitioning algorithm that is both scalable and produces high-quality results, addressing the need for efficient partitioning of massive graphs in modern parallel computing environments.

Methods

The core of the paper presents a parallel formulation of the multilevel graph partitioning algorithm. A key novelty is the use of a two-dimensional mapping strategy where processors are arranged in a $\sqrt{p} \times \sqrt{p}$ grid. This contrasts with traditional one-dimensional mappings.

Here's a breakdown of the approach:

  • Coarsening Phase: This is the most computationally intensive part. The algorithm uses a parallel coarsening strategy where processors along the diagonal of the grid compute local matchings. These matchings are then broadcast along rows and columns, allowing each processor to construct its part of the coarser graph. This diagonal-based approach minimizes communication compared to global matching.
  • Initial Partitioning Phase: The coarsest graph, residing on a single processor, is partitioned using a standard algorithm.
  • Uncoarsening Phase: The partition is projected back to finer graphs. This phase involves parallel refinement, where groups of vertices are moved simultaneously to reduce edge-cut, and unfolding of the processor grid as the graph becomes finer.
  • Parallel Vertex Cover Algorithm: A crucial component for obtaining small vertex separators (important for fill-reducing ordering) is a parallel algorithm for computing a minimum cover of a bipartite graph. This algorithm leverages the two-dimensional processor grid and uses a relaxed approach to minimize communication.

Datasets

The paper evaluates its algorithms on a range of matrices arising from finite element applications. These matrices are described in Table 1 and include:

  • 4ELT
  • BCSSTK31
  • BCSSTK32
  • BRACK2
  • CANT
  • COPTER2
  • CYLINDER93
  • ROTOR
  • SHELL93
  • WAVE

The paper does not introduce new benchmark datasets.

Key Insights and Ideas

  • Two-Dimensional Mapping for Communication Reduction: The most significant insight is that arranging processors in a $\sqrt{p} \times \sqrt{p}$ grid and performing coarsening primarily along the diagonal drastically reduces communication overhead. This is particularly effective for graphs with high average degrees.
  • Diagonal Coarsening Efficiency: The diagonal-based matching computation in the coarsening phase allows for efficient parallelization. While it might seem like a bottleneck, for graphs with high average degrees, the subsequent parallel construction of the coarser graph dominates, making the diagonal computation less critical.
  • Approximate Minimum Vertex Cover: For parallel sparse matrix ordering, an approximate minimum vertex cover algorithm is used. While it might yield slightly larger separators than serial exact methods, it offers a significant speedup and is crucial for the overall parallel performance.
  • Scalability Trade-offs: The paper acknowledges that the asymptotic speedup is limited to $O(\sqrt{p})$ due to the diagonal matching operation. However, for practical problems with high average degrees, the actual speedup is much better than this theoretical limit, outperforming the $O(\sqrt{p})$ prediction.

Key Results

  • Speedup: The parallel algorithm achieves speedups of up to 56 on 128 processors on a Cray T3D. For many problems, speedups in the range of 22 to 56 were observed on 128 processors.
  • Partition Quality: The quality of partitions (measured by edge-cut) produced by the parallel algorithm is comparable to, and often better than, serial multilevel algorithms and Multilevel Spectral Bisection (MSB). For many matrices, the edge-cut is within 10% of the serial algorithm, and in some cases, it's up to 50% better than MSB.
  • Sparse Matrix Ordering: The parallel multilevel nested dissection (MLND) algorithm produces orderings that require operations comparable to, and sometimes fewer than, the Multiple Minimum Degree (MMD) algorithm. The quality of parallel MLND orderings is generally within 20% of the serial MLND algorithm.
  • Performance on High-Degree Graphs: The algorithm performs particularly well on graphs with high average degrees, exhibiting speedups that exceed the theoretical $O(\sqrt{p})$ bound.

Limitations and Future Work

  • Asymptotic Speedup: The paper notes that the asymptotic speedup is limited to $O(\sqrt{p})$ due to the diagonal matching operation in the coarsening phase.
  • Approximate Vertex Cover: The parallel vertex cover algorithm is an approximation, which can lead to slightly larger separators and thus slightly more operations for sparse matrix ordering compared to exact serial methods.
  • Small Problems: For very small problems, the speedup might be closer to $O(\log p)$, as observed for the 4ELT matrix.
  • Future Work: The paper suggests that the two-dimensional mapping strategy is central to the parallelization of the minimal vertex cover computation, and it's unclear if this can be efficiently parallelized with a one-dimensional mapping. The PARMETIS library, which implements these algorithms, is available for further research.

Summary updated

BibTeX
@article{karypis1998parallel,
  author = {George Karypis and Vipin Kumar},
  title = {{A Parallel Algorithm for Multilevel Graph Partitioning and Sparse Matrix Ordering}},
  journal = {J. Parallel Distributed Comput},
  year = {1998},
  doi = {10.1006/jpdc.1997.1403},
}

Loading related content...

Figure