Robust Reinforcement Learning for Continuous Control with Model Misspecification

Daniel J. Mankowitz, Nir Levine, Rae Jeong, Yuanyuan Shi, Jackie Kay, Abbas Abdolmaleki, Jost Tobias Springenberg, Timothy Mann, Todd Hester, Martin RiedmillerarXiv 2019

TL;DR

This paper introduces a framework for making continuous control Reinforcement Learning (RL) algorithms robust against "model misspecification"—the inevitable gap between training simulation dynamics and real-world physics. By extending Maximum a-posteriori Policy Optimization (MPO) with robust and "soft-robust" entropy-regularized Bellman operators, the authors train agents that successfully adapt to unseen environmental perturbations across multiple MuJoCo tasks and a high-dimensional robotic hand.

What Problem Does This Paper Address?

Reinforcement learning has achieved incredible success in simulated environments, but deploying these policies to the real world remains a major challenge (often called the Sim2Real gap). Standard RL agents optimize for expected return in a single, specific training environment. If the real-world dynamics differ even slightly—due to altered friction, changed mass, sensor noise, or actuator delays—the agent's performance can degrade catastrophically.

This discrepancy is known as model misspecification. To tackle this, the authors look to Robust MDPs, which train policies to optimize for the worst-case scenario across a set of possible environmental dynamics (an uncertainty set). However, standard robust methods can be overly conservative and haven't historically scaled well to complex, continuous control tasks.

Methods

The authors introduce a framework to inject robustness directly into the policy evaluation step of actor-critic algorithms, focusing primarily on Maximum a-posteriori Policy Optimization (MPO).

Their core contributions include:

  1. Robust Entropy-Regularized MPO (RE-MPO): They derive a robust entropy-regularized Bellman contraction operator that minimizes the worst-case squared Temporal Difference (TD) error over a predefined uncertainty set of transition dynamics.
  2. Soft-Robust Entropy-Regularized MPO (SRE-MPO): Recognizing that optimizing purely for the worst case can lead to overly timid behavior, they introduce a "soft-robust" variant. Instead of an infimum (worst-case), it optimizes for the average performance across the uncertainty set, providing a less conservative but still highly stable policy.
  3. Data-Driven Robust MPO (DDR-MPO): They demonstrate how the uncertainty set can be learned from offline data batches rather than being manually engineered, making the framework more viable for real-world applications where exact perturbation models are unknown.

The framework is also shown to be generalizable by successfully integrating it into another continuous control algorithm, Stochastic Value Gradients (SVG).

Datasets

The authors evaluated their framework on two main simulated benchmarks:

  • MuJoCo Domains: Nine continuous control tasks from the DeepMind Control Suite (including Cartpole, Hopper, Acrobat, CheetahRun, Walker, and Pendulum). Perturbations were introduced by altering physical attributes like pole lengths, torso lengths, calf lengths, and ball masses.
  • Shadow Hand Domain: A highly complex, 79-dimensional state space and 20-dimensional action space simulation of a dexterous robotic hand tasked with rotating a cube to a desired orientation. The uncertainty set involved training on increasingly smaller cube sizes.

Key Insights and Ideas

  • Qualitative Strategy Shifts: Robust training doesn't just tweak actions; it fundamentally changes the agent's strategy. For example, in the Walker domain, the robust agent learned to "drag" its leg for stability—a behavior completely absent in the non-robust agent, which favored a regular but brittle gait.
  • Robust Optimization vs. Domain Randomization (DR): Standard Domain Randomization averages TD errors across trajectories. In contrast, RE-MPO explicitly searches for adversarial examples during training by calculating the worst-case value function. The experiments showed that RE-MPO utilizes a small number of perturbations much more effectively than DR.
  • The "Adversarial" Sweet Spot of Offline Data: When learning transition models from offline data (DDR-MPO), medium-sized data batches actually outperformed the ground-truth robust baseline. The authors hypothesize that slightly inaccurate models generate useful adversarial examples in a small region around the nominal state, forcing the agent to become even more robust.

Key Results

The robust variants consistently outperformed standard MPO across all test environments when subjected to unseen perturbations.

Performance comparison across three MuJoCo domains under unseen perturbations

As seen in Figure 1, RE-MPO (blue) and SRE-MPO (green) maintain high average rewards in Cartpole, Hopper, and Walker tasks even as the environmental perturbations (Env0 to Env2) deviate from the nominal training setup, whereas the standard E-MPO baseline (red) drops significantly.

The framework also scaled successfully to the high-dimensional Shadow Hand manipulation task:

Figure 2: (1) The Shadow hand domain (left) and results for RE-MPO and E-MPO (middle left). (2) A larger test set: the figures show the performance of RE-MPO (blue), SRE-MPO (green) and E-MPO (red) for a test set that extends from the nominal environment to significant perturbations outside the training set for Cartpole Balance (middle right) and Pendulum Swingup (right).

As shown in Figure 2, RE-MPO significantly outperforms the non-robust baseline as the task becomes harder (Env1 and Env2, representing smaller, unseen cube sizes), proving that the robust framework can handle complex, high-dimensional control spaces.

Limitations and Future Work

While powerful, the framework currently relies on evaluating multiple environment realizations during the TD learning update, which increases computational overhead during training. Additionally, for the main experiments, the uncertainty sets were manually predefined using domain knowledge. Though the authors successfully piloted a data-driven approach (DDR-MPO) to learn these sets from offline data, scaling data-driven uncertainty estimation to high-dimensional tasks remains an open and promising direction for future research.

Summary updated

BibTeX
@misc{mankowitz2019robust,
  author = {Daniel J. Mankowitz and Nir Levine and Rae Jeong and Yuanyuan Shi and Jackie Kay and Abbas Abdolmaleki and Jost Tobias Springenberg and Timothy Mann and Todd Hester and Martin Riedmiller},
  title = {{Robust Reinforcement Learning for Continuous Control with Model Misspecification}},
  year = {2019},
  eprint = {1906.07516},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.07516},
}
Figure