Random Sampling of States in Dynamic Programming

Christopher G. Atkeson, Benjamin J. StephensNeurIPS 2007

Introduction

Dynamic Programming (DP) is a powerful mathematical optimization method for finding globally optimal control laws. However, it faces a massive hurdle known as the Curse of Dimensionality: as the number of state dimensions (e.g., joint angles and velocities in a robot) increases, the number of grid points required to represent the "value function" (the total future cost) grows exponentially.

Traditional grid-based methods quickly exhaust computer memory, even for relatively simple robotic systems. This paper introduces a hybrid approach to DP that breaks this curse by combining sparse random state sampling with local trajectory optimization. By representing the value function and policy through a collection of local quadratic models rather than a dense grid, the authors successfully solve complex robotic control problems that were previously impossible due to memory limitations.

The Proposed Method

To solve deterministic, time-invariant control problems with continuous states and actions, the authors propose a representation that is "sparse"—meaning it uses a small number of intelligently chosen points rather than a massive, rigid grid. Their strategy relies on three core pillars:

  1. Sparse Random Sampling: Instead of a uniform grid, the algorithm randomly selects states. Crucially, these states are added incrementally using an acceptance criterion. A new state is only stored if it represents a "surprise"—meaning the current model's prediction of its value differs significantly (e.g., >10% error) from the value found through local optimization. This automatically focuses computational resources on the difficult, non-linear regions of the state space.
  2. Local Quadratic Models: At each sampled state, the system stores more than just a single value. It stores a local quadratic model of the value function and a local linear model of the policy (derived via Taylor series expansion). This allows the function approximator to "reach" further from each point, making sparse samples highly informative.
  3. Differential Dynamic Programming (DDP): DDP is used to perform local trajectory optimization. This provides the "ground truth" for a state's value by simulating a path to the goal and refining it. To ensure global optimality, the algorithm periodically re-optimizes stored states using the policies of other nearby states, allowing information to exchange across the state space.
Value function, policy, and sampled trajectories for the one-link pendulum

Key Insights

  • Exploiting Local Simplicity: Many complex-looking control problems are "locally simple" (similar to a Linear Quadratic Regulator, or LQR). By using quadratic models, the authors capture this local structure efficiently, requiring far fewer points than a grid that assumes nothing about the local shape of the function.
  • Goal-Directed Acceleration: For problems with a defined goal, the authors use a local LQR controller at the target to "enlarge" the goal zone. If a trajectory gets within a certain radius of the goal, the simple LQR takes over, significantly speeding up convergence.

Key Results

The efficiency gains of this sparse sampling approach over traditional grid-based methods are staggering, particularly as dimensionality increases. The authors evaluated their method on simulated physical systems, including multi-link pendulum swing-up tasks:

  • One-link Pendulum (2D): Found the globally optimal trajectory using only 63 random states.
  • Two-link Pendulum (4D): Solved using an average of 12,000 states. For comparison, a grid-based approach with 13 million states failed to find a trajectory this good, and it would require a 100-million-state grid to match these results.
  • Three-link Pendulum (6D): Solved using fewer than 22,000 states. A regular grid-based approach would require over 391 million states just for a low-resolution representation, which exceeded available memory.
Time-lapse sequence of the two-link pendulum swing-up task

Limitations and Future Work

While highly effective for the demonstrated tasks, the current approach has a few limitations. It focuses primarily on deterministic systems, though the authors note that stochastic elements can sometimes "smooth" dynamics and make sampling easier. Additionally, the method assumes a known model of the robot's dynamics and cost function; future work may involve learning the dynamic model simultaneously with the policy.

Finally, while the re-optimization phase helps approach global optimality, finding a guaranteed globally optimal solution with limited samples remains a theoretical challenge in high-dimensional spaces. The authors also plan to investigate more sophisticated function approximation methods, such as kernel regression or locally weighted regression, to improve upon their current nearest-neighbor approach for combining local models.

Summary updated

BibTeX
@inproceedings{atkeson2007random,
  author = {Christopher G. Atkeson and Benjamin J. Stephens},
  title = {{Random Sampling of States in Dynamic Programming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2007},
}
Figure