Abstract
Despite its potential to improve sample complexity versus model-free approaches, model-based reinforcement learning can fail catastrophically if the model is inaccurate. An algorithm should ideally be able to trust an imperfect model over a reasonably long planning horizon, and only rely on model-free updates when the model errors get infeasibly large. In this paper, we investigate techniques for choosing the planning horizon on a state-dependent basis, where a state's planning horizon is determined by the maximum cumulative model error around that state. We demonstrate that these state-dependent model errors can be learned with Temporal Difference methods, based on a novel approach of temporally decomposing the cumulative model errors. Experimental results show that the proposed method can successfully adapt the planning horizon to account for state-dependent model accuracy, significantly improving the efficiency of policy learning compared to model-based and model-free baselines.
Introduction
Reinforcement Learning (RL) typically follows two paradigms: model-free methods, which learn from direct interaction but are sample-inefficient, and model-based methods, which use a learned environment model to plan but are prone to "compounding error." Even minor inaccuracies in a learned model can accumulate over a planning horizon, leading to "imaginary" trajectories that diverge from reality and cause catastrophic failure in policy learning.
While many model-based approaches use a fixed planning horizon, model accuracy is often state-dependent. A model might be highly accurate in simple regions but fail near complex boundaries or obstacles. This paper introduces Adaptive Model-based Value Expansion (AdaMVE), a method that dynamically adjusts the planning horizon based on predicted state-dependent model errors.
Methodology
The core of AdaMVE is the realization that cumulative model error can be learned using Temporal Difference (TD) methods, similar to how value functions are estimated.
Learning the Error Function
The authors define a "W-reward" based on the Wasserstein distance between the model's predicted next-state distribution and the actual observed outcome. By treating this error as a reward signal, the discounted cumulative error $\hat{\mathcal{E}}$ for any state can be estimated via the Bellman equation. This allows the agent to gain "self-awareness" of where its model is likely to fail.
Softmax Planning Horizon
Rather than selecting a single optimal horizon, AdaMVE employs a softmax weighting scheme over multiple horizons. When the predicted error for a long horizon is high, the system automatically shifts weight toward shorter, more reliable horizons, effectively falling back to model-free updates in untrustworthy regions.
Selective Model Learning (SML)
To further improve robustness, the authors propose Selective Model Learning. By ranking data according to the learned error function, the agent can choose to train the model only on the "easiest" subset of data, preventing the model from being corrupted by overly complex or noisy dynamics.
Experimental Results
The researchers evaluated AdaMVE across several benchmarks, including the FourRoom Gridworld and continuous control tasks in MuJoCo (e.g., HalfCheetah, Swimmer).
In the FourRoom environment, AdaMVE successfully identified regions with high model error (such as doorways) and shortened its planning horizon accordingly. As shown in the visualization above, this adaptive behavior leads to significantly faster and more stable policy learning compared to fixed-horizon Model-based Value Expansion (MVE) and model-free DQN. In continuous control tasks, AdaMVE outperformed both standard model-free baselines and ensemble-based methods like STEVE, while remaining computationally lighter by avoiding the need for large model ensembles.
Conclusion
AdaMVE provides a principled way to balance model-based and model-free learning by treating model error as a learnable value. By adapting the planning horizon to the local accuracy of the model, the agent achieves superior sample efficiency and robustness. Future work may explore integrating this adaptive logic into more complex planning frameworks like Monte Carlo Tree Search.
Summary updated