TL;DR
This paper demonstrates that adversarial attacks can go beyond simply making reinforcement learning agents fail at their tasks. The authors show how to manipulate agents into pursuing entirely new, arbitrary adversarial goals by subtly altering their input states over time, posing a significant security threat to real-world RL applications.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents, powered by deep neural networks (DNNs), have achieved remarkable performance in complex tasks like games and are increasingly being considered for safety-critical applications such as self-driving cars. However, like other DNNs, these RL agents are vulnerable to adversarial attacks. Previous research has shown that small, imperceptible perturbations to an agent's input states can degrade its performance on its original task. This paper addresses the question of whether these attacks can be more sophisticated: can an adversary force an RL agent to actively pursue a different, arbitrary goal, rather than just making it perform poorly? This is crucial because forcing an agent to achieve a malicious objective is a more severe threat than simply causing it to fail.
Methods
The core of the proposed attack is an Adversarial Transformer Network (ATN), a learned feed-forward network that generates small perturbations to the input states. This ATN is trained to work in conjunction with a fixed victim RL agent's policy network (specifically, a Deep Q-Network or DQN). The ATN learns to transform the input states such that when the perturbed states are fed into the victim DQN, the agent optimizes for a new, adversarial reward function ($r_A$) instead of its original reward ($r_0$).
The training process involves treating the combined ATN and victim DQN as a new DQN that aims to maximize the adversarial reward. The ATN's parameters are updated while the victim DQN's parameters remain fixed. To ensure the perturbations are subtle, they are constrained by an L2 norm, meaning their magnitude is kept small. The ATN architecture itself involves convolutional and deconvolutional layers, with a norm-clipping layer to enforce the perturbation constraint and an element-wise clipping layer to keep input values within the valid range [0, 1].
As a baseline comparison, the authors also implement an attack based on the Fast Gradient Sign Method (FGSM), which relies on gradient computations rather than a learned network.
Datasets
The experiments are conducted using the Pong game environment from the OpenAI Gym. The authors use both pre-trained agents provided by OpenAI and agents trained independently by themselves for the experiments. For evaluating the adversarial reward, they also train several "vanilla" DQNs from scratch specifically for the adversarial reward task to serve as an oracle for performance comparison.
Key Insights and Ideas
- Beyond Performance Degradation: The most significant insight is that adversarial attacks can be used to impose entirely new goals on RL agents, not just to make them perform worse. This shifts the threat model from simple sabotage to active manipulation.
- Learned Perturbations are Effective: The ATN, a learned perturbation generator, proves to be a powerful tool for crafting these sophisticated attacks, outperforming the gradient-based FGSM baseline in some scenarios.
- Subtle Perturbations, Significant Impact: The attacks are achieved with small, visually imperceptible perturbations, highlighting the vulnerability of even high-performing RL agents.
- Transferability of Adversarial Goals: The ATN can successfully manipulate agents trained for the original reward to pursue the adversarial reward, demonstrating the effectiveness of the learned attack strategy.
Key Results
- The ATN-based adversary successfully manipulates victim agents (trained for the original reward $r_0$) to accrue the adversarial center reward ($r_C$) over time, achieving performance comparable to agents explicitly trained for $r_C$.
- The ATN adversary outperforms the FGSM baseline, particularly against OpenAI's pre-trained agents, suggesting that learned attackers can be more robust or adaptable.
- The effectiveness of the attack generally increases with the L2 norm budget ($\epsilon$) up to a certain point ($\epsilon \approx 10^{-4}$), after which training becomes unstable. Perturbations at $\epsilon = 10^{-4}$ are visible but still considered imperceptible to human players.
Limitations and Future Work
- White-box Access Requirement: The current ATN training requires white-box access to the victim policy network's gradients. The authors acknowledge this is restrictive but suggest that ongoing research into adversarial example transferability might relax this in the future.
- Fixed Victim DQN: The attack assumes the victim DQN is fixed. If the victim DQN is updated, the ATN would need to be retrained. The authors note that in practice, such updates might not be continuous.
- Computational Resources: Training the ATN can be computationally intensive.
- Future Work: The authors suggest exploring the transferability of adversarial examples for their attack and experimenting with different victim-attacker environment pairings. They also note that the flexibility of imposing an adversarial reward could be used to encode adversarial states.
Summary updated