Learning to Solve Minimum Cost Multicuts Efficiently Using Edge-Weighted Graph Convolutional Neural Networks

Steffen Jung, Margret Keuper

TL;DR

This paper introduces the first end-to-end trainable approach for the Minimum Cost Multicut problem, a notoriously difficult NP-hard optimization task. By adapting Graph Convolutional Networks (GNNs) to handle signed edge weights and introducing a novel "Cycle Consistency Loss," the authors create a solver that is orders of magnitude faster and more scalable than traditional mathematical programming methods while remaining competitive in solution quality.

What Problem Does This Paper Address?

The Minimum Cost Multicut problem (also known as weighted correlation clustering) is a fundamental task in computer vision and data science. Imagine you have a graph where edges represent how similar or dissimilar two nodes are. A positive weight means they should likely be in the same cluster; a negative weight means they should be separated. The goal is to partition the graph to minimize the total cost of the edges that cross between clusters.

This problem is NP-hard and APX-hard, meaning finding the perfect solution is computationally exhausting for large graphs. Traditional methods rely on Integer Linear Programming (ILP), which doesn't scale well, or greedy heuristics that are fast but can't be integrated into modern deep learning pipelines because they aren't differentiable. The authors aim to bridge this gap by using GNNs to "learn" how to solve these optimization problems efficiently.

Methods

The authors propose a framework that treats multicut as an edge classification task (cut vs. not cut) using a single forward pass of a GNN. Their approach features three main innovations:

  1. Anisotropic Message Passing: Standard GNNs are often "isotropic," meaning they treat all neighbors equally. However, multicut is defined entirely by edge weights. The authors adapt GCN, SGCN, and GIN architectures to use a signed normalized graph Laplacian. This ensures that the sign and magnitude of edge weights directly influence how information flows between nodes.

    Figure 2: Comparison between standard isotropic aggregation (a) and the proposed anisotropic aggregation (b). The latter produces meaningful node embeddings that can actually partition the graph.
  2. Node Initialization via Degrees: Since multicut instances typically don't have node features, the authors initialize node representations using a two-dimensional vector of node degrees (the sum of positive edge weights and the sum of negative edge weights).

  3. Cycle Consistency Loss (CCL): A valid multicut must be "feasible"—you can't have a cycle where only one edge is cut (e.g., if A is with B, and B is with C, then A must be with C). The authors reformulate these logical constraints into a differentiable polynomial program. This allows the network to learn the rules of partitioning during training without needing to explicitly check every possible cycle.

Datasets

The authors evaluated their models on both synthetic and real-world datasets:

  • IrisMP: A new synthetic dataset of complete graphs (20 nodes) based on the classic Iris flower dataset.
  • RandomMP: A new synthetic dataset featuring larger, sparser graphs (avg. 180 nodes) to test scalability.
  • BSDS300: A standard benchmark for natural image segmentation.
  • Knott3D & CREMI: Large-scale datasets for volume segmentation in connectomics (mapping brain neurons).

Key Insights and Ideas

  • The Power of the Sign: Standard GNNs struggle with multicut because they ignore the "repulsive" force of negative edge weights. By incorporating the signed Laplacian, the GNN can naturally map nodes into clusters in the embedding space.
  • Scalability via Inference: Unlike ILP solvers that search for a solution through iterative optimization, a GNN provides a solution in a single forward pass. This shifts the heavy lifting to the training phase, making deployment extremely fast.
  • Learning Feasibility: The Cycle Consistency Loss is a "soft" way to teach the network the geometry of partitions. It penalizes logically impossible edge configurations, guiding the model toward feasible solutions even before final rounding.
Figure 1: Visualization of node embeddings. (a) shows the clustered nodes, and (b) shows the embeddings projected via PCA, demonstrating how the model learns to group similar nodes together.

Key Results

  • Speedup: The GCN-based solver is roughly 1,000 times faster than traditional ILP and LP solvers on large problem instances.
  • Scalability: On graphs with $10^6$ nodes, the proposed model provided solutions in seconds, whereas traditional solvers either ran out of memory (OOM) or failed to terminate within 24 hours (OOT).
  • Performance: On complete graphs (IrisMP), the GCN model achieved an optimality ratio of 0.9834, nearly matching the exact ILP solver while being significantly faster.
  • Generalization: Models trained on synthetic data (RandomMP) generalized surprisingly well to real-world image segmentation tasks, outperforming simple baselines like Logistic Regression.

Limitations and Future Work

  • The "Rounding" Bottleneck: The authors note that 75-99% of the total runtime is actually spent on the final post-processing step (connected component labeling) to ensure the solution is strictly feasible. Making this step more efficient or differentiable is a key area for future research.
  • Sparse Graph Challenges: While the model performs excellently on complete and moderately sparse graphs, very sparse graphs with long cycles remain challenging, as the Cycle Consistency Loss currently only considers cycles up to a certain length for computational efficiency.
  • Optimality Gap: While the GNN is much faster, it is still a heuristic. For small problems where exactness is critical, traditional ILP solvers remain the gold standard.

Summary updated

BibTeX
@inproceedings{jung2022learning,
  author = {Steffen Jung and Margret Keuper},
  title = {{Learning to Solve Minimum Cost Multicuts Efficiently Using Edge-Weighted Graph Convolutional Neural Networks}},
  booktitle = {ECML/PKDD},
  year = {2022},
  doi = {10.1007/978-3-031-26390-3\_28},
}
Figure