TL;DR
This paper introduces Delayed Differential Dynamic Programming (DDP), an extension of the classic DDP algorithm that can optimize trajectories for systems where the next state depends on a history of previous states. By accounting for these time-delays, the authors enable the use of high-performance optimal control on complex models like Recurrent Neural Networks (RNNs), which are often used to represent real-world systems with unknown or non-Markovian dynamics.
What Problem Does This Paper Address?
Most standard optimal control algorithms, including classic DDP, rely on the Markov assumption: the idea that the future state of a system depends only on its current state and current control input. However, real-world systems are rarely that simple. Delays are everywhere—caused by communication lag, sensor processing time, or complex physical properties like elasticity in soft robotics.
Furthermore, when we "learn" a model of a robot using machine learning (like an RNN), the model often requires a window of past data to make accurate predictions (e.g., using past positions to infer current velocity). Standard DDP cannot handle these "history-dependent" dynamics directly. The authors aim to bridge this gap by deriving a version of DDP that explicitly incorporates multiple time-delays into the optimization process.
Methods
The authors derive Delayed DDP by modifying the Bellman equation—the mathematical foundation of dynamic programming.
- State Augmentation Logic: While they don't explicitly augment the state vector in a way that explodes dimensionality, they expand the Taylor series of the Value function around a segment of past history.
- Quadratic Approximation: Like classic DDP, the algorithm uses a second-order approximation of the cost and dynamics. However, the "Q-terms" (derivatives of the Hamiltonian) now include partial derivatives with respect to past states ($x_{i}, x_{i-1}, \dots, x_{i-k}$).
- Backward Pass: The algorithm computes feedback gains ($K_j$) for each delayed timestep. This means the optimal control law at time $i$ is a linear function of the current state and the past $k$ states.
- Computational Complexity: The authors note that while classic DDP scales as $O(Nn^3)$, Delayed DDP scales as $O(k^2Nn^3)$, where $k$ is the length of the delay. This makes it more expensive but still feasible for real-time applications if the delay window is reasonable.
Datasets
The paper evaluates the algorithm on two primary simulated environments:
- Two-Stage Continuously Stirred Tank Reactor (CSTR): A nonlinear chemical process model with four states and two control inputs, modified to include a 0.5-second state delay.
- RNN-Modeled Inverted Pendulum: A neural network was trained on a dataset of 12,500 trajectories (1-second each) of a pendulum. Crucially, the dataset only included position ($x, y$ coordinates), not velocity. The RNN used a delay of $k=3$ timesteps to "learn" the underlying physics.
Key Insights and Ideas
- Feedback is the Killer App: The most significant advantage of DDP over other methods (like those based on Pontryagin’s Maximum Principle) is that it produces feedback gains. The authors show that in noisy delayed systems, open-loop control (just following a pre-computed path) leads to immediate failure, while the delayed feedback gains keep the system on track.
- RNN Integration: By showing that DDP can work with delayed states, the authors open the door to using RNNs as "pluggable" dynamics models for optimal control. This is a big deal for robotics where writing down exact differential equations is difficult.
- Quadratic Convergence: Because the delayed problem can be mathematically "collapsed" into a non-delayed form, the algorithm retains the fast, quadratic convergence properties of classic DDP.
Key Results
- CSTR Success: Delayed DDP successfully pushed all states of the chemical reactor to zero within a 5-second horizon, converging in about 5 to 20 iterations.
- Classic DDP Failure: When the optimal control sequence from a non-delayed model was applied to the delayed CSTR system, the system became unstable and "exploded," proving that ignoring delays is not an option for these dynamics.
- Position-Only Control: The algorithm successfully performed a "swing-up" maneuver on an inverted pendulum using an RNN model that had no explicit velocity state. The Delayed DDP was able to utilize the history of positions to effectively "see" the velocity and control the system.
Limitations and Future Work
- The Cost of History: The $O(k^2)$ scaling means that if a system has very long-range dependencies (a large $k$), the backward pass becomes computationally heavy.
- Deterministic Focus: This derivation is for deterministic systems. While the authors showed it handles noise well via feedback, they suggest that extending this to Stochastic DDP or risk-sensitive control would be a valuable next step.
- Model Accuracy: The performance of the controller is heavily dependent on the quality of the learned RNN. Small modeling errors in the neural network can lead to sub-optimal behavior when applied to the real physical system.
Summary updated