Maximum Entropy RL (Provably) Solves Some Robust RL Problems

Benjamin Eysenbach, Sergey Levine

Introduction

Standard reinforcement learning (RL) agents are notoriously brittle. A policy trained to perfection in a simulator often fails in the real world due to "model mismatch"—slight differences in friction, mass, or unexpected obstacles.

To fix this, researchers usually turn to Robust RL, which treats training as a two-player game: an agent tries to maximize reward while an "adversary" perturbs the environment to minimize it. While effective, these methods are a headache to implement, requiring complex nested optimization loops and a suite of new hyperparameters. This paper asks a compelling question: Can we get this robustness for free using tools we already have?

The answer is yes. Maximum Entropy (MaxEnt) Reinforcement Learning isn't just a trick for better exploration—it’s a provably robust optimizer. By simply maximizing action entropy, an agent implicitly solves a robust RL problem, learning to withstand disturbances in environment dynamics and reward functions without the need for complex adversarial training.

The authors focus on MaxEnt RL (the foundation of popular algorithms like Soft Actor-Critic). Instead of just maximizing the sum of rewards, MaxEnt RL maximizes: $$\text{Reward} + \alpha \cdot \text{Entropy}$$

Using the mathematical framework of Fenchel Duality, the authors prove that this objective is actually a lower bound on a specific robust RL objective. Key theoretical contributions include:

  • Reward Robustness: MaxEnt RL is mathematically equivalent to maximizing reward against an adversary that can perturb the reward function.
  • Dynamics Robustness: If applied to a "pessimistic" version of the reward (accounting for dynamics entropy), the resulting policy is robust to changes in the environment's physics.
  • The Entropy Budget: The entropy coefficient ($\alpha$) acts as the "uncertainty budget." The more entropy forced into the policy during training, the larger the set of environmental disturbances the agent can handle at test time.

Key Insights and Empirical Results

The researchers evaluated their theory across several challenging continuous control benchmarks, including MuJoCo locomotion tasks (with perturbed robot masses), robotic manipulation (Pusher and Peg Insertion tasks with moving obstacles/goals), and 2D navigation.

Diversity as a Shield Standard RL finds the one optimal path. If an adversary blocks that path or dynamics shift, the agent fails. MaxEnt RL, however, finds all feasible paths. If one is blocked, the agent’s inherent stochasticity means it likely already knows a backup route.

Standard RL vs MaxEnt RL under perturbed dynamics

Performance Highlights * Competitive with Specialists: MaxEnt RL (specifically SAC) performed as well as, or better than, purpose-built robust algorithms on mass-perturbation benchmarks. * Qualitative Success: In the "Pusher" task, standard RL agents almost always collided with newly introduced obstacles. MaxEnt RL agents, having learned a diverse set of trajectories, frequently navigated around the obstacles successfully. * Adversarial Resilience: In a Peg Insertion task, MaxEnt RL maintained a high success rate even when the target hole was moved by 2cm—a distance that completely broke standard RL policies.

Limitations and Future Work

While MaxEnt RL offers a remarkably simple path to robustness, it is not a silver bullet:

  • The "Pessimistic" Reward Gap: To guarantee robustness to physics/dynamics, the theory requires a specific reward transformation that involves the entropy of the environment's transitions. In complex, high-dimensional worlds, this term is difficult to estimate accurately.
  • Specific Robust Sets: The proof relies on a specific definition of "similarity" between environments. It remains to be seen if MaxEnt RL is robust to all types of real-world noise or just the specific classes covered by this theory.
  • Hyperparameter Sensitivity: While it removes adversarial hyperparameters, it places a heavy burden on the choice of the entropy coefficient $\alpha$. Finding the "sweet spot" between performance and robustness remains an empirical challenge.

Summary updated

BibTeX
@inproceedings{eysenbach2022maximum,
  author = {Benjamin Eysenbach and Sergey Levine},
  title = {{Maximum Entropy RL (Provably) Solves Some Robust RL Problems}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=PtSAD3caaA2},
}
Figure