Introduction
In reinforcement learning and optimal control, finding a Value Function—a map indicating the total future cost of being in any given state—is a primary objective. With a perfect value function, optimal action selection is straightforward: simply choose the action leading to the state with the lowest future cost.
However, calculating this function is notoriously difficult. Standard Dynamic Programming (DP) discretizes the entire state space into a grid. To find the optimal path, it must evaluate every cell, leading to the "curse of dimensionality." As the number of state variables (like position, velocity, joint angles) increases, the number of grid cells grows exponentially, making standard DP computationally intractable for complex systems.
This paper by Christopher G. Atkeson presents a hybrid approach to solving complex control problems. It combines the speed of local trajectory optimization with the robustness of global Dynamic Programming. By using fast, second-order local trajectory optimizers to build local models of a value function, these models can be stitched together to ensure global consistency. This approach allows for global optimization on much sparser grids than standard DP, potentially overcoming the curse of dimensionality in high-dimensional control tasks.
Methods: A Hybrid Approach
The author introduces several key modifications to traditional DP (specifically Larson’s State Increment DP):
- Local Trajectory Optimization: Instead of assuming a constant action within a grid cell, the method uses Differential Dynamic Programming (DDP). This second-order technique produces not just a path, but a local quadratic model of the value function (including its first and second derivatives) in a "tube" around that path.
- Global Consistency: The algorithm performs local optimizations across a grid but forces adjacent trajectories to be consistent. If a neighbor's value function predicts a different cost than the current trajectory, the grid is refined or the trajectory is updated until they align.
- Sparse Gridding: Because the local models provide derivatives (the "slope" and "curvature" of the cost), the algorithm can accurately interpolate between grid points. This allows the use of a much coarser grid than standard DP while maintaining accuracy.
- Adaptive Grids and Cost Contours: The search "grows" outward from the goal state along surfaces of constant cost ($C_g$). By focusing computation only on states reachable within a certain cost threshold, the algorithm avoids wasting time on irrelevant parts of the state space.
Experimental Setup: Pendulum Swing-Up
The paper evaluates the approach using a Simulated Pendulum Swing-Up task rather than a standard external dataset.
- The Task: Move a pendulum from hanging straight down (stable equilibrium) to pointing straight up (unstable equilibrium) using a motor with limited torque.
- The State Space: Defined by the pendulum's angle ($\theta$) and angular velocity ($\dot{\theta}$).
- The Cost: A quadratic penalty on the distance from the goal and the magnitude of the torque applied.
Key Insights
- Value Functions as Local Models: The core insight is treating the value function not as a collection of discrete points, but as a collection of local quadratic patches. These patches carry derivative information, making global integration much more efficient.
- Direct Measurement vs. Interpolation: In standard DP, moving between cells accumulates interpolation errors. By using trajectories that go all the way to the goal as "building blocks," the cost is measured directly along the path, bypassing error accumulation.
- Bypassing the Curse: By approximating constant cost contours using "key trajectories," computational complexity can theoretically be reduced to $O(TD^2)$ (where $T$ is time and $D$ is dimensionality), rather than the exponential growth seen in grid-based DP.
Results
The algorithm successfully identifies different locally optimal strategies for the pendulum, such as swinging straight up, swinging back and forth once to gain momentum, or oscillating multiple times to "pump" the system. By maintaining consistency across the local models, the search can find the true globally optimal trajectory among the various local options.
Crucially, the proposed method demonstrates significant grid efficiency. Qualitative comparisons show that while standard DP fails and produces incorrect trajectories when the grid resolution is lowered, the proposed method remains consistent and accurate even on sparse grids.
Limitations and Future Work
- Dimensionality: While the adaptive grid approach reduces the search space, basic adaptive grids still suffer from the curse of dimensionality. The "key trajectory" approximation is proposed as a solution but remains an exploratory idea.
- Complexity of Problems: The pendulum is a 2D state space problem. The true test will be applying this to much more complex, higher-dimensional systems to verify if the $O(TD^2)$ complexity holds in practice.
- Model Dependency: The method relies on having a learned or known model of the system dynamics and the cost function. If the model is inaccurate, the resulting trajectories will not translate to physical success.
Summary updated