Reinforcement Learning under Model Mismatch

Aurko Roy, Huan Xu, Sebastian Pokutta

Introduction: The Problem of Model Mismatch

In traditional Reinforcement Learning (RL), agents are typically trained under the assumption that they are interacting with the "true" environment or a flawless simulator. In practice, however, simulators are often mere approximations of reality—a problem known as model misspecification. Furthermore, real-world dynamics can shift over time, rendering previously learned policies ineffective or even dangerous.

Historically, the framework of Robust Markov Decision Processes (MDPs) was developed to handle these discrepancies. Robust MDPs find a policy that performs optimally under the "worst-case" model within a defined uncertainty set. However, these traditional methods are strictly model-based, requiring explicit knowledge of the environment's transition matrices. This paper bridges a critical gap by extending the robust MDP framework to the model-free setting, where the agent only has access to environmental samples and lacks knowledge of the underlying transition parameters.

Methodology: Bringing Robustness to Model-Free RL

The authors' approach centers on formulating a Robust Bellman Equation that incorporates an uncertainty set around the transition probabilities. By doing so, they introduce a mathematically principled way to inject "pessimism" into the learning process.

Robust Exact Algorithms

The paper introduces robust versions of standard model-free algorithms, including Q-learning, SARSA, and TD-learning. These adapted algorithms incorporate a "support function" step into the standard update rule. This step explicitly accounts for the maximum possible loss caused by model uncertainty during the Bellman update.

Proxy Confidence Regions

Because the true transition probabilities are unknown in a model-free setting, the agent cannot construct an exact uncertainty set. To overcome this, the authors utilize "proxy" uncertainty sets—such as ellipsoids or parallelepipeds—centered around the observed empirical samples.

Scaling via Function Approximation

To handle large or continuous state spaces where exact tabular methods fail, the authors extend their robust algorithms to both linear and non-linear function approximation architectures:

  • Linear Models: The authors prove the convergence of robust approximate policy iteration and robust approximate value iteration under mild assumptions.
  • Non-Linear Models: They define a novel loss function called the Mean Squared Robust Projected Bellman Error (MSRPBE). To minimize this loss, they derive robust versions of stochastic gradient descent algorithms, specifically robust-GTD2 and robust-TDC, which are guaranteed to converge to a local minimum.

Experimental Setup

The authors evaluated their robust algorithms using the OpenAI Gym framework, specifically focusing on the FrozenLake-v0 benchmark environment. To simulate model mismatch, they introduced a perturbation method: a small probability $p$ was added to the environment dynamics, causing the agent to transition to a completely random state after taking an action. This effectively represented a deviation from the nominal training model.

Key Insights and Results

  • Theoretical Convergence with Proxies: A major theoretical contribution of the paper is proving that even when using a "proxy" uncertainty set instead of the true set, the robust algorithms still converge to an $\epsilon$-optimal policy. The error bound $\epsilon$ is directly tied to the quality of the proxy.
  • The Off-Policy Nature of Robust RL: The authors highlight that robust RL is inherently an "off-policy" problem. Because the transition matrices are not fixed, the agent is essentially learning against an adversarial "nature" that continuously selects the worst possible transition matrix from the uncertainty set.
  • Empirical Stability and Safety: In the FrozenLake-v0 experiments, the robust algorithms consistently outperformed their standard (nominal) counterparts in the presence of model mismatch. Crucially, the robust algorithms exhibited a superior tail distribution (complementary cumulative distribution function). This means they were significantly less likely to experience catastrophic, low-reward outcomes—a vital feature for safety-critical applications.

Limitations and Future Directions

While the paper presents a strong theoretical foundation for robust model-free RL, it notes several limitations:

  • Computational Overhead: Computing the support function for the uncertainty set adds algorithmic complexity. Although the authors suggest rank-$d$ approximations to reduce this overhead to $O(d^2)$, it remains more computationally demanding than standard RL.
  • Hyperparameter Sensitivity: The size and shape of the uncertainty set (dictated by a $\beta$ parameter) require careful tuning, often via cross-validation. An overly large set makes the agent excessively pessimistic, degrading performance, while a set that is too small fails to provide meaningful robustness.
  • Scaling to Complex Environments: The empirical evaluations in this study were limited to discrete, relatively simple environments. Extending these robust proofs and algorithms to high-dimensional, continuous control tasks (such as those found in MuJoCo) remains an important frontier for future research.

Summary updated

BibTeX
@inproceedings{roy2017reinforcement,
  author = {Aurko Roy and Huan Xu and Sebastian Pokutta},
  title = {{Reinforcement Learning under Model Mismatch}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=nKfzFzGjyCy},
}
Figure