High-Quality Hypergraph Partitioning

Sebastian Schlag, Tobias Heuer, Lars Gottesbüren, Yaroslav Akhremtsev, Christian Schulz +1 more
6/16/2021
cs.DS

Official code: kahypar/kahypar (541 stars, C++, GPL-3.0, last commit 2026-03-07).

Abstract

This paper considers the balanced hypergraph partitioning problem, which asks for partitioning the vertices into $k$ disjoint blocks of bounded size while minimizing an objective function over the hyperedges. Here, we consider the most commonly used connectivity metric.

Show full abstract

We describe our open source hypergraph partitioner KaHyPar which is based on the successful multi-level approach -- driving it to the extreme of one level for (almost) every vertex. Using carefully designed data structures and dynamic update techniques, this approach offers a very good time-quality tradeoff. We present two preprocessing techniques -- pin sparsification using locality sensitive hashing and community detection based on the Louvain algorithm. The community structure is used to guide the coarsening process that incrementally contracts vertices. Portfolio-based partitioning of the contracted hypergraph already achieves good initial solutions. While reversing the contractions, a combination of highly-localized direct $k$-way local search and flow-based techniques that take a more global view, refine the partition to achieve high quality. Optionally, a memetic algorithm evolves a pool of solution candidates to obtain even higher quality. We evaluate KaHyPar on a large set of instances from a wide range of application domains. With respect to quality, KaHyPar outperforms all previously considered systems that can handle large hypergraphs such as hMETIS, PaToH, Mondriaan, or Zoltan. KaHyPar is also faster than most of these systems except for PaToH which represents a different speed-quality tradeoff. The results even extend to the special case of graph partitioning, where specialized systems such as KaHIP should have an advantage.

View on arXivView PDF

Code Implementations(1)

kahypar/kahyparOfficial100%
GPL-3.0

KaHyPar (Karlsruhe Hypergraph Partitioning) is a multilevel hypergraph partitioning framework providing direct k-way and recursive bisection based partitioning algorithms that compute solutions of very high quality.

541109C++, CMakeSep 23, 20168 months agoGPL-3.0
algorithm-engineeringcppevolutionary-algorithmsgraphgraph-algorithms+8 more

Similar Papers

Cite this paper

@article{schlag2021highquality,
  title  = {High-Quality Hypergraph Partitioning},
  author = {Sebastian Schlag and Tobias Heuer and Lars Gottesbüren and Yaroslav Akhremtsev and Christian Schulz and Peter Sanders},
  year   = {2021},
  eprint = {2106.08696},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.08696}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.08696.svg)](https://codeofpaper.com/paper/2106.08696)

Discussion