Abstract
Model-free deep reinforcement learning (RL) algorithms can learn complex robotic skills but often require a prohibitive number of samples. Model-based algorithms offer better sample efficiency but struggle with high-capacity models like deep neural networks. This work demonstrates that neural network dynamics models combined with model predictive control (MPC) can achieve excellent sample complexity. We further propose a hybrid approach (Mb-Mf) that uses model-based learning to initialize a model-free learner. On MuJoCo locomotion tasks, our hybrid algorithm accelerates learning by 3–5× compared to pure model-free methods.
Introduction
Deep Reinforcement Learning faces a significant trade-off between sample efficiency and asymptotic performance. Model-free algorithms (e.g., TRPO, PPO) can learn intricate behaviors but are notoriously data-hungry, often requiring millions of environment interactions. Conversely, model-based (MB) algorithms learn a transition model of the environment to plan actions, which is highly efficient but often plateaus due to "model bias"—where small inaccuracies in the learned physics engine compound over time.
This paper addresses two primary challenges: effectively utilizing high-capacity neural networks for dynamics modeling without overfitting, and bridging the gap between efficient model-based initialization and high-performing model-free fine-tuning.
Methodology
The proposed framework consists of two distinct phases designed to leverage the strengths of both paradigms.
1. The Model-Based (MB) Phase
In this phase, the agent learns a dynamics model $\hat{f}_\theta(s_t, a_t)$ to predict the state change ($\Delta s = s_{t+1} - s_t$). Predicting the delta rather than the absolute next state is a key technical insight that simplifies learning when time steps are small.
As shown in the architecture above, the agent uses Model Predictive Control (MPC). It samples candidate action sequences, uses the learned dynamics model to simulate potential outcomes, and selects the sequence with the highest predicted reward. This process is iterative: the agent continuously aggregates on-policy experience to refine the dynamics model, similar to the DAgger algorithm.
2. The Hybrid (Mb-Mf) Phase
To surpass the performance plateau of pure MB methods, the authors use the MB controller to "warm-start" a model-free learner. They record trajectories from the MB controller and use behavioral cloning to initialize a policy network. This pre-trained policy then serves as the starting point for Trust Region Policy Optimization (TRPO), bypassing the inefficient initial stage of random exploration.
Experimental Results
The framework was evaluated on the MuJoCo physics engine using four standard continuous control benchmarks.
Key Findings
- Sample Efficiency: The hybrid Mb-Mf approach achieved the same performance as pure TRPO while using 3–5× fewer samples. In the Swimmer environment, the MB phase achieved a stable gait 20× faster than model-free counterparts.
- Zero-Shot Generalization: Because the MB model learns general environment physics rather than a specific task policy, it can follow arbitrary new trajectories at test-time without further training.
- Random Data Utility: Remarkably, the dynamics model can be trained effectively even on completely random action data, suggesting it captures fundamental physical properties of the agent.
Discussion and Limitations
While highly efficient, the pure MB approach is limited by the "myopic" nature of the MPC controller, which uses a simple random-sampling shooting method with a short horizon. This prevents it from reaching the peak performance of model-free methods on its own. Additionally, while environment sample efficiency is high, the computational cost of running MPC (simulating thousands of futures per step) is significant. Future work involves tighter integration of model-based gradients into policy optimization and deployment on physical robotic systems where sample efficiency is critical.
Summary updated