Learning to Cut: Reinforcement Learning for Benders Decomposition

Haochen Cai, Xian YuNeurIPS 2026

TL;DR

Large-scale optimization under uncertainty often relies on a classic divide-and-conquer algorithm called Benders Decomposition—which notoriously chokes as it accumulates mathematical constraints ("cuts") over time. This paper introduces RLBD, a reinforcement learning agent that acts as a smart bouncer, selectively admitting only the most useful cuts at each step. The result is a ~5x speedup over standard methods and a lightweight policy that generalizes to much larger problems without needing to be retrained.

What Problem Does This Paper Address?

Imagine deciding where to build electric vehicle (EV) charging stations today ("here-and-now"), knowing you'll have to manage fluctuating customer demand tomorrow ("wait-and-see"). In operations research, this is a two-stage stochastic program. When you factor in hundreds of possible future demand scenarios, solving the whole problem at once becomes computationally impossible.

Enter Benders Decomposition (BD). Developed in 1962, BD splits the problem into a central master problem (making first-stage decisions) and scenario-specific subproblems. At each iteration, the subproblems evaluate the master's current plan and send back linear constraints—called Benders cuts—that guide the master problem toward better solutions.

Here’s the catch: a classic trade-off between precision and bloat. If you add a separate cut for every scenario at every iteration (the multi-cut approach), you get great guidance, but the master problem quickly balloons in size and grinds to a halt. If you squish all scenarios into a single average cut (single-cut), the master stays lean, but the guidance is weak, requiring way too many iterations. Existing heuristics try to filter cuts deterministically, while recent supervised learning methods require static labels for what makes a "good" cut. The authors ask: Can an agent learn to dynamically select the best subset of cuts on the fly?

Methods

The authors reframe cut selection as a sequential decision-making game—specifically, a Markov Decision Process (MDP)—and propose RLBD (Reinforcement Learning for Benders Decomposition).

Figure 1: The RLBD Framework.

Here is how the standard BD loop gets upgraded:

  • The State: At each iteration, the RL agent looks at a 28-dimensional feature vector for each candidate cut. The first 23 numbers capture global context (current optimality gap, how fast bounds are improving, how long the master problem just took to solve). The last 5 numbers capture local cut geometry (e.g., how badly the cut is currently violated and how often its scenario was picked in the past).
  • The Network & Action: Instead of feeding all cuts into one giant, rigid network, a shared 2-layer MLP evaluates each candidate cut individually and outputs a scalar score (logit). A softmax layer turns these scores into probabilities. During training, the agent stochastically samples $K$ cuts without replacement (encouraging exploration). During testing, it acts greedily, picking the top $K$ highest-scoring cuts.
Figure 2: The shared neural network is applied to each candidate cut using the concatenation of common state vector and local cut features, producing one logit per candidate cut.
  • The Reward & Training: Trained via the classic REINFORCE policy gradient algorithm, the agent is rewarded at each step for shrinking the optimality gap (measured as a scale-invariant log ratio), and penalized for both master problem solve time and taking too many total steps.

Datasets

Rather than static benchmark files, the authors evaluate RLBD on synthetic instances of a two-stage stochastic EV charging station location problem (minimizing station building costs and unmet-demand penalties across 100 demand scenarios):

  • Training: A single small problem instance with 8 candidate stations, 12 customer sites ($8 \times 12$), and Normal demand distributions.
  • Testing: Evaluated across 5 independent datasets per setting, scaling up problem dimensions ($8 \times 12$, $10 \times 15$, and $15 \times 20$) and introducing distribution shifts (Left-skewed and Right-skewed Normal demand) to test out-of-distribution generalization.

Key Insights and Ideas

  • Size-agnostic generalization for free: Because the shared neural network scores one cut at a time using summary statistics rather than raw decision variables, the exact same network trained on an $8 \times 12$ grid can seamlessly evaluate cuts on a $15 \times 20$ grid—or any number of scenarios—without changing a single weight.
  • The agent discovers domain intuition on its own: When the authors inspected which scenarios the trained agent favored, they found a striking pattern. Without ever being explicitly fed raw demand data in its cut features, RLBD naturally learned to pull cuts from "high-stress" scenarios—those with the highest total customer demand, penalty exposure, and revenue exposure. High-load edge cases carry the sharpest mathematical boundaries.
  • Less is more for cut budgets: Tuning showed that adding $K=10$ cuts per iteration (out of 100 candidates) hit the sweet spot, beating $K=20$ and $K=30$ in wall-clock speed and training stability.

Key Results

RLBD ($K=10$) was pitted against vanilla multi-cut BD, LearnBD (an SVM-based supervised learning method), Random-$K$, and Top-$K$ (greedily picking the most violated cuts), aiming for a 1% optimality gap within a 1-hour limit:

  • ~5x Speedup on Small/Medium Problems: On $8 \times 12$ and $10 \times 15$ instances, RLBD solved problems ~4.5x to 5.3x faster than both vanilla BD and LearnBD (e.g., 44.4s vs. 237.6s on $8 \times 12$ Normal; 97.4s vs. 446.7s on $10 \times 15$ Normal). It also consistently beat Top-$K$ (~15–20% faster) by keeping master solve times lower.
  • Scaling Where Baselines Timeout: On the largest $15 \times 20$ instances, vanilla BD and LearnBD hit the 3,600-second timeout wall with massive remaining optimality gaps (16.9% to 27.6%). RLBD converged to under 1% gap in roughly 1,067–1,090 seconds, beating both Random-$K$ and Top-$K$ across all demand distributions.

Limitations and Future Work

  • Continuous recourse only: RLBD currently requires second-stage variables to be continuous (allowing standard dual-based Benders cuts). Extending this to integer second-stage variables—where agents might choose between Lagrangian, integer optimality, or strengthened cuts—is a prime next step.
  • Simple network representation: The policy relies on a standard feedforward MLP using hand-crafted summary features. The authors suggest Graph Neural Networks (GNNs) could better capture the underlying structural relationships between variables, constraints, and cuts to push generalization even further.

Summary updated

Abstract

Benders decomposition (BD) is a widely used solution approach for solving two-stage stochastic programs arising in real-world decision-making under uncertainty. However, it often suffers from slow convergence as the master problem grows with an increasing number of cuts. In this paper, we propose Reinforcement Learning for BD (RLBD), a framework that adaptively selects cuts using a neural network-based stochastic policy. The policy is trained using a policy gradient method via the REINFORCE algorithm. We evaluate the proposed approach on a two-stage stochastic electric vehicle charging station location problem and compare it with vanilla BD, Random-K, Top-K, and LearnBD, a supervised learning approach that classifies cuts using a support vector machine. Numerical results demonstrate that RLBD achieves substantial improvements in computational efficiency and exhibits strong generalization to problems with similar structures but varying data inputs and decision variable dimensions. Our code is available at https://github.com/HaochenCai/RLBD.
BibTeX
@inproceedings{cai2026learning,
  author = {Haochen Cai and Xian Yu},
  title = {{Learning to Cut: Reinforcement Learning for Benders Decomposition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YAFk1gBK4h},
}
Figure