Adversarial attacks against neural network policiesAdversarial Attacks on Neural Network Policies
The authors apply FGSM adversarial example attacks to Atari policy networks and state that they degrade the performance of DQN, TRPO, and A3C policies under both white-box and black-box settings.
At test time, the attacker adds small perturbations to the original input of an already-trained policy. In the white-box setting, the policy network structure and parameters are known; in the black-box setting, the training environment is accessible, but the random initialization of the target policy is unknown, and further, the training algorithm and hyperparameters may also be unknown.
- Deep RL policies map directly from raw inputs to actions, and the authors focus on whether they are also broken by small adversarial perturbations at test time. The authors consider this relevant to policy reliability in online and real-world deployment.
- The authors transfer FGSM from image classification to policy networks, applying the l∞, l2, and l1 norm constraints respectively, and compare three settings: white-box attack, cross-policy transfer, and cross-algorithm transfer.
- The experiments cover 4 Atari games and the three algorithms DQN, TRPO, and A3C. The authors state that all combinations are vulnerable to attack, DQN is usually more susceptible, and black-box transfer is weaker but can still often reduce performance.
- The authors state that future work needs to study defenses such as adding adversarial examples during training or detecting adversarial inputs at test time. The experiments cover only 4 Atari games, 3 training algorithms, and the three types of FGSM norm constraints.
- Evaluated models
- Chopper Command policy trained with A3CPong policy trained with A3CSeaquest policy trained with A3CSpace Invaders policy trained with A3CChopper Command policy trained with TRPOPong policy trained with TRPOSeaquest policy trained with TRPOSpace Invaders policy trained with TRPOChopper Command policy trained with DQNPong policy trained with DQNSeaquest policy trained with DQNSpace Invaders policy trained with DQN
- Benchmarks
- Arcade Learning EnvironmentChopper CommandPongSeaquestSpace Invaders
- Metrics
- average return
Researchers found that adversarial examples can also attack neural network policies in reinforcement learning, significantly reducing the test-time performance of trained policies on four Atari games. The authors used FGSM to generate perturbations under ℓ∞, ℓ2, and ℓ1 norm constraints; among these, a perturbation with ϵ=0.001 under the ℓ∞ constraint reduced performance by more than 50% in multiple cases, and after conversion to 8-bit image encoding it was indistinguishable from the original input. The experiments covered three algorithms, DQN, TRPO, and A3C, and policies trained with DQN were more susceptible. In the black-box setting, adversarial examples transferred across policies and across training algorithms; cross-algorithm transfer was weaker than cross-policy transfer, but in most games it could still significantly reduce performance.
Why it was selectedOn four Atari games and three deep reinforcement learning algorithms, the paper shows that adversarial perturbations can significantly reduce policy performance and can transfer across policies and algorithms, providing a reference for evaluating the robustness of policy inputs.
Paper analysis
What problem does this paper attempt to solve?
The authors study whether small perturbations at test time can reliably break deep RL policies, and compare white-box and black-box conditions.
The core question is: whether trained neural network policies at test time can be disrupted by small adversarial perturbations, as image classifiers can.
- Problem setting: The authors focus on end-to-end deep RL policies, i.e., policies that directly output action distributions from raw inputs such as images; such policies have been used in settings such as Atari, robotic manipulation, locomotion control, and driving.
- Why it matters: The authors argue that if policies can be affected by imperceptible input perturbations, then both online deployment and real-world deployment could be affected.
- Gaps in existing research: The authors state that existing adversarial example research has mainly focused on supervised learning; existing adversarial research on RL has mainly focused on interfering during training rather than interfering with trained policies at test time.
- Core observation: The authors argue that RL training algorithms and random initialization change the states and actions encountered during training, so policies trained by different algorithms may differ in robustness to attack.
- What the paper proposes: The authors systematically evaluate the effect of FGSM adversarial examples on Atari policies, comparing three norm constraints, three training algorithms, and three attack conditions: white-box, cross-policy transfer, and cross-algorithm transfer.
- Threat model:
- Goal: To degrade the performance of a trained policy at test time, rather than to prevent training.
- Knowledge: In the white-box setting, the attacker can access the policy network structure and parameters; in the black-box setting, the attacker cannot access the target policy network.
- Capability: The attacker can add bounded small perturbations to the raw input seen by the policy; in the black-box setting, the attacker can access the training environment.
- Victim system: Atari policies trained by DQN, TRPO, or A3C in the Arcade Learning Environment.
What related research exists?
The related work mainly comes from three lines: adversarial machine learning, FGSM and black-box transfer attacks, and deep RL algorithms.
Adversarial machine learning and adversarial examples
- Barreno et al. (2006), Papernot et al. (2016): discuss the security and privacy issues of machine learning systems in adversarial environments.
- Biggio et al. (2012, 2013): study training data poisoning and test-time evasion attacks, respectively, corresponding to the two types of attack stages distinguished by the authors.
- Szegedy et al. (2014): proposed adversarial examples and observed that perturbations constructed for one model often transfer to other models on the same task.
Low-cost, black-box, and physical-world attacks
- Goodfellow et al. (2015): proposed FGSM, which generates adversarial examples at relatively low computational cost; this paper directly adopts this method.
- Papernot et al. (2016): black-box attacks can be launched with access only to the model's label predictions; the black-box setting in this paper follows this line of research.
- Kurakin et al. (2016), Sharif et al. (2016): show that adversarial perturbations can also act on physical objects; in the discussion, the authors accordingly argue that similar perturbations may enter the real world.
Deep RL and existing RL adversarial research
- DQN, TRPO, A3C: the three algorithms used in this paper to train Atari policies, and the three training lines on which the authors compare attack effectiveness.
- Behzadan and Munir (2017): studies interfering with agent learning during the training phase; the authors state that this paper focuses on interfering with already-trained policies at test time, which differs from it.
Baselines and benchmarks
- Baseline methods: the paper does not set up separate defense or attack baselines; it mainly compares FGSM under the three constraints l∞, l2, and l1, and under the three conditions of white-box, cross-policy transfer, and cross-algorithm transfer.
- Benchmarks/datasets: Chopper Command, Pong, Seaquest, and Space Invaders in the Arcade Learning Environment.
The authors position this paper as extending adversarial example research from supervised learning to the test-time robustness of RL policies, and focus on characterizing the influence of training algorithms and attacker knowledge on attack effectiveness.
How does the paper address this problem?
The authors adapt FGSM into a policy attack and systematically compare three norm constraints and three attacker knowledge conditions.
The overall idea is to apply FGSM from image classification directly to already-trained policies, perturbing input frames at test time, and observing how average return changes with the perturbation budget.
Problem setup
- Attack target: an already-trained neural network policy πθ, whose input is the representation formed by concatenating the most recent 4 frames.
- Attack goal: make the policy choose worse actions at test time, thereby reducing cumulative return.
- Perturbation form: add a small perturbation η to the original input, examining the three norm constraints l∞, l2, and l1, respectively.
How FGSM is applied to policies
- Core definition: after linearizing the loss with respect to input x, the authors use η = ϵ sign(∇x J(θ, x, y)) to generate the perturbation under the l∞ constraint; the meaning is to uniformly change each dimension in the direction of the fastest loss increase.
- Label construction: since the policy outputs an action weight distribution, the authors treat the action with the currently highest weight as the optimal action, and use the cross-entropy between it and a one-hot distribution to construct J(θ, x, y).
- DQN handling: the DQN policy is deterministic, and directly taking gradients is almost everywhere zero; the authors instead take a softmax of the Q values with temperature 1 to construct y, used only for generating adversarial examples.
Three norm constraints
- l∞: limits the maximum change of each input dimension, corresponding to the least perceptible perturbation.
- l2: adjusts the perturbation budget to the same vector norm scale as the l∞ case, with the direction taken as the normalized gradient direction.
- l1: concentrates the budget on the few dimensions that most affect the loss; the authors state that this setting is more suitable for cases that do not require the perturbation to be imperceptible.
White-box and black-box settings
- White-box: the attacker directly computes gradients with respect to the target policy πθ.
- Cross-policy transfer: the attacker knows the training algorithm, hyperparameters, and network structure, but not the random initialization of the target policy, so perturbations are generated using another policy trained with the same algorithm on the same task.
- Cross-algorithm transfer: the attacker further does not know the training algorithm and hyperparameters, and generates perturbations using a policy trained with a different algorithm.
Evaluation method
- Tasks: 4 Atari 2600 games.
- Training algorithms: DQN, TRPO, A3C.
- Success criterion: attack effectiveness is measured by the magnitude of the drop in average return; each reported result is the average cumulative reward over 10 rollouts.
What experiments did the paper conduct?
The authors test white-box and black-box FGSM on 4 Atari games and 3 algorithms, and report that all settings can reduce returns.
Experimental setup
- Policies under test: Atari policies trained by DQN, TRPO, A3C.
- Dataset/environment: Chopper Command, Pong, Seaquest, Space Invaders in the Arcade Learning Environment.
- Attack method: FGSM, using the three norm constraints l∞, l2, and l1, respectively.
- Metric: average return, i.e., the average cumulative reward over 10 rollouts.
- Policy selection: train 5 policies with different random initializations for each game and algorithm, and keep only policies whose score in the last 10 training iterations is within 80% of the highest score, at most 3 per combination.
- Network and input: the input is the most recent 4 frames, converted to luminance and scaled to 84 × 84; the network structure follows the convolutional structure of the DQN paper.
Main results
Setting Phenomenon reported in the paper Source White-box, 4 games × 3 algorithms Policies trained by all three algorithms are vulnerable to attack Figure 2 White-box, l∞-FGSM, ε=0.001 The authors state that in many cases performance drops by 50% or more 5.2.1 White-box, l1-FGSM The authors state that at the same ε it usually causes the largest performance drop 5.2.1 White-box, DQN The authors state that DQN is more sensitive to l∞ perturbations on Pong, Seaquest, and Space Invaders 5.2.1 Black-box, cross-policy transfer Attack effectiveness is weaker than white-box, but performance can still be reduced Figure 3–5 Black-box, cross-algorithm transfer The authors state that in most games performance can still be clearly reduced at larger ε 5.3.3 - The authors state that the less attacker knowledge, the weaker the attack: cross-algorithm transfer is weaker than cross-policy transfer, and cross-policy transfer is weaker than white-box.
- The authors state that l1 attacks remain relatively strong under transfer: for most game and algorithm combinations, the effectiveness of cross-algorithm transfer is close to the case without transfer.
- The authors state that DQN policies are overall more susceptible, especially in the l∞-FGSM setting on Pong, Seaquest, and Space Invaders.
Transferability experiments
- What was tested: generate perturbations using policies on the same task and with the same algorithm but different random initializations, then attack the target policy.
- Results: the authors state that this cross-policy transfer is effective on all game and algorithm combinations, but weaker than direct white-box attacks (Figure 3–5).
- Authors' interpretation: the authors believe that adversarial examples also have cross-model transferability in RL.
Cross-algorithm transfer experiments
- What was tested: generate perturbations using policies obtained from different training algorithms, then attack the target policy.
- Results: the authors state that in most games, cross-algorithm transfer can still clearly reduce returns at larger ε; l1 attacks are especially close to white-box effectiveness (Figure 3–5).
- Authors' interpretation: the authors believe that transferability exists not only between different initializations but also between different training algorithms.
Other ablations and analyses
- Norm type: all three constraints l∞, l2, and l1 were tested; the authors state that l1 is usually the strongest at the same ε.
- ε sweep: Figure 2–5 show multiple ε values from 0 to 0.008.
- Game differences: the authors state that different games differ in vulnerability, but all games can be attacked.
- Algorithm differences: the authors state that TRPO and A3C appear more resistant to attack than DQN.
- Sample size note: each reported point is the average of 10 rollouts.
What are some points that can be further explored?
The authors only explicitly propose defense directions; the experiments cover 4 Atari games, 3 algorithms, and three types of FGSM constraints.
Limitations noted by the authors and future directions
- Defense research: In Discussion and Future Work, the authors state that an important future direction is developing defenses against adversarial attacks.
- Training-time defense: The authors mention adding adversarial perturbation samples during training as a possible defense route.
- Test-time detection: The authors mention detecting adversarial inputs at test time and then deciding how to handle them.
- Real-world transfer: The authors consider that these perturbations might be applied to real objects, but this is only speculation based on existing work on physical-world adversarial examples.
Scope of experiments
- Models tested: Policies obtained from 3 training algorithms: DQN, TRPO, and A3C.
- Evaluation environments: 4 Atari games in the Arcade Learning Environment.
- Attack methods: Only three variants of FGSM are evaluated: l∞, l2, and l1.
- Attack conditions: Three settings are covered: white-box, cross-policy transfer, and cross-algorithm transfer.
- Not reported in the paper: Experimental results for attack algorithms other than FGSM, environments other than Atari, and defense methods are not reported.
Summarize the main content of the paper
This is a paper that extends adversarial example attacks to deep RL policies; the authors state that both white-box and black-box are effective.
This paper studies: whether trained deep RL policies are broken by small perturbations at test time. The authors transfer FGSM from image classification to Atari policy networks, comparing three norm constraints and three attacker knowledge conditions.
- Problem: Adversarial examples in supervised learning have been widely studied, but the authors argue that the test-time vulnerability of RL policies has not yet been systematically characterized.
- Method: FGSM perturbations are applied to policy input frames, examining l∞, l2, and l1 constraints respectively; for DQN's deterministic policy, the authors use a Q-value softmax to construct a differentiable loss.
- Setup: DQN, TRPO, and A3C policies are evaluated on Chopper Command, Pong, Seaquest, and Space Invaders, with each result averaged over 10 rollouts.
- Results: The authors state that policies trained with all three algorithms can be attacked; in many cases, l∞-FGSM at ε=0.001 already degrades performance by 50% or more.
- Results: The authors state that DQN is generally more vulnerable than TRPO and A3C; black-box transfer attacks are weaker than white-box, but still reduce returns in most games, and l1 attacks are especially close to white-box effectiveness in cross-algorithm transfer.
- Conclusion: The authors argue that adversarial examples with very low computational cost are enough to disrupt RL policies, so training-time defenses and test-time detection need to be studied in the future.