Selective Dyna-Style Planning Under Limited Model Capacity

Zaheer Abbas, Samuel Sokota, Erin Talvitie, Martha White

Introduction

Model-based reinforcement learning (RL) offers a path to high sample efficiency by allowing agents to learn from a simulated "world model." However, the utility of these models is strictly bounded by their accuracy. When an agent plans using an imperfect or low-capacity model, it often encounters "model-based catastrophe," where simulated errors lead to suboptimal or even destructive policy updates. This paper introduces Selective Dyna-style Planning, a framework designed to mitigate these risks by identifying and avoiding planning in regions where the model is inadequate.

The Challenge of Model Inadequacy

Traditional approaches to selective planning rely on parameter uncertainty (epistemic uncertainty), typically estimated via ensembles of models. The assumption is that if ensemble members disagree, the model is unreliable. However, this paper identifies a critical failure mode: model inadequacy. When the model's hypothesis class is too restrictive to represent the environment's true dynamics, all members of an ensemble may converge to the same incorrect prediction. In such cases, the ensemble "agrees" on a wrong answer, resulting in low parameter uncertainty despite high error.

Comparison of uncertainty estimation methods across varying network capacities. Note how learned variance (right) remains robust as network size decreases.

As shown in the synthetic regression experiments, methods like Ensembles and Randomized Priors fail to signal uncertainty in the "Small Network" regime. In contrast, Learned Variance (heteroscedastic regression) successfully identifies regions of poor fit by predicting high variance where the model lacks the capacity to minimize squared error.

Methodology: Heteroscedastic Selective Planning

The authors propose using heteroscedastic regression to detect model inadequacy. Instead of predicting only a mean state transition $\mu$, the network also outputs a predicted variance $\sigma^2$. The model is trained using a Gaussian log-likelihood loss that penalizes high error but allows the model to "pay" a penalty in the form of a log-variance term to reduce the impact of errors it cannot fix. Essentially, the model learns to predict high variance in regions it cannot fit well.

Selective Model-based Value Expansion (MVE)

This learned uncertainty is integrated into the Model-based Value Expansion (MVE) framework. In standard MVE, $H$-step simulated trajectories are used to calculate value targets. In Selective MVE, the agent calculates a weighted average of these targets ($U_{avg}$), where the weights $w_h$ are determined by the cumulative predicted uncertainty along the trajectory. Rollouts that enter high-uncertainty regions are given lower weights, ensuring the agent only trusts reliable simulations.

Key Results

The method was evaluated on the Acrobot control task, where the capacity of the dynamics model was intentionally restricted from 128 hidden units down to just 4.

Performance of Selective MVE on the Acrobot task. Selective planning prevents the performance collapse seen in standard MVE (Rollout Length 4) when model capacity is low (4-16 hidden units).

Key findings include:

  1. Avoiding Performance Collapse: In low-capacity regimes (e.g., 4 hidden units), standard MVE planning causes the agent to perform significantly worse than a model-free DQN baseline. Selective MVE prevents this collapse, maintaining performance comparable to or better than DQN.
  2. Robustness to Model Size: While larger models (128 units) allow for longer rollout lengths, selective planning ensures that even as the model becomes a bottleneck, the agent remains robust by reverting to model-free updates in unreliable states.
  3. Superior Error Correlation: Quantitative analysis confirmed that learned variance maintains a higher correlation with true model error throughout training compared to ensemble-based methods, which lose correlation as ensemble members converge on incorrect predictions.

Conclusion

Selective Dyna-style Planning demonstrates that "knowing what you don't know" is as important as the model itself. By leveraging heteroscedastic regression to detect model inadequacy, agents can safely exploit the benefits of model-based planning without being misled by the hallucinations of a low-capacity world model. This approach paves the way for more robust RL agents capable of operating in complex environments where perfect modeling is impossible.

Summary updated

BibTeX
@inproceedings{abbas2020selective,
  author = {Zaheer Abbas and Samuel Sokota and Erin Talvitie and Martha White},
  title = {{Selective Dyna-Style Planning Under Limited Model Capacity}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure