Mitigating Planner Overfitting in Model-Based Reinforcement Learning

Dilip Arumugam, David Abel, Kavosh Asadi, Nakul Gopalan, Christopher Grimm, Jun Ki Lee, Lucas Lehnert, Michael L. LittmanarXiv 2018

Abstract

Model-based reinforcement learning (RL) agents often "overfit" to their learned transition models, exploiting small inaccuracies to find policies that appear optimal in simulation but fail in the real world. This paper investigates how regularizing the planner—by shortening the planning horizon, forcing exploration, or simplifying the policy architecture—can mitigate this exploitation. We demonstrate that these methods lead to a characteristic U-shaped performance curve, where intermediate levels of regularization maximize real-world performance by balancing model exploitation against underfitting.

The Problem: Planner Overfitting

In model-based RL, an agent typically learns a transition model of its environment and then plans its behavior by finding an optimal policy within that model. A common approach is certainty equivalence, which treats the learned model as if it were perfectly accurate.

However, learned models are rarely perfect. When a planner searches for an optimal policy, it often finds "loopholes"—errors in the model that yield high rewards in simulation but do not exist in the actual environment. This is planner overfitting. Much like a supervised learning model overfitting to noise, an RL planner overfits to the errors in its learned transition model, resulting in a policy that performs brilliantly on the model but poorly in the actual environment.

Regularization Strategies

The authors propose that the solution to planner overfitting is regularization. They explore three distinct ways to restrict the planner's ability to exploit model errors:

  1. Decreased Discounting ($\gamma$): Planning with a smaller discount factor than the task requires effectively shortens the agent's planning horizon. This makes the agent less sensitive to long-term errors that accumulate as the model is projected forward in time.
  2. Increased Exploration ($\epsilon$): By planning using $\epsilon$-greedy policies rather than purely greedy ones, the agent is forced to consider "noisy" actions. This prevents the policy from being too precisely tailored to specific model inaccuracies.
  3. Decreased Policy Complexity: Restricting the representational capacity of the policy (e.g., reducing hidden units in a neural network) limits the "degrees of freedom" available to exploit complex, erroneous patterns in the model.
Figure 3: Planning loss vs. discount factor across different trajectory counts, showing the characteristic U-shaped curve where an intermediate gamma minimizes loss.

Key Results and the U-Shaped Curve

For all three regularization methods, the authors identified a classic "U-shaped" tradeoff. Insufficient regularization leads to overfitting to model errors, while excessive regularization causes "underfitting," where the agent cannot find a good policy even if the model is accurate.

In experiments using the Lunar Lander environment, the authors demonstrated this effect by varying policy complexity. As the number of hidden units in the policy network increased, performance on the learned model continued to improve. However, performance on the actual environment peaked at approximately 250 hidden units before dropping significantly. This provides clear empirical evidence of planner overfitting in deep RL contexts.

Figure 6: Comparison of policy performance on the learned model versus the actual environment as policy complexity (hidden size) increases.

Conclusion and Future Work

This research frames the choice of a planning algorithm not just as an optimization problem, but as a statistical estimation problem where capacity control is vital. While the current study applies regularization uniformly, future work could explore "non-uniform" regularization—being more conservative in states where the model is uncertain and more expressive where the model is well-learned. Testing these insights on high-dimensional visual tasks remains a necessary next step to determine if these U-shaped curves persist when model errors are more prevalent.

Summary updated

BibTeX
@misc{arumugam2018mitigating,
  author = {Dilip Arumugam and David Abel and Kavosh Asadi and Nakul Gopalan and Christopher Grimm and Jun Ki Lee and Lucas Lehnert and Michael L. Littman},
  title = {{Mitigating Planner Overfitting in Model-Based Reinforcement Learning}},
  year = {2018},
  eprint = {1812.01129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.01129},
}
Figure