Regret-based Defense in Adversarial Reinforcement Learning

Roman Belaire, Pradeep Varakantham, Thanh Hong Nguyen, David Lo

TL;DR

This paper introduces a novel "regret-based" defense mechanism for Reinforcement Learning (RL) agents against adversarial attacks that subtly alter their observations. By optimizing an approximation of regret, their proposed methods (RAD-DRN, RAD-PPO, RAD-CHT) significantly improve robustness against sophisticated attacks without sacrificing too much performance in normal conditions, outperforming existing state-of-the-art defenses.

What Problem Does This Paper Address?

Deep Reinforcement Learning (DRL) agents have shown remarkable success in complex tasks, but they are notoriously vulnerable to adversarial attacks. Specifically, these attacks can subtly perturb the observations an agent receives, leading to catastrophic failures, especially in safety-critical applications like autonomous driving. For example, a self-driving car might misinterpret a stop sign as a speed limit sign due to a small, imperceptible change in its visual input. Existing defenses often fall into two categories: regularization methods that add adversarial loss terms (good at reducing attack success but fail dramatically when an attack does succeed) or "maximin" approaches that aim to maximize the worst-case reward (robust but often overly conservative, leading to poor performance in normal scenarios). This paper addresses the need for a defense that is both robust against sophisticated attacks and less conservative than existing maximin methods.

Methods

The core contribution of this paper is the introduction of a regret-based defense strategy. Regret, in this context, measures the difference in an agent's performance with and without adversarial perturbations. The authors propose an approximation of regret called Cumulative Contradictory Expected Regret (CCER). CCER is designed to have the "optimal substructure property," making it amenable to dynamic programming and policy gradient methods.

They then develop three main approaches based on CCER:

  • RAD-DRN (Regret-based Adversarial Defense with Deep Regret Networks): This method uses a Deep Q-Network (DQN) to learn and minimize CCER, similar to value iteration. To mitigate conservatism, it uses a weighted combination of value and CCER estimates to guide policy decisions.
  • RAD-PPO (Regret-based Adversarial Defense with Proximal Policy Optimization): This approach leverages policy gradients to minimize CCER, integrating it into the PPO framework.
  • RAD-CHT (Regret-based Adversarial Defense with Cognitive Hierarchy Theory): This is a reactive approach that models adversaries as playing at different "levels" of strategic reasoning. It computes a best-response policy against a distribution of potential adversarial strategies, inspired by game theory.

Datasets

The authors evaluate their methods on several standard benchmarks:

  • MuJoCo: A suite of continuous control tasks (Hopper, HalfCheetah, Walker2d).
  • Atari: A collection of classic video games (Pong, Freeway, BankHeist, RoadRunner).
  • Highway Environments: Discrete-action self-driving tasks (highway-fast-v0, merge-v0, roundabout-v0, intersection-v0).

No new benchmarks were introduced; the focus was on evaluating existing methods on established RL environments.

Key Insights and Ideas

  • Regret as a Robustness Metric: The paper successfully demonstrates that optimizing for regret, rather than just worst-case reward, can lead to more balanced robustness and performance. Regret captures the loss due to an attack, which is a more direct measure of the attack's impact than just the minimum achievable reward.
  • CCER's Practicality: The proposed CCER approximation is crucial because it retains the desirable optimal substructure property, allowing for efficient optimization using standard RL techniques like DQN and PPO.
  • Adversary-Agnostic vs. Reactive Defense: The paper offers both "agnostic" approaches (RAD-DRN, RAD-PPO) that learn robust policies without needing to know the specific attack, and a "reactive" approach (RAD-CHT) that adapts to different levels of adversarial sophistication. This provides a comprehensive defense toolkit.
  • Beyond Greedy Attacks: The work explicitly tests against "strategic" multi-step attacks, which are more challenging than simple greedy perturbations, and shows that regret-based methods excel here.

Key Results

  • Superior Robustness: Across various environments (Highway, MuJoCo, Atari), the proposed RAD methods (especially RAD-PPO and RAD-CHT) consistently outperform leading adversarial RL defenses like RADIAL and WocaR under different attack types (greedy, strategic, worst-case policy).
  • Balanced Performance: While some defenses achieve higher unperturbed scores, RAD methods offer a strong trade-off, maintaining competitive performance in normal conditions while being significantly more robust to attacks. For instance, in Highway environments, RAD-DRN and RAD-PPO achieve robust scores that are often higher than other robust methods, even if their unperturbed scores are slightly lower than vanilla PPO.
  • Degradation Mitigation: The paper shows that RAD methods degrade less severely as attack intensity (frequency or magnitude) increases, particularly compared to regularization-based methods.
  • Specific Example: In the "highway-fast-v0" environment, RAD-PPO and RAD-CHT achieve scores around 20-21 under PGD attacks, while methods like RADIAL drop to around 2.4.

Limitations and Future Work

  • Computational Cost: While the paper emphasizes efficiency, especially compared to some adversarial retraining methods, training and evaluating multiple RAD variants and adversaries can still be computationally intensive. The RAD-CHT approach, in particular, has memory requirements that can be challenging for hardware.
  • Hyperparameter Tuning: The paper mentions tuning learning rates for RAD-DRN, implying that optimal performance might depend on careful hyperparameter selection.
  • Future Work: The authors suggest exploring more sophisticated adversary models and further investigating the trade-offs between conservatism and robustness. They also hint at extending regret-based defenses to other areas of RL, such as partial observability or multi-agent settings.

Summary updated

BibTeX
@inproceedings{belaire2024regret,
  author = {Roman Belaire and Pradeep Varakantham and Thanh Hong Nguyen and David Lo},
  title = {{Regret-based Defense in Adversarial Reinforcement Learning}},
  booktitle = {AAMAS},
  year = {2024},
  url = {https://openreview.net/forum?id=k2zJTOL7OM},
}
Figure