RRLS : Robust Reinforcement Learning Suite

Adil Zouitine, David Bertoin, Pierre Clavier, Matthieu Geist, Emmanuel Rachelson · DOI

Abstract

The Robust Reinforcement Learning Suite (RRLS) is a standardized benchmark designed to address the reproducibility crisis in robust reinforcement learning (RRL). By providing a unified framework of MuJoCo-based environments with adversarial uncertainty sets, RRLS enables researchers to compare robust algorithms on a consistent and level playing field.

Introduction

Standard Reinforcement Learning (RL) agents are often brittle, failing when encountering minor environmental variations not present during training. Robust Reinforcement Learning (RRL) addresses this by training agents to maximize performance in worst-case scenarios across a range of possible environment parameters. However, the field has historically lacked standardization, with researchers often employing custom perturbations and evaluation protocols, making comparative analysis difficult. RRLS provides a standardized suite, similar to the Gymnasium API, specifically for the robustness community.

The RRLS Framework

RRLS extends the standard Gymnasium API to support environmental uncertainty through a modular software architecture. The core of the suite is the ModifiedParamsEnv interface, which allows for dynamic modification of environment parameters such as mass, friction, and joint damping.

The RRLS adversarial training loop, modeling the interaction between the agent, environment, and an adversary.

The framework supports several wrappers to model uncertainty:

  • Adversarial Wrappers: These formulate the environment as a zero-sum two-player game where an "Adversary" actively perturbs the physics to challenge the "Agent."
  • Domain Randomization Wrappers: These sample environment parameters uniformly at the start of each episode.
  • Probabilistic Action Robust Wrappers: These model the adversary as a force that perturbs the agent's actions directly.

Benchmark Environments

The suite includes six continuous control tasks based on the MuJoCo physics engine: Ant, HalfCheetah, Hopper, Humanoid Stand Up, Inverted Pendulum, and Walker. Each environment is paired with specific 1D, 2D, or 3D uncertainty sets.

The Ant environment, one of the six MuJoCo-based tasks included in the RRLS benchmark.

For instance, in the "Ant 3" task, the agent must maintain performance while an adversary simultaneously modifies the mass of its torso and two of its legs.

Results and Key Insights

The authors evaluated five baselines—TD3, Domain Randomization (DR), NR-MDP, RARL, and M2TD3—over 5 million training steps across 10 random seeds.

Performance Trade-offs

A primary finding is the inherent trade-off between robustness and average performance. Algorithms like M2TD3 excelled in static worst-case scenarios but often sacrificed performance in the nominal (standard) environment. Conversely, Domain Randomization (DR) proved to be a powerful baseline for average-case performance across the entire uncertainty set.

Stability and Variance

Robust algorithms, particularly RARL, exhibited slower initial learning phases as the adversary continuously "moves the goalposts." Furthermore, complex tasks like "Humanoid Stand Up" showed high variance across random seeds, emphasizing the necessity of standardized, multi-seed evaluation protocols provided by RRLS to avoid cherry-picked results.

Conclusion

RRLS establishes a much-needed foundation for reproducible research in robust RL. While currently focused on two-player game formulations, future iterations may include nominal-based robust algorithms and address additional sources of the sim-to-real gap, such as sensor noise and latency.

Summary updated

BibTeX
@inproceedings{zouitine2024rrls,
  author = {Adil Zouitine and David Bertoin and Pierre Clavier and Matthieu Geist and Emmanuel Rachelson},
  title = {{RRLS : Robust Reinforcement Learning Suite}},
  booktitle = {EWRL17},
  year = {2024},
  url = {https://openreview.net/forum?id=bHS9XCCquT},
}
Figure