SHSP: Structure-Aware Hierarchical Solution Prediction for Mixed-Integer Linear Programming

Zherong Zhang, Guanlin Li, Chengrui Gao, Haopu Shang, Ke Xue, Jixiang Lu, Weiyong Yang, Chao QianarXiv 2026

TL;DR

Existing machine learning methods for accelerating Mixed-Integer Linear Programming (MILP) typically predict all variable assignments simultaneously in a "one-shot" fashion, ignoring how variables depend on one another through constraints. This paper introduces SHSP, a framework that builds a variable coupling graph to predict variables hierarchically—from least to most constrained—while dynamically correcting early mistakes. This structure-aware approach reduces the optimization gap by an average of 54% across standard benchmarks with negligible computational overhead.

What Problem Does This Paper Address?

Mixed-Integer Linear Programming (MILP) is a mathematical framework used to solve complex optimization problems in logistics, power grids, and economics. Because MILP is NP-hard, finding exact solutions for large-scale problems can take hours or even days.

Recently, researchers have used Graph Neural Networks (GNNs) to predict high-quality variable assignments, which are then used to guide and speed up traditional solvers. However, most existing methods use a one-shot prediction paradigm: they predict the probabilities of all variables simultaneously.

The catch? Variables in a MILP are highly interdependent due to shared constraints. Treating them as independent during the decoding stage often results in mutually conflicting assignments that mislead downstream solvers. The authors tackle this by asking: How can we explicitly bake the combinatorial structure of the constraints into the ML prediction process?

Methods

The authors propose Structure-Aware Hierarchical Solution Prediction (SHSP), which replaces parallel one-shot decoding with a sequential, hierarchical approach.

Figure 1: Overview of the proposed method. Given an original MILP instance, we first construct a variable coupling graph to capture the structural dependencies among decision variables. Based on variable coupling graph, variables are ranked according to their coupling score and divided into multiple hierarchies. Our SHSP sequentially predicts variables following the weak-to- strong hierarchy, with a mask-and-repair mechanism to mitigate error accumulation. Finally, the predicted variable assignments are combined with a structure-aware variable fixing strategy and applied to downstream learning-guided search frameworks such as Predict-and-Search (Han et al. 2023).

The pipeline consists of three key components:

  1. Variable Coupling Graph: SHSP constructs a weighted graph where nodes are variables and edge weights quantify how strongly two variables are bound by shared constraints. This strength is calculated using two heuristic factors: expected violation (how tightly a constraint restricts a pair) and coefficient importance.
  2. Hierarchical Decoding with Mask-and-Repair: Variables are sorted by their coupling scores and divided into $K$ hierarchies, decoding from weakly coupled to strongly coupled. Because early errors can cascade, SHSP introduces a mask-and-repair mechanism: uncertain predictions are stochastically masked out and deferred to a final "repair step," where they are re-predicted with the benefit of full context.
  3. Structure-Aware Variable Fixing Strategy: When passing predictions to the solver, traditional methods fix variables based purely on ML confidence. SHSP prioritizes fixing variables that are both highly confident and strongly coupled, allowing their values to propagate through the constraint matrix and drastically shrink the remaining search space.

Datasets

The framework was evaluated on four standard MILP benchmarks:

  • Combinatorial Auctions (CA)
  • Workload Appointment (WA)
  • Item Placement (IP)
  • Set Covering (SC)

Additionally, to test real-world generalization, the authors evaluated SHSP on the IIS dataset, a challenging subset of the real-world MIPLIB benchmark.

Key Insights and Ideas

  • Order Matters in Decoding: Predicting weakly coupled variables first acts as an anchor. Because these variables are relatively insensitive to the rest of the problem, they can be predicted reliably. Their fixed values then provide a stable context for decoding highly sensitive, strongly coupled variables later.
  • Influence Trumps Pure Confidence: High prediction confidence doesn't mean a variable is useful to fix. Prioritizing structurally influential (strongly coupled) variables causes a domino effect through the constraint matrix, tightening the feasible domains of many other variables simultaneously.
  • Safety Nets for Cascading Errors: Multi-step autoregressive decoding is notoriously prone to error accumulation. The mask-and-repair mechanism elegantly decouples the decoding order from the final assignment, turning a brittle sequential process into a robust iterative refinement.

Key Results

The authors integrated SHSP into three prominent learning-guided search frameworks: Neural Diving (ND), Predict-and-Search (PaS), and Apollo-MILP, using Gurobi and SCIP as downstream solvers.

  • Massive Gap Reductions: When paired with the Predict-and-Search framework, SHSP reduced the absolute primal gap by 99.75% on CA, 38.1% on WA, 24.32% on IP, and 42.11% on SC.
  • Beating the Commercial Solver: On Combinatorial Auctions, the Apollo+SHSP variant completely eliminated the primal gap, finding better solutions within a 1,000-second limit than a full-budget, single-threaded Gurobi solver could find in 3,600 seconds.
  • Negligible Overhead: Despite the multi-step decoding process, the neural network inference overhead added less than 0.2 seconds. Graph construction took between 0.26 and 15.23 seconds, which is easily absorbed by the massive savings in solver runtime.
Figure 2: The convergence curves of primal gaps as the solving process proceeds. All methods are implemented using Gurobi with a total time budget of 1,000 seconds. For a fair comparison, the graph construction time of SHSP is included in this budget. Results are averaged over 100 testing instances. A lower primal gap indicates faster convergence and better solving performance.

Limitations and Future Work

While highly effective, SHSP relies on hand-crafted heuristic factors (expected violation and coefficient importance) to build its variable coupling graph. The authors note that a promising future direction is learning these coupling scores end-to-end alongside the GNN. Furthermore, the current implementation focuses primarily on binary decision variables; extending this hierarchical framework to handle general integer or continuous variables directly remains an open area for research.

Summary updated

BibTeX
@misc{zhang2026shsp,
  author = {Zherong Zhang and Guanlin Li and Chengrui Gao and Haopu Shang and Ke Xue and Jixiang Lu and Weiyong Yang and Chao Qian},
  title = {{SHSP: Structure-Aware Hierarchical Solution Prediction for Mixed-Integer Linear Programming}},
  year = {2026},
  eprint = {2608.25282},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.25282},
}
Figure