A GNN-Guided Predict-and-Search Framework for Mixed-Integer Linear Programming

Qingyu Han, Linxin Yang, Qian Chen, Xiang Zhou, Dong Zhang, Akang Wang, Ruoyu Sun, Xiaodong Luo

TL;DR

Researchers have developed a "predict-and-search" framework that uses Graph Neural Networks (GNNs) to accelerate solving complex optimization problems. By predicting the likelihood of variables being 0 or 1 and then searching within a flexible "trust region" around those predictions, the method achieves significantly better solutions faster than industry-standard solvers like SCIP and Gurobi.

What Problem Does This Paper Address?

Mixed-Integer Linear Programming (MILP) is the workhorse of combinatorial optimization, used for everything from scheduling flights to managing supply chains. However, MILPs are NP-hard, meaning they can take an exponentially long time to solve as they grow in size.

In many real-world applications, we solve similar MILP instances repeatedly (e.g., daily logistics planning where only the demand coefficients change). Machine Learning (ML) seems like a natural fit to "learn" the patterns of these solutions. However, existing "end-to-end" ML approaches face two major hurdles:

  1. High Data Cost: Training usually requires a massive dataset of optimal solutions, which are computationally expensive to generate.
  2. Feasibility Issues: ML models often predict values that violate the problem's strict constraints, rendering the "solution" useless.

Methods

The authors propose a two-stage Predict-and-Search framework to overcome these limitations:

The Predict-and-Search Framework
  1. Predict: They represent the MILP as a bipartite graph (where nodes represent variables and constraints). A GNN processes this graph to predict the marginal probability—the likelihood that a specific binary variable should be 1 in a high-quality solution. To solve the "data cost" problem, they train the model using a weighted loss function on feasible solutions rather than just optimal ones, making data collection much faster.
  2. Search: Instead of "fixing" variables to the predicted values (a common but brittle technique called "diving"), they use a Trust Region approach. They identify the variables the GNN is most confident about and construct a "ball" around that partial solution. They then tell a traditional solver (like SCIP or Gurobi) to find the best solution within this neighborhood.

The key innovation is the $\Delta$ (delta) parameter. By allowing a small number of variables to deviate from the prediction (the radius of the trust region), the framework provides a "safety net" that maintains feasibility even if the GNN makes a few mistakes.

Datasets

The framework was evaluated on four diverse MILP benchmarks:

  • Balanced Item Placement (IP): From the NeurIPS ML4CO 2021 competition.
  • Workload Appointment (WA): Also from the ML4CO competition.
  • Independent Set (IS): A classic graph-based optimization problem.
  • Combinatorial Auction (CA): Sourced from the Ecole library.

These datasets represent a mix of synthetic and realistic industrial-scale problems, with some instances containing tens of thousands of variables and constraints.

Key Insights and Ideas

  • Fixing is Brittle, Searching is Robust: The authors demonstrate that "fixing" variables based on ML predictions often leads to infeasible sub-problems. Even a single incorrect "fix" can break the model. The trust region approach adds the flexibility needed to recover from ML errors.
  • The "Good Enough" Label: You don't need the absolute global optimum to train a useful GNN. By weighting high-quality feasible solutions by their objective values, the model learns the "region" of optimality without the astronomical cost of solving every training instance to completion.
  • Theoretical Guarantee: The paper provides a mathematical proof showing that their search strategy will always yield a solution at least as good as, or better than, simple fixing-based methods, provided they start from the same partial solution.

Key Results

The framework was tested against the default settings of two major solvers: SCIP (open-source) and Gurobi (commercial).

Performance comparison showing average primal gap improvements
  • Primal Gap Improvement: On average, the framework improved the "primal gap" (a measure of how far a solution is from the best known bound) by 51.1% compared to SCIP and 9.9% compared to Gurobi.
  • Speed to Optimality: On the Independent Set (IS) dataset, the GNN-guided Gurobi reached the best-known solution within 10 seconds, whereas the default solver struggled much longer.
  • Outperforming Neural Diving: The method consistently beat "Neural Diving" (a state-of-the-art ML-for-MILP baseline), particularly on datasets where finding any feasible solution is difficult.

Limitations and Future Work

While impressive, the framework has a few areas for growth:

  • Hyperparameter Sensitivity: The parameters $k_0, k_1$ (how many variables to consider) and $\Delta$ (the search radius) currently need to be tuned for each specific dataset. Automating this tuning would make the system more "plug-and-play."
  • Continuous Variables: The current work focuses primarily on binary integer variables. Extending the trust region logic to handle general continuous variables more effectively is a logical next step.
  • Solver Dependency: The method still requires a high-performance underlying solver to perform the local search. It is an enhancement to, rather than a replacement for, traditional optimization software.

Summary updated

BibTeX
@inproceedings{han2023gnn,
  author = {Qingyu Han and Linxin Yang and Qian Chen and Xiang Zhou and Dong Zhang and Akang Wang and Ruoyu Sun and Xiaodong Luo},
  title = {{A GNN-Guided Predict-and-Search Framework for Mixed-Integer Linear Programming}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=pHMpgT5xWaE},
}
Figure