One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

Learning Early-to-Final Solution Consistency for MILP Acceleration

arXiv:2608.199532026-08-21

Teaching AI to judge which early guesses in optimization problems will stay correct, to speed up solvers

Mixed-Integer Linear Programming (MILP) underlies many industrial decisions but hard instances can take solvers a very long time. This paper shows that solutions found early by a solver already agree with the final solution on most variables, and proposes EnCore, which predicts whether each early variable assignment will persist rather than predicting a full solution from scratch. With Gurobi, this cut the gap to the best-known solution by 56.9% on average, and the trained model still cut the gap by 36.4% when transferred without retraining to a different solver, SCIP.

What they did

  1. MILP problems require some variables to be integers, and hard instances remain difficult even for advanced solvers like Gurobi and SCIP within practical time limits.
  2. Prior learning-based acceleration methods tried to predict a complete solution directly from the problem's static structure, which is a very hard learning task.
  3. The authors found that a solution obtained early in a solver's run already matches the final full-budget solution on most variables (e.g., 95.63% agreement on workload apportionment instances).
  4. Instead of predicting the full solution, EnCore predicts, for each variable, whether its early value will remain unchanged in the final solution — an easier task that lets the search focus effort on the smaller set of unresolved variables.
  5. At inference time, predictions from several early candidate solutions are combined (ensembled) for robustness, and on combinatorial auction instances the method fully closed the gap to the best-known solution under Gurobi.
Figure 1: Evolution of the primal gap over the solving process with Gurobi (left) and SCIP (right) on set covering instances. The time axis is scaled to highlight the early phase −200​s. Results on other problem classes are provided in App. A.
Figure 1: Evolution of the primal gap over the solving process with Gurobi (left) and SCIP (right) on set covering instances. The time axis is scaled to highlight the early phase −200​s. Results on other problem classes are provided in App. A.
Table 1: Main results with Gurobi. Obj is the final feasible objective and Gap is the absolute gap to the in-study BKS. Arrows indicate the preferred objective direction; bold marks the best learning-based result or a positive gap reduction.
CA ↑ (BKS 98627.99)SC ↓ (BKS 123.37)WA ↓ (BKS 706.86)IP ↓ (BKS 11.72)
MethodObjGapObjGapObjGapObjGap
Gurobi (3600s)98448.84179.15123.370.00706.860.0011.720.00
Gurobi (1000s)97311.691316.30123.640.27707.360.5013.772.05
ND94340.634287.36123.620.25707.100.2414.152.43
PS97906.20721.79123.600.23707.090.2312.080.36
Apollo98083.79544.20123.560.19707.060.2011.970.25
EnCore-ND97847.92780.70123.580.21707.030.1713.471.75
EnCore-PS98627.990.00123.500.13706.980.1211.950.23
EnCore-Apollo98491.40136.59123.570.20707.030.1711.820.10
Best Gap Reduction721.79100.0%0.1043.5%0.1147.8%0.1560.0%
Figure 2: Distributions of flipped integer variables between early and full-budget solutions. ‘CA’ and ‘WA’ stand for combinatorial auction and workload apportionment, respectively.
Figure 2: Distributions of flipped integer variables between early and full-budget solutions. ‘CA’ and ‘WA’ stand for combinatorial auction and workload apportionment, respectively.
Table 2: Zero-shot transfer from Gurobi to SCIP under a 1,000-second total budget. Bold marks the best result. The BKS is presented in Table 1.
MethodCA ↑SC ↓WA ↓IP ↓
SCIP(1000s)94701.91127.99709.0623.49
ND94342.12125.14707.3318.19
PS97097.46125.03708.4917.02
Apollo97335.92124.97708.4316.21
EnCore-ND96641.43124.75707.2414.91
EnCore-PS97707.64125.04708.2216.13
EnCore-Apollo97293.51125.38707.9117.39
Best Gap Reduction53.6%22.0%33.1%50.7%
(b) Gurobi on WA
(b) Gurobi on WA
Table 3: Ablation study of key components under the Predict-and-Search pipeline. Average objective values are reported.
VariantCA ↑SC ↓WA ↓IP ↓
Predict-and-Search97906.20123.60707.0912.08
+ early solution as feature98318.22123.55707.0412.17
+ consistency prediction target98616.65123.53706.9911.90
+ early-solution ensemble98627.99123.50706.9811.95
(c) SCIP on CA
(c) SCIP on CA
Table 4: Graph features for input.
IndexFeatureDescription
Variable-node features
0ObjectiveNormalized objective coefficient.
1Variable coefficientAverage variable coefficient across all constraints.
2Variable degreeDegree of the variable node in the bipartite graph.
3Maximum coefficientMaximum variable coefficient across all constraints.
4Minimum coefficientMinimum variable coefficient across all constraints.
5Variable typeIndicator of whether the variable is integer.
6–17Position embeddingBinary encoding of the variable’s order among all variables.
18Early-solution valueValue of the variable in the early solution collected as described in Appendix C.
Constraint-node features
0Constraint coefficientAverage of the nonzero coefficients in the constraint.
1Constraint degreeDegree of the constraint node in the bipartite graph.
2BiasNormalized right-hand side of the constraint.
3SenseSense of the constraint.
Edge features
0CoefficientCoefficient connecting the constraint and variable nodes.
(d) SCIP on WA
(d) SCIP on WA
Table 5: Statistical information of the benchmark instances.
CASCIPWA
Constraint Number2590.33300019564306
Variable Number15005000108361000
Binary Variables Number1500500010501000
Continuous Variables Number003360000
Integer Variables Number0000
Figure 3: Average primal gap to the BKS versus time under a 1,000-second time limit. EnCore starts after the early solution collection. Each curve is shown only after all test instances have obtained a feasible solution.
Figure 3: Average primal gap to the BKS versus time under a 1,000-second time limit. EnCore starts after the early solution collection. Each curve is shown only after all test instances have obtained a feasible solution.
Table 6: Zero-shot cross-family transfer to the MIPLIB IIS subset. Mean Obj is the mean of the per-instance final objectives. Feas. reports the number of instances with a finite feasible objective. † means computed only over its three feasible instances.
PredictorDownstreamMean Obj ↓Feas.
OriginNeural Diving243.00†3/11
EnCoreNeural Diving173.4511/11
OriginPredict-and-Search172.0011/11
EnCorePredict-and-Search171.7311/11
OriginApollo-MILP172.9111/11
EnCoreApollo-MILP172.8211/11
Figure 4: Average final objective of EnCore-PS under different maximum early-solution collection times.
Figure 4: Average final objective of EnCore-PS under different maximum early-solution collection times.
Table 7: Final objectives on the eleven MIPLIB IIS instances. All instances are minimization problems. Bold marks the lowest objective in each row; a dash indicates that no finite feasible solution was found.
NDPSApollo-MILP
InstanceGCNOursGCNOursGCNOurs
ex1010-pi242.00237.00236.00241.00238.00
fast0507174.00174.00174.00174.00174.00
glass-sc23.0023.0023.0023.0023.00
iis-glass-cov21.0021.0021.0021.0021.00
iis-hc-cov17.0017.0017.0017.0017.00
ramos3235.00229.00226.00231.00233.00
scpj4scip132.00132.00132.00132.00132.00132.00
scpk4328.00330.00326.00327.00330.00330.00
scpl4269.00269.00269.00269.00269.00269.00
seymour423.00423.00423.00423.00423.00
v150d30-2hopcds42.0041.0041.0041.0041.00
(b) SC
(b) SC
Table 8: The partial solution size parameters (k0,k1) and neighborhood parameter Δ.
BenchmarkCASCIPWA
PS+Gurobi(600,0,20)(2000,0,100)(400,5,10)(0,500,10)
PS+SCIP(400,0,20)(2000,0,100)(400,5,1)(0,600,5)
(d) IP
(d) IP
Table 9: Hyperparameters (k0(i),k1(i),Δ(i)) for Apollo-MILP.
CASCIPWA
Iteration 1(400,0,60)(1000,0,200)(100,20,50)(20,200,100)
Iteration 2(200,0,30)(500,0,100)(40,15,20)(10,100,50)
Iteration 3(100,0,15)(250,0,50)(20,15,10)(10,5,5)
Iteration 4(50,0,10)(10,0,5)(5,50,30)(1,10,5)
(b) SC
(b) SC

Why it matters

MILP optimization drives real-world decisions like logistics, production planning, and network design, and this method can be layered onto existing AI-based solvers and transferred across different solver software without retraining, which matters for practical deployment. Reframing the learning task from 'build the whole answer' to 'judge what to trust' also offers a genuinely different and lower-difficulty way to approach the problem.

(d) IP
(d) IP

Terms in this paper

  • MILP (Mixed-Integer Linear Programming) · An optimization problem where some variables must be whole numbers, used in scheduling, logistics, and more.
  • branch-and-bound · The core search method solvers use, splitting the solution space and pruning bad branches to find optimal answers.
  • primal gap · The difference between the best solution found so far and the best known solution; smaller means closer to optimal.
  • graph neural network (GNN) · A neural network that learns from a graph representation of variables and constraints in the MILP.
  • Predict-and-Search / Neural Diving · Existing methods that use AI predictions to fix some variables or shrink the search space to speed up solvers.
(b) Aggregate flip distribution.
(b) Aggregate flip distribution.

Original abstract (English)

Mixed-Integer Linear Programming (MILP) is a fundamental problem class in operations research and combinatorial optimization, with broad applications to industrial decision-making. Owing to their NP-hardness, however, modern solvers may struggle to find high-quality solutions for challenging MILP instances within practical time limits. Recent learning-based approaches seek to accelerate MILP solving by directly predicting high-quality solutions from static instance-level features, such as variable-constraint bipartite graphs. Yet accurate solution prediction from instance features alone is difficult, and these methods largely overlook the information revealed during the solver's search process. In this paper, we find that solutions produced at the early search stage of MILP solvers, which are computationally cheap to obtain, are often structurally close to the solutions found after full-budget search. Motivated by this observation, we propose a new solver-informed paradigm that shifts the learning target from variable assignment to early-to-final consistency: for each variable, we predict whether its early-stage assignment should persist in full-budget solutions. The predicted consistency naturally guides downstream search, for instance by fixing the assignments deemed consistent. At inference time, we further ensemble consistency predictions across multiple early-stage solutions to improve robustness. Experiments across four MILP benchmarks show our method improves prediction-guided search across diverse downstream pipelines. With Gurobi, our proposed method reduces the primal gap by 56.9% on average and closes it completely on combinatorial auction instances. Besides, we transferred the Gurobi-trained model zero-shot to SCIP without adaptation, achieving a 36.4% average gap reduction across benchmarks.

Authors · Guanlin Li, Chengrui Gao, Chenguang Wang, Haopu Shang, Zherong Zhang, Ke Xue, Jixiang Lu, Weiyong Yang, Chao Qian

Read on arXiv

Latest papers

All papers →

Latest from METAL LAB

Figures: Guanlin Li et al., arXiv:2608.19953, CC BY 4.0