每天早上一封邮件,把昨天的 AI 梳理好订阅邮件

METAL LAB

Learning Early-to-Final Solution Consistency for MILP Acceleration

arXiv:2608.199532026-08-21

让AI学会判断求解早期得到的答案哪些能保留到最后,从而加速混合整数规划求解

混合整数线性规划(MILP)广泛用于物流、排产等工业决策,但困难实例即使用先进求解器也很难在合理时间内求得高质量解。本文发现求解器在早期阶段快速得到的解,与经过完整时间求解后的最终解在大多数变量上是一致的,于是提出EnCore方法:不再从零预测完整解,而是预测每个变量的早期取值是否会保留到最终解。在Gurobi上该方法平均将与已知最优解的差距缩小了56.9%,且在未重新训练的情况下迁移到SCIP求解器仍能缩小36.4%的差距。

他们做了什么

  1. MILP问题要求部分变量取整数,困难实例即便用Gurobi、SCIP等主流求解器,在实际时间限制内也常常难以求得优质解。
  2. 以往基于学习的加速方法试图仅凭问题的静态结构特征直接预测完整解,这是一项非常困难的学习任务。
  3. 研究者发现,求解器在早期阶段得到的解已经与最终完整求解得到的解在大多数变量上一致(例如在工作量分配问题中一致率达95.63%)。
  4. 因此EnCore不再重新预测完整解,而是针对每个变量预测其早期取值是否会保持到最终解,这样学习任务更聚焦,搜索也能集中在少数尚未确定的变量上。
  5. 推理时集成多个早期候选解的预测结果以提升鲁棒性,在Gurobi上对组合拍卖(combinatorial auction)实例完全消除了与已知最优解的差距。
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

为什么重要

MILP优化广泛应用于物流、生产排程、网络设计等工业决策场景,该方法可以叠加在现有AI加速方案之上,并且能在不重新训练的情况下迁移到不同的求解器软件,具有较强的实用价值。把学习目标从从零构建完整解转变为判断哪些早期结果可信,是一种降低学习难度的新思路。

(d) IP
(d) IP

本文术语

  • MILP(混合整数线性规划) · 部分变量必须取整数的线性优化问题,常用于排程、物流等场景。
  • 分支定界法 · 求解器的核心搜索方法,通过划分解空间并剪枝来寻找最优解。
  • primal gap(原始间隙) · 当前所得解与已知最优解之间的差距,数值越小说明解越接近最优。
  • 图神经网络(GNN) · 以变量和约束构成的图作为输入进行学习的神经网络结构。
  • Predict-and-Search / Neural Diving · 利用AI预测结果固定部分变量或缩小搜索空间来加速求解器的现有方法。
(b) Aggregate flip distribution.
(b) Aggregate flip distribution.

论文原文摘要(英文)

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.

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

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道

图片来源: Guanlin Li et al., arXiv:2608.19953, CC BY 4.0