WorksComputer Science
When Simpler Beats Learned: Dual-Weighted Sampling vs. Machine Learning for the Pricing Subproblem in Graph Coloring
Abstract
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.
Introduction
Branch-and-price (B&P) is among the most effective exact methods for combinatorial optimization problems [2]. Its core idea is to solve the LP relaxation of the problem via column generation (CG) [18] at every node of a branch-and-bound search tree. The central computational challenge within CG is the pricing subproblem: at each iteration, the algorithm must identify a column with negative reduced cost, which, in the graph coloring setting, corresponds to solving a maximum weight independent set (MWIS) problem. Since exact MWIS is NP-hard, each pricing call is a potential bottleneck, and practical B&P implementations rely on heuristic pricing to remain tractable.
An active line of research related to heuristics aims to integrate machine learning (ML) into B&P, targeting branching decisions, node selection, and pricing-step acceleration [3, 12, 22, 8, 30, 15]. The common premise is that a learned model can capture structural regularities difficult to encode explicitly. In this vein, Shen et al. [26] propose a machine-learning pricing heuristic (MLPH) that follows a prediction–sampling paradigm: a linear support vector machine (SVM) trained on features derived from the dual solution and graph structure assigns each vertex a score reflecting its likelihood of belonging to a high-quality independent set, and candidate independent sets are then sampled from the induced distribution. MLPH represents the state of the art among heuristic pricing methods for graph coloring via B&P and serves as the primary baseline in our study.
We note, however, that the ML-based enhancements carry a non-negligible cost: this concerns collecting training data and feature engineering, while the trained models can degrade under distribution shift across instance families. Looking more closely at the prediction–sampling paradigm, we observe that the scoring rule need not be learned, and ask whether a simpler, training-free mechanism can provide equally good—or even better—guidance. Our central contribution is to take the dual solution of the restricted master problem (RMP) directly as the vertex scores, feeding them into the same sampling procedure that MLPH uses; we call this approach Dual-Weighted Sampling, abbreviated Dual. Notably, Dual uses only the RMP dual solution as input and requires no training and no feature engineering. Prior work comparing exact solvers and handcrafted heuristics has left this baseline unexamined.
Our paper fills this gap. We embed seven pricing oracles—Dual, MLPH, uniform Random sampling, ant colony optimization (ACO), fast weighted-clique local search (FastWClq), integer linear programming (ILP), and constraint programming (CP)—into a unified CG and B&P framework while holding all other components fixed, so that observed differences in performance can be attributed solely to the pricing step. The evaluation runs on the established Google graph coloring benchmark, with results analyzed separately across four structural macro-families. Our contributions are as follows:
Dual-Weighted Sampling attains the best aggregate performance among the evaluated pricing oracles. Within the unified framework, Dual achieves the lowest CG runtime and the lowest mean RMP objective on every macro-family of the Google benchmark. A face-to-face per-family analysis of Dual versus MLPH shows that Dual is consistently faster: the largest CG-runtime gains concentrate on the recursive-sparse (4.4×) and real-world (2.8×) families; on the DIMACS random family—where MLPH was reported strongest in the original evaluation—the gap shrinks to 1.5× but Dual still leads. The advantage, though in milder form, carries over to branch-and-price.
Learned scoring does not provide additional benefits. MLPH applies a trained SVM on top of a set of features derived from the dual solution and graph statistics; Dual drops that SVM and feeds the dual solution directly into the same sampling procedure. Since Dual outperforms MLPH on every benchmark family, we conclude that the additional features and SVM that constitute MLPH provide no benefit beyond using the dual solution itself.
The rest of the paper is organized as follows. § 2 reviews related work. § 3 formalizes the graph coloring problem, column generation, and the MWIS pricing subproblem. § 4 describes the seven pricing oracles and the unified CG and B&P framework. Experimental results and the per-family Dual–MLPH comparison are presented in § 5. § 6 concludes the work.
Related Work
Branch-and-price [21, 18, 16] is among the most effective exact methods for combinatorial optimization, and its methodology has been continually refined along several research directions. The most established approaches focus on stabilizing the restricted master problem [20], deriving tighter lower bounds on the chromatic number [14], developing more advantageous branching rules [23] and accelerating solving of the pricing subproblem [13]. We focus on the last direction shaped by an inherent speed–quality trade-off: exact pricing finds the column with the highest improving potential, but it is computationally expensive to use it; heuristic pricers can provide improving columns of a good quality at much cheaper cost, which makes them relevant for practical B&P implementations.
Building on the practical importance of heuristic pricing, machine learning has been introduced into CG and B&P at several decision points: learning branching policies [12], policies for selecting the most valuable columns from the generated pool [8], and learning to generate initial columns so as to reduce the number of CG iterations in the main loop [29]. Machine learning has also been applied to predict graph colorings directly [10, 9], though these methods lie outside the CG setting. Closest to our topic is the use of ML for heuristic solving of the pricing subproblem [26], which instantiates the prediction–sampling paradigm [19]: a scoring oracle produces a heatmap over variables, and a dedicated sampling procedure then draws from the induced distribution to produce a feasible solution. Such pipelines have been shown to achieve strong results on maximum independent set, maximum cut, and related problems [17, 1, 28]. The ML-based approach of Shen et al. is shown to outperform exact solvers and hand-crafted heuristics, making it the state-of-the-art for ML-enhanced pricing. The real contribution of ML to performance of CG and B&P is the topic of our work, and we use MLPH as the primary baseline.
A growing body of work questions whether the learned components genuinely earn the gains attributed to them. Böther et al. [5] find that the advantages of a GNN-based MIS solver come largely from the classical components around the learned model; Sun et al. [27] show that non-learned sampling matches ML-based approaches on standard MIS benchmarks, while Santana et al. [25] report a related finding for vehicle routing. We argue that the same perspective applies to solving graph coloring via B&P with ML-enhanced pricing: the RMP dual solution, computed at every CG iteration, already provides a natural non-learned heatmap fitting the same prediction–sampling paradigm that MLPH relies on. This raises the question of how much MLPH’s learned scorer adds over information that is already available — the main question we address in this paper.
Problem Formulation
Let be an undirected graph with vertex set and edge set . The graph coloring problem (GCP) consists in partitioning the vertex set into the minimum number of independent sets, also referred to as color classes. Recall that a subset of vertices is called an independent set if no two vertices in are adjacent in . Equivalently, the GCP seeks the smallest number of such subsets whose union covers .
A well-known way of encoding the GCP relies on a set covering formulation defined over the family of all maximal independent sets of the graph. The corresponding linear programming relaxation of the problem can be written as
Here, each variable stands for an independent set and indicates whether participates in the covering of . The constraints ensure that every vertex is contained in at least one selected independent set.
Since the number of maximal independent sets can grow exponentially with , an explicit enumeration of the entire family is computationally intractable. For this reason, the linear relaxation (1) is typically solved by means of column generation. In this approach, the optimization is initially performed on a restricted master problem that involves only a subset of independent sets, and additional ones are generated dynamically through the iterative solution of a pricing subproblem. By analogy with the way new variables enter the basis when a linear program is solved, the independent sets are called columns.
Let denote the dual values associated with the constraints (1) in an optimal solution of the RMP. Then for any independent set , the reduced cost of the associated variable is given by
The pricing step consists of identifying a column with a minimal reduced cost, which equivalently leads to the formulation of the maximum weight independent set (MWIS) problem:
According to the optimality conditions of linear programming [4], a column corresponding to an independent set can improve the current RMP solution if and only if its reduced cost is negative, equivalently, if and only if . If no independent set satisfies this condition, the current RMP solution is optimal for the linear relaxation of the GCP.
To obtain an integer optimal solution, the column generation is embedded within a branch-and-bound framework, yielding a branch-and-price (B&P) method. At each node of the search tree, the LP relaxation is solved by column generation; its objective value provides a lower bound on the chromatic number. Branching decisions then split the current node into children by imposing additional constraints—for instance, requiring that two vertices do or do not receive the same color—and column generation is restarted in each child under the imposed constraints. Feasible integer colorings discovered during the search provide upper bounds. The algorithm terminates when the lower and upper bounds coincide, proving optimality, or when a predefined computational limit is reached.
Algorithm 1 Prediction–sampling heuristic pricing
Require: Graph , dual solution , scoring procedure , sampling budget , threshold
Ensure: Set of independent sets with negative reduced cost
Compute scores for all
for to do
while do
if then
Choose uniformly at random
else
Choose with probability
end if
end while
if then
end if
end for
return $C
Solution Methodology
In this section we first formalize the prediction–sampling paradigm shared between the Dual and MLPH heuristic pricers (Algorithm 1), and then proceed with the description of every pricing method we compare against, as well as the surrounding CG/B&P framework.
State-of-the-art heuristic pricing strategies for the GCP follow a two-stage prediction–sampling paradigm [26]. In the first stage, a scoring procedure assigns each vertex a score , derived from the graph and the dual solution of the restricted master problem (RMP), reflecting how likely is to belong to a high-quality independent set. In the second stage, a sampling procedure uses these scores to construct candidate independent sets greedily. Given a score vector , the construction is repeated times: starting from the candidate set and , vertices are selected iteratively—if the total score of remaining candidates falls below a numerical-stability threshold , a vertex is chosen uniformly at random, otherwise sampled with probability proportional to ; the chosen vertex is added to , and both it and its neighbours are removed from to preserve independence. After all sets are generated, those with negative reduced cost (Eq. (2)) are added to the RMP. We adopt this paradigm with a fixed sampling procedure, varying only the scoring rule.
Pricing Methods
We consider seven pricing methods organized into three groups. The approaches in the first group—Dual, MLPH, and Random—share the prediction–sampling skeleton of Algorithm 1 and differ only in the scoring rule. Two other approaches—ACO and FastWClq—replace prediction–sampling by a direct search over the dual-weighted graph. The remaining two—ILP and CP—solve the MWIS subproblem (3) to optimality.
The proposed Dual approach uses the RMP dual solution directly as the vertex score vector, ; since the duals are produced by the RMP solve at every CG iteration anyway, the scoring step adds no extra computation. MLPH [26] uses a learned scorer: each vertex is described by a feature vector derived from the dual solution and the graph (the dual weight , the degree , a non-neighbourhood bound , and rank statistics over random IS samples), and a linear SVM outputs scores through a logistic function. We use the original C++ implementation of Shen et al., so any runtime difference between MLPH and the other oracles cannot be attributed to a slower or weaker reproduction of the learned model. Random assigns the uniform score to every vertex and uses it directly for sampling, similarly to the Dual approach.
The two methods of this (direct-search) group are included because Shen et al. [26] benchmark MLPH against them in the original paper. ACO [11] is a dynamic-pheromone ant-colony metaheuristic in which pheromone trails over vertices are reinforced by every IS produced and decay each iteration; up to best independent sets along the trajectory are returned. FastWClq [7] applies the Cai–Lin local-search heuristic for the maximum-weight clique problem to the complement graph (since MWIS on is MaxClique on ); restarts with offset seeds yield distinct candidate independent sets. For both methods we use the C++ implementation bundled with the MLPH release of Shen et al. [26].
We also include two exact MWIS solvers as a reference. Exact ILP formulates problem (3) as an integer linear program in Gurobi and extracts up to independent sets ranked by most-negative reduced cost in a single run via the solution-pool mechanism. The Gurobi run explicitly enables the standard MIP-heuristics suite (RINS, RENS-style restarts, the feasibility pump, and no-relaxation primal heuristics), so the comparison implicitly covers heuristics of this type as well. Exact CP encodes problem (3) as a feasibility problem in IBM CP Optimizer: vertex variables subject to edge exclusion and a per-call cutoff ; up to feasible (improving) independent sets are enumerated within a single solver session. The two exact pricers complement each other in the kind of column they prefer: ILP, configured for -best-by-objective solutions, returns the most negative-reduced-cost columns, whereas CP, run as pure satisfaction, returns the first improving columns it can certify, irrespective of objective margin.
Column Generation and Branch-and-Price
At each CG iteration, the chosen pricer is invoked on the current dual solution and adds up to improving columns to the RMP; if none are returned, a single-column exact MWIS fallback is invoked — the same Gurobi MWIS formulation as Exact ILP but tuned to stop at the first improving column (no extended MIP-heuristics suite, no -best solution pool) — and the procedure terminates when both stages fail to find an improving column. Integer solutions are obtained by wrapping CG in a best-first branch-and-price tree (open nodes ordered by their LP bound) with Ryan–Foster branching [24, 21] and a DSATUR heuristic for computing the upper bound [6]; a Lagrangian fallback bound is used when CG at a node times out. The full pseudocode (Algorithms 2 and 3) and the derivation of the Lagrangian bound are given in Appendix § 7. We also note that across all pricing methods, only the pricer itself varies, while all the other components (branching, upper bounding, pruning, and Lagrangian-bound computation) are identical and deliberately kept at a base level. By foregoing the further refinements surveyed in § 2 (RMP stabilization, alternative branching schemes, decision-diagram formulations, tighter lower bounds), we ensure that observed performance differences must be attributed to the pricing component alone.
Experimental Evaluation
In this section we evaluate the compared pricing approaches within a unified CG and B&P framework implemented in Python 3.11 using Gurobi 13 and IBM CP Optimizer.1 We first describe the experimental setup; § 5.1 then reports an ablation on the sampling budget and identifies the value at which each method achieves its best performance. § 5.2 compares end-to-end CG and B&P performance on the benchmark of Shen et al. [26].
Benchmarks. We use two benchmark families. The first is the Google graph coloring benchmark suite,2 the same dataset used by Shen et al. [26]. It contains 81 graphs of diverse sizes and densities and serves as the primary benchmark for our comparison. To study how pricing method performance depends on graph structure, we group the instances into four macro-families: Recursive sparse—Mycielski-style constructions (Mycielski, Insertions, FullIns) designed to have high chromatic number despite few edges (23 instances); DIMACS random—uniform, geometric, planted-, and recursive random graphs from the DSJC, DSJR, flat, and -series of the DIMACS coloring challenge (25 instances); Structured combinatorial—graphs from combinatorial constructions with a planned chromatic number (Leighton le450, Queens; 20 instances); and Real-world—instances from compiler register allocation (GPIA), school timetabling, wireless access points (WAP), and the MUG family of unsatisfiable colorings (13 instances). The second benchmark is a collection of Erdős–Rényi random graphs with and . Each pair is instantiated with 10 random seeds, for 250 instances in total. These graphs form a parametric grid over size and density that we use to calibrate the sampling budget for each pricing method before evaluating it on the Google benchmark.
Framework and evaluation procedure. All pricing approaches are evaluated within the CG and B&P framework of § 3 and § 4. Our setup follows Shen et al. [26] with two changes that isolate the effect of the pricing oracle. First, we initialize the RMP with random independent sets (plus singleton columns for any uncovered vertices), rather than , so that the initial RMP does not mask the effect of the pricer. Second, if the exact fallback is triggered after a heuristic pricing failure, it stops at the first improving column to keep its runtime impact small. In our setting, each pricing call is limited to 60 s. Total time limits are 3 600 s for CG and 7 200 s for B&P. The -ablation uses seed 39 with a 600 s limit per run. Downstream CG and B&P experiments are repeated over two independent seeds (42–43). All experiments are CPU-only and run on a single Linux server with x86-64 CPUs and at least 64 GB of RAM.
Sensitivity to Sampling Budget
The sampling budget controls how many candidate independent sets are generated per pricing call. For the prediction–sampling pricers (Dual, MLPH, Random), is the number of samples drawn by the sampling procedure. For ACO and FastWClq, caps the number of independent sets returned by the search. For the exact oracles (ILP, CP), caps the number of feasible solutions extracted per call. We examine how sensitive each method is to and select a value per (method, size, density) triple for use in all subsequent experiments. We use the full Erdős–Rényi dataset of 250 instances. For each method and each , we run CG (without branching) on every instance with a 600 s time limit, for 8 750 runs in total. The 600 s limit keeps the ablation in the heuristic-only regime, so that is not affected by exact-fallback calls, which are rare in early iterations. Results are averaged over the 10 instances in each cell. The resulting grid (Figure 1) fixes separately for each pricer, size, and density — and shows how varies across methods and graph categories.

Figure 1. Selected sampling budget for each pricer, size, and density.
Figure 1 demonstrates that the methods exhibit two types of behavior with respect to their best : Dual and Random prefer the largest budget (mostly ), while MLPH, ACO, FastWClq, ILP, and CP prefer the smallest ( dominates). The MLPH–Dual contrast is the most informative one: both methods use the same sampling procedure (Algorithm 1) and differ only in the score vector fed into it. The small optimal for MLPH is consistent with the SVM producing a peaked score distribution: once the few high-score vertices have been sampled, more draws yield little diversity. The scores used by Dual are spread more evenly across vertices, so each new sample has in general a higher chance to land in a different region of the graph and larger keeps adding new columns. Random has the flattest distribution and lands at for the same reason. For the search-based oracles (ACO, FastWClq, ILP, CP), plays a different role: it caps the number of independent sets returned per call, not the size of a sampling distribution. Their preference for small is consistent with finding a few good columns early within each call, after which additional search time within the same per-call budget tends to bring little extra value.
Column Generation and Branch-and-Price Results
We now compare the pricing approaches on the Google graph coloring benchmark within the CG and B&P framework. For each benchmark instance, we set the per-method in three steps: (i) compute the instance’s size and edge density ; (ii) find the ER grid cell in closest to in Euclidean distance after normalizing each axis by its grid maximum; (iii) for each pricing method, use the that the ablation selected for the resulting (size, density) cell. Table 1 reports the main CG and B&P metrics for each pricing method (the upper part covers CG and the lower part covers B&P). Each cell reports two numbers: the shifted geometric mean (SGM, shift = 1) of the runtime in seconds (SGM is less sensitive to outliers than the arithmetic mean), and the mean objective value (respectively, the final RMP objective for CG and the best integer incumbent for B&P).
| 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 |
| FastWClq | 512 / 4.2 | 1780 / 77.3 | 1266 / 16.4 | 1374 / 29.6 | 1102 / 33.8 |
| Exact ILP | 986 / 4.1 | 2434 / 74.5 | 1190 / 14.6 | 2249 / 21.6 | 1559 / 31.2 |
| Exact CP | 2181 / 5.6 | 1935 / 80.9 | 1321 / 18.1 | 3400 / 32.3 | 1994 / 36.2 |
| Branch-and-Price | |||||
| Each cell: SGM runtime (s) / mean objective / mean nodes. | |||||
| Dual | 5638 / 6.0 / 1004 | 5971 / 79.0 / 27 | 5720 / 16.8 / 65 | 953 / 20.6 / 4 | 4330 / 33.5 / 310 |
| Random | 5877 / 6.0 / 653 | 5570 / 82.1 / 24 | 5990 / 17.0 / 67 | 1836 / 20.7 / 3 | 4819 / 34.6 / 210 |
| MLPH | 6078 / 6.0 / 466 | 6272 / 80.6 / 30 | 6316 / 16.8 / 71 | 2095 / 20.7 / 3 | 5222 / 34.1 / 160 |
| ACO | 6004 / 6.0 / 463 | 6494 / 80.5 / 33 | 6475 / 16.6 / 80 | 2442 / 20.6 / 3 | 5424 / 34.0 / 162 |
| FastWClq | 6120 / 6.0 / 394 | 6671 / 80.4 / 32 | 6764 / 16.8 / 55 | 2331 / 20.7 / 2 | 5518 / 34.0 / 136 |
| Exact ILP | 6889 / 6.0 / 116 | 6861 / 82.3 / 12 | 6637 / 16.9 / 45 | 3495 / 20.7 / 2 | 6114 / 34.6 / 48 |
| Exact CP | 7200 / 6.0 / 46 | 6764 / 82.1 / 13 | 7200 / 16.9 / 20 | 6113 / 20.8 / 2 | 6879 / 34.5 / 22 |
| 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 1. Comparison of pricing methods in CG and B&P on the Google benchmark instances.
The CG results clearly show that the proposed Dual approach attains the lowest runtime — from to faster than the baselines — and it is also the best method on every macro-family with respect to the mean objective value. Among the rest, Random ranks second despite using no learned or dual information, followed by MLPH and the search-based heuristics (ACO, FastWClq) with comparable runtimes; the exact oracles (ILP, CP) are the slowest, since the per-call cost of solving MWIS to optimality outweighs the benefits of returning multiple improving columns with the highest potential.
Dual also achieves the best aggregate B&P runtime and, in the per-family breakdown, wins three out of four families both by runtime and by mean objective. Random ranks second, followed by MLPH, ACO, and FastWClq with comparable runtimes; the exact pricing approaches are uniformly the slowest. The CG advantage of Dual carries over to B&P but in weaker form — the –
gap at the LP level shrinks to about – — because the surrounding pipeline (branching, the random initial column pool, and most importantly the DSATUR upper bound, which efficiently produces good upper bound for most instances independently of the pricer) also contributes. The largest benefit of Dual is on real-world instances, where the surrounding pipeline interferes the least with the pricing signal. Two exceptions, where Dual approach does not lead, deserve mention. On the structured combinatorial family, ACO achieves a slightly better mean incumbent than Dual and explores more search-tree nodes, having potentially better chances to achieve better solution quality; however, the advantage is moderate. On the random family, Random approach achieves a lower mean runtime by solving the smaller instances faster, yet Dual still produces the lowest mean objective on this family. Notably, the B&P performance reflects variability introduced by the surrounding pipeline rather than purely the properties of the pricer itself — which is exactly why we report both CG and B&P numbers: CG isolates the pricing component cleanly, while B&P combines it with downstream pipeline noise.
A complementary analysis is presented in Table 2, reporting the share of CG iterations on which the pricer returns at least one improving column without falling back to the exact MWIS solver. The purpose is to assess the efficiency of each pricing method in generating useful columns. As shown in the table, Dual achieves the highest rate on every family; Random ranks second everywhere, substantially above MLPH. Two points are worth noting about this analysis. First, the metric counts whether any improving column is returned, not the magnitude of its reduced cost: MLPH can concentrate on a few high-value columns early and let the master converge before pricers with more diffuse scores yield equivalent progress. Second, ACO and FastWClq succeed least often (5–12%), yet ACO produces the best B&P incumbent on the structured combinatorial family (Table 1, lower section)—per-iteration pricing efficiency therefore does not always translate directly into B&P solution quality, reinforcing the framework-level point that B&P numbers reflect pricing plus downstream pipeline noise rather than pricing alone.
Dual vs. MLPH across graph families
Table 1 already shows the per-family aggregates for all seven oracles; here we zoom in on the Dual vs. MLPH comparison, which is the central methodological question of the paper. Table 3 reports four per-family metrics side by side: Solved — the share of CG runs that converge within the time limit; Heur. success — the heuristic-success rate (defined for Table 2); and SGM runtimes for CG and B&P. Figure 2 provides the corresponding visualization.
| Family | Solved (%) Dual | Solved (%) MLPH | Heur. success (%) Dual | Heur. success (%) MLPH | CG SGM (s) Dual | CG SGM (s) MLPH | B&P SGM (s) Dual | B&P SGM (s) 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 ); points below the diagonal mark instances where Dual converges faster than MLPH.
As Table 3 shows, Dual outperforms MLPH on every family. The largest gain is on the recursive-sparse family (over CG speedup) and on the real-world instances (), where the Myciel-ski/Insertions graphs and the register-allocation/timetabling instances are structurally very different. from the random graphs Shen et al. used to train MLPH. The gap shrinks to about 2× on the structured combinatorial family and to ∼ 1.5× on the DIMACS random family, where MLPH was reported strongest in the original evaluation [26], but Dual still leads.
Conclusion
In this paper, we focused on the role of machine learning in heuristic pricing for branch-and-price applied to graph coloring. The graph coloring problem is NP-hard, and branch-and-price over its set-covering formulation is among the most effective exact approaches to it. Each iteration of column generation calls a pricing subproblem—a maximum weight independent set under the current dual prices—which is itself NP-hard and is typically the runtime bottleneck. The state-of-the-art heuristic response is MLPH [26], which follows a prediction–sampling paradigm: a learned SVM scores each vertex before a randomized sampling procedure draws candidate independent sets. Starting from the observation that this paradigm requires a scoring rule but not necessarily a learned one, we proposed Dual-Weighted Sampling: feeding the RMP dual solution directly into the sampling procedure as the per-vertex score vector, bypassing both the learned model and its feature engineering.
Within a unified CG and B&P framework that holds all components except pricing fixed, Dual-Weighted Sampling outperforms MLPH, the exact ILP and CP MWIS solvers, and the combinatorial heuristics ACO and FastWClq on the Google graph coloring benchmark. The lead over MLPH is largest on graph families structurally distant from the random graphs used to train it (recursive-sparse and real-world instances). Methodologically, this result challenges a common assumption: that capturing useful structure in the pricing step requires a learned model. In MLPH, the master-problem dual solution is the central feature of the learned scorer—and one that is already informative on its own. Adding a learned mapping on top therefore does not turn a weak input into a strong one; it can instead distort the existing information through distribution shift. Whenever such a dual is available, training-free dual scoring should be tried as a baseline before more complex learning pipelines are pursued.
Algorithm 2 Column generation for GCP
Require: Graph , initial column pool , pricing method , sampling budget , threshold , time limit
Ensure: Final RMP objective and dual vector
while elapsed time do
{LP/MLPH: Alg. 1; ILP/CP: exact multi-column solver}
if then
{single-column exact fallback}
if then
break {no improving column found}
end if
else
end if
end while
return
CG and B&P framework details
This appendix provides the full description of the column-generation and branch-and-price scaffold used in our experiments; the main text gives only a high-level outline.
CG iteration. Let denote the current column pool of the RMP. At the root node, is initialised with randomly sampled independent sets, with singleton columns added for any uncovered vertices to ensure feasibility; at non-root nodes, is inherited from the parent and filtered to remove columns violating the active branching constraints. At each CG iteration, the chosen pricer is invoked: prediction–sampling pricers run Algorithm 1, ACO/FastWClq run their respective combinatorial searches, and the exact pricers (ILP, CP) enumerate up to improving independent sets within a single Gurobi or CP Optimizer solver session. If no improving column is found, a single-column exact MWIS solver is called as a fallback. Improving columns are added to and the RMP is re-solved; the procedure terminates when neither the chosen pricer nor the fallback finds an improving column. The complete algorithm is given in Algorithm 2.
B&P scaffold. Optimal integer solutions of the GCP are obtained by embedding the column generation procedure within a branch-and-price framework. The tree is explored in best-first order: open nodes are kept in a priority queue keyed by the LP bound at the parent, and the node with the smallest bound is dequeued first. The search runs subject to a time limit and a node limit . Branching follows the Ryan–Foster rule [24, 21]: when the LP relaxation at a node yields a non-integer solution, the column with value closest to 0.5 is selected and a non-adjacent vertex pair in it spawns two children—a same-color child (vertices merged via Union–Find, columns containing exactly one of them removed) and a diff-color child (edge added to ). Upper bounds are obtained by applying the DSATUR greedy heuristic [6] to the contracted graph at every node; this is independent of the pricer. A node is pruned when (since the chromatic number is integer-valued) or when its LP relaxation is infeasible. When CG at a node does not converge within the time limit, the LP bound is replaced by the Lagrangian bound , where is the last dual solution and is the LP-MWIS optimum under the current branching constraints; the bound is valid because , for every feasible IS . The complete branch-and-price algorithm is given in Algorithm 3.
Algorithm 3 Branch-and-price for GCP
Require: Graph , pricing method , time limit , node limit
Ensure: Best feasible coloring value
{initial upper bound}
root initial column pool
; {Algorithm 2}
if then
return
end if
; {priority queue keyed by }
while and elapsed time and do
; {open node with smallest LP bound}
if then
continue {prune by bound}
end if
{most fractional column}
for do
columns inherited from and filtered by
if and then
else if then
end if
end for
end while
return
References
- [1]Sungsoo Ahn, Jaehyung Shin, Andre Hottung, Kevin Tierney, et al. Learning what to defer for maximum independent sets. In Proceedings of the 37th International Conference on Machine Learning, 2020.arxiv.org/abs/2006.09607
- [2]Cynthia Barnhart, Ellis L. Johnson, George L. Nemhauser, Martin W. P. Savelsbergh, and Pamela H. Vance. Branch-and-price: Column generation for solving huge integer programs. Operations Research, 46(3):316–329, 1998. doi: 10.1287/opre.46.3.316.DOI
- [3]Yoshua Bengio, Andrea Lodi, and Antoine Prouvost. Machine learning for combinatorial optimization: A methodological tour d’horizon. European Journal of Operational Research, 290(2):405–421, April 2021. ISSN 0377-2217. doi: 10.1016/j.ejor.2020.07.063. URL http://dx.doi.org/10.1016/j.ejor.2020.07.063.
- [4]Dimitris Bertsimas and John N. Tsitsiklis. Introduction to Linear Optimization. Athena Scientific, Belmont, MA, 1997.
- [5]Henning Böther, Martin Lamm, Marc Schmidt, and Martin Skutella. What is wrong with deep learning in tree search for the maximum independent set problem? In Proceedings of the International Conference on Learning Representations, 2022.
- [6]Daniel Brélaz. New methods to color the vertices of a graph. Communications of the ACM, 22 (4):251–256, 1979. doi: 10.1145/359094.359101.DOI
- [7]Shaowei Cai and Jinkun Lin. Fast solving maximum weight clique problem in massive graphs. In Proceedings of the 25th International Joint Conference on Artificial Intelligence (IJCAI), pages 568–574, 2016.
- [8]Cheng Chi, Amine Mohamed Aboussalah, Elias B. Khalil, Juyoung Wang, and Zoha Sherkat-Masoumi. A deep reinforcement learning framework for column generation. In Advances in Neural Information Processing Systems, volume 35, 2022.
- [9]Chase Cummins and Richard Veras. Reinforcement learning for graph coloring: Understanding the power and limits of non-label invariant representations. CoRR, abs/2401.12470, 2024. URL https://arxiv.org/abs/2401.12470.
- [10]Dibyendu Das, Shahid Asghar Ahmad, and Kumar Venkataramanan. Deep learning-based hybrid graph-coloring algorithm for register allocation. CoRR, abs/1912.03700, 2019. URL https://arxiv.org/abs/1912.03700.
- [11]Marco Dorigo, Vittorio Maniezzo, and Alberto Colorni. Ant system: Optimization by a colony of cooperating agents. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 26(1):29–41, 1996. doi: 10.1109/3477.484436.DOI
- [12]Maxime Gasse, Didier Chételat, Nicola Ferroni, Laurent Charlin, and Andrea Lodi. Exact combinatorial optimization with graph convolutional neural networks. In Advances in Neural Information Processing Systems, volume 32, 2019. URL https://arxiv.org/abs/1906.01629.
- [13]Stefano Gualandi and Federico Malucelli. Exact solution of graph coloring problems via constraint programming and column generation. INFORMS Journal on Computing, 24(1):81–100, 2012. doi: 10.1287/ijoc.1110.0436.
- [14]Stephan Held, William Cook, and Edward C. Sewell. Maximum-weight stable sets and safe lower bounds for graph coloring. Mathematical Programming Computation, 4(4):363–381, May 2012. ISSN 1867-2957. doi: 10.1007/s12532-012-0042-3. URL http://dx.doi.org/10.1007/s12532-012-0042-3.
- [15]Pavlína Koutecká, Přemysl Šůcha, Jan Hůla, and Broos Maenhout. A machine learning approach to rank pricing problems in branch-and-price. European Journal of Operational Research, 320(2):328–342, January 2025. ISSN 0377-2217. doi: 10.1016/j.ejor.2024.07.029. URL http://dx.doi.org/10.1016/j.ejor.2024.07.029.
- [16]R. M. R. Lewis. Guide to Graph Colouring: Algorithms and Applications. Texts in Computer Science. Springer International Publishing, 2021. ISBN 9783030810542. doi: 10.1007/978-3-030-81054-2. URL http://dx.doi.org/10.1007/978-3-030-81054-2.
- [17]Zhenqiu Li, Qi Chen, and Vladlen Koltun. Combinatorial optimization with graph convolutional networks and guided tree search. In Advances in Neural Information Processing Systems, 2018.arxiv.org/abs/1810.10659
- [18]Marco E. Lübbecke and Jacques Desrosiers. Selected topics in column generation. Operations Research, 53(6):1007–1023, 2005. doi: 10.1287/opre.1050.0234.DOI
- [19]Jianhao Ma, Zhewei Pan, Yujia Li, Junchi Yan, and Chao Li. ML4CO-Bench-101: Benchmark machine learning for classic combinatorial problems on graphs. Advances in Neural Information Processing Systems, 2024. Datasets and Benchmarks Track.DOI
- [20]Enrico Malaguti, Michele Monaci, and Paolo Toth. An exact approach for the vertex coloring problem. Discrete Optimization, 8(2):174–190, May 2011. ISSN 1572-5286. doi: 10.1016/j.disopt.2010.07.005. URL http://dx.doi.org/10.1016/j.disopt.2010.07.005.
- [21]Anuj Mehrotra and Michael A. Trick. A column generation approach for graph coloring. INFORMS Journal on Computing, 8(4):344–354, 1996. doi: 10.1287/ijoc.8.4.344.DOI
- [22]Mouad Morabit, Guy Desaulniers, and Andrea Lodi. Machine-learning-based column selection for column generation. Transportation Science, 55(4):815–831, 2021. doi: 10.1287/trsc.2021.1045.DOI
- [23]David R. Morrison, Jason J. Sauppe, Edward C. Sewell, and Sheldon H. Jacobson. A wide branching strategy for the graph coloring problem. INFORMS Journal on Computing, 26 (4):704–717, November 2014. ISSN 1525-5528. doi: 10.1287/ijoc.2014.0593. URL http://dx.doi.org/10.1287/ijoc.2014.0593.
- [24]David M. Ryan and Brian A. Foster. An integer programming approach to scheduling. Computer Scheduling of Public Transport, pages 269–280, 1981.
- [25]Ítalo Santana, Andrea Lodi, and Thibaut Vidal. Neural networks for local search and crossover in vehicle routing: A possible overkill? In Andre A. Cire, editor, Integration of Constraint Programming, Artificial Intelligence, and Operations Research, pages 184–199, Cham, 2023. Springer Nature Switzerland. ISBN 978-3-031-33271-5.
- [26]Yunzhuang Shen, Yuan Sun, Xiaodong Li, Andrew Eberhard, and Andreas Ernst. Enhancing column generation by a machine-learning-based pricing heuristic for graph coloring. Proceedings of the AAAI Conference on Artificial Intelligence, 36(9):9926–9934, June 2022. ISSN 2159-5399. doi: 10.1609/aaai.v36i9.21230.DOI
- [27]Haoran Sun, Katayoon Goshvadi, Azade Nova, Dale Schuurmans, and Hanjun Dai. Revisiting sampling for combinatorial optimization. In Proceedings of the 40th International Conference on Machine Learning, 2023.
- [28]Yiding Sun, Kai Li, Chengrun Jiang, et al. COExpander: Adaptive solution expansion for combinatorial optimization with neural guidance. In Proceedings of the 41st International Conference on Machine Learning, 2024.
- [29]Yuan Sun, Andreas T. Ernst, Xiaodong Li, and Jake Weiner. Learning to generate columns with application to vertex coloring. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=JHW30A4DXt0.
- [30]Roman Václavík, Antonín Novák, Přemysl Šůcha, and Zdeněk Hanzálek. Accelerating the branch-and-price algorithm using machine learning. European Journal of Operational Research, 271(3):1055–1069, December 2018. ISSN 0377-2217. doi: 10.1016/j.ejor.2018.05.046. URL http://dx.doi.org/10.1016/j.ejor.2018.05.046.