Skip to main content
QUICK REVIEW

[Paper Review] Neur2SP: Neural Two-Stage Stochastic Programming

Justin Dumouchelle, Rahul Patel|arXiv (Cornell University)|May 20, 2022
Economic and Environmental ValuationEconomics, Econometrics and Finance11 citations
TL;DR

Neur2SP proposes a data-driven, structure-agnostic method to accelerate solving two-stage stochastic programs (2SPs) by training a ReLU-based neural network to approximate the expected second-stage cost. The surrogate model is embedded into a mixed-integer program (MIP) and solved efficiently, achieving high-quality solutions in under 1.66 seconds—orders of magnitude faster than the extensive form, even as scenario counts grow.

ABSTRACT

Stochastic Programming is a powerful modeling framework for decision-making under uncertainty. In this work, we tackle two-stage stochastic programs (2SPs), the most widely used class of stochastic programming models. Solving 2SPs exactly requires optimizing over an expected value function that is computationally intractable. Having a mixed-integer linear program (MIP) or a nonlinear program (NLP) in the second stage further aggravates the intractability, even when specialized algorithms that exploit problem structure are employed. Finding high-quality (first-stage) solutions -- without leveraging problem structure -- can be crucial in such settings. We develop Neur2SP, a new method that approximates the expected value function via a neural network to obtain a surrogate model that can be solved more efficiently than the traditional extensive formulation approach. Neur2SP makes no assumptions about the problem structure, in particular about the second-stage problem, and can be implemented using an off-the-shelf MIP solver. Our extensive computational experiments on four benchmark 2SP problem classes with different structures (containing MIP and NLP second-stage problems) demonstrate the efficiency (time) and efficacy (solution quality) of Neur2SP. In under 1.66 seconds, Neur2SP finds high-quality solutions across all problems even as the number of scenarios increases, an ideal property that is difficult to have for traditional 2SP solution techniques. Namely, the most generic baseline method typically requires minutes to hours to find solutions of comparable quality.

Motivation & Objective

  • Address the computational intractability of solving two-stage stochastic programs (2SPs) with mixed-integer or nonlinear second-stage problems.
  • Develop a general-purpose heuristic that does not rely on problem-specific structure or decomposition algorithms.
  • Enable fast, scalable solution of 2SPs with large numbers of scenarios, where traditional methods like the extensive form become impractical.
  • Provide a surrogate optimization model that is both computationally efficient and maintains high solution quality across diverse 2SP problem classes.
  • Demonstrate the feasibility and superiority of using deep learning to approximate the expected recourse cost in a way that integrates seamlessly with MIP solvers.

Proposed method

  • Generate a dataset of (first-stage decision, scenario set, expected second-stage cost) tuples via simulation-based sampling.
  • Train a ReLU-based feedforward neural network (NN-E or NN-P) to predict the expected second-stage cost for a given first-stage decision and scenario set.
  • Embed the trained neural network into a MIP using MIP-representable formulations of ReLU activations, enabling exact optimization of the surrogate problem.
  • Solve the resulting surrogate MIP with an off-the-shelf MIP solver to obtain a first-stage solution.
  • Use the surrogate model to guide first-stage decisions without requiring explicit knowledge of second-stage problem structure.
  • Two variants are proposed: NN-E (embeds the entire scenario set once) and NN-P (embeds the network per scenario), differing in scalability and training overhead.

Experimental results

Research questions

  • RQ1Can a data-driven neural network surrogate model significantly reduce solution time for two-stage stochastic programs without relying on problem structure?
  • RQ2How well does a trained neural network generalize to larger scenario sets than seen during training, especially in problems with mixed-integer or nonlinear second-stage subproblems?
  • RQ3What is the trade-off between solution quality and computational efficiency between the NN-E and NN-P variants of the surrogate model?
  • RQ4How does Neur2SP compare to the standard extensive form (EF) approach in terms of solution quality and runtime across diverse 2SP problem classes?
  • RQ5Can the surrogate model maintain high solution quality even when the number of scenarios increases, where EF becomes computationally prohibitive?

Key findings

  • Neur2SP solves all benchmark 2SP problems in under 1.66 seconds, with a minimum solving time of 0.11s and maximum of 1.66s across all problem instances.
  • The NN-E variant achieves objective differences within ±5% of the extensive form (EF) solution across most problems, with a maximum deviation of 13.78% and a minimum of -102%.
  • For larger instances (e.g., CFLP, SSLP, PP), Neur2SP outperforms EF in both speed and solution quality, with EF often failing to match Neur2SP’s quality even after 3 hours.
  • The NN-P variant times out on the largest INVP instances without finding a feasible solution, indicating scalability limitations due to per-scenario embedding.
  • For the pooling problem (PP), NN-E achieves a 40% objective difference from EF, indicating strong generalization, while NN-P performs poorly (40% gap), suggesting it fails to generalize well on this class.
  • The NN-E model generalizes well to larger scenario sets (up to 1000 scenarios), with performance improving as scenario count increases, despite being trained on a maximum of 100 scenarios per data point.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.