Targeted Attacks on Deep Reinforcement Learning Agents through Adversarial Observations

Léonard Hussenot, Matthieu Geist, Olivier Pietquin

Abstract

We propose a new perspective on adversarial attacks against deep reinforcement learning agents. Our main contribution is CopyCAT, a targeted attack able to consistently lure an agent into following an outsider's policy. It is pre-computed, therefore fast inferred, and could thus be usable in a real-time scenario. We show its effectiveness on Atari 2600 games in the novel read-only setting. In this setting, the adversary cannot directly modify the agent's state -- its representation of the environment -- but can only attack the agent's observation -- its perception of the environment. Directly modifying the agent's state would require a write-access to the agent's inner workings and we argue that this assumption is too strong in realistic settings.

Introduction

Adversarial attacks on neural networks have traditionally focused on supervised learning tasks, such as misclassifying images. In the context of Reinforcement Learning (RL), previous research has primarily explored "untargeted" attacks aimed at degrading an agent's performance. However, these methods often rely on unrealistic assumptions. First, they frequently assume "write-access," allowing the attacker to modify the agent's internal state or memory. Second, they often require significant computational resources to solve optimization problems at each time step, making them impractical for real-time applications like autonomous robotics.

This work introduces CopyCAT (Constant Attacks), a method designed to steer an RL agent toward a specific, predetermined "target" policy. By operating in a "read-only" setting, CopyCAT only modifies the agent's raw visual observations, placing the adversary at the natural interface between the agent and its environment.

Methodology: The CopyCAT Algorithm

The core innovation of CopyCAT is the use of pre-computed, action-specific masks. Instead of calculating a unique perturbation for every frame, the algorithm generates a set of additive masks $\Delta = \{\delta_a\}_{a \in A}$, where each mask $\delta_a$ corresponds to a specific action $a$ in the agent's action space.

To hijack the agent's behavior, the attacker monitors a "target policy" in the background. When the target policy dictates a specific action, the attacker applies the corresponding pre-computed mask to the current observation $o_t$. This approach ensures minimal computational overhead during inference, as it avoids per-frame optimization.

The masks are trained to be "universal" across a dataset of observations. The optimization objective is to maximize the probability of the agent selecting action $a$ while adhering to a "stealthiness" budget (constrained by an $L_\infty$ norm) and minimizing the overall perturbation energy (regularized by an $L_2$ norm).

Experimental Evaluation

The effectiveness of CopyCAT was evaluated on the Atari 2600 benchmark, specifically on games like Space Invaders, HERO, and Air Raid. The primary target was a standard Deep Q-Network (DQN) agent, which the researchers attempted to steer toward the behavior of a more advanced "Rainbow" agent.

Key Results and Insights

A critical finding is that simply measuring the "attack success rate" (the frequency of the agent taking the intended action) is insufficient to characterize the depth of control. The researchers demonstrated that the attacked DQN agent could achieve cumulative rewards nearly identical to those of the superior Rainbow target policy, effectively "remote controlling" the agent's high-level strategy.

Figure 1: Attack norm ($||\delta||_2$) vs. regularization parameter $\alpha$. CopyCAT maintains lower energy across various $\epsilon$ budgets compared to baselines.

As shown in Figure 1, the $L_2$ norm of the perturbations (the "energy") decreases as the regularization parameter $\alpha$ increases. This trade-off allows for the creation of masks that are harder for anomaly detection systems to identify while remaining effective at steering behavior.

Figure 2: Attack success rate and average cumulative reward as a function of $\alpha$. For sufficiently small $\alpha$, the attacked agent's reward matches the target policy $\pi^{target}$.

Figure 2 illustrates the relationship between the regularization parameter, attack success, and the resulting reward. In many scenarios, CopyCAT achieved over 99% action agreement with the target policy. Crucially, as the regularization is tuned, the average cumulative reward of the attacked agent converges toward that of the target policy ($\pi^{target}$), far exceeding the original agent's performance ($\pi$).

Conclusion and Future Work

CopyCAT demonstrates that RL policies possess "global" vulnerabilities that can be exploited with constant, pre-computed attacks. By restricting the attack to the observation layer, the method provides a more realistic threat model for real-world systems.

While highly effective in white-box scenarios, future research is needed to improve the efficiency of these attacks in black-box settings where the agent's internal architecture is unknown. Furthermore, the development of robust defense mechanisms specifically tailored for the sequential decision-making nature of RL remains a critical area for future exploration.

Summary updated

BibTeX
@inproceedings{hussenot2020targeted,
  author = {Léonard Hussenot and Matthieu Geist and Olivier Pietquin},
  title = {{Targeted Attacks on Deep Reinforcement Learning Agents through Adversarial Observations}},
  booktitle = {AAMAS},
  year = {2020},
  url = {https://openreview.net/forum?id=Srx-VP1wLg5},
}
Figure