Predictor-Corrector Policy Optimization

Ching-An Cheng, Xinyan Yan, Nathan D. Ratliff, Byron Boots

TL;DR

PICCOLO is a meta-algorithm that transforms standard model-free reinforcement learning (RL) into a hybrid method that leverages predictive models for speed. Unlike traditional model-based approaches, it uses a "Predictor-Corrector" framework that remains robust to modeling errors, ensuring that even a bad model won't bias the final policy.

The Challenge: Sample Inefficiency vs. Model Bias

Reinforcement learning is notoriously sample-inefficient, often requiring millions of interactions to learn simple tasks. While model-based RL (using a simulator or learned dynamics) can speed this up, it has a major "Achilles' heel": model bias. If your model is slightly wrong—which it almost always is in complex real-world scenarios like robotics—the policy learns to exploit those inaccuracies, leading to poor performance in the real environment.

The authors seek to bridge the gap: How can we use models to accelerate learning (like model-based RL) while maintaining the unbiased convergence guarantees of model-free RL?

The PICCOLO Framework

The authors introduce PICCOLO (PredICtor-COrrector poLicy Optimization), a framework that "wraps" around existing first-order algorithms (like Adam, Mirror Descent, or TRPO). It operates in a recursive two-step loop:

  1. The Prediction Step: The learner uses a predictive model (e.g., a simulator or a neural network) to guess what the next gradient will look like. It then proactively updates the policy based on this guess.
  2. The Correction Step: The learner executes the updated policy in the actual environment to receive the true gradient. It then calculates the error between the prediction and reality and "corrects" the policy update.

Technically, the paper treats policy optimization as a predictable online learning problem. By reducing this to an adversarial online learning setup, they prove that PICCOLO can achieve optimal convergence rates. Crucially, PICCOLO adaptively adjusts its step size based on prediction error: if the model is accurate, it takes larger steps; if the model is wrong, it scales back to prevent damage.

Experimental Setup

The researchers evaluated PICCOLO using several continuous control tasks from OpenAI Gym, specifically utilizing the DART physics engine (known for being more accurate for robotics simulation than MuJoCo). The environments included CartPole (for initial theoretical validation), Hopper, Snake, and Walker3D.

They tested various "predictive models," ranging from the ground-truth dynamics to "adversarial" models designed to provide intentionally wrong gradients.

Key Insights and Results

  • Bias-Free Acceleration: The most significant insight is that you don't need a perfect model to get a speedup. Because PICCOLO always "corrects" using real-world data, the model only influences the speed of convergence, not the destination.
  • Robustness to Adversaries and Model Fidelity: In experiments, even when the model was programmed to be "adversarial" (providing the worst possible gradients), PICCOLO still converged to the correct solution, whereas traditional hybrid methods like DYNA failed completely. Furthermore, when testing models where the mass of robot links was randomized by up to 80%, PICCOLO still improved learning speed, demonstrating that even a "vaguely right" model is better than no model at all.
Performance under adversarial models and varying model fidelities.
  • Consistent Speedup: Across Hopper, Snake, and Walker3D, "PICCOLO-ed" versions of Adam and TRPO reached high reward levels significantly faster than their standard model-free counterparts.
Learning curves for Walker3D using TRPO, showing PICCOLO's speedup over the base algorithm.
  • The "Reduction" Framework: The authors provide a mathematical bridge between predictable online learning and standard adversarial learning. This allows them to "PICCOLO-ed" almost any existing first-order RL algorithm.
  • Fixed-Point Prediction: To get the best results, the authors suggest solving a "fixed-point" problem during the prediction step—essentially finding a policy that is consistent with the gradient it would generate according to the model.

Limitations and Future Work

  • Computational Overhead: The Prediction Step, especially when using the fixed-point iteration, requires more computation per iteration than standard model-free RL. While this saves "sample time" (real-world interactions), it increases "wall-clock time" on the computer.
  • Model Availability: While the paper shows robustness to bad models, you still need some model or a way to generate off-policy gradients to see any benefit.
  • Non-Convexity: The theoretical proofs rely on convexity assumptions that don't strictly hold for deep neural networks, though the empirical results suggest the framework is still highly effective in those non-convex regimes.
  • Future Direction: The authors suggest exploring models specifically trained to minimize the prediction error used in the correction step, rather than just training models to predict dynamics.

Summary updated

BibTeX
@inproceedings{cheng2019predictor,
  author = {Ching-An Cheng and Xinyan Yan and Nathan D. Ratliff and Byron Boots},
  title = {{Predictor-Corrector Policy Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=r1bqLoWObr},
}
Figure