Introduction
Model-free reinforcement learning (MFRL) algorithms, such as Proximal Policy Optimization (PPO) and Trust Region Policy Optimization (TRPO), represent the gold standard for performance in continuous control tasks. However, they are notoriously data-hungry, often requiring millions of interactions to learn simple behaviors. Model-based reinforcement learning (MBRL) promises to drastically reduce this sample complexity by learning a "world model" (a simulator) that the agent can practice in. Yet, MBRL has historically struggled when paired with complex function approximators like deep neural networks.
Model-Ensemble Trust-Region Policy Optimization (ME-TRPO) bridges this gap. By utilizing an ensemble of deep neural networks to model environment dynamics alongside a robust trust-region optimizer, ME-TRPO achieves the performance of state-of-the-art model-free methods while using up to 100x less data.
The Challenge: Model Bias
The core issue preventing standard MBRL from succeeding in complex domains is model bias. When a policy optimizer is trained against a learned, imperfect world model, it tends to find and exploit regions where the model is inaccurate. The agent achieves high "imagined" rewards by exploiting these physical hallucinations, but fails catastrophically when deployed in the real environment. Standard regularization techniques (like weight decay) are insufficient because the policy actively steers the agent toward these "broken" parts of the state space.
The ME-TRPO Solution
To stabilize model-based learning and overcome model bias, ME-TRPO introduces several key mechanisms:
- Model Ensembles: Instead of relying on a single neural network, the algorithm trains an ensemble of $K$ models. Each model is initialized with different random weights and trained on data in a different order. This ensemble captures epistemic uncertainty: the models will generally agree in well-explored regions of the state space and disagree where data is scarce.
- Stochastic Ensemble Sampling: During policy training, the agent simulates trajectories to learn. At each step of this simulation, ME-TRPO randomly selects one model from the ensemble to predict the next state. This prevents the policy from overfitting to the specific quirks or inaccuracies of any single model.
- Likelihood Ratio Gradients (TRPO): Many MBRL methods use Backpropagation Through Time (BPTT) to calculate gradients, which is prone to exploding or vanishing gradients over long horizons. ME-TRPO instead treats the learned models as a black-box simulator and uses TRPO. This avoids the numerical instability inherent in long-horizon gradient flows.
- Ensemble-Based Early Stopping: The ensemble is also used for validation. The policy is only updated as long as it demonstrates improvement across a majority of the models in the ensemble, preventing overfitting to the current dynamics approximation.
Experimental Setup & Benchmark Tasks
The algorithm was evaluated on the MuJoCo physics engine using OpenAI Gym continuous control benchmarks. These ranged from lower-dimensional tasks like Swimmer, Snake, and Hopper, to highly complex, high-dimensional environments like Ant, HalfCheetah, and the notoriously difficult Humanoid.
ME-TRPO was compared against state-of-the-art model-free baselines (TRPO, PPO, DDPG) and other model-based approaches (SVG).
Key Findings & Results
- 100x Sample Efficiency: On complex tasks like HalfCheetah and Ant, ME-TRPO reached the same performance level as model-free TRPO but required two orders of magnitude fewer samples from the real environment.
- Stable, Monotonic Improvement: While "vanilla" MBRL (using a single model and BPTT) often saw performance collapse after a few iterations due to model exploitation, ME-TRPO demonstrated steady, stable learning.
- Scaling to Humanoid: ME-TRPO successfully learned the Humanoid task, which involves a 37-dimensional state space and complex balance dynamics. This marks one of the first times a purely model-based approach has succeeded in such a high-dimensional continuous control environment.
- The Importance of Ensemble Size: Increasing the ensemble size (e.g., from 1 to 20) consistently improved performance and reduced the variance of the learning process, particularly in more complex environments.
Limitations and Future Directions
While highly sample-efficient, ME-TRPO is computationally expensive. Training an ensemble of large neural networks and running numerous simulated rollouts requires significant GPU time, though the authors note that ensemble training is highly parallelizable.
Furthermore, the current iteration of ME-TRPO does not explicitly use the ensemble's disagreement to drive exploration (e.g., actively seeking out states where models disagree to gather more data). Incorporating uncertainty-driven exploration is a primary path for future research. Finally, as these experiments were conducted in a deterministic simulator, adapting ME-TRPO for real-world robotics will require robust handling of sensor noise and non-deterministic dynamics.
Summary updated