Improving Adversarial Transferability via Intermediate-level Perturbation Decay

Qizhang Li, Yiwen Guo, Wangmeng Zuo, Hao Chen

TL;DR

Black-box adversarial attacks often struggle to transfer from substitute models to unknown victim models. This paper introduces Intermediate-level Perturbation Decay (ILPD), a single-stage optimization method that forces adversarial perturbations in hidden layers to maintain a large magnitude exactly along an effective adversarial direction. By "decaying" the perturbation during optimization, ILPD significantly improves gradient alignment between models, boosting adversarial transferability by over 10% on ImageNet compared to prior state-of-the-art methods.

What Problem Does This Paper Address?

In the realm of black-box adversarial attacks, attackers usually don't have access to the victim model's weights or architecture. Instead, they rely on transferability: crafting an adversarial example on a known "substitute" model and hoping it also fools the unknown victim model.

A popular way to boost transferability is through intermediate-level attacks. These attacks tweak the feature representations in the middle layers of the neural network. Historically, this is a two-stage process: first, find a "directional guide" (a vector representing a highly damaging direction in the feature space), and second, maximize the perturbation's scalar projection onto this guide.

The authors identify a critical flaw in this two-stage approach: because the optimizer only maximizes the projection, the actual perturbation inevitably deviates from the optimal guide direction in the high-dimensional feature space. This angular deviation, even if the perturbation magnitude is large, significantly degrades the attack's effectiveness on the substitute model and ruins its transferability to the victim.

Methods

To solve the directional deviation problem, the authors propose Intermediate-level Perturbation Decay (ILPD), which collapses the attack into a single stage of optimization.

Instead of explicitly calculating a guide vector and maximizing a projection, ILPD formulates a clever "dual" optimization problem. During the forward pass of the attack optimization, ILPD takes the intermediate feature representation and artificially "decays" the adversarial perturbation by a factor of $\gamma$ (where $\gamma > 1$).

Mathematically, if the network is split into a feature extractor $h$ and a classifier $g$, ILPD maximizes the loss of $g$ using a mixed representation: $\frac{1}{\gamma}h(x+\Delta x) + (1-\frac{1}{\gamma})h(x)$.

Because the optimizer is forced to achieve a high classification loss using this artificially shrunk (decayed) perturbation, it has to compensate by finding an input perturbation $\Delta x$ that produces a massive magnitude in the feature space, perfectly aligned with the most damaging adversarial direction.

Effect of decay factor on perturbation magnitude and victim loss

Datasets

  • CIFAR-10: Evaluated using a VGG-19 substitute model against 7 different victim architectures.
  • ImageNet: Evaluated using a ResNet-50 substitute model against 13 diverse victim models, including standard CNNs, Vision Transformers (ViTs), and MLP-Mixers.

Key Insights and Ideas

  • Directional Deviation is Fatal: The authors demonstrate empirically that intermediate perturbations with large magnitudes are practically useless for transferability if they deviate even slightly from the optimal adversarial direction. Alignment matters just as much as size.
  • Decay Forces Magnitude and Alignment: By artificially decaying the intermediate perturbation during optimization, the network is tricked into generating a much larger, highly-aligned perturbation to achieve the target loss. It essentially forces the optimizer to "try harder" along the most effective path.
  • Improved Gradient Alignment: The success of transfer attacks relies heavily on how well the input gradients of the substitute model align with those of the victim model. The authors show that standard iterative attacks (like I-FGSM) lose gradient alignment over time as they overfit to the substitute. ILPD naturally preserves and improves this gradient alignment across iterations, breaking the overfitting cycle.
Cosine similarity of input gradients over optimization steps

Key Results

  • Massive SOTA Gains: On ImageNet, ILPD achieved an average transfer success rate of 57.06% across 13 victim models, outperforming the second-best method (ILA++) by a massive +10.07%. On CIFAR-10, it achieved 62.82% (+3.88% over the next best).
  • Cross-Architecture Transfer: ILPD is highly effective at transferring from standard CNNs (ResNet-50) to radically different architectures. It achieved absolute gains of +19.14% against Vision Transformers and +34.86% against ConvNeXt compared to baseline attacks.
  • Highly Combinable: ILPD can be easily plugged into existing input augmentation techniques. When combined with DI$^2$-FGSM, the average success rate on ImageNet jumped to 63.23%.
  • Defeats Robust Models: ILPD successfully outperformed competitors against models defended by adversarial training and randomized smoothing.

Limitations and Future Work

The primary limitation lies in the hyperparameter $\gamma$ (the decay factor). Because the later layers of the network ($g$) are highly non-linear, an extremely large $\gamma$ can cause unpredictable behavior and make the loss difficult to guarantee. The authors restricted $1/\gamma$ to the range $[0.1, 0.5]$ (meaning $\gamma$ is between 2 and 10) for their experiments. They note that pushing $\gamma > 10$ might yield even better performance on ImageNet, but they leave the careful tuning and theoretical bounding of this parameter to future work.

Summary updated

BibTeX
@inproceedings{li2023improving,
  author = {Qizhang Li and Yiwen Guo and Wangmeng Zuo and Hao Chen},
  title = {{Improving Adversarial Transferability via Intermediate-level Perturbation Decay}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=dikH9tdPi2},
}
Figure