Introduction
Model-based Reinforcement Learning (MBRL) has emerged as a powerful paradigm for improving sample efficiency by allowing agents to learn from an internal "world model." By imagining future trajectories, agents can perform value expansion to refine their policy without additional environment interaction. However, a significant bottleneck remains: "hallucinations." As an agent predicts further into the future, small inaccuracies in the world model compound, leading to unreliable value estimates.
Existing state-of-the-art methods, such as Dreamer, typically rely on a fixed rollout horizon ($H$). This approach presents a dilemma: a short horizon limits the agent's foresight, while a long horizon forces the agent to learn from "garbage" data generated by a failing model. This paper introduces Dynamic-horizon Model-based Value Expansion (DMVE), a novel framework that adaptively adjusts the look-ahead distance based on the model's local reliability.
Methodology
DMVE addresses the compounding error problem by using image reconstruction error as a proxy for model confidence. The architecture is composed of four primary components:
- Latent Imagination (MVE-LI): To maintain computational efficiency, the agent predicts state transitions within a compact latent feature space rather than high-dimensional pixel space.
- Reconstruction-based Safety Check: The system utilizes an encoder-decoder structure to reconstruct the original observation ($o_t$). The authors hypothesize that if the model cannot accurately reconstruct the current state, its predictions for future states from that point are likely untrustworthy.
- Adaptive Horizon Selection: This is the core innovation. The agent generates imagination rollouts from both the original observation and its reconstructed counterpart. It then calculates value estimates for all horizons from $1$ to $H$. By applying the "discrepancy principle," DMVE selects the top $K$ horizons where the difference between the "real" and "reconstructed" paths is minimized.
- Actor-Critic Learning: The policy (Actor) and value function (Critic) are updated using these filtered, high-confidence value estimates.
Experimental Setup
The researchers evaluated DMVE on four diverse continuous visual control tasks from the DeepMind Control Suite: Finger Spin, Hopper Hop, Quadruped Run, and Walker Run. These benchmarks test a range of challenges, including precise manipulation, sparse rewards, and complex high-dimensional locomotion.
Key Results and Discussion
DMVE demonstrates significant improvements over established baselines, including Dreamer, PlaNet, and D4PG.
Performance and Sample Efficiency
As illustrated in the performance curves, DMVE consistently reaches higher episode returns with fewer environment steps. For instance, in the Finger Spin task, DMVE achieves a performance level at 2 million steps that the model-free D4PG algorithm requires 100 million steps to reach. This represents a 50x improvement in sample efficiency.
Robustness to Hyperparameters
A critical advantage of DMVE is its robustness to the maximum horizon parameter ($H$). While fixed-horizon methods like Dreamer often see performance collapse if $H$ is set too high (e.g., $H=30$), DMVE remains stable. Because the algorithm dynamically ignores unreliable long-term predictions, it effectively self-corrects for model inaccuracies that would otherwise derail the learning process.
The Discrepancy Principle
The success of DMVE hinges on the insight that reconstruction error is a computationally "cheap" alternative to model ensembles for uncertainty estimation. By measuring how reconstruction errors propagate into value estimates, the agent can distinguish between states where the model is robust and states where it is likely to hallucinate.
Conclusion and Future Work
DMVE provides a robust solution to the horizon-selection problem in MBRL, achieving superior asymptotic performance and sample efficiency across various visual control tasks. While the current implementation is tailored for pixel-based inputs, future research could explore applying similar dynamic usage principles to state-based tasks or developing more sophisticated measures of model generalization ability on the fly.
Summary updated