Efficient Adversarial Training without Attacking: Worst-Case-Aware Robust Reinforcement Learning

Yongyuan Liang, Yanchao Sun, Ruijie Zheng, Furong Huang

Deep Reinforcement Learning (DRL) agents are notoriously fragile. A tiny, calculated bit of noise added to an agent's observations—an adversarial perturbation—can cause a high-performing model to fail catastrophically.

Current defenses generally fall into two camps, both with significant flaws:

  1. Regularization-based methods: These try to make the neural network "smooth" so that similar inputs produce similar actions. However, they often ignore the environment's dynamics. A tiny change in action might be mathematically smooth but still lead the agent off a cliff in the actual game world.
  2. Attack-driven methods (Adversarial Training): These train the agent and an adversarial attacker simultaneously. While effective, this essentially doubles the computational workload and requires twice as many environment samples to solve two RL problems at once.

To address this, researchers have introduced Worst-case-aware Robust RL (WocaR-RL), a new framework that achieves state-of-the-art robustness while cutting training time and sample complexity in half compared to previous methods. It provides a "middle way": a method that is as robust as adversarial training but as efficient as standard training.

The WocaR-RL Framework

WocaR-RL relies on three key mechanisms to train robust agents without the massive overhead of a separate "attacker" model.

WocaR-RL Framework Architecture
  • Worst-attack Value Estimation: Instead of training an attacker to find weaknesses, the authors use a novel worst-attack Bellman operator. This mathematical tool estimates the lower bound of the reward an agent can expect if an adversary is allowed to perturb the input within a specific budget ($\ell_p$ norm). They use convex relaxation to efficiently calculate the range of actions an adversary could potentially force the agent to take.
  • Worst-case-aware Policy Optimization: The agent doesn't just try to maximize its normal reward; it also tries to maximize this "worst-case" reward. This encourages the agent to choose paths that are inherently safer and less susceptible to an attacker's influence.
  • Value-enhanced State Regularization: Not all moments in a game are equally important. WocaR-RL uses a State Importance Weight to identify critical states where a wrong move leads to a huge drop in future rewards. The model applies much stronger regularization in these high-stakes moments to ensure the agent's behavior remains stable.

Key Insights: Attacking Without Attacking

The core breakthrough of WocaR-RL is the realization that you don't actually need an active adversary to prepare for one. By treating the adversary's potential impact as a bound within the Bellman equation, the agent can "hallucinate" the worst-case scenario using its own existing data.

This highlights the difference between intrinsic and network robustness. Robustness isn't just about the neural network being stable; it's about the policy being smart. A robust policy chooses a path physically far away from hazards, so even if an attacker nudges the agent's steering slightly, it still won't hit the hazard. Interestingly, WocaR-RL agents learn more "human-like" defensive behaviors. For example, in the Walker2d environment, while previous state-of-the-art models learned a strange "one-legged hop" to exploit specific attacker weaknesses, the WocaR-RL agent learned to lower its center of gravity—a much more intuitive way to stay stable.

Performance and Efficiency Results

The framework was rigorously evaluated on two standard RL benchmarks: four continuous control tasks in MuJoCo (Hopper, Walker2d, Halfcheetah, and Ant) and four discrete, pixel-based Atari games (Pong, Freeway, BankHeist, and RoadRunner).

Performance curves on MuJoCo benchmarks
  • Superior Robustness: WocaR-RL consistently outperformed or matched the state-of-the-art (PA-ATLA) across various strong attacks. In the Walker environment, it achieved 20% more reward under the strongest known attack than previous methods.
  • Massive Efficiency Gains: Because it doesn't need to train an attacker or collect extra samples for one, WocaR-RL required 50% fewer training samples and 50% less wall-clock time than PA-ATLA on MuJoCo tasks.
  • Atari Performance: On high-dimensional visual inputs like Atari games, WocaR-RL was 49% faster to train than the leading regularization-based method (SA-DQN) while providing significantly better protection against the strongest RL-based attackers.

Limitations and Future Work

While highly effective, the framework's use of convex relaxation to estimate the adversary's reach provides a lower bound that can sometimes be overly conservative. Using tighter relaxations could further improve performance. Additionally, this work focuses on the standard $\ell_p$ perturbation model (adding small noise to features). Extending this to other types of attacks, such as patch attacks where a small part of an image is completely altered, remains a promising direction for future research. Finally, like many RL methods, balancing natural performance and robustness depends on hyperparameters that may require tuning for new environments.

Summary updated

BibTeX
@inproceedings{liang2022efficient,
  author = {Yongyuan Liang and Yanchao Sun and Ruijie Zheng and Furong Huang},
  title = {{Efficient Adversarial Training without Attacking: Worst-Case-Aware Robust Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure