TL;DR
Model-Ensemble Trust-Region Policy Optimization (ME-TRPO) is a sample-efficient reinforcement learning algorithm that achieves the performance of state-of-the-art model-free methods with up to 100x fewer environment interactions. By using an ensemble of deep neural networks to represent environment dynamics and employing Trust Region Policy Optimization (TRPO) for stable updates, it successfully overcomes the "model bias" problem that typically plagues model-based RL in complex, high-dimensional tasks.
What Problem Does This Paper Address?
Reinforcement learning (RL) generally falls into two camps: model-free and model-based. Model-free methods (like PPO or TRPO) are robust and achieve great results but are "data-hungry," often requiring millions of samples to learn simple locomotion. Model-based methods are theoretically more efficient because they learn a simulator (a dynamics model) of the world, but they often fail when paired with powerful function approximators like deep neural networks.
The core issue is model bias. When a policy is trained on a learned model, it tends to exploit regions where the model is inaccurate but happens to predict high rewards. This leads to a policy that looks great in "imagination" but fails catastrophically in the real world. Additionally, standard model-based optimization using Backpropagation Through Time (BPTT) often suffers from exploding or vanishing gradients, making training unstable.
Methods
The authors propose ME-TRPO, which introduces three key modifications to the vanilla model-based RL loop:
- Model Ensemble: Instead of one dynamics model, they train an ensemble of $K$ neural networks. Each network is trained on the same data but starts with different initial weights and sees data in different orders.
- Stochastic Ensemble Rollouts: During policy optimization, the algorithm generates "fictitious" trajectories. At each step of a rollout, it randomly samples one model from the ensemble to predict the next state. This forces the policy to be robust across multiple "possible futures," preventing it from overfitting to the quirks of any single model.
- Likelihood Ratio Optimization (TRPO): Rather than using BPTT to differentiate through the model, they use TRPO. This treats the learned models simply as simulators to generate data for a model-free update. This avoids the numerical instability of BPTT and ensures the policy doesn't change too drastically in a single step.
- Ensemble Validation: They use the ensemble to decide when to stop policy training. If the policy stops improving on a majority (e.g., 70%) of the models in the ensemble, the current iteration ends, and more real-world data is collected.
Datasets
The algorithm was evaluated on six standard continuous control benchmark tasks in the MuJoCo physics engine:
- Swimmer, Snake, Hopper, Ant, Half Cheetah, and Humanoid.
These environments represent a range of complexity, from simple 2D locomotion to the high-dimensional 3D Humanoid task.
Key Insights and Ideas
- Model Bias as Overfitting: The authors argue that model bias isn't just standard supervised overfitting; it's an adversarial process where the policy optimization actively seeks out the model's flaws.
- Ensembles as Regularizers: Using an ensemble acts as a powerful regularizer. A policy that performs well across an ensemble is much more likely to generalize to the real environment dynamics.
- Moving Away from BPTT: A major "aha moment" is that model-based RL doesn't require model derivatives. By using likelihood ratio methods (like TRPO), you get the stability of model-free algorithms while maintaining the sample efficiency of model-based ones.
- Success on Humanoid: ME-TRPO is the first purely model-based approach to successfully learn a policy for the complex Humanoid task, which has traditionally been a graveyard for model-based methods.
Key Results
ME-TRPO significantly outperforms both model-free baselines and prior model-based attempts in sample efficiency:
- 100x Speedup: On tasks like Half Cheetah and Ant, ME-TRPO reaches the same performance level as model-free TRPO or PPO using roughly 100 times fewer samples.
- Stability: The combination of TRPO and ensemble rollouts led to much smoother learning curves compared to vanilla model-based RL using BPTT.
- Performance: In the Humanoid task, ME-TRPO achieved a competitive score in under $10^6$ steps, whereas model-free methods typically require $10^8$ steps.
Limitations and Future Work
- Computational Overhead: While sample-efficient in terms of environment interactions, ME-TRPO is computationally expensive. Training an ensemble of large neural networks takes significant wall-clock time (though this can be parallelized).
- Passive Exploration: The current method uses the ensemble to regularize the policy. A promising future direction is using ensemble disagreement to encourage exploration—directing the agent toward areas where the models disagree to collect more informative data.
- Real-World Application: While MuJoCo is a standard benchmark, the ultimate goal is applying this to physical robots where sample efficiency is not just a metric, but a requirement.
Summary updated