Abstract
We present a predictor-corrector framework, called PicCoLO, that can transform a first-order model-free reinforcement or imitation learning algorithm into a new hybrid method that leverages predictive models to accelerate policy learning. The new "PicCoLOed" algorithm optimizes a policy by recursively repeating two steps: In the Prediction Step, the learner uses a model to predict the unseen future gradient and then applies the predicted estimate to update the policy; in the Correction Step, the learner runs the updated policy in the environment, receives the true gradient, and then corrects the policy using the gradient error. Unlike previous algorithms, PicCoLO corrects for the mistakes of using imperfect predicted gradients and hence does not suffer from model bias. The development of PicCoLO is made possible by a novel reduction from predictable online learning to adversarial online learning, which provides a systematic way to modify existing first-order algorithms to achieve the optimal regret with respect to predictable information. We show, in both theory and simulation, that the convergence rate of several first-order model-free algorithms can be improved by PicCoLO.
Introduction
Reinforcement learning (RL) is often hindered by extreme sample inefficiency, frequently requiring millions of environment interactions to master even basic tasks. While model-based RL attempts to mitigate this by training agents within simulators, it introduces a significant risk: model bias. If the simulator's dynamics deviate from reality, the agent learns a policy that fails in the real world. Conversely, model-free RL remains unbiased but is painfully slow as it ignores the predictable physical dynamics of the environment.
PicCoLO (PredICtor-COrrector poLicy Optimization) offers a robust middle ground. By framing policy optimization as a predictable online learning problem, PicCoLO leverages predictive models to speed up learning while maintaining the unbiased convergence of model-free methods.
The PicCoLO Framework
PicCoLO is a meta-algorithm designed to wrap around existing first-order optimizers such as Adam, Natural Gradient, or TRPO. It operates through a recursive two-step process:
- Prediction Step: The learner utilizes a predictive model—which can be a simulator, a neural network, or a replay buffer—to estimate the gradient of the upcoming loss function. This predicted update is then applied to the policy.
- Correction Step: The agent executes the updated policy in the actual environment to obtain the true gradient. The algorithm calculates the error between the prediction and the reality, applying a correction to ensure the policy remains on the correct path.
Overcoming the "Chicken-and-Egg" Problem
A core challenge in this framework is that the true gradient depends on the policy, yet the policy update depends on the predicted gradient. PicCoLO addresses this through a fixed-point formulation, solving for the prediction and the policy simultaneously. This approach significantly outperforms simple heuristics and ensures the algorithm remains stable even with imperfect models.
Robustness to Model Error
Unlike traditional hybrid methods like DYNA, which interleave model-based and model-free updates and can be derailed by inaccurate simulators, PicCoLO is mathematically guaranteed to be bias-free. Even if the predictive model is completely wrong or intentionally adversarial, the correction step ensures the agent eventually converges to the optimal policy. In such cases, PicCoLO simply reverts to the performance of the underlying model-free algorithm rather than failing entirely.
Experimental Results
The researchers evaluated PicCoLO on various robotic control tasks within OpenAI Gym using the DART physics engine, including CartPole, Hopper, Snake, and Walker3D.
Performance and Speedup
Across all benchmarks, "PicCoLOed" versions of standard algorithms reached higher rewards significantly faster than their base counterparts. For instance, in the Hopper task using the Adam optimizer, PicCoLO variants demonstrated a clear advantage in sample efficiency.
Resilience to Bias
In experiments involving models with 80% mass errors, PicCoLO successfully converged to the optimal policy. Traditional methods like DYNA either failed to learn or settled on poor, biased solutions. Furthermore, PicCoLO-ADAGRAD variants demonstrated adaptive regularization, taking larger steps when the model was accurate and slowing down to be more cautious when prediction errors increased.
Conclusion and Future Work
PicCoLO provides a systematic way to accelerate RL without the typical pitfalls of model bias. While the current theoretical proofs rely on convexity assumptions, empirical results on non-convex neural networks are highly promising. Future research may focus on bridging this theoretical gap and developing predictive models specifically optimized to minimize the prediction error used by the PicCoLO framework.
Summary updated