NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Cut Selection for Mixed-Integer Linear Programming via Hierarchical Sequence Model

Zhihai Wang, Xijun Li, Jie Wang, Yufei Kuang, Mingxuan Yuan, Jia Zeng, Yongdong Zhang, Feng Wu

TL;DR

Researchers have developed a Hierarchical Sequence Model (HEM) that uses reinforcement learning to optimize "cut selection" in Mixed-Integer Linear Programming (MILP). By simultaneously deciding which cuts to prefer, how many to select, and—crucially—in what order to apply them, HEM significantly outperforms both traditional human-designed heuristics and existing machine learning baselines across synthetic and real-world industrial problems.

What Problem Does This Paper Address?

Mixed-Integer Linear Programming (MILP) is the mathematical backbone of everything from supply chain logistics to power grid management. Because MILPs are NP-hard, solvers use a "branch-and-cut" approach. A key part of this is generating cutting planes (cuts)—linear inequalities that tighten the search space without removing valid solutions.

However, generating too many cuts can actually slow down a solver due to increased computational overhead and numerical instability. This leads to the Cut Selection Problem. Traditionally, this involves three questions:

  1. (P1) Which cuts are the highest quality?
  2. (P2) How many cuts should we actually add?
  3. (P3) In what order should we add them?

Most existing solvers rely on hand-coded heuristics for P1 and P2, while ignoring P3 entirely. Previous machine learning attempts usually focused only on scoring individual cuts (P1) in isolation, neglecting the complex interactions between cuts and the importance of their sequence.

Methods

The authors propose the Hierarchical Sequence Model (HEM), trained via Reinforcement Learning. The architecture is split into two levels to mirror the decision-making process:

HEM Architecture
  • Higher-Level Model: This level predicts the ratio of candidate cuts to select (addressing P2). It uses an LSTM to process the sequence of candidate cuts and a Multi-Layer Perceptron (MLP) to output the parameters of a distribution from which the selection ratio is sampled.
  • Lower-Level Model: This level formulates cut selection as a sequence-to-sequence problem (addressing P1 and P3). It employs a Pointer Network—a type of neural architecture that can select members of its input sequence as its output. This allows the model to pick an ordered subset of cuts while accounting for how previously selected cuts influence the value of remaining ones.

The entire system is trained using a Hierarchical Policy Gradient algorithm, where the reward is based on the solver's efficiency (e.g., reducing the "Primal-Dual gap integral" or total solving time).

Datasets

The model was evaluated on a diverse range of benchmarks:

  • Synthetic "Easy" Sets: Set Covering, Maximum Independent Set, and Multiple Knapsack.
  • Medium/Hard Benchmarks: MIK, CORLAT, and instances from the MIPLIB 2017 library.
  • Competition Data: Load Balancing and Anonymous problems from the NeurIPS 2021 ML4CO competition.
  • Real-World Application: A large-scale production planning dataset from a major global technology enterprise.

Key Insights and Ideas

  • Order Matters: The authors empirically demonstrate that even if you select the same set of cuts, adding them in a different order significantly changes the solver's performance. This "aha moment" justifies the use of a sequence model over a simple scoring function.
Impact of Cut Order
  • Interaction is Key: Cuts shouldn't be judged in a vacuum. A cut might be "high quality" on its own but redundant if a similar cut has already been selected. The Pointer Network naturally captures these dependencies.
  • Generalization Power: One of the most impressive findings is that HEM generalizes to problems much larger than those it saw during training. For example, a model trained on small Maximum Independent Set problems remained highly effective on instances 9x larger.

Key Results

  • Efficiency Gains: On "easy" synthetic datasets, HEM improved solving time by up to 16.4% compared to the state-of-the-art machine learning baseline (Score-Based Policy).
  • Gap Reduction: On challenging MIPLIB instances, HEM achieved a 40.77% improvement in the Primal-Dual gap integral compared to the "No Cuts" baseline, far outstripping the default SCIP solver heuristics.
  • Real-World Impact: In production planning tests, HEM reduced solving time by nearly 10% and the Primal-Dual gap by 7.46% compared to standard heuristics, proving its utility in industrial settings.

Limitations and Future Work

  • Training Stability: Training sequence-to-sequence models with reinforcement learning is notoriously difficult and computationally expensive. The authors noted that HEM-ratio (a variant) sometimes struggled on the most challenging benchmarks due to inefficient exploration.
  • Feature Engineering: The model currently relies on 13 hand-crafted features for each cut (like efficacy and parallelism). The authors suggest that using Graph Neural Networks (GNNs) to automatically learn features from the MILP's underlying constraint graph could be a powerful next step.
  • Beyond the Root: This study focused on adding cuts at the "root node" of the search tree. Extending this hierarchical sequence approach to select cuts throughout the entire branch-and-bound tree remains an open challenge.

Summary updated

BibTeX
@inproceedings{wang2023learning,
  author = {Zhihai Wang and Xijun Li and Jie Wang and Yufei Kuang and Mingxuan Yuan and Jia Zeng and Yongdong Zhang and Feng Wu},
  title = {{Learning Cut Selection for Mixed-Integer Linear Programming via Hierarchical Sequence Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Zob4P9bRNcK},
}
Figure