Introduction
Reinforcement Learning (RL) has seen significant success in complex tasks, yet it remains divided into two primary paradigms: model-free and model-based methods. Model-free (MF) algorithms, such as Deep Deterministic Policy Gradient (DDPG), are known for their asymptotic stability but suffer from high sample complexity. Conversely, model-based (MB) methods are highly sample-efficient but often fail to reach optimal performance due to compounding errors in learned dynamics models. This paper introduces Model-Based Value Expansion (MVE), a hybrid approach designed to leverage the strengths of both paradigms.
The Challenge: Sample Efficiency vs. Model Error
The central tension in RL is between the robustness of model-free learning and the efficiency of model-based planning. While model-based agents can "imagine" trajectories to speed up learning, small inaccuracies in the learned simulator accumulate over time, leading to "model exploitation." In these cases, the agent learns to exploit flaws in the model rather than solving the actual task. MVE addresses this by using a learned dynamics model only for a fixed, short horizon, relying on a model-free value function to estimate the long-term future.
Model-Based Value Expansion (MVE)
MVE improves value estimation by expanding the target for the Q-function using an $H$-step "imagined" trajectory. The target is calculated as the sum of rewards over these $H$ steps plus the discounted value of the final state, provided by a model-free critic.
A critical component of MVE is the TD-$k$ trick, which mitigates distribution mismatch. Since the Q-function is evaluated on imagined states during the lookahead, MVE ensures the critic is also trained on these states. This expands the training distribution to match the evaluation distribution, stabilizing the learning process. Furthermore, MVE is model-agnostic, requiring only forward predictions from the dynamics model, making it compatible with non-differentiable simulators.
Experimental Results
The effectiveness of MVE was evaluated on continuous control tasks from the OpenAI Gym (MuJoCo) suite, including HalfCheetah, Swimmer, and Walker2d. These environments were modified to be fully observable to ensure dynamics were learnable from single states.
As shown in the results, MVE-DDPG significantly improves sample efficiency. On the HalfCheetah task, MVE reached performance levels in 100,000 steps that required nearly 500,000 steps for standard DDPG. It also outperformed "Imagination Buffers" (IB), which were found to be less stable or prone to over-training on stale data.
The Impact of the Lookahead Horizon
A key insight of MVE is that a perfect model is not required; an accurate short-term model is sufficient. The horizon $H$ acts as a proxy for "model trust."
Experiments revealed a "sweet spot" for the horizon, typically around $H=10$. While increasing $H$ initially boosts performance by providing a stronger signal, excessively large horizons eventually degrade performance as model errors begin to dominate the value estimate and diverge from the true dynamics.
Conclusion and Future Directions
Model-Based Value Expansion successfully bridges the gap between model-free and model-based RL. By restricting model use to a reliable short-term horizon and employing the TD-$k$ trick to handle distribution mismatch, MVE achieves superior sample efficiency without sacrificing stability. Future work may explore adaptive horizons that adjust based on model uncertainty and the application of MVE to sparse-reward environments.
Summary updated