TL;DR
State-of-the-art model-based reinforcement learning algorithms that combine online planning with temporal difference learning suffer from severe value overestimation in high-dimensional tasks due to a structural mismatch between the planner and the learned policy. To solve this, TD-M(PC)$^2$ introduces a minimalist policy constraint that keeps the policy prior close to the data distribution in the replay buffer. With less than ten lines of additional code and zero computational overhead, this method completely mitigates value overestimation and improves average performance on complex humanoid locomotion benchmarks by over 100%.
What Problem Does This Paper Address?
In model-based reinforcement learning (MBRL), algorithms like TD-MPC2 combine the best of two worlds: local online planning (Model Predictive Control, or MPC) and model-free value learning (Temporal Difference, or TD learning). The MPC planner uses a learned world model to simulate short-horizon trajectories, using a learned value function to estimate long-term rewards at the horizon's end.
However, the authors uncover a fundamental flaw in this setup: persistent value overestimation.
As shown in Figure 1, this error becomes catastrophic in high-dimensional control tasks, such as controlling a 61-Degree-of-Freedom (DoF) humanoid robot. The root cause is a structural policy mismatch. The data in the replay buffer is collected by the highly optimized MPC planner ($\pi_H$), but the value function is updated by bootstrapping actions from a simpler "nominal" policy prior ($\pi$). Because the nominal policy queries out-of-distribution (OOD) actions that the planner never actually executes, the value function hallucinates high rewards, creating an error loop that degrades performance.
Methods
Instead of redesigning the entire architecture or constraining the online planner (which would hurt exploration), the authors propose a minimalist modification to the policy iteration step called Temporal Difference Learning for Model Predictive Control with Policy Constraint, or TD-M(PC)$^2$.
The core change is adding a distribution regularization term to the policy loss function:
$$\mathcal{L}_\pi = -\mathbb{E}_{a\sim\pi}[Q(s,a) - \alpha \log \pi(a|s) + \beta \log \mu(a|s)]$$
Here, $\mu(a|s)$ represents the behavior policy (the distribution of data currently in the replay buffer). The $\beta \log \mu(a|s)$ term acts as a penalty that prevents the nominal policy $\pi$ from drifting into unvisited action spaces.
To prevent this constraint from stalling early-stage exploration, the authors introduce an adaptive curriculum for $\beta$. The regularization is only enforced once the moving percentiles of the Q-function cross a specific threshold, allowing the agent to freely explore the environment during the initial 100k steps.
Datasets
The authors evaluated their method on two major continuous control suites:
- HumanoidBench: A highly challenging suite featuring 14 locomotion tasks (e.g., Walk, Run, Crawl, Slide) using the
h1hand-v0model—a whole-body humanoid robot with dexterous hands and a 61-dimensional action space. - DeepMind Control Suite (DMControl): 7 high-dimensional tasks, including a 36-DoF dog model and a 21-DoF humanoid model, used to evaluate broader generalization capabilities.
Key Insights and Ideas
- The Planner's Deceptive Cushion: MPC planners naturally mask value function errors early in training because lookahead planning reduces direct reliance on value accuracy. However, in high dimensions, this masking breaks down as value errors accumulate exponentially through policy iterations.
- Online RL with Offline Problems: Even though TD-MPC is an online algorithm, the structural gap between the data-collection policy (the planner) and the learning policy creates a distributional shift identical to the challenges faced in offline RL.
- Conservative Priors, Free Planners: Previous attempts to fix this mismatch tried to constrain the online planner, which severely limited data efficiency and exploration. Constraining the policy prior instead keeps the planner flexible while ensuring the value function receives realistic training signals.
Key Results
TD-M(PC)$^2$ successfully flattens the value overestimation curves across all tested environments, aligning the function estimation closely with the true value.
This accurate value estimation translates directly into superior control performance. On the HumanoidBench Locomotion Suite, TD-M(PC)$^2$ outperforms standard TD-MPC2, SAC, and DreamerV3 by substantial margins, achieving an average performance improvement of over 100% by the end of training.
Ablation studies also revealed that the algorithm is highly robust to the choice of the regularization coefficient ($\beta$), meaning it requires virtually no task-specific hyperparameter tuning.
Limitations and Future Work
While the adaptive curriculum helps mitigate the risk of the policy constraint trapping the agent in local minima during early training, balancing exploration and exploitation remains a delicate trade-off. Additionally, the authors note that standard offline RL techniques like Conservative Q-Learning (CQL) are not well-suited for this architecture because they cause severe value underestimation, making the MPC planner excessively cautious and unwilling to explore novel actions. Future work could explore more dynamic ways to adapt the policy constraint based on the world model's epistemic uncertainty.
Summary updated