Robust Adversarial Reinforcement Learning via Bounded Rationality Curricula

Aryaman Reddi, Maximilian Tölle, Jan Peters, Georgia Chalvatzaki, Carlo D'Eramo

Deep Reinforcement Learning (RL) agents are notoriously brittle when faced with unexpected physical disturbances, distribution shifts, or adversarial attacks. While they often perform flawlessly in perfect simulations, they can fail catastrophically in real-world deployments. This paper introduces Quantal Adversarial RL (QARL), a novel method that trains robust agents by pitting them against an adversary whose "rationality" (or skill level) gradually increases over time. By smoothing the complex mathematics of adversarial games using entropy regularization, QARL achieves highly robust policies without the training instability that plagues standard adversarial RL.

The Challenge of Adversarial RL

A popular approach to fixing RL brittleness is Robust Adversarial RL (RARL). In this setup, a "protagonist" agent tries to complete a task while an "adversary" agent applies destabilizing forces to stop it.

However, this creates a competitive zero-sum Markov game. Finding the optimal solution—the Nash equilibrium—requires solving a highly non-convex, non-concave saddle point optimization problem. In practical terms, the training landscape is so sharp and unforgiving that agents often fail to converge. This leads to unstable training or a complete collapse where the protagonist fails to learn even the basic task.

Bounded Rationality and Entropy Regularization

To resolve this optimization nightmare, the authors utilize entropy regularization. Instead of forcing the adversary to play perfectly optimal (and highly disruptive) moves right away, they add an entropy bonus that encourages the adversary to act with a degree of randomness.

Mathematically, this connects to a game theory concept known as a Quantal Response Equilibrium (QRE). QRE models "bounded rationality"—the realistic assumption that players sometimes make sub-optimal decisions.

The core algorithm, QARL, leverages this connection to build an automatic curriculum:

  1. Start Dumb: QARL begins with a high "temperature" parameter for the adversary, making its attacks highly random and weak. This allows the protagonist to learn the basic task without being overwhelmed.
  2. Get Smarter: As the protagonist's performance improves, QARL automatically lowers the adversary's temperature.
  3. Full Rationality: Eventually, the temperature approaches zero. The adversary becomes fully rational and optimal, forcing the protagonist to develop maximum robustness.

Crucially, QARL formulates an optimization problem to automatically tune this temperature based on the protagonist's current success, ensuring the adversary never becomes so difficult that it causes catastrophic forgetting.

Experimental Setup and Key Insights

The authors evaluated QARL on 15 continuous control environments from the DeepMind Control Suite (MuJoCo), including balancing tasks (Cartpole, Pendulum), locomotion tasks (Cheetah, Hopper, Walker), and a custom Quadruped Maze navigation task featuring adversarial wind forces.

Several key insights emerged from the study:

  • Temperature Equals Rationality: The paper provides a neat theoretical bridge between maximum entropy RL (like Soft Actor-Critic) and game theory. Tuning the temperature parameter literally modulates how "smart" or rational the opponent is.
  • Curriculum is Essential: Throwing a master-level adversary at a beginner agent destroys learning. Gradually ramping up the adversary's rationality allows the protagonist to learn the nominal task while learning to be robust.
  • Automatic Pacing: By monitoring the protagonist's reward, QARL keeps the training in the "Goldilocks zone" of difficulty—increasing the challenge only when the agent is ready.

Key Results

Across the 15 MuJoCo tasks, QARL demonstrated superior performance and robustness compared to standard baselines.

Performance of QARL vs baselines across multiple MuJoCo environments

Specifically, QARL improved robustness by +48.7% and nominal performance by +4.2% compared to a standard Soft Actor-Critic (SAC) baseline. In contrast, standard RARL and other recent adversarial baselines (like CAT) actually hurt nominal performance (e.g., RARL dropped performance by 5.7%), as the harsh adversaries prevented the agents from learning the basic tasks effectively.

Furthermore, QARL exhibited fascinating emergent behavior. In the Quadruped Maze, the QARL agent learned a highly robust gait—anchoring one leg to the ground to resist the wind while moving forward. It successfully navigated the maze even when subjected to wind forces 4x stronger than what it experienced during training, a condition under which standard RARL completely collapsed.

Limitations and Future Directions

While highly effective, QARL's automatic curriculum relies on a performance threshold ($\xi$) and a KL-divergence constraint ($\epsilon$). If $\xi$ is set too high, the curriculum stalls; if set too low, the adversary becomes too hard too fast. While intermediate values generally work well, they require some initial tuning.

Future work could explore hierarchical perspectives, such as adversarial subtask generation, to encourage robustness at a higher cognitive level rather than focusing solely on physical disturbance modeling.

Summary updated

BibTeX
@inproceedings{reddi2024robust,
  author = {Aryaman Reddi and Maximilian Tölle and Jan Peters and Georgia Chalvatzaki and Carlo D'Eramo},
  title = {{Robust Adversarial Reinforcement Learning via Bounded Rationality Curricula}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=pFOoOdaiue},
}
Figure