Abstract
Model-based reinforcement learning approaches carry the promise of being data efficient. However, due to challenges in learning dynamics models that sufficiently match the real-world dynamics, they often suffer from model-bias, leading to suboptimal performance. We propose Model-Based Meta-Policy Optimization (MB-MPO), which meta-learns a policy that can quickly adapt to an ensemble of learned dynamics models. This approach bridges the gap between sample-efficient model-based RL and high-performing model-free methods, achieving state-of-the-art performance while requiring 10x to 100x less real-world data than traditional approaches.
Introduction
Reinforcement Learning (RL) generally falls into two camps: Model-Free (MF) and Model-Based (MB). Model-free methods (like PPO or TRPO) are the performance benchmark but are notoriously data-hungry, often requiring millions of interactions to learn simple locomotion. Model-based methods are much more efficient because they learn a dynamics model (a simulator) of the environment. However, they suffer from model-bias: if the learned simulator has even tiny inaccuracies, the policy will exploit those errors to get high rewards in imagination, only to fail when deployed in the real world.
MB-MPO addresses this by treating model-based RL as a meta-learning problem. Instead of finding a single policy for a potentially flawed model, it learns a meta-policy that can quickly adapt to any model within an ensemble of learned dynamics.
Methods
The MB-MPO framework consists of several key components:
- Dynamics Ensemble: An ensemble of neural networks is trained to predict environment transitions. Diversity in the ensemble captures model uncertainty and prevents the policy from overfitting to a single model's flaws.
- Meta-Optimization: Using Model-Agnostic Meta-Learning (MAML), the meta-policy is optimized such that a single gradient step on any model in the ensemble leads to an effective policy for that specific model.
- Sample Efficiency: Optimization occurs primarily using "imaginary" rollouts from the ensemble, significantly reducing the need for real-world interactions.
- Adaptive Data Collection: Real-world data is collected using adapted policies, which naturally encourages exploration in regions where the models disagree, providing the most informative data for future training.
Results
The algorithm was evaluated on benchmark MuJoCo tasks, including Ant, HalfCheetah, Hopper, Walker2D, and Swimmer, as well as a PR2 robotic arm task.
As shown in the comparison with model-free baselines, MB-MPO successfully matched the peak performance of algorithms like TRPO and PPO while using orders of magnitude less data. For example, it learned complex quadrupedal locomotion (the "Ant" task) in just two hours of simulated real-world time.
Unlike previous model-based approaches that often plateau at suboptimal performance, MB-MPO continues to improve. In challenging tasks like the "Hopper," where compounding model errors typically cause model-based methods to fail, MB-MPO's meta-learning approach provides the necessary robustness to achieve high returns.
Conclusion
MB-MPO demonstrates that meta-learning a "plastic" policy can effectively mitigate the model-bias problem in model-based RL. By internalizing consistent physics while remaining adaptable to discrepancies, the agent avoids overfitting to model flaws. While computationally more intensive than standard methods, its extreme sample efficiency makes it a promising candidate for direct deployment on physical robotic systems.
Summary updated