Researchers propose trajectory-level transferable black-box adversarial attacks for deep reinforcement learningBoosting Transferable Adversarial Attacks against Deep Reinforcement Learning
On CartPole-v1, trajectory-level perturbations reduce DQN and DDQN returns more than stepwise FGSM-type attacks and same-budget Sign noise.
Transfer-based black-box: the attacker constructs observation perturbations on a white-box proxy and applies them to a victim policy whose parameters are inaccessible and which cannot be queried during construction, to minimize expected return under a per-step ℓ∞ budget. The attacker observes the true state; the trajectory attack additionally uses differentiable dynamics. Figure 1 also presents the white-box setting where gradients can be taken with respect to the proxy.
- Deployed DRL policies are usually inaccessible, so attackers can only construct observation perturbations on a white-box proxy and then transfer them. Stepwise image classification targets only the current action, and a trained policy will correct single-step errors.
- On a differentiable environment model and a temperature-smoothed proxy policy, FGSM, MI-FGSM, and NI-FGSM are used to optimize a perturbation that brings the predicted state close to the failure region; only the current step is applied, and the rest warm-starts the next step.
- Ten DQN/DDQN agents on CartPole-v1, 100 agent–victim pairs. Stepwise attacks transfer, but the authors state they are not stronger than corner noise at the same budget. Trajectory-level attacks achieve lower returns under white-box, cross-model, and cross-algorithm settings; the authors state that the three operators are similar when transferring.
- The authors leave high-dimensional observations and learned dynamics for future work. Experiments use known equations of motion on CartPole-v1, evaluating white-box, cross-seed, and cross-algorithm transfer for DQN and DDQN, with budgets 0.05 and 0.1, and 10 episodes with fixed environment seeds per item.
- Evaluated models
- DQNDouble DQN (DDQN)
- Benchmarks
- CartPole-v1
- Metrics
- average episode return(越低表示攻击越强)
The paper studies transfer-based black-box attacks against deep reinforcement learning (DRL), where the attacker constructs observation perturbations on a white-box surrogate agent and then applies them to an unknown victim policy, formalizing the attack as return minimization under a per-step perturbation budget. The authors first find that transplanting the transferable image-classification attacks FGSM, MI-FGSM, and NI-FGSM to a per-frame objective yields perturbations that transfer but are no stronger than random noise under the same budget. To address this, they propose a trajectory-level attack that, with the help of a differentiable environment model and a temperature-smoothed surrogate policy, optimizes a sequence of perturbations over a receding horizon using the same optimizer. On CartPole-v1, across ten DQN and DDQN agents and 100 surrogate-victim pairs, this trajectory-level attack outperforms per-frame attacks and random noise in white-box, cross-model, and cross-algorithm settings.
Related events and news
1 events · 0 news mentions
- This event's paper
轨迹级黑盒迁移攻击提升对DRL的对抗效果
Paper analysis
What problem does this paper attempt to solve?
Black-box DRL relies on transferable observation perturbations to lower returns, but stepwise targets are not stronger than corner noise.
How to reduce the expected return of a DRL agent with transferable observation perturbations when the victim's policy parameters are inaccessible.
- Scenario: The authors state that deployed policies are usually inaccessible, and the attacker is black-box; a practical approach is to craft perturbations on a white-box surrogate and apply them to an unknown victim. The authors believe DRL policies inherit the adversarial vulnerability of deep networks, and small perturbations on observations can lead to catastrophic actions.
- Existing shortcomings: When FGSM, MI-FGSM, NI-FGSM are paired with stepwise objectives, perturbations transfer across seeds and algorithms, but the authors state they are not more destructive than corner random noise at the same budget. Stepwise objectives only target the current action, and trained policies quickly correct single-step errors.
- Question the authors want to test: Whether explicitly optimizing future state trajectories improves transfer more than stepwise attack objectives. Even with a surrogate, the expected return is a non-differentiable function of a long sequence of discrete actions and stochastic transitions.
- Proposed attack: Trajectory-level attacks use the same set of optimizers on a differentiable environment model and a temperature-smoothed surrogate policy, optimizing a perturbation sequence over a receding horizon to push predicted states toward failure regions.
- Threat model:
- Objective: Minimize the victim's expected return under a stepwise ℓ∞ budget ϵ.
- Knowledge: θv is unknown, and πv cannot be queried during perturbation construction; the surrogate Q network is trained in the same environment, with possibly different seeds or algorithms. Figure 1 calls this transfer-based black-box, contrasted with white-box where gradients are available on the surrogate.
- Capabilities: At each step, see the true state st and inject δt into the victim's observation; the environment still transitions according to the true state. Trajectory attacks also assume a differentiable dynamics f; on CartPole, f is the known physics model.
- Victim system: Value-based agents with greedy policies given by Qv. Experimental victims are DQN and DDQN on CartPole-v1.
What related research exists?
Related work covers transferable attacks, DRL adversarial attacks, robustness diagnostics, and sequential targets; baselines are stepwise FGSM-type and random noise.
Transferable adversarial attacks
- The paper lists iterative attacks [18, 25], momentum [7], Nesterov lookahead [23], variance tuning [32], and input diversity [33], as well as transfer attacks for face recognition [20] and speech recognition [8].
- The authors also list other uses of adversarial inputs: reducing the efficiency of dynamic networks and large language models [4, 5], manipulating text generation [19], and implanting hidden backdoors [6, 10].
Adversarial attacks on DRL
- Huang et al. [11] use FGSM to degrade the performance of DRL policies on Atari and briefly examine cross-policy and cross-algorithm transfer.
- Lin et al. [24] propose strategically timed attacks and enchanting attacks; the latter uses a learned dynamics model to plan a sequence of target actions.
- Optimal white-box adversaries can be learned with reinforcement learning [30, 34], and domain randomization has been used to improve transfer [28]. PIMbot manipulates the policies and incentives of robot teams in multi-agent settings [21, 27]. Korkmaz [13] discusses how sensitive directions transfer across states and MDPs, including to adversarially trained policies; Korkmaz [14] discusses how natural observation transformations weaken nominally robust policies under black-box settings.
Diagnostics and robustness evaluation
- Korkmaz and Brown-Cohen [17] detect adversarial directions using a local quadratic approximation of the policy loss.
- Korkmaz [15] analyzes how unstable directions vary with state and time; the authors state this concerns the limitations of robust training. Korkmaz [16] discusses how enforcing local invariance can harm counterfactual value learning.
- The authors state that these results motivate evaluating defenses beyond the perturbations used during training; their experiments examine attack effectiveness without establishing robustness guarantees.
Sequence-level objectives
- SPEAR [22] performs order-preserving alignment on symbolic reasoning trajectories to provide process rewards for distillation. The authors state that the common point with their work is that the objective uses sequence structure; SPEAR does reasoning distillation, while they optimize observation perturbations for adversarial control.
Baseline methods and benchmarks
- Stepwise FGSM, MI-FGSM, NI-FGSM, with the decoy action being pushing left; same-budget Uniform noise and Sign noise. The environment is Gymnasium's CartPole-v1.
The authors position their work in §2 as optimizing temporally coordinated perturbations through a differentiable dynamics model and evaluating transfer across seeds and algorithms.
How does the paper address this problem?
Use a temperature-smoothed surrogate and differentiable dynamics to push predicted states toward failure regions over a receding horizon.
The overall approach changes the attack from single-step actions to trajectory-level transfer attacks: unroll a temperature-smoothed surrogate in a differentiable environment model, optimize a perturbation to push predicted states toward failure regions, and solve with the same FGSM, MI-FGSM, NI-FGSM as in image classification.
Problem Setting and Stepwise Relaxation
- Interaction: The task is written as an MDP. The victim acts greedily with respect to Qv. At each step, the attacker sees the true state and adds δt to the observation; the victim acts on the perturbed observation, and the environment transitions according to the true state.
- Objective: Minimize the expected discounted return J(δ)=𝔼[∑t=0Hγt r(st,at)] under a stepwise ℓ∞ budget. The meaning is the victim's expected discounted return; the constraint is that the victim reads st+δt, and each perturbation's infinity norm does not exceed ϵ. In black-box, θv is unknown, and πv cannot be queried during construction; the surrogate is trained in the same environment, with possibly different seeds or algorithms.
- Stepwise relaxation: At each step, independently maximize the surrogate's log-softmax for the decoy action a†. On CartPole, a† is continuously pushing in the same direction; the experiment uses push left. Solvers are FGSM, MI-FGSM, or NI-FGSM.
- Authors' rationale: A one-step error only slightly changes the state, and the next decision can correct it, so under small budgets stepwise attacks must succeed at almost every step, making transfer harder.
Trajectory Objective and Differentiable Unrolling
- Dynamics: Assume a differentiable model f, where predicted states are obtained from the current predicted state and a continuous action relaxation. On CartPole, f is the known physics model; the authors state that in general it can be learned from interaction data, as in the enchanting attack.
- Temperature smoothing: Replace the greedy action with softmax(Qs/κ), then take the expected action as the force for unrolling. The introduction states that temperature is used to avoid overfitting to the surrogate's exact decision boundary; §3.2 states that larger κ makes gradients follow the overall trend of the Q function, similar to momentum stabilizing gradients.
- Horizon objective: At step t, optimize a perturbation sequence of length K, maximizing Ltraj(Δt)=∑k=1Kφ(ŝt+k). The meaning is the cumulative degree to which predicted states approach failure regions. φ takes the larger of the normalized squared pole angle and cart position relative to their respective termination thresholds. Following model predictive control, only the current perturbation is executed, and the rest is shifted right as the initial value for the next step.
Optimization and Execution
- Same set of operators: Step size is ϵ/T. MI-FGSM accumulates ℓ1-normalized gradient momentum with decay μ; NI-FGSM additionally performs Nesterov lookahead, then takes the sign gradient and clips by ϵ. FGSM takes a single step with step size ϵ.
- Values: §4.1 uses T=10, μ=1.0, K=20, κ=2, with ϵ of 0.05 or 0.1. Algorithm 1 unrolls f from the current true state, backpropagates the trajectory loss, and gives the first perturbation to the black-box victim.
- Difference from stepwise attacks: The optimizer is the same, the objective is different. Stepwise attacks push toward a fixed decoy action; trajectory attacks do not specify an action sequence, only push predicted states toward termination thresholds.
Authors' Rationale for Transfer
- Shared dynamics: The authors state that the trajectory loss depends on the environment dynamics shared by both parties, not the surrogate's exact actions at each step, so perturbations that push toward failure over multiple steps are useful for policies with similar reactions.
- Temperature: The authors state that temperature smoothing reduces overfitting to differences in decision boundaries between agents.
What experiments did the paper conduct?
In Table 1, trajectory-level methods have lower returns than stepwise attacks and Sign noise under white-box, cross-model, and cross-algorithm settings.
Experimental Setup
- Environment: Gymnasium's CartPole-v1. Observations are 4-dimensional raw vectors: cart position, cart velocity, pole angle, pole angular velocity. Actions are push left or right. Reward is +1 per step, maximum return 500.
- Agents: DQN and DDQN, 5 seeds each, 10 models total. Two-layer MLP (128 units), Adam learning rate 5×10^{-4}, batch size 128, soft target updates, trained for 600 episodes, checkpoints kept by periodic greedy evaluation. Figure 2 shows the average curve over five seeds, 20-episode moving average, shading is one standard deviation across seeds. Without attack, the text states 8 agents have returns of 500, the other two average 489.3 and 437.8.
- Attacks and Baselines: Stepwise FGSM, MI-FGSM, NI-FGSM, with decoy action push left; trajectory versions are Traj-FGSM, Traj-MI-FGSM, Traj-NI-FGSM. Iterative attacks T=10, μ=1.0. Trajectory attacks K=20, κ=2, unrolling CartPole dynamics. Uniform noise each dimension from [−ϵ, ϵ], Sign noise each dimension randomly ±ϵ. ϵ is 0.05 or 0.1, in units of raw observations.
- Protocol: White-box: the agent is the victim. Cross-model: same algorithm, different seeds, 20 ordered pairs per algorithm. Cross-algorithm: DQN and DDQN serve as surrogates for each other, 25 pairs per direction. The abstract states 100 surrogate–victim pairs total. Each evaluation runs 10 episodes with fixed environment seeds.
- Metrics: Victim average episode return, lower means stronger attack. Table 1 reports mean±std: white-box over five victims, cross-model over 20 ordered pairs, cross-algorithm over 25 pairs. Random baselines are evaluated directly on the victim. The paper does not use a separate review model and does not report statistical tests.
Main Results
The table below excerpts Table 1 for ϵ=0.1. In the cross-algorithm column, the surrogate is the other algorithm. FGSM, NI-FGSM, Traj-FGSM, and Uniform are not listed in the table; numbers appear later.
| Victim setting (ϵ=0.1) | Sign noise | MI-FGSM | Traj-MI-FGSM | Traj-NI-FGSM | | White-box DQN | 74.3±38 | 159.5±174 | 19.5±13 | 18.5±12 | | White-box DDQN | 121.2±133 | 125.4±188 | 15.7±6 | 13.9±4 | | Cross-model DQN | 74.3±38 | 147.7±120 | 60.6±95 | 59.6±78 | | Cross-model DDQN | 121.2±133 | 211.2±190 | 41.1±40 | 45.5±40 | | Cross-algorithm, surrogate DQN, victim DDQN | 121.2±133 | 148.6±160 | 47.5±47 | 55.1±50 | | Cross-algorithm, surrogate DDQN, victim DQN | 74.3±38 | 324.0±166 | 53.1±57 | 58.7±62 |
- Stepwise attacks: The authors state that iterative stepwise attacks are stronger than FGSM, with almost no loss across seeds, but weaker than Sign noise. Cross-algorithm asymmetry: stepwise attacks constructed on DDQN barely affect DQN; the authors state returns remain above 320.
- Trajectory attacks: The authors state that trajectory-level methods are stronger than stepwise attacks and random noise under white-box, cross-model, and cross-algorithm settings, and remove the above asymmetry. The authors state this supports their hypothesis: objectives defined via shared dynamics transfer better than objectives defined via individual actions. The authors also state that at white-box ϵ=0.1, Traj-NI-FGSM is 4–9 times lower than Sign noise.
- Dispersion: Several cells have standard deviations of the same magnitude as the mean, e.g., white-box ϵ=0.1, DQN MI-FGSM is 159.5±174. The authors do not report statistical tests.
Budget 0.05
- White-box: The authors state that stepwise attacks keep victims above return 277. In Table 1, white-box ϵ=0.05, DDQN MI-FGSM is 277.0±200; at the same budget, Traj-MI-FGSM is DQN 73.5±49, DDQN 157.3±178.
- Transfer: The authors state that trajectory attacks remain the strongest in each column, but the gap relative to Sign noise is smaller, with an example of 190.0 vs. 240.5. These two cells are cross-model DQN Traj-FGSM 190.0±147 and Sign noise 240.5±92.
- Cells where momentum variants have higher returns: Cross-model ϵ=0.05, on DQN the three trajectory operators are 190.0±147, 203.4±154, 202.9±149; on DDQN they are 240.0±205, 268.1±217, 271.6±219. The authors do not separately explain these cells.
Operators and Random Noise
- White-box momentum: The authors state that momentum and lookahead help most in white-box. At ϵ=0.1, DQN Traj-FGSM is 56.5±52; the authors state momentum and lookahead are about 19; Table 1 shows 19.5±13 and 18.5±12. The authors state that in transfer, the three trajectory operators are similar, and transferability mainly comes from the trajectory objective.
- Momentum is not lower in every column: Cross-algorithm, ϵ=0.1, surrogate DQN, victim DDQN: Traj-FGSM is 41.6±27, Traj-MI-FGSM is 47.5±47, Traj-NI-FGSM is 55.1±50. The authors do not provide further explanation.
- Relative to two noises: At ϵ=0.1, DQN Uniform is 172.7±53, Sign is 74.3±38. In the same white-box column, FGSM is 262.5±177, higher than Uniform; MI-FGSM is 159.5±174, lower than Uniform, higher than Sign. In the conclusion, "not stronger than random noise" specifically refers to corner noise. In Table 1, the cell where stepwise attack mean is lower than the same-column Sign noise is white-box ϵ=0.05, DDQN MI-FGSM (277.0±200 vs. 284.9±204).
Other Ablations and Analyses
- The paper does not provide separate ablations for K, κ, T; trajectory attacks are fixed at K=20, κ=2, T=10, μ=1.0 (§4.1).
- White-box ϵ=0.1, DQN: FGSM 262.5±177, NI-FGSM 153.5±176 (Table 1). The authors state that iterative stepwise attacks are stronger than FGSM.
- Cross-algorithm ϵ=0.1, surrogate DDQN, victim DQN: FGSM 364.5±140, NI-FGSM 322.3±164 (Table 1), both above 320 along with MI-FGSM.
- No attack: DQN 500.0±0, DDQN 485.4±24 (Table 1); the no-attack cells are the same for the same victim type across the three settings.
- ϵ=0.05, DQN Uniform is 375.0±130, DDQN is 304.7±193; Sign noise is 240.5±92 and 284.9±204 (Table 1).
- White-box ϵ=0.1, DDQN: NI-FGSM is 125.4±189, with the same mean as MI-FGSM's 125.4±188 (Table 1).
What are some points that can be further explored?
The conclusion leaves high-dimensional observations and learned dynamics models for future work.
Limitations and future directions noted by the authors
- Future extensions: The conclusion (§5) states that extending the attack to high-dimensional observations and learned dynamics models is left for future work. The paper does not have a separate Limitations or Future Work section; the future direction stated in the conclusion is this sentence.
Experimental coverage
- Environments and agents: The evaluation environment is CartPole-v1; the agents are DQN and DDQN with 5 seeds each, for a total of 10 two-layer MLPs (§4.1, Figure 2).
- Transfer settings: white-box, cross-model (20 ordered pairs per algorithm), cross-algorithm (25 pairs per direction); the abstract states 100 agent–victim pairs (abstract, §4.1).
- Attack configuration: ϵ is 0.05 and 0.1; T=10, μ=1.0; K=20, κ=2; rollout uses the CartPole motion equations (§4.1, Algorithm 1).
- Protocol and metrics: 10 episodes per evaluation, environment seeds fixed; Table 1 reports means and standard deviations across victims or across pairs. The paper does not report statistical tests.
- Baselines: stepwise FGSM, MI-FGSM, NI-FGSM, and Uniform noise and Sign noise (Table 1). The paper does not report evaluations of defenses.
Summarize the main content of the paper
Trajectory-level receding-horizon attacks reduce returns on CartPole more than stepwise FGSM-type methods and Sign noise.
This work studies transfer-based black-box observation attacks on DRL: when victim parameters are inaccessible, perturbations are crafted on a white-box proxy and then transferred.
- Problem: the authors state that the stepwise objectives of FGSM, MI-FGSM, and NI-FGSM transfer across seeds and algorithms, but are not stronger than same-budget corner noise. The reason, according to the authors, is that single-step errors are corrected by the trained policy.
- Method: using differentiable dynamics and a temperature-smoothed proxy policy, the objective maximizes how close the predicted state is to the termination threshold; three optimizers act on perturbations of length K, executing only the current step and warm-starting the rest. On CartPole the dynamics are the known equations of motion; experiments use K=20, κ=2, T=10, μ=1.0.
- Setting: CartPole-v1, 10 DQN/DDQN agents, 100 proxy–victim pairs, covering white-box, cross-model, and cross-algorithm settings, with budgets 0.05 and 0.1. The metric is victim average episode return.
- Results: in the white-box setting with ϵ=0.1, Traj-NI-FGSM gives 18.5±12 for DQN and 13.9±4 for DDQN, while Sign noise in the same column gives 74.3±38 and 121.2±133 (Table 1). In the cross-model setting with ϵ=0.1, Traj-NI-FGSM gives 59.6±78 for DQN, and stepwise MI-FGSM gives 147.7±120. In the cross-algorithm setting with proxy DDQN, victim DQN, and ϵ=0.1, Traj-MI-FGSM gives 53.1±57, and the authors state that stepwise attacks give returns above 320.
- Authors' conclusion: the authors state that the same set of optimizers under the trajectory objective reduces returns more effectively in the white-box, cross-model, and cross-algorithm settings, so defenses against temporally coordinated perturbations are needed. High-dimensional observations and learned dynamics are left for future work.