The graph coloring problem can be solved to optimality by branch-and-price (B&P), but its performance hinges on the column generation (CG) step, where each iteration requires solving a maximum weight independent set (MWIS) pricing problem. The state-of-the-art machine-learning (ML) pricing heuristic follows a prediction-sampling paradigm: a learned model scores each vertex of a graph, and independent sets are sampled from the induced distribution. We observe, however, that the scoring procedure does not need to be learned, and critically assess the role of ML by replacing the learned scores with the dual solution of the restricted master problem, resulting in Dual-Weighted Sampling, a proposed lightweight alternative that requires no feature engineering or training. Within a unified CG and B&P framework that varies only the pricing oracle, Dual-Weighted Sampling outperforms MLPH, hand-crafted heuristics, and exact solvers on the established graph coloring benchmark in both runtime and solution quality. In particular, it remains competitive on the DIMACS random family, where MLPH was shown strongest in the original evaluation, while achieving more than a two-fold speedup in CG runtime on recursive-sparse and real-world graph families.
Figures & tables
Figure 1: Selected sampling budget K∗ for each pricer, size, and density.
Method
Rec. sparse
Random
Struct.
Real-world
All
Each cell: SGM runtime (s) / mean objective.
Column Generation
Dual
101 / 3.7
1062 / 66.4
473 / 14.0
412 / 18.3
384 / 28.0
Random
348 / 4.0
1258 / 66.8
863 / 15.0
845 / 22.8
747 / 29.1
MLPH
448 / 4.2
1633 / 76.8
1032 / 16.1
1137 / 26.1
953 / 33.0
ACO
632 / 4.3
1643 / 77.2
1028 / 16.4
1374 / 27.7
1084 / 33.5
Table 1: Comparison of pricing methods in CG and B&P on the Google benchmark instances.
Method
Recursive sparse
DIMACS random
Structured
Real-world
All
Dual
69.4%
82.6%
91.7%
91.1%
83.6%
Random
37.2%
78.1%
59.0%
83.7%
59.4%
MLPH
10.4%
26.5%
20.0%
21.1%
18.4%
ACO
4.3%
9.3%
4.4%
6.9%
5.8%
FastWClq
6.0%
19.9%
11.6%
16.1%
12.4%
Table 2: Heuristic-success rate per macro-family: the share of CG iterations on which the pricer returns at least one improving column.
Solved (%)
Heur. success (%)
CG SGM (s)
B&P SGM (s)
Family
Dual
MLPH
Dual
MLPH
Dual
MLPH
Dual
MLPH
Rec. sparse
71.7%
47.8%
69.4%
10.4%
101.4
448.0
5638.1
6077.6
Random
38.0%
26.0%
82.6%
26.5%
1062.4
1632.9
5971.2
6271.7
Struct.
60.0%
42.5%
91.7%
20.0%
473.4
1032.5
5719.8
6316.5
Real-world
61.5%
42.3%
91.1%
21.1%
411.7
1137.0
952.8
2095.4
All
56.8%
38.9%
83.6%
18.4%
384.1
953.1
4329.9
5222.4
Table 3: Per-family Dual vs. MLPH comparison on the Google benchmark. Bold marks the better value within each pair.
Figure 2: (left) CG runtime per family for Dual and MLPH. (right) Per-instance scatter of Dual vs. MLPH CG runtime (log scale; dashed line is y=x ); points below the diagonal mark instances where Dual converges faster than MLPH.
Combinatorial optimization finds the best feasible choices among discrete alternatives in routing, scheduling, graph problems, and resource allocation.
The Graph Coloring Problem (GCP) is NP-hard and DSATUR stands as one of the fastest heuristics for it despite producing colorings that typically use more colors than state-of-the-art coloring algorithms. We propose SSLD (Semidefinite Spectral Learning with DSATUR), which improves DSATUR by preprocessing a first good color class before letting DSATUR complete coloring the rest of the given graph. We obtain this color class from a Semidefinite Programming (SDP), similar to an SDP used to compute the Lovász theta number. To the best of our knowledge, SSLD is the first approach to improve DSATUR by preprocessing through fixed color classes. We evaluate SSLD against DSATUR and against a naive 1-color-class preprocessing algorithm on DIMACS instances, random graphs (Erdős--Rényi, Watts-Strogatz, Barabási--Albert), Frequency Assignment and Job Shop Scheduling instances. SSLD matches or beats DSATUR in almost every case across over 1600 benchmark instances, and out performs the naive GISD baseline, allows us to confirm the value brought by the SDP-guided choice of the first color class. This quality comes at a runtime cost of roughly 195 times slower that DSATUR, but demonstrating that SDP-guided preprocessing of a first color class is a direction for future improvements.
Combinatorial optimization problems near algorithmic phase transitions represent a fundamental challenge for both classical algorithms and machine learning approaches. Among them, graph coloring is a prototypical constraint satisfaction problem characterized by phase transitions that fragment the solution space into distinct clusters, making the search for valid solutions challenging. Here we introduce a physics-inspired neural framework that learns to solve large-scale graph coloring instances by combining graph neural networks with statistical-mechanics principles. Our approach integrates a planting-based supervised signal, symmetry-breaking regularization, and iterative noise-annealed neural dynamics to navigate complex solution landscapes. When the number of iterations scales quadratically with graph size, the learned solver successfully tackles increasingly challenging instances, even in regimes where finding valid solutions becomes particularly difficult, demonstrating its ability to extract meaningful information from the graph structure. The model generalizes from small training graphs to instances up to 20 times larger, demonstrating that neural architectures can learn scalable algorithmic strategies that remain effective in hard connectivity regions. These results establish a general framework for learning neural solvers that operate near fundamental phase boundaries in combinatorial optimization and inference.
Lorenzo Colantonio, Andrea Cacioppo, Federico Scarpati +3
Department of Physics, Sapienza University of Rome
Graph coloring, which entails assigning colors to nodes such that no adjacent nodes have the same color, is a fundamental combinatorial optimization problem. In general, however, finding a node coloring with no monochromatic edges given a fixed palette is NP-hard. This motivates learning-based methods that can learn to exploit recurring structure across instances to efficiently produce high-quality colorings. Crucially, the validity of a coloring is invariant to permutations of the colors, and we show that exploiting this symmetry reduces the size of the effective state space over which the model has to learn its policy. At the same time, the coloring algorithm must be able to break some symmetries, for example to assign different colors to two adjacent nodes belonging to the same automorphism orbit. In this paper, we introduce Scone, a model that uses a color-equivariant graph neural network to construct colorings sequentially, allowing information from previous assignments to propagate and break node symmetries. Scone achieves perfect solution quality with low inference times across several graph coloring tasks, including on sudoku_extreme and register allocations, and showcases generalization to graph families not encountered during training.