TL;DR
This paper introduces the "Similar Target" (ST) method to improve the transferability of adversarial attacks. By encouraging the gradients of multiple "surrogate" models to be similar, ST effectively attacks all models simultaneously, leading to more potent adversarial examples that can fool a wider range of target models. This approach significantly outperforms existing state-of-the-art black-box attack methods.
What Problem Does This Paper Address?
Deep learning models, despite their impressive capabilities, are notoriously vulnerable to adversarial attacks. These attacks involve making subtle, often imperceptible, modifications to input data (like images) that cause the model to misclassify them. A particularly concerning aspect of these attacks is their "transferability" – adversarial examples crafted for one model can often fool other, different models, even if the attacker has no prior knowledge of the target model's architecture or parameters (a "black-box" attack). This poses a significant security risk for deployed AI systems. While ensemble methods, which combine predictions or gradients from multiple "surrogate" models, have shown promise in enhancing transferability, they often rely on simplistic averaging techniques that can discard valuable information from individual models. The paper aims to address this by developing a more sophisticated ensemble attack that better leverages the information from multiple surrogate models to create more effective and transferable adversarial examples.
Methods
The core of this paper is the proposed Similar Target (ST) method. Unlike previous ensemble attacks that average outputs (logits, probabilities) or losses, ST focuses on the gradients of the surrogate models. The key idea is to promote cosine similarity between the gradients of these surrogate models during the adversarial example generation process. This is achieved by adding a regularization term to the optimization objective that encourages the gradients to point in similar directions.
The ST method works by:
- Calculating gradients: For each surrogate model, the gradient of the loss function with respect to the input is computed.
- Promoting cosine similarity: A regularization term is introduced that penalizes dissimilar gradients, effectively pushing them towards alignment. This is mathematically formulated by maximizing the cosine similarity between the gradients of different surrogate models.
- Combined optimization: The final update direction for the adversarial perturbation is a weighted combination of the gradient from the original loss function (to maximize the attack's effectiveness on individual models) and the gradient of the cosine similarity term (to ensure transferability across models).
- Iterative refinement: This process is repeated iteratively, gradually refining the adversarial perturbation.
The authors also highlight that their method can be easily integrated with existing gradient-based attack methods (like MI, NI, VMI) and input transformation techniques (like DI, TI) as a plug-and-play component, further enhancing their performance.
Datasets
The primary dataset used for evaluation is the NIPS2017 dataset, which consists of 1000 images from ImageNet, resized to 224x224.
The paper evaluates its method against a wide range of models, including:
- 16 normally trained models: AlexNet, VGG16, GoogleNet, InceptionV3, ResNet152, DenseNet121, SqueezeNet, ShuffleNetV2, MobileNetV3, EfficientNetB0, MNasNet, RegNetX400MF, ConvNeXt-T, ViT-B/16, Swin-S, MaxViT-T.
- 8 adversarially trained models: FGSMAT, EnsAT, FastAT, PGDAT (various configurations), and PGDAT+ (various configurations).
Key Insights and Ideas
- Gradient alignment is key to transferability: The paper's central insight is that aligning the gradients of surrogate models is more effective for enhancing adversarial transferability than simply averaging their outputs. This suggests that the "direction" of the attack is more critical for fooling unseen models than the magnitude of the predicted probabilities or losses.
- Simultaneous attack on all surrogates: By promoting gradient similarity, the ST method effectively attacks all surrogate models concurrently, rather than treating them as independent entities. This leads to a more robust adversarial example that is less likely to be defended against by any single model.
- Trade-off between optimization and regularization: The method explicitly balances the traditional objective of maximizing the loss (optimization) with the new objective of promoting gradient similarity (regularization). This trade-off, controlled by hyperparameters, is crucial for achieving optimal transferability.
- Visualizing perturbations reveals semantic meaning: The visualizations show that ST-generated perturbations are more semantically meaningful, suggesting they target specific features that are common vulnerabilities across models.
Key Results
The ST method demonstrates significant improvements in black-box attack success rates across various models:
- Discriminative Classifiers: On 16 normally trained models, ST consistently achieves attack success rates over 80%, often reaching near-perfect scores (99.7% - 100.0%) on models like ResNet152 and DenseNet121. It shows substantial improvements (up to 20%) even on newer architectures like EfficientNetB0 and ViT-B/16.
- Adversarially Trained Models (Secured Models): ST outperforms existing state-of-the-art methods on 8 adversarially trained models, achieving success rates of 90.0% on InceptionV3 and 81.4% on EnsAT. It shows improvements of at least 30% over other methods in many cases.
- Comparison: The paper claims ST outperforms leading state-of-the-art attackers on 18 out of 24 evaluated models.
Limitations and Future Work
- Computational Cost: While the method is efficient, it cannot perform back-propagation for all surrogate models simultaneously, making it slightly slower than some single-model attacks. However, the improved attack success rate and faster convergence often compensate for this.
- Hyperparameter Tuning: The effectiveness of ST relies on carefully tuning hyperparameters like the loss weight ($\lambda_1$) and cosine weight ($\lambda_2$), as well as the inner step size ($\beta$). Ablation studies explore these trade-offs, but optimal settings might vary across different model architectures and datasets.
- Future Work: The paper suggests that their method can be incorporated with existing techniques, implying potential for further research in combining ST with other advanced attack strategies or defense mechanisms. The authors also highlight the need for developing more robust defensive strategies in light of the demonstrated vulnerability of current models.
Summary updated