Abstract
Traditional graph partitioning relies on hand-tuned heuristics that often struggle with modern parallel hardware. This paper presents a novel framework using Deep Reinforcement Learning (DRL) and Graph Neural Networks (GNNs) to automate the discovery of efficient partitioning strategies. By employing an Advantage Actor-Critic (A2C) agent within a multilevel coarsening framework, the approach achieves performance competitive with industry standards like METIS while demonstrating robust generalization across varying graph scales and topologies.
Introduction: The Challenge of Graph Partitioning
Graph partitioning—dividing a graph into equal-sized components while minimizing edge cuts—is a fundamental NP-complete problem. It is critical for high-performance computing tasks, such as workload distribution and sparse matrix reordering to minimize "fill-in" (extra non-zero entries) during factorization.
While tools like METIS have long defined the state-of-the-art, their reliance on sequential heuristics limits their adaptability to modern GPU/TPU architectures. Furthermore, simple "minimum cut" objectives can lead to trivial, unbalanced solutions, necessitating more sophisticated normalized cut approaches.
Methodology: A Multilevel DRL Framework
The authors propose a multilevel strategy that integrates DRL at key decision points. The process follows three main phases:
- Coarsening: The input graph is recursively simplified into smaller representations using the Graclus clustering algorithm.
- Initial Partitioning: At the coarsest level, a DRL agent utilizing Graph Attention (GAT) layers performs the initial split.
- Refinement: The partition is projected back through the finer levels. A second DRL agent, using SAGE graph convolution layers, refines the boundary by moving nodes between partitions.
To maintain efficiency, the refinement agent operates on a local $k$-hop subgraph around the cut, ensuring $O(n)$ complexity for spatial graphs.
Experimental Evaluation
The model was trained on small synthetic Delaunay triangulations (~5,000 nodes) and evaluated on significantly larger, real-world scientific meshes from the SuiteSparse collection (up to 90,000 nodes).
Key Results
- Competitive Quality: The DRL approach matches the partitioning quality of METIS and SCOTCH. In specific complex geometries like the "Hole6" dataset, it occasionally outperforms METIS.
- Sparse Matrix Efficiency: When integrated into the SuperLU solver for nested dissection, the DRL-based vertex separators effectively reduced matrix fill-in, significantly outperforming standard COLAMD ordering.
- Generalization: The ability of a model trained on small graphs to partition much larger, unseen meshes suggests that GNNs successfully capture fundamental topological features of optimal cuts.
Discussion and Future Directions
A key innovation is the $k$-hop subgraph trick, which transforms a global optimization problem into a local refinement task. However, current limitations include the overhead of the Python-based implementation compared to C-optimized tools and the sequential nature of moving one node at a time. Future work aims to implement "batch" node movements and extend the framework to highly irregular "small-world" graphs like social networks.
Summary updated