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

From Sequential to Parallel: Reformulating Dynamic Programming as GPU Kernels for Large-Scale Stochastic Combinatorial Optimization

Jingyi Zhao, Linxin Yang, Haohua Zhang, Qile He, Tian Ding

Introduction

Dynamic Programming (DP) is a cornerstone of combinatorial optimization, optimal control, and reinforcement learning. However, its inherently sequential nature has long hindered its scalability. This paper introduces a general-purpose GPU framework that transforms sequential DP into highly parallel "min-plus" matrix-vector products. By exploiting massive parallelism across scenarios and decision layers, this approach achieves up to five orders of magnitude speedup. This enables the evaluation of over one million uncertainty realizations in a single pass—a scale previously considered impossible for stochastic combinatorial optimization.

The Challenge of Stochastic Programming

In stochastic programming, the goal is to make decisions today that will perform well across many possible future "scenarios." A common approach is Sample Average Approximation (SAA), which involves solving a "second-stage" optimization problem for every sampled scenario to find the best "first-stage" decision.

The primary bottleneck is that these second-stage problems are often NP-hard combinatorial tasks, such as routing or inventory management. Because solving them is computationally expensive, researchers usually limit themselves to a few hundred scenarios or rely on simplified linear models. However, small scenario sets lead to biased results and poor decision quality. The core challenge is solving thousands or millions of complex second-stage problems fast enough to be practically useful.

Methodology: Min-Plus Reformulation on GPUs

The authors bridge the gap between sequential DP and parallel GPU architecture by reformulating DP recursions as operations in the min-plus semiring.

In standard matrix multiplication, elements are multiplied and then summed. In the min-plus semiring, elements are added and then the minimum is taken. This "min-plus matrix-vector product" perfectly describes a Bellman update in DP. By treating the DP states as vectors and transitions as matrices, the authors can launch custom GPU kernels that exploit multiple dimensions of parallelism:

  1. Scenarios: Evaluating $10^6$ different realizations of uncertainty simultaneously.
  2. Transitions: Processing all possible state-to-state moves within a DP layer in parallel.
  3. Actions/Routes: Vectorizing over different decision options (e.g., different delivery routes).
Two-dimensional DP parallelism on GPU, illustrating simultaneous processing across scenarios and transitions.

The framework uses hardware-aware features like warp- and block-level reductions to find the "minimum" cost extremely quickly on-chip, avoiding slow global memory access.

Benchmarks and Datasets

The framework was evaluated on two representative stochastic programming benchmarks:

  • CVRPSD (Capacitated Vehicle Routing Problem with Stochastic Demand): Uses a "split" operator to divide a giant tour into feasible routes based on realized customer demands, exploiting 2D parallelism.
  • DSIRP (Dynamic Stochastic Inventory Routing Problem): An inventory reinsertion DP under an "order-up-to" policy, where the model decides when to replenish customers to balance holding costs against stockout penalties, exploiting 3D parallelism.

Key Insights

  • DP is Not Inherently Sequential: While a single DP path is sequential, the evaluation of all possible paths across millions of independent scenarios is "embarrassingly parallel."
  • The "Min-Plus" Reformulation: By framing DP as a specialized matrix operation, it becomes a first-class citizen for GPU acceleration, similar to how standard matrix math powered the deep learning revolution.
  • More Scenarios = Better Decisions: The paper empirically demonstrates the "bias effect." With few scenarios, the model "overfits" to those specific cases and underestimates true costs. Massive scaling (e.g., $10^6$ scenarios) is required to reach the true optimal solution and eliminate this bias.
Expectation of cost and convergence with an increasing number of scenarios, demonstrating the bias effect when using too few scenarios.
  • Memory is Not the Bottleneck: A surprising finding was that even $10^6$ scenarios for complex routing problems fit within a standard 11GB GPU. The limit is computation time, not VRAM.

Key Results

  • Massive Speedups: For CVRPSD, the GPU achieved an 80x speedup over a single-threaded CPU and a 20x speedup over an 8-thread CPU. For DSIRP, the results were even more dramatic: a 93,000x speedup over a single-threaded CPU and a 22,600x speedup over the multi-threaded baseline.
  • Linear Scalability: The runtime scales nearly linearly with the number of scenarios. This means you can double the scenarios and only roughly double the time, whereas traditional solvers often scale exponentially.
  • Superior Decision Quality: Under a fixed time budget, the GPU-accelerated search could evaluate orders of magnitude more candidate solutions, consistently finding lower-cost, more robust first-stage decisions than CPU-based methods.

Limitations and Future Work

The current framework is primarily designed for forward dynamic programs with additive costs. While this covers a vast range of problems in routing and inventory, it may require further adaptation for:

  • Complex Constraints: Problems with non-additive or highly global constraints that don't easily fit into a layered DAG structure.
  • Risk-Aware Objectives: The current model focuses on minimizing expected cost (average); future work could incorporate risk measures like CVaR (Conditional Value at Risk).
  • Irregular DP: The authors aim to develop more "GPU-native abstractions" to handle DP problems with irregular state spaces that don't map perfectly to regular tensors.

Summary updated

BibTeX
@inproceedings{zhao2026from,
  author = {Jingyi Zhao and Linxin Yang and Haohua ZHANG and Qile He and Tian Ding},
  title = {{From Sequential to Parallel: Reformulating Dynamic Programming as GPU Kernels for Large-Scale Stochastic Combinatorial Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=T9FDmsmoBj},
}
Figure