[Paper Review] GAP: Generalizable Approximate Graph Partitioning Framework
GAP learns to partition graphs by optimizing a differentiable relaxed normalized cut loss with graph embeddings, enabling generalization to unseen graphs and faster inference than baselines.
Graph partitioning is the problem of dividing the nodes of a graph into balanced partitions while minimizing the edge cut across the partitions. Due to its combinatorial nature, many approximate solutions have been developed, including variants of multi-level methods and spectral clustering. We propose GAP, a Generalizable Approximate Partitioning framework that takes a deep learning approach to graph partitioning. We define a differentiable loss function that represents the partitioning objective and use backpropagation to optimize the network parameters. Unlike baselines that redo the optimization per graph, GAP is capable of generalization, allowing us to train models that produce performant partitions at inference time, even on unseen graphs. Furthermore, because we learn the representation of the graph while jointly optimizing for the partitioning loss function, GAP can be easily tuned for a variety of graph structures. We evaluate the performance of GAP on graphs of varying sizes and structures, including graphs of widely used machine learning models (e.g., ResNet, VGG, and Inception-V3), scale-free graphs, and random graphs. We show that GAP achieves competitive partitions while being up to 100 times faster than the baseline and generalizes to unseen graphs.
Motivation & Objective
- Motivate efficient, balanced graph partitioning in diverse graph types without graph-specific heuristics.
- Formulate a differentiable loss that captures the normalized cut and balance objectives for partitioning.
- Develop a neural model that learns to assign nodes to partitions from graph structure and features.
- Demonstrate generalization to unseen graphs and unseen sizes, reducing per-graph optimization time.
Proposed method
- Define a differentiable loss based on the expected normalized cut using a soft partition matrix Y with probabilities for each node to belong to each partition.
- Compute the expected cut and volume using Y and the graph adjacency and degree information, enabling a differentiable approximation of the normalized cut.
- Incorporate a balance term by penalizing deviation from equal partition sizes (n/g per partition).
- Use a graph embedding module (GCN or GraphSAGE) to produce node representations from graph structure and features.
- Attach a partitioning module (dense layers with softmax) that outputs Y and is trained to minimize the loss.
- Optionally enable training with gradient flow blocked between embedding and partitioning modules for unsupervised embeddings; support minibatch inference on large graphs.
Experimental results
Research questions
- RQ1Can a neural network be trained end-to-end to partition graphs with balanced partitions while minimizing edge cuts?
- RQ2Does a differentiable relaxation of the normalized cut enable generalization to unseen graphs and sizes?
- RQ3How do graph embeddings (GCN, GraphSAGE) affect partition quality and transferability across graphs?
- RQ4What is the trade-off between inference speed and partition quality compared to traditional solvers like hMETIS?
- RQ5To what extent do node features (e.g., TensorFlow operation types) or structural similarity aid generalization?
Key findings
- GAP achieves competitive edge cut and highly balanced partitions across real and synthetic graphs.
- GAP can generalize from training graphs to unseen graphs and sizes, often with 4–6% edge cut on large unseen computation graphs.
- Inception-v3, ResNet, MNIST-conv, AlexNet, and VGG show GAP generalization when trained on one graph and applied to others.
- GAP-inference is up to 10–100× faster than hMETIS while delivering comparable or better partition quality on many settings.
- GraphSAGE-based embeddings trained end-to-end yield best generalization performance on unseen graphs.
- Generalization improves as the similarity (e.g., Jaccard similarity of operation types) between train and test graphs increases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.