Abstract
Many real-world stochastic control problems suffer from the "curse of dimensionality." To overcome this difficulty, we develop a deep learning approach that directly solves high-dimensional stochastic control problems based on Monte-Carlo sampling. We approximate the time-dependent controls as feedforward neural networks and stack these networks together through model dynamics. The objective function for the control problem plays the role of the loss function for the deep neural network. We test this approach using examples from the areas of optimal trading and energy storage. Our results suggest that the algorithm presented here achieves satisfactory accuracy and at the same time, can handle rather high dimensional problems.
Introduction
Stochastic control is a fundamental framework for decision-making under uncertainty, with applications ranging from financial portfolio management to energy grid stabilization. However, traditional methods are often hampered by the "curse of dimensionality." Richard Bellman’s Dynamic Programming (DP) requires the computation of a value function across the entire state space, a task that becomes exponentially expensive as the number of state variables increases. While Reinforcement Learning (RL) offers alternatives, many RL algorithms are optimized for infinite-horizon tasks and struggle with the precise time-dependent constraints common in engineering and finance. This paper proposes a direct deep learning approach to solve high-dimensional, finite-horizon stochastic control problems.
Methodology: Stacked Neural Networks
The core innovation lies in approximating the optimal control $a_t(s_t)$ directly using a sequence of neural networks. For a problem with $T$ time steps, the architecture consists of $T$ separate feedforward subnetworks.
As shown in Figure 1, each subnetwork at time $t$ takes the current state $s_t$ as input and outputs the control action $a_t$. The system's physical dynamics, defined by the transition equation $s_{t+1} = f(s_t, a_t, \xi_{t+1})$, act as non-trainable layers that connect the subnetworks. This "stacking" allows the entire sequence to be treated as a single deep neural network.
The loss function for this "mega-network" is the actual objective of the control problem—such as minimizing total cost or maximizing expected reward. Physical constraints are incorporated via penalty functions added to the loss. The model is trained end-to-end using Stochastic Gradient Descent (SGD) with the Adam optimizer, leveraging backpropagation to flow through the entire time horizon.
Experimental Results
The framework was validated on several complex models:
Optimal Portfolio Execution
In this finance model, an investor seeks to trade a large block of shares while minimizing price impact. Because an analytical solution exists for this problem, it serves as a rigorous benchmark. The deep learning approach achieved remarkable accuracy, with relative errors between 1.001 and 1.009 across various time horizons.
As illustrated in Figure 2, the relative trading cost converges steadily toward the analytic optimal cost as training iterations increase, demonstrating the algorithm's ability to find near-perfect strategies.
Energy Storage and Scalability
The method was also applied to energy storage problems involving wind farms and batteries. In a scaled-up test with 50 storage devices, the algorithm successfully managed a state space of $\mathbb{R}^{52}$ and a control space of $\mathbb{R}^{150}$. This level of dimensionality is typically insurmountable for traditional lookup-table methods. Furthermore, the neural network policy outperformed discretized DP solutions by avoiding discretization errors in continuous state variables.
Conclusion
By treating system dynamics as network layers and approximating controls directly, this deep learning framework effectively bypasses the curse of dimensionality in finite-horizon stochastic control. While the method requires a known model of system dynamics, its scalability and accuracy make it a powerful tool for high-dimensional engineering and financial applications. Future work may explore the integration of Recurrent Neural Networks (RNNs) to handle non-Markovian systems with memory effects.
Summary updated