Iain Dunning and Oriol Vinyals
DeepMind
Introduction
Combinatorial optimization under uncertainty is a cornerstone of industrial operations, from logistics to energy grid management. These problems are frequently modeled as Two-Stage Stochastic Mixed Integer Programs (MIPs). In the first stage, a "planning" decision is made under uncertainty; in the second stage, once uncertainty is resolved, "recourse" decisions are made to adapt the initial plan.
Traditional solvers like SCIP face two primary hurdles in this domain. First, representing uncertainty through numerous scenarios leads to a combinatorial explosion in model size, hindering scalability. Second, these solvers lack "memory," treating each instance as an isolated puzzle and failing to leverage structural similarities across recurring problem classes. This paper proposes a reinforcement learning (RL) framework that learns to solve specific classes of stochastic integer programs more efficiently over time.
Methodology: Contextual Local Search
The proposed solver, termed "Contextual Local Search," frames optimization as a sequential decision-making task. The architecture consists of two primary neural network components that interact with a classical deterministic solver.
Initialization and Local Move Policies
- Initialization Policy: A Neural Autoregressive Density Estimator (NADE) analyzes the problem "context" (instance-specific parameters) to sample high-quality starting solutions ($x^0$).
- Local Move Policy: Trained via Asynchronous Advantage Actor-Critic (A3C), this policy iteratively refines the solution. Unlike greedy heuristics, the agent learns a non-greedy strategy, occasionally accepting moves that temporarily degrade the objective to escape local optima and discover superior global solutions.
The Hybrid Optimization Loop
The RL agent manages the complex Stage 1 binary decisions. For each proposed Stage 1 solution, the system calls a standard deterministic solver (e.g., SCIP) to rapidly compute the Stage 2 recourse. This hybrid approach marries the high-level "intuition" of deep learning with the mathematical precision of classical optimization.
Dual Bounding
To evaluate solution quality rigorously, the authors implemented a Dual Policy using dual decomposition. A neural network predicts Lagrangian multipliers to provide a mathematical upper bound, allowing the researchers to quantify the optimality gap even when the true global optimum is unknown.
Experimental Evaluation
The framework was evaluated on two benchmark problems adapted for large-scale stochastic settings:
- Stochastic Knapsack (KS): Committing to items before their actual sizes are revealed.
- Stochastic Facility Location (FL): Determining facility placement under uncertain demand.
The researchers generated 1,000 training and 100 test contexts using "Mixture of Factor Analyzers" to simulate realistic, non-Gaussian dependencies between variables.
Results and Discussion
The RL-based solver demonstrated significant advantages over traditional methods and standard heuristics like Tabu Search and Progressive Hedging.
As shown in the performance plots, the RL solver achieves massive speedups. On large-scale problems (size 200), it identifies solutions in seconds that SCIP cannot match even after several hours of computation. In the Facility Location benchmarks, the solution quality was up to 2000% better than SCIP within the same time budget. Furthermore, the learned dual policy proved that most solutions were within 20% of the global optimum—a high degree of tightness for an approximate solver.
A key insight was the agent's non-greedy behavior; analysis showed it accepted objective-decreasing moves approximately 7% of the time to navigate complex solution topologies. This suggests the agent successfully learned the underlying structure of the problem classes rather than just following simple gradients.
Conclusion
This research demonstrates that RL can significantly outperform general-purpose solvers on specific classes of recurring stochastic programs. While the approach requires substantial offline training (e.g., 500 CPU cores for 12 hours), the resulting "fast optimizer" provides near-instantaneous, high-quality solutions for real-time applications. Future work may explore integrating more sophisticated search algorithms, such as Monte Carlo Tree Search (MCTS), to further enhance the local move policy's effectiveness.
Summary updated