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 research in Deep Reinforcement Learning (RL) has largely focused on untargeted disruption, where the goal is simply to degrade an agent's performance. However, the ability to force an agent to follow a specific, arbitrary "target policy" represents a more severe security threat. Existing targeted attacks often rely on unrealistic assumptions: "write-access" to the agent's internal memory or high computational latency that prevents real-time execution.
We introduce CopyCAT, a targeted adversarial attack designed for the read-only setting. In this scenario, the attacker can only manipulate the raw sensor input (the observation) without direct access to the agent's internal state memory. CopyCAT utilizes pre-computed, static image masks to lure an agent into a target behavior in real-time, effectively seizing full control of the neural policy with minimal computational overhead.
Methodology
The core of CopyCAT is the pre-computation of a finite set of universal additive masks, $\Delta = \{\delta_a\}_{a \in \mathcal{A}}$, where each mask $\delta_a$ corresponds to a specific action $a$ in the agent's repertoire.
Universal Mask Optimization
For each action $a$, a mask $\delta_a$ is optimized to maximize the probability of the agent selecting that action across a diverse dataset of observations. The objective function balances target action probability with an $L_\infty$ constraint (perturbation budget $\epsilon$) and $L_2$ regularization (controlled by parameter $\alpha$) to minimize the "energy" or visibility of the attack.
Real-Time Inference
At runtime, the attacker identifies the action $a^*$ dictated by the target policy and adds the corresponding pre-computed mask $\delta_{a^*}$ to the current frame. This approach requires virtually zero additional computation during the attack phase, making it viable for high-speed applications like autonomous driving or robotics.
Evaluation and Results
We evaluated CopyCAT on Atari 2600 games (e.g., Space Invaders, HERO) and ImageNet. In the Atari experiments, we attempted to force a DQN agent to follow the policy of a more advanced Rainbow agent.
Key Results
CopyCAT demonstrated high effectiveness, often achieving action agreement rates over 99% in white-box settings. Crucially, the hijacked agents achieved cumulative rewards comparable to the target policies, indicating successful behavioral replication rather than mere action disruption.
The attack successfully overcomes "memory inertia"—the presence of clean frames in the agent's state buffer—by manipulating only the most recent observation. While black-box transferability was demonstrated using ensemble training, it required larger perturbation budgets compared to white-box scenarios.
Conclusion
CopyCAT highlights a significant vulnerability in RL agents: the ability to be "puppeted" by static, universal perturbations even in read-only settings. This work underscores the need for RL-specific defenses that can detect or mitigate observation-only manipulations in real-time environments.
Summary updated