Skip to main content
QUICK REVIEW

[Paper Review] Rethinking the Backward Propagation for Adversarial Transferability

Xiaosen Wang, Kangheng Tong|arXiv (Cornell University)|Jun 22, 2023
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

The paper shows gradient truncation from non-linear layers harms transferability of adversarial examples and proposes Backward Propagation Attack (BPA) to mitigate this by using a SiLU-based gradient for ReLU and a softmax-based gradient for max-pooling, improving transferability across models and attacks.

ABSTRACT

Transfer-based attacks generate adversarial examples on the surrogate model, which can mislead other black-box models without access, making it promising to attack real-world applications. Recently, several works have been proposed to boost adversarial transferability, in which the surrogate model is usually overlooked. In this work, we identify that non-linear layers (e.g., ReLU, max-pooling, etc.) truncate the gradient during backward propagation, making the gradient w.r.t. input image imprecise to the loss function. We hypothesize and empirically validate that such truncation undermines the transferability of adversarial examples. Based on these findings, we propose a novel method called Backward Propagation Attack (BPA) to increase the relevance between the gradient w.r.t. input image and loss function so as to generate adversarial examples with higher transferability. Specifically, BPA adopts a non-monotonic function as the derivative of ReLU and incorporates softmax with temperature to smooth the derivative of max-pooling, thereby mitigating the information loss during the backward propagation of gradients. Empirical results on the ImageNet dataset demonstrate that not only does our method substantially boost the adversarial transferability, but it is also general to existing transfer-based attacks. Code is available at https://github.com/Trustworthy-AI-Group/RPA.

Motivation & Objective

  • Identify how non-linear layers during backward propagation truncate gradients and harm transferability of adversarial examples.
  • Propose BPA to preserve gradient information and improve cross-model transferability.
  • Demonstrate BPA's effectiveness across untargeted and targeted attacks on ImageNet and against defenses.

Proposed method

  • Show gradient truncation caused by ReLU and max-pooling during backpropagation dampens loss-input relevance.
  • Propose Backward Propagation Attack (BPA) to mitigate truncation by: a) using the derivative of SiLU for ReLU backward computation; b) employing softmax with temperature to compute max-pooling derivatives.
  • Provide a formulation for the modified gradients: ReLU gradient replaced with SiLU-based derivative ∂zi+1/∂zi = σ(zi) · (1 + zi · (1 − σ(zi))); max-pooling gradient computed via softmax within each window: ∂zk+1/∂zk = exp(t · zk,i,j) / sum_{υ∈w} exp(t · υ) with temperature t.
  • Validate BPA through extensive experiments on ImageNet against multiple surrogate and victim models.
  • Compare BPA to baselines SGM, LinBP, Ghost and show BPA boosts attack transferability across untargeted and targeted scenarios.

Experimental results

Research questions

  • RQ1Does gradient truncation from non-linear layers reduce adversarial transferability across models?
  • RQ2Can modifying backward propagation to preserve gradient information improve transferability of adversarial examples?
  • RQ3How does BPA perform across untargeted and targeted attacks on ImageNet and against defenses?

Key findings

  • BPA consistently improves transferability over baselines across nine victim models on ImageNet.
  • Across untargeted attacks (PGD, MI-FGSM, VMI-FGSM, ILA, SSA), BPA yields substantial gains over existing model-related methods.
  • BPA also boosts targeted attacks when optimizing logit loss, outperforming all baselines.
  • Ablation shows modifying last ReLU layers significantly boosts transferability, and combining ReLU and max-pooling modifications yields best results.
  • BPA enhances robustness of attacks against defenses like HGD, R&P, NIPS-r3, JPEG, RS, and NRP.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.