Boiling Down Uncertainty: Deep Generative Scenario Search with Decision-Guided Evolution Strategies for Two-Stage Stochastic Optimization

Atefeh Hemmati Golsefidi, David PisingerarXiv 2026

TL;DR

Making high-stakes operational decisions under uncertainty—like sizing power grids before demand is known—often requires solving massive optimization problems across hundreds of possible future scenarios. This paper shows how to "boil down" hundreds of scenarios into just one to three synthetic ones by combining analytical gradients from optimization theory with randomized evolution strategies. The result is a method that finds better, faster decisions on massive combinatorial problems—even beating a commercial exact solver in a fifth of the time.

What Problem Does This Paper Address?

In operations management, two-stage stochastic programming is the gold standard for making choices now (stage one, like building warehouses) and adjusting later once uncertainty resolves (stage two "recourse," like routing trucks to meet actual demand). However, every scenario you include to model uncertainty adds another copy of the recourse problem. When those subproblems involve integer variables (indivisible trucks or facilities), the math quickly becomes intractable.

To survive the computational crunch, practitioners use scenario reduction. Recently, a method called Deep Generative Scenario Search (DGSS) shifted from selecting a subset of real scenarios to synthesizing a tiny set of artificial ones using an autoencoder, judging them purely by how well their induced decisions perform on the full dataset.

Here’s the catch: because mapping scenarios to integer decisions involves discrete jumps, the cost landscape is piecewise constant—a series of flat plateaus and sudden cliffs. Its true derivative is zero almost everywhere, offering no clue which way to move. Previously, DGSS treated the whole loop as a blind black box, poking along a single random direction per step (SPSA) to guess the slope. In high dimensions, single random pokes are noisy and wasteful. The authors ask: Can we extract structural gradient clues from the optimization solver to guide this search without getting trapped when those clues are biased by integer relaxations?

Methods

The authors retain the standard DGSS autoencoder loop—encoding empirical scenarios into latent centroids, decoding them into $K$ synthetic scenarios, solving the tiny reduced problem, and evaluating that decision on the full scenario set—but completely overhaul how the model learns.

Overview of the generative scenario-search loop comparing the black-box SPSA baseline with the new analytical decision-focused gradient.

First, they derive a closed-form decision-focused gradient across the non-differentiable optimization step by chaining together sensitivities the solver nearly gives away for free:

  1. How full-set cost responds to the decision, read directly from the recourse dual multipliers (shadow prices).
  2. How the decision responds to synthetic scenarios, computed via a single sparse KKT adjoint solve on a quadratically regularized linear relaxation of the reduced problem.
  3. The decoder Jacobian, via standard backpropagation.

Second—and crucially—they do not follow this gradient directly. Under integer constraints, linear relaxations introduce bias that can march a deterministic optimizer straight into a terrible local trap. Instead, they feed this gradient (or a cheaper heuristic fallback built from per-scenario costs when duals aren't available) into Guided Evolution Strategies (Guided-DGSS). Rather than dictating the trajectory, the gradient stretches the Gaussian sampling cloud where multiple random probes are placed, while keeping an isotropic (all-direction) safety floor. The actual update step is still computed strictly from the true evaluated costs of those probes.

Comparison of single-direction SPSA versus multi-probe evolution strategies navigating a cost surface.

Datasets

The authors evaluate their methods across six benchmark families of two-stage stochastic programs (3 instances each, 200 empirical scenarios per instance, tested at $K \in \{1, 2, 3\}$ synthetic scenarios):

  • CFLP (Capacitated Facility Location) & VRPSD (Vehicle Routing with Stochastic Demand): Binary decisions in both stages.
  • DCAP: Dynamic capacity acquisition (larger-scale generation based on SIPLIB instances).
  • ELECTRICITY: Continuous linear power capacity planning from the public Cornell test set.
  • EV: Integer charging-station location with linear transportation recourse.
  • SUC: Binary unit commitment (200 generators, 24 hours) with linear dispatch recourse.

Key Insights and Ideas

  • Turn structural bias into harmless variance: If you follow a relaxed MIP gradient deterministically, integer gaps bias your path and stall you at fake stationary points. By using that gradient only to shape where an evolution strategy drops its probes, the authors prove the expected update remains a guaranteed descent direction on the smoothed objective. A great guide speeds you up ~32x; a terrible guide just lowers sampling efficiency without pointing you uphill.
  • Probes need direction, not just numbers: Simply throwing 8x more isotropic random probes at the problem (Unguided-ES) fails to beat the 1-probe baseline (SPSA-DGSS) under matched wall-clock budgets because extra evaluations eat up time in 64+ dimensions. The magic comes strictly from concentrating those probes into the decision-guided subspace.
  • One synthetic scenario can summarize 200: Because the training signal is expected cost across all scenarios, a single synthetic scenario ($K=1$) doesn't become an extreme worst-case monster; it settles near the data's center as a "decision-perspective summary," allowing complex stochastic programs to be solved as fast deterministic ones.

Key Results

  • Quartering the optimality gap: Across 162 matched 20-minute runs, Guided-DGSS-DF slashes the mean optimality gap from 4.08% (SPSA baseline) down to 1.02%, winning 112 runs to 26 ($p = 8.7 \times 10^{-11}$) and cutting mean regret 8-fold.
  • Beating Gurobi in 1/5th the time: On the massive integer-heavy CFLP (160k integers) and DCAP (84k integers) problems, Gurobi hits its 2-hour wall-clock limit with optimality gaps remaining. Compressing 200 scenarios into just one ($K=1$) in ~25 minutes total (including pretraining) beats Gurobi's 2-hour incumbent in every single DCAP run and achieves costs up to 13.2% lower than Gurobi on hard CFLP instances.
  • Cleaner, plausible scenarios: Only 2.5% of scenario entries generated by Guided-DGSS-DF drift outside the empirical data bounds prior to clipping, compared to 16% for SPSA-DGSS, making the synthetic scenarios far more interpretable to human planners.

Limitations and Future Work

  • Expensive iterations: Evaluating $2P = 16$ antithetic probes across all 200 scenarios makes each guided iteration 2x to 5x slower than the baseline. On problems with heavy recourse solves like SUC, the method only finishes ~10 iterations in 20 minutes.
  • When not to use it: If an exact solver can crush the full extensive form in seconds or minutes (like ELECTRICITY or EV), scenario reduction offers no wall-clock savings.
  • Theoretical & modeling horizons: The mathematical descent guarantee applies per-iteration at the latent centroids, not end-to-end through the autoencoder network weights. Future work aims to cut the cost of full-set probe evaluations, tackle integer gradient bias directly via perturbed optimizers, and extend the objective beyond expected value to risk-averse measures.

Summary updated

Abstract

One of the most common models for handling uncertainty is two-stage stochastic programming. Choosing the right number of scenarios is a trade-off between the uncertainty that can be represented and computational cost. A recent method, Deep Generative Scenario Search, generates synthetic scenarios and improves them by learning from the decisions they induce. The original approach used a black-box gradient estimate, since decisions are piecewise constant across scenarios. This paper provides the missing analytical foundation by deriving the gradient in closed form from recourse duality and an adjoint solve of the regularized reduced problem. The decision-focused direction, with a heuristic direction as a backup when duals are unavailable, defines the sampling subspace of a guided evolution strategy rather than being used as a direct update. For any guiding subspace, the expected update is a descent direction of the smoothed objective, so an inaccurate guide adds variance while the expected step still descends. For six problem families, both guided estimators outperform the baseline. The decision-focused version reduces the mean gap by three-quarters, and on the two families with the most integer variables the reduced sets beat the exact solver's two-hour incumbent in most runs, using a fifth of the time.
BibTeX
@misc{golsefidi2026boiling,
  author = {Atefeh Hemmati Golsefidi and David Pisinger},
  title = {{Boiling Down Uncertainty: Deep Generative Scenario Search with Decision-Guided Evolution Strategies for Two-Stage Stochastic Optimization}},
  year = {2026},
  eprint = {2611.32573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32573},
}
Figure