,
Nikolai Maas
,
Kenneth Langedal
,
Daniel Seemaier
Creative Commons Attribution 4.0 International license
Balanced Graph Partitioning is a classical optimization problem where quality guarantees are computationally infeasible, and practical solvers therefore rely on manually engineered heuristics. Yet, the problem has also proven difficult for approaches that rely heavily on machine learning - especially since applications often need to partition graphs of huge scale in a short amount of time. Instead, we demonstrate how to achieve practical improvements with a more careful approach that uses machine learning to improve heuristic decisions within the state-of-the-art solver Mt-KaHyPar. We use a pre-trained neural network to predict a score for each edge, which then guides clustering decisions in the first phase of the partitioning (the coarsening). Combined with corresponding adjustments to the clustering algorithm and an efficient implementation of the neural network logic, we improve the overall solution quality while preserving the efficiency and scalability of the original algorithm. Our detailed evaluation on more than 180 graphs shows an average quality improvement of 2% on a class of graphs with beneficial properties, and unchanged quality on all remaining graphs. Moreover, our improvements generalize to a set of instances from the literature that are much larger than the graphs used during training.
@InProceedings{schrape_et_al:LIPIcs.SEA.2026.25,
author = {Schrape, Simeon and Maas, Nikolai and Langedal, Kenneth and Seemaier, Daniel},
title = {{Engineering Learned Heuristics to Improve Clustering for Multilevel Graph Partitioning}},
booktitle = {24th International Symposium on Experimental Algorithms (SEA 2026)},
pages = {25:1--25:21},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-422-2},
ISSN = {1868-8969},
year = {2026},
volume = {371},
editor = {Aum\"{u}ller, Martin and Finocchi, Irene},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.SEA.2026.25},
URN = {urn:nbn:de:0030-drops-260295},
doi = {10.4230/LIPIcs.SEA.2026.25},
annote = {Keywords: Graph Partitioning, Graph Algorithms, Machine Learning, Neural Networks}
}
archived version
archived version