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

Reinforcement Learning for Integer Programming: Learning to Cut

Yunhao Tang, Shipra Agrawal, Yuri Faenza

TL;DR

Researchers have developed a deep reinforcement learning (RL) agent that outperforms human-designed heuristics in selecting "cutting planes" for Integer Programming (IP). The agent not only solves problems faster but also demonstrates remarkable generalization, performing well on problem sizes 10x larger than its training set and even across entirely different problem classes.

The Challenge of Integer Programming

Integer Programming (IP) is the mathematical backbone of everything from airline scheduling to production planning. Because these problems are NP-hard, solvers cannot simply "brute force" the answer. Instead, they rely heavily on a technique called the cutting plane method.

The concept is straightforward: start with a "relaxed" version of the problem (ignoring the integer requirement), find a fractional solution, and then add linear constraints—called cuts—that "snip away" non-integer parts of the search space without removing any valid integer solutions. Modern solvers have many potential cuts to choose from at every step. Historically, humans have designed heuristics (rules of thumb) to pick the "best" cut. However, these heuristics are often sub-optimal and fail to adapt to specific problem structures. This paper asks a compelling question: Can we use reinforcement learning to learn a better selection strategy?

Formulating Cut Selection as an MDP

The authors frame cut selection as a Markov Decision Process (MDP):

  • State: The current geometry of the problem, including the constraints, the objective function, and the current fractional solution.
  • Action: Choosing one Gomory cut from a pool of candidates.
  • Reward: The reduction in the "integrality gap" (how much closer the relaxed solution gets to the true integer solution).

To handle the fact that IP problems come in all shapes and sizes, the researchers designed a novel neural network architecture:

  1. LSTM Embedding: Since the number of variables can vary, an LSTM encodes each constraint into a fixed-size vector.
  2. Attention Mechanism: Because the order of constraints shouldn't matter (the geometry is the same regardless of constraint order), they use an attention-based "order-agnostic" selection layer.
  3. Evolutionary Strategies (ES): Instead of standard policy gradients, they used ES to train the agent. This approach is highly parallelizable and avoids some of the stability issues common in RL for discrete optimization.

Datasets and Evaluation

The researchers evaluated their agent on four classic IP problem classes:

  • Packing: Resource allocation problems.
  • Production Planning: Scheduling and inventory management.
  • Binary Packing: 0-1 knapsack-style problems.
  • Max-Cut: A fundamental graph optimization problem.

They used randomly generated instances for training (small-scale, ~200 variables/constraints) and testing (medium to large-scale, up to ~5000 variables/constraints).

Key Results

Performance comparison of RL against heuristic baselines across four IP problem classes.
  • Efficiency: On small instances, the RL agent reached optimality using significantly fewer cuts than standard heuristics. For example, in Planning tasks, the RL agent used approximately 10 cuts compared to ~310 for the Lexicographical Rule.
  • Gap Closure: For large-scale problems where reaching optimality is difficult, the RL agent closed a much higher percentage of the integrality gap. In Packing problems, RL achieved a 0.55 gap closure compared to just 0.14–0.20 for human-designed heuristics.
  • Synergy with Branch-and-Cut: While the agent was trained purely for the cutting plane method, it also improved the performance of Branch-and-Cut (the industry-standard algorithm). The RL-based cutter consistently reduced the number of expanded search nodes, often reaching 100% accuracy in closing the gap where other methods stalled.

Generalization and Theoretical Discoveries

The most surprising finding is that an agent trained on tiny problems (10 variables) performs excellently on problems 10x larger (denoted as RL/10x in the results). Even more impressively, an agent trained on Packing problems was competitive when tested on Max-Cut problems, suggesting it learned fundamental geometric principles of "good" cuts rather than just memorizing specific problem patterns.

Furthermore, when applied to the knapsack problem, the RL agent's chosen cuts closely resembled "lifted cover inequalities"—a sophisticated type of cut that took human mathematicians years to formalize. The RL agent essentially "discovered" their utility simply by maximizing its reward.

Limitations and Future Work

  • Numerical Stability: Linear Programming solvers are highly sensitive to precision. Aggressive RL agents can sometimes suggest cuts that lead to numerical errors, inadvertently cutting off the actual optimal solution. The authors mitigated this with a simple "stopping criterion" at test time, but more robust integration is needed.
  • Training Overhead: Training an RL agent via ES is computationally expensive compared to simply writing a heuristic. However, this is a "one-time cost" that pays off during deployment.
  • Integration with Commercial Solvers: While the results are promising, the study used a simplified Branch-and-Cut setup. Integrating this into a "full-featured" commercial solver like Gurobi or CPLEX, which have hundreds of other moving parts, remains a significant engineering challenge.

Summary updated

BibTeX
@inproceedings{tang2020reinforcement,
  author = {Yunhao Tang and Shipra Agrawal and Yuri Faenza},
  title = {{Reinforcement Learning for Integer Programming: Learning to Cut}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure