This paper, authored by Sergey Levine and Vladlen Koltun, presents a novel framework for training complex control policies by combining the precision of trajectory optimization with the generality of policy search.
Introduction
The authors introduce Variational Guided Policy Search (VGPS), a method that uses model-based trajectory optimization to "guide" a neural network policy toward successful behaviors. By framing control as a variational inference problem, they decouple the difficult task of exploration from policy learning. This allows robots to learn complex maneuvers—like walking and swimming—that often baffle standard reinforcement learning approaches.
The Challenge of High-Dimensional Control
In high-dimensional robotics (such as controlling a bipedal walker), the "curse of dimensionality" makes random exploration nearly useless. If you randomly wiggle the joints of a robot, the odds of it accidentally performing a successful walking step are effectively zero. Without "seeing" a success, a policy search algorithm has nothing to learn from.
Traditional methods often struggle because they try to optimize the policy parameters directly through trial and error. This paper addresses the gap between trajectory optimization (which is highly effective at finding a single successful path if a model is available) and policy search (which excels at creating a general-purpose controller but is terrible at initial exploration).
Methods: Control as Inference
The core idea is to treat reinforcement learning as an inference problem. The authors introduce a binary random variable representing "optimality" and seek the policy parameters that maximize the likelihood of being optimal.
Key components of the VGPS framework include:
- Variational Decomposition: The objective is decomposed into two alternating steps, similar to an Expectation-Maximization (EM) algorithm.
- The "Guide" (E-step): The method uses Differential Dynamic Programming (DDP) or iterative LQR to find a distribution of high-performing trajectories. Because DDP uses a dynamics model and local linearization, it can "find" the goal much faster than random sampling.
- The "Student" (M-step): A neural network policy is trained to match the trajectories found by the guide. This is essentially supervised learning, which is significantly more stable than standard policy gradients.
- Cost Annealing: The algorithm starts with a high cost magnitude to encourage aggressive exploration of "best-case" scenarios and gradually lowers it to optimize for average-case performance.
Evaluation Environments
The method was evaluated on two simulated planar locomotion tasks using a physics engine:
- Planar Swimmer: A 3-link robot with 5 degrees of freedom (DOF) and a 10D state space.
- Bipedal Walker: A more complex 7-link robot with 9 DOF and an 18D state space.
- Note: The walker task is difficult enough that it was initialized with a single human-provided demonstration, which the algorithm then refined and generalized into a robust policy.
Key Insights
- Decoupling is Key: By separating exploration (trajectory optimization) from generalization (policy learning), the algorithm avoids the "noisy" gradients that plague standard RL in high-dimensional spaces.
- Probabilistic Supervision: Unlike simple imitation learning (like DAGGER), VGPS doesn't just try to copy a single path; it tries to match a distribution of paths. This makes the resulting policy more robust to perturbations.
- Variational Bounds: Framing the problem as maximum likelihood allows the use of well-understood variational bounds. The "KL divergence" between the guide's trajectories and the student's policy becomes the primary training signal.
Results
VGPS successfully learned walking and swimming policies where standard "cost-weighted" exploration (like PoWER) and standard Guided Policy Search (GPS) failed or were significantly slower.
- Efficiency with Small Models: On the walker task, VGPS was able to find a successful policy using a neural network with only 5 hidden units, a regime where importance-sampling-based methods typically collapse due to high variance.
- Robustness: The learned policies were stochastic and could handle the complex, nonlinear dynamics of contact and joint limits better than prior imitation-based approaches.
Limitations and Future Work
- Model Dependency: The method requires a differentiable model of the system dynamics. While common in simulation, this can be difficult to obtain for complex real-world robots with soft materials or unpredictable environments.
- Local Optima: Because DDP relies on local linearization, the "guide" can still get stuck in local optima if the initial trajectory is very poor.
- Future Directions: The authors suggest extending the method to model-free trajectory optimization to remove the requirement for a known dynamics model, as well as exploring "unscented" filters to handle highly non-smooth dynamics (like sudden impacts) more gracefully.
Summary updated