TL;DR
Robust Adversarial Reinforcement Learning (RARL) often destabilizes training because overly aggressive adversaries push agents into uninformative failure states and cause double-critic networks to diverge. This paper introduces RACER, a unified framework that adaptively tempers the adversary in high-risk states and applies a scale-invariant critic consistency regularization to stabilize value estimation. The result is a highly stable, plug-and-play approach that significantly boosts robustness across challenging continuous control tasks.
What Problem Does This Paper Address?
Reinforcement learning (RL) policies trained in simulation are notoriously brittle when deployed in the real world due to dynamic uncertainties and sim-to-real gaps. To combat this, Robust Adversarial RL (RARL) trains an adversarial agent alongside the main agent (the protagonist) to inject worst-case perturbations.
However, standard RARL suffers from two fundamental flaws:
- Uninformative Failure States: Unconstrained adversaries quickly learn to exploit the training process rather than the policy itself, repeatedly driving the protagonist into extreme, unrecoverable states. This deprives the protagonist of meaningful learning signals.
- Critic Disagreement: Modern off-policy RL algorithms like Soft Actor-Critic (SAC) use double Q-networks (critics) and take their minimum to avoid overestimation bias. Under adversarial perturbations, these two critics often diverge wildly. Taking the minimum of two highly discrepant critics introduces a severe, systematic underestimation bias that destabilizes policy optimization.
Methods
The authors propose RACER (Risk-sensitive robust Adversarial critic ConsistEncy-regularized Reinforcement learning) to address both issues simultaneously:
- Risk-Sensitive Adversarial Formulation: Instead of a purely zero-sum game, the adversary’s objective is regularized by a state-dependent risk function $R(s)$ that aggregates physically interpretable failure modes (e.g., torso height dropping too low or loss of balance). When the protagonist enters a high-risk state, the adversary is penalized. This adaptively weakens the attack strength in fragile regimes—allowing the protagonist to recover and learn—while maintaining strong adversarial pressure in safe regimes.
- Critic Consistency Regularization: To stabilize value estimation, RACER introduces a regularization term that penalizes excessive variance between the double critics. Crucially, this penalty is normalized by the average magnitude of the Q-values, making it scale-invariant and robust across different tasks without requiring tedious hyperparameter tuning.
Datasets
The framework was evaluated on four continuous control benchmarks from the MuJoCo DeepMind Control Suite:
Walker-RunHopper-StandCheetah-RunCartpole-Balance
These environments were modified to include high-intensity adversarial forces acting on the agents' bodies and joints to test robustness under extreme conditions.
Key Insights and Ideas
- More Aggression $\neq$ Better Robustness: An unconstrained adversary acts as a "bully" rather than a helpful sparring partner. Weakening the adversary specifically during high-risk states reshapes the adversarial policy class to be informationally efficient, aligning it with the learning needs of the protagonist.
- Structured State Distributions: By filtering out destructive perturbations, RACER forces the protagonist's state distribution to concentrate in a compact, stable region of the state space (e.g., maintaining consistent velocity and uprightness) rather than scattering into failure-prone zones.
- Scale-Invariance is Essential: Because Q-value magnitudes vary drastically across different control tasks, standard regularization fails. Normalizing the critic consistency penalty by expected Q-value magnitudes allows a single hyperparameter setting ($\lambda = 1 \times 10^{-4}$) to perform optimally across entirely different environments.
Key Results
- Superior Robustness and Convergence: RACER consistently achieved higher return ceilings and faster convergence compared to strong baselines like RARL, CAT, and QARL. For example, on the challenging
Walker-Runtask, RACER achieved a mean final robustness score of 299.94, significantly outperforming QARL (253.56) and RARL (257.67).
- Resilience to Unseen Adversaries: When evaluated against a newly optimized, frozen worst-case adversary post-training, RACER demonstrated superior zero-shot generalization and lower performance variance than all baselines.
- Plug-and-Play Scalability: Because RACER's design is decoupled from specific adversarial update schemes, it was successfully integrated into other frameworks (like standard RARL and MixedNE-LD), yielding immediate stability and performance gains without any hyperparameter tuning.
Limitations and Future Work
- Manual Risk Engineering: The state-dependent risk function relies on explicit, domain-specific knowledge to define thresholds for failure modes (e.g., manually setting the risk threshold for torso height or pitch). Developing automated or learned risk boundaries remains an open challenge.
- Sim-to-Real Gap: Although RACER shows exceptional stability in simulation, the authors note that future work must validate these risk-aware policies on physical robotic hardware to ensure compliance with real-world safety standards.
Summary updated