Neural Network Architectures for Stochastic Control using the Nonlinear Feynman-Kac Lemma

Marcus Pereira, Ziyi Wang, Ioannis Exarchos, Evangelos A. Theodorou

Introduction

Controlling robotic systems in uncertain and dynamic environments necessitates solving Stochastic Optimal Control (SOC) problems. Traditionally, this requires addressing the Hamilton-Jacobi-Bellman (HJB) equation, a nonlinear partial differential equation (PDE). However, the HJB equation is plagued by the "curse of dimensionality": computational costs grow exponentially with the number of system states. While path integral methods have made strides, they often rely on restrictive assumptions regarding noise and control.

This paper introduces a scalable deep learning framework that transforms SOC problems into a system of Forward-Backward Stochastic Differential Equations (FBSDEs). By integrating importance sampling for enhanced exploration and Long Short-Term Memory (LSTM) architectures for temporal consistency, the authors develop a method capable of producing efficient, smooth control policies for high-dimensional systems, such as quadcopters.

Methodology

The core of the proposed approach lies in bridging stochastic calculus and deep learning through several key innovations:

  1. FBSDE Reformulation: Utilizing a nonlinear version of the Feynman-Kac lemma, the HJB PDE is converted into a system of two coupled SDEs: a Forward SDE representing the system state and a Backward SDE representing the value function and its gradient.
  2. LSTM Architectures: Previous deep learning approaches often employed separate fully connected (FC) networks for each timestep. This paper proposes using LSTMs, which share weights across time. This architecture naturally captures temporal dependencies and significantly reduces the total parameter count.
  3. Importance Sampling: To address the "exploration" challenge—where systems might only learn from states reached via random noise—the authors apply Girsanov’s theorem. This "tilts" the probability measure to drive the system toward optimal regions of the state space during training.
  4. Constraint Handling: Physical hardware limits, such as maximum motor torque, are incorporated as "soft" box constraints within the cost functional using sigmoid-based transformations.
Proposed LSTM-based architecture for solving FBSDEs, showing weight sharing across timesteps.

Experimental Evaluation

The framework was evaluated on three standard robotic benchmarks:

  • Inverted Pendulum: A 2-state swing-up task.
  • Cart-Pole: A 4-state balancing task.
  • Quadcopter: A 12-state navigation task involving 3D position, velocity, and attitude.

These simulations acted as data generators, allowing the network to learn optimal control policies through interaction with simulated physics.

Key Results and Insights

The transition from independent FC networks to a weight-sharing LSTM architecture yielded significant improvements in both efficiency and control quality.

Efficiency and Scalability

The LSTM model demonstrated superior scalability. For the 12-state quadcopter, the LSTM architecture utilized orders of magnitude fewer parameters than the FC baseline, which required 100 individual networks. Furthermore, the LSTM approach reduced training time by at least 20% across the benchmarks.

Comparison of training time and parameter count (log scale) between FC and LSTM architectures across different state dimensions.

Control Quality and Robustness

Weight sharing in the LSTM acts as a form of regularization, forcing the network to learn a consistent representation of the value function's gradient. This results in much smoother control trajectories. In contrast, independent FC networks often produced "spiky" or "sawtooth-like" outputs, which are undesirable for real-world robotic hardware. The method also proved robust in handling control constraints while maintaining low variance across test trials.

Conclusion and Future Work

The integration of the nonlinear Feynman-Kac lemma with LSTM-based deep learning provides a powerful tool for high-dimensional stochastic control. While the current framework assumes known system dynamics and control-affine structures, future work aims to extend this to learned dynamics, non-affine systems, and risk-sensitive control strategies capable of handling "jump-diffusion" noise processes.

Summary updated

BibTeX
@inproceedings{pereira2019neural,
  author = {Marcus Pereira and Ziyi Wang and Ioannis Exarchos and Evangelos A. Theodorou},
  title = {{Neural Network Architectures for Stochastic Control using the Nonlinear Feynman-Kac Lemma}},
  booktitle = {Robotics: Science and Systems},
  year = {2019},
  doi = {10.15607/rss.2019.xv.070},
}
Figure