Abstract
This paper introduces Two-Stage Deep Decision Rules (TS-DDR), a novel framework that bridges the gap between Reinforcement Learning (RL) and Stochastic Programming. By leveraging Lagrangian duality, TS-DDR trains deep neural network policies that can strictly satisfy complex, nonlinear constraints while running orders of magnitude faster than traditional optimization methods.
The Challenge of Constrained Sequential Decision Making
Many real-world systems—such as power grids, supply chains, and robotics—operate under "hard" constraints. In a power system, failing to balance supply and demand leads to blackouts or equipment damage. Standard Reinforcement Learning (RL) often struggles in these environments; model-free RL is notoriously poor at satisfying strict constraints, often relying on "penalty" terms that lead to sub-optimal or infeasible behavior.
On the other hand, classical methods like Stochastic Dual Dynamic Programming (SDDP) are mathematically rigorous but computationally heavy. They often require the problem to be convex and assume "stage-wise independence," which rarely holds true in reality. Furthermore, SDDP cannot produce a real-time policy, as it requires solving an optimization problem at every single step.
Two-Stage Deep Decision Rules (TS-DDR)
The authors propose TS-DDR to combine the flexibility of deep learning with the reliability of mathematical programming. The core idea is a two-stage execution flow:
- Forward Pass (Prediction + Projection): A parametric policy (a neural network) predicts a "target state." This target is passed into a deterministic optimization sub-problem that "projects" the decision back into the feasible region, ensuring the final decision always respects physical and operational constraints.
- Backward Pass (Duality-Based Training): Instead of expensive implicit function differentiation, the authors use Lagrangian Duality. They demonstrate that the dual variables (Lagrangian multipliers) of the optimization sub-problem provide the exact gradients needed to update the neural network via Stochastic Gradient Descent (SGD).
This framework also supports Time-Invariant Policies through a recurrent-style architecture, allowing the model to maintain a hidden latent state and generalize to horizons much longer than those seen during training.
Experimental Evaluation
The researchers evaluated TS-DDR on two primary domains: the Bolivian Power System (a realistic 28-bus Long-Term Hydrothermal Dispatch problem) and the Goddard Rocket Control benchmark.
As illustrated in the validation loss curves, standard RL algorithms like PPO and REINFORCE fail to find feasible policies in these high-stakes environments, highlighting the necessity of the TS-DDR approach.
Key Results
TS-DDR demonstrated significant advantages in speed, quality, and feasibility:
- Computational Speed: In the Bolivian power system case, TS-DDR was 4 orders of magnitude faster at execution time than SDDP (e.g., 0.025 minutes vs. 480 minutes for certain formulations).
- Solution Quality: On non-convex instances, TS-DDR outperformed SDDP in solution quality by at least 0.32%, as it does not require the simplifying convex relaxations that SDDP does.
- Feasibility: Unlike model-free RL methods, TS-DDR consistently satisfied all hard nonlinear constraints.
Conclusion and Future Work
TS-DDR offers a powerful alternative to traditional stochastic programming by decoupling prediction from feasibility. While the current results are promising, the authors identify several areas for future research, including scaling the method to continental-scale power grids and extending the framework to handle discrete decision variables, such as turning power plants on or off.
Summary updated