Robustifying Reinforcement Learning Agents via Action Space Adversarial Training

Kai Liang Tan, Yasaman Esfandiari, Xian Yeow Lee, Aakanksha, Soumik Sarkar

TL;DR

Deep Reinforcement Learning (DRL) agents in cyber-physical systems are highly vulnerable to "actuator attacks" that perturb their chosen actions. This paper demonstrates that by integrating a virtual adversary into the training loop—specifically one that uses gradient-based methods to find worst-case action perturbations—agents can be made significantly more robust without sacrificing, and sometimes even improving, their original performance.

What Problem Does This Paper Address?

As DRL moves from research labs to real-world cyber-physical systems (CPS) like autonomous vehicles and power grids, security becomes a primary concern. While much work has focused on adversarial attacks in perception (e.g., tricking a vision system with a sticker), this paper tackles action space perturbations.

In a control setting, an attacker might compromise an actuator to slightly alter the control signal sent by the agent. Because DRL models are inherently trajectory-driven, a small nudge at the wrong time can cause the agent to diverge onto a catastrophic path. Traditional control theory uses "resilient" controllers to recover after an attack, but the authors argue that for safety-critical systems, we need "robust" agents that are designed to be inherently resistant to these perturbations from the start.

Methods

The authors frame robustification as a min-max optimization problem. The goal is to maximize the agent's reward while a "virtual adversary" simultaneously tries to minimize it by perturbing the agent's actions.

Key components of their approach include:

  • MAS-Adversarial Training: A novel training algorithm where the agent interacts with an environment that includes a white-box adversary.
  • Action Space Attacks: Unlike standard adversarial training that perturbs inputs (states), this method perturbs the outputs (actions).
  • Iterative PGD with Saturation: They use Projected Gradient Descent (PGD) to find the optimal attack. Crucially, instead of using a fixed number of steps ($k$), they iterate until the adversarial action "saturates" (converges), ensuring the agent is truly training against a worst-case scenario.
  • Projection Methods: They compare two ways of bounding the adversary's "budget":
  • $l_1$ norm: Tends to produce sparse attacks (impacting one dimension heavily).
  • $l_2$ norm: Produces more distributed attacks across action dimensions.

The architecture uses a standard Proximal Policy Optimization (PPO) agent with an Actor-Critic setup, as illustrated in the training loop below:

The robustification loop: A virtual adversary perturbs the agent's action before it reaches the environment.

Datasets

The researchers evaluated their approach using the OpenAI Gym Lunar Lander environment.

  • State Space: 8 continuous values (coordinates, velocities, angles, and leg contact sensors).
  • Action Space: 2 continuous vectors controlling the main engine and side thrusters.
  • Goal: Land the craft safely on a designated pad while minimizing fuel usage.
The Lunar Lander environment: The agent must control thrusters to land at the goal.

Key Insights and Ideas

  • The Exploration Bonus: Surprisingly, the $l_1$-robustified agent actually outperformed the nominal agent even when no attack was present. The authors hypothesize that the adversarial perturbations forced the agent to explore a wider variety of trajectories during training, helping it find more optimal policies that the "safe" nominal training missed.
  • $l_1$ vs. $l_2$ Difficulty: Agents trained against $l_1$ attacks converged faster and to higher rewards than those trained against $l_2$. This suggests that distributed attacks ($l_2$) are fundamentally harder for a DRL agent to defend against than sparse, high-magnitude attacks ($l_1$).
  • Robustness Trade-offs: The results confirm a common theme in adversarial ML: there is often a slight performance cost in "nominal" (normal) conditions to gain significant stability in "adversarial" conditions. However, this paper shows that for DRL, this trade-off is remarkably favorable.

Key Results

The quantitative results (summarized in the table and reward distribution plots below) show a clear victory for adversarial training:

  • Nominal Agent Failure: When a standard agent was attacked, its mean reward plummeted from 2.21 to 0.74 ($l_1$ attack) and 0.60 ($l_2$ attack), often resulting in crashes.
  • Robust Agent Success: The robustly trained agents maintained high performance under attack. The $l_1$-robust agent achieved a reward of 2.39 under attack—actually higher than the nominal agent's score in a peaceful environment.
  • Distribution Shift: As seen in Figure 4, the reward distribution for nominal agents under attack has a "long tail" of negative rewards (crashes), whereas the robust agents maintain a tight distribution near the successful landing zone.
Training convergence: $l_1$ robustification converges faster and to a higher reward than $l_2$.
Reward distributions: Nominal agents (blue dashed) fail under attack (light blue solid), while robust agents (orange dashed) remain stable even when attacked (brown solid).

Limitations and Future Work

While promising, the study has a few limitations:

  • White-Box Assumption: The training assumes the adversary has full access to the agent's network architecture and parameters. While this is a standard "worst-case" benchmark, real-world attacks might be "black-box."
  • Single Environment: The results are limited to the Lunar Lander. More complex, high-dimensional control tasks (like humanoid walking or multi-agent systems) remain to be tested.
  • Future Directions: The authors suggest exploring the transferability of these defenses—checking if an agent trained against one type of attack can survive a completely different, unseen attack strategy.

Summary updated

BibTeX
@inproceedings{tan2020robustifying,
  author = {Kai Liang Tan and Yasaman Esfandiari and Xian Yeow Lee and Aakanksha and Soumik Sarkar},
  title = {{Robustifying Reinforcement Learning Agents via Action Space Adversarial Training}},
  booktitle = {ACC},
  year = {2020},
  doi = {10.23919/acc45564.2020.9147846},
}
Figure