Combinatorial Optimization (CO) problems, such as graph coloring and partitioning, are foundational to numerous real-world applications ranging from task scheduling to microchip design. However, most of these problems are NP-hard, meaning their complexity grows exponentially with the size of the input. Traditional Integer Programming (IP) solvers like SCIP are effective for small-scale instances but struggle to scale to the massive graphs encountered in modern data science.
Recent neural solvers have attempted to bridge this gap using Quadratic Unconstrained Binary Optimization (QUBO). While promising, QUBO-based approaches face two significant limitations: they are primarily designed for binary "2-grouping" tasks and cannot naturally represent hyperedges—relationships involving three or more nodes. This paper introduces Deep $k$-grouping, a novel unsupervised learning framework designed to overcome these hurdles for both standard graphs and complex hypergraphs.
The Deep k-grouping Framework
The core innovation of Deep $k$-grouping lies in its reformulation of CO objectives into a differentiable, GPU-accelerated pipeline. The framework introduces three primary technical advancements:
- OH-PUBO (One-Hot encoded Polynomial Unconstrained Binary Optimization): Instead of using simple binary variables, the authors employ one-hot vectors to represent group assignments. By extending the mathematical formulation from quadratic (pairs) to polynomial (arbitrary group sizes), the framework can directly model hypergraph structures.
- GPU-Accelerated Loss Functions: The authors reformulate CO objectives into differentiable loss functions computed via massive matrix operations. This allows the entire training process to leverage GPU parallelism, enabling the processing of graphs with hundreds of thousands of edges in seconds.
- Gini Coefficient-based Annealing: To ensure the neural network outputs discrete (0 or 1) solutions rather than fuzzy probabilities, the framework utilizes an annealing strategy. Unlike traditional Shannon entropy, which can lead to mathematical instability and exploding gradients, the authors use the Gini coefficient. This provides a stable gradient flow, pushing the network toward clear discrete solutions while avoiding local optima.
The model architecture utilizes Graph Neural Networks (GNNs) or Hypergraph Neural Networks (HyperGNNs) to predict the probability of each node belonging to one of $k$ specific groups. By using one-hot encoding, constraints like "no two adjacent nodes can share a color" are expressed as efficient Hadamard products.
Experimental Evaluation
The framework was evaluated across a diverse set of benchmarks, including standard graphs (e.g., DBLP, CiteSeer, Amazon datasets) and hypergraphs (e.g., Cora, PubMed, Cooking200).
Superior Scalability and Quality
A key finding is the framework's remarkable scalability. On the AmzPc dataset (~13,000 nodes and ~245,000 edges), the exact solver SCIP failed to find a feasible solution within a five-hour window. In contrast, Deep $k$-grouping produced a high-quality solution in just 263 seconds.
As shown in the figure above, while the runtime of traditional solvers grows exponentially with the number of vertices, Deep $k$-grouping’s runtime remains remarkably flat. This stability makes it uniquely suited for "Big Data" applications where traditional methods become computationally prohibitive.
In terms of solution quality, Deep $k$-grouping consistently outperformed other neural solvers like GAP in graph partitioning tasks, finding fewer "cut edges." It also proved competitive with, and often superior to, specialized heuristics such as hMETIS and KaHyPar across various hypergraph datasets.
Conclusion and Future Work
Deep $k$-grouping represents a significant step forward in unsupervised learning for combinatorial optimization. By combining one-hot polynomial optimization with stable Gini-based annealing and GPU acceleration, it offers a scalable alternative to traditional solvers for large-scale grouping problems.
While exact solvers may still hold an advantage on very small graphs where absolute optimality is required, Deep $k$-grouping provides a powerful tool for large-scale, real-world hypergraph problems. Future research may extend this framework to other complex CO domains, such as the Traveling Salesperson Problem or more intricate resource allocation tasks.
Summary updated