Abstract
Model-Ensemble Trust-Region Policy Optimization (ME-TRPO) is a purely model-based reinforcement learning (RL) algorithm designed to overcome the "model bias" problem. By employing an ensemble of deep neural networks to model environment dynamics and utilizing Trust Region Policy Optimization (TRPO) for policy updates, ME-TRPO achieves the performance of state-of-the-art model-free methods while requiring significantly fewer environment interactions. Notably, it is the first model-based method to succeed on the high-dimensional MuJoCo Humanoid task.
Introduction
Reinforcement Learning (RL) is typically divided into model-free and model-based approaches. Model-free methods, such as PPO or TRPO, are robust but suffer from extreme sample inefficiency. Conversely, model-based reinforcement learning (MBRL) promises higher efficiency by learning a dynamics model (a simulator) of the environment. However, MBRL often fails due to model bias, where the policy optimizer exploits inaccuracies in the learned model. This leads to policies that perform well in the flawed simulator but fail in the real world. ME-TRPO addresses this by using expressive deep neural networks in a way that mitigates overfitting and exploitation of model errors.
Methodology
ME-TRPO introduces several key mechanisms to stabilize model-based learning:
- Model Ensembles: Instead of a single dynamics model, an ensemble of $K$ neural networks is trained. Each network is initialized with different weights and trained on different data shuffles to capture epistemic uncertainty.
- Stochastic Rollouts: During policy optimization in the "imagined" environment, the agent samples a model from the ensemble at each time step. This prevents the policy from overfitting to the specific biases of any single model.
- Likelihood Ratio Gradients (TRPO): Unlike traditional MBRL that uses Backpropagation Through Time (BPTT)—which is sensitive to model derivative errors—ME-TRPO uses TRPO. By treating the learned models as a black-box simulator, the optimization remains stable even if the model's gradients are noisy.
- Ensemble-Based Validation: The ensemble serves as a validation mechanism. Policy training is halted when performance stops improving across a majority of the models, preventing the policy from diverging due to model inaccuracies.
Experimental Setup
The performance of ME-TRPO was evaluated on six continuous control benchmarks from the MuJoCo physics engine, ranging from low-dimensional tasks like Swimmer to the high-dimensional Humanoid.
Results and Discussion
ME-TRPO demonstrates significant improvements in sample efficiency and stability over previous methods.
Sample Efficiency
On tasks such as HalfCheetah and Ant, ME-TRPO reaches the performance levels of model-free TRPO while using approximately 100 times fewer environment samples. This efficiency makes it a viable candidate for real-world robotics where data collection is expensive.
Success on Humanoid
The Humanoid task is notoriously difficult for model-based methods due to its 21 joints and complex balance requirements. ME-TRPO is the first purely model-based approach to successfully optimize a policy for this task, demonstrating the robustness of the ensemble-based approach.
Robustness vs. BPTT
A key insight from the study is that BPTT often introduces instability in MBRL. By switching to a likelihood ratio method like TRPO, the agent requires the model only to be a reasonable simulator rather than a perfectly differentiable function.
Conclusion and Future Work
While ME-TRPO is highly sample efficient, it incurs significant computational costs due to the training of multiple deep neural networks. Future research could explore using ensemble disagreement to guide exploration or applying the method to physical robotic hardware. ME-TRPO represents a significant step toward bridging the gap between the robustness of model-free RL and the efficiency of model-based approaches.
Summary updated