TL;DR
This paper introduces CopyCAT, a novel adversarial attack that can consistently force a deep reinforcement learning (RL) agent to adopt a specific, "outsider" policy. Unlike previous attacks, CopyCAT is pre-computed and operates by subtly altering the agent's observations (not its internal state), making it practical for real-time scenarios and more realistic attack settings.
What Problem Does This Paper Address?
Deep reinforcement learning agents, particularly those using neural networks for decision-making, are increasingly deployed in complex environments. While adversarial attacks on supervised learning models are well-studied, attacks on sequential decision-making agents have often relied on strong assumptions, such as direct write-access to the agent's internal state or the need to craft new attacks at every time step. These limitations make them impractical for real-world applications. This paper addresses the gap by proposing an attack that is both effective in controlling an agent's behavior and realistic in its operational constraints: it targets only observations, is pre-computed, and operates in real-time.
Methods
The core contribution is CopyCAT, an algorithm that generates a set of additive masks ($\Delta$). These masks are designed to be applied to an agent's raw observations. The key idea is that these masks are "universal" in the sense that they are pre-computed to consistently lure the agent into taking a specific action, regardless of the actual observation content.
Here's how it works:
- Targeted Policy Control: CopyCAT aims to make an agent mimic a specific target policy ($\pi_{target}$), rather than just causing random misbehavior or stopping it from acting optimally.
- Observation-Level Attack: The attack operates by adding a mask ($\delta_a$) to the agent's observation ($o$). This is crucial because it avoids the strong assumption of needing to modify the agent's internal state (which is often derived from a history of observations).
- Pre-computation and Real-time Inference: The masks are computed offline. During inference, the adversary simply applies the appropriate pre-computed mask to the current observation. This makes the attack very fast and suitable for real-time deployment.
- Optimization: CopyCAT uses an optimization process to find these masks. For each action $a$, it maximizes the log-probability of the target policy taking that action, while also regularizing the L2 norm of the mask to control its "energy" and potentially make it less detectable. This is a full optimization method, not a single gradient step like FGSM.
- Parameters: CopyCAT has two main parameters: $\epsilon$ (controlling the L∞ norm of the attack on observations) and $\alpha$ (regularizing the L2 norm of the masks).
Datasets
The experiments were primarily conducted on Atari 2600 games. The paper mentions using datasets of observations gathered from agents interacting with these environments for training the CopyCAT masks. Additionally, experiments were performed on the ImageNet dataset to demonstrate the concept of universal adversarial attacks on more realistic images.
Key Insights and Ideas
- Observation-Level Attacks are Sufficient and Realistic: The paper convincingly demonstrates that manipulating an agent's behavior can be achieved by targeting its observations, which is a more realistic constraint than modifying internal states.
- Pre-computation is Key for Real-time Attacks: The ability to pre-compute attack masks offline is a significant advantage, enabling practical real-time adversarial attacks on RL agents.
- Behavioral Control vs. Action Mimicry: A high "attack success rate" (i.e., the agent taking the targeted action) doesn't always translate to matching the overall behavior of the target policy. The paper uses cumulative reward as a proxy for behavioral matching, highlighting that true control requires more than just forcing individual actions.
- Universal Attacks Transfer: The concept of universal adversarial masks, which are effective across different observations, shows promise for robustness and transferability.
- Untrained Agents are More Vulnerable: The experiments suggest that untrained agents (with random weights) are significantly easier to fool than agents that have been trained to optimize a specific policy.
Key Results
- Effective Policy Mimicry: CopyCAT successfully lured RL agents (trained DQN) into following a target policy (trained Rainbow) in Atari games.
- Behavioral Matching: With appropriate parameter settings ($\epsilon \ge 0.04$ and $\alpha < 10^{-6}$), CopyCAT could consistently make the attacked agent's cumulative reward match that of the target policy, indicating successful behavioral control.
- Lower Attack Energy: CopyCAT, by using the regularization parameter $\alpha$, can produce attacks with lower L2 norms compared to FGSM-L∞ for the same $\epsilon$, potentially making them less detectable.
- Black-Box Transferability: An extension of CopyCAT showed effectiveness in a black-box setting, where the attacker doesn't have access to the agent's weights, though it was less efficient than the white-box version.
- Realistic Image Attacks: A proof-of-concept demonstrated universal adversarial attacks on ImageNet, showing the method's applicability beyond game environments.
Limitations and Future Work
- Black-Box Efficiency: The black-box version of CopyCAT is less efficient than its white-box counterpart and could be further improved.
- Robustness and Detection: The paper highlights the need for developing robust RL algorithms that can resist such attacks or detect them. However, detecting attacks in sequential decision-making is challenging because agents may need to continue acting even after detection.
- Transferability of Targeted Attacks: Developing transferable targeted attacks in the black-box setting for RL agents is noted as a difficult but important future direction, especially given the variability in learned representations.
- More Complex Environments: While experiments on realistic images were a proof-of-concept, further work is needed to explore CopyCAT's effectiveness in more complex, real-world robotic or visual environments.
Summary updated