Introduction
Guided Policy Search (GPS) bridges the gap between trajectory optimization and reinforcement learning. By using trajectory optimization to generate "guiding samples" in high-reward regions, the algorithm helps complex neural network policies avoid poor local optima. This approach enables the learning of sophisticated behaviors—such as 3D humanoid running—with far greater sample efficiency than standard policy gradient methods.
The Challenge of Direct Policy Search
In reinforcement learning, direct policy search is a popular method for teaching robots how to move. However, it faces a major "catch-22":
- To perform complex tasks, agents require complex policies (e.g., neural networks with hundreds or thousands of parameters).
- Complex policies are notoriously difficult to train because the "reward landscape" is riddled with local optima—traps where the robot learns a mediocre behavior and cannot discover a path to further improvement.
Standard policy gradient methods often require a massive number of samples and a highly fortunate initialization to find high-reward behaviors. Researchers frequently bypass this by using hand-crafted policy classes designed for specific tasks, but this limits the robot's ability to generalize or learn truly novel behaviors. Levine and Koltun tackle this limitation by asking: How can we use classical control theory to "show" the reinforcement learning algorithm where the high rewards are located?
The Guided Policy Search Approach
The authors introduce Guided Policy Search (GPS), which integrates three main components to guide the learning process:
- Trajectory Optimization as a Teacher: The algorithm uses Differential Dynamic Programming (DDP) to find specific, high-reward trajectories. While DDP is fast and effective, it produces "time-varying" policies that only work for one specific path and fail to generalize. In GPS, these optimized trajectories serve as "guiding samples."
- Importance Sampled Policy Search: To train a general neural network policy, the algorithm employs importance sampling. This allows the policy to learn from "off-policy" data (the DDP trajectories) rather than relying solely on its own trial-and-error exploration.
- A Novel Regularizer: A major technical contribution of this work is a new regularization term (the logarithm of the normalizing constant). Without this, importance sampling often fails in high-dimensional spaces because the optimizer might ignore the guiding samples or assign them near-zero weight. This regularizer acts as a "soft maximum," ensuring the policy stays close to at least some high-reward samples.
- Adaptive Distributions: If the initial DDP samples are too difficult for the neural network to mimic, the algorithm can adapt the guiding distributions to be more "reproducible," effectively creating a curriculum for the learner.
Experimental Setup
The method was evaluated using the MuJoCo physics simulator. The authors tested the algorithm on several simulated robotic platforms of varying complexity:
- Planar Swimmer: A multi-link chain navigating a 2D fluid environment.
- Planar Hopper & Walker: 2D legged robots requiring balance and forward momentum.
- 3D Humanoid: A highly complex 63-dimensional system.
The initialization data for these tasks varied. The swimmer and hopper used raw DDP, while the walker and 3D humanoid were initialized with human motion capture data to provide a feasible starting point for the trajectory optimization.
Key Findings
- Generalization via Representation: While a DDP solution is fragile (failing if the robot is pushed off its exact path), a neural network trained via GPS learns the underlying "rules" of the task. The learned policy successfully handled slopes and terrain changes that the original DDP teacher could not. For instance, a walker trained on flat ground was able to climb a 10° incline without any additional training, proving it learned a generalizable control strategy rather than just memorizing paths.
- Complexity Scaling: GPS successfully trained a 3D humanoid to run—a massive control task with 63 state dimensions—using a general-purpose neural network.
- Comparison to Baselines: GPS significantly outperformed standard policy gradients and DAGGER (a popular imitation learning algorithm). While DAGGER attempts to match the expert exactly, GPS maximizes the actual reward, making it far more robust when the "expert" (DDP) is imperfect.
Limitations and Future Directions
- Model Dependency: The guiding phase (DDP) requires a known model of the system's dynamics. While the authors suggest that local models could be learned from data, the core algorithm presented assumes the physics are known in advance.
- Local Optima in DDP: While GPS successfully avoids local optima during the policy search phase, the guiding DDP phase can still get stuck if not initialized well (which necessitated the use of motion capture for the humanoid).
- Future Work: The authors point toward using even larger neural networks (such as those with multiple layers or recurrent connections) and training on multiple environments simultaneously to further improve the robustness and portability of the learned controllers.
Summary updated