NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Transferable Targeted Adversarial Attacks with Model Self-Enhancement

Han Wu, Guanyan Ou, Weibin Wu, Zibin Zheng

Introduction

Adversarial attacks involve introducing subtle, often imperceptible perturbations to input data, such as images, to deceive neural networks into making incorrect predictions. These attacks generally fall into two categories: untargeted attacks, which aim to cause any misclassification, and targeted attacks, which attempt to force the model to predict a specific, pre-defined incorrect label. While untargeted attacks demonstrate high transferability across different architectures, targeted attacks are notoriously difficult to transfer from a known source model to an unknown "black-box" target model.

The Overfitting Challenge in Targeted Attacks

The primary obstacle to successful targeted transfer is overfitting. When an adversarial perturbation is generated using a specific source model, it often exploits "model-specific" features—mathematical artifacts unique to that model's architecture or training history. Consequently, while the attack is highly effective against the source model (white-box setting), it fails against a target model that does not share these specific vulnerabilities.

Conceptual illustration of model self-enhancement for improved transferability.

As illustrated in the conceptual diagram above, standard source models often reside in "sharp" regions of the loss landscape. Attacks generated here are narrow and brittle. By enhancing the source model to generalize better, the generated adversarial examples are more likely to fall within the decision boundaries of diverse target models.

The SASD-WS Framework

To address this, researchers proposed the SASD-WS framework, a two-stage "Model Self-Enhancement" strategy designed to improve the generalization of the source model before attack generation.

The SASD-WS framework: Sharpness-Aware Self-Distillation followed by Weight Scaling.

1. Sharpness-Aware Self-Distillation (SASD)

Standard training typically converges to sharp local minima, which are prone to overfitting. SASD mitigates this by first fine-tuning an auxiliary model using Sharpness-Aware Minimization (SAM). SAM explicitly seeks out "flat" regions in the loss landscape where the model's performance is less sensitive to small weight perturbations. This auxiliary model is then distilled back into the original source model, forcing it to adopt a flatter, more generalized loss landscape.

2. Weight Scaling (WS)

While ensemble methods (averaging across multiple models) are known to improve transferability, they are computationally intensive. SASD-WS employs a mathematical shortcut called Weight Scaling. The authors demonstrate that scaling the weights of a single model by a specific ratio can effectively approximate an "infinite ensemble" of randomly pruned models. This provides the benefits of model augmentation without the overhead of training or running multiple networks.

Experimental Results and Impact

The SASD-WS method was rigorously evaluated using the ImageNet and NIPS17 datasets, as well as real-world commercial APIs.

  • Superior Transferability: In black-box settings, SASD-WS outperformed existing state-of-the-art baselines (such as GhostNet and LGV) by an average margin of 12.2% in targeted transfer success rate.
  • Cross-Architecture Robustness: The attacks generated via SASD-WS proved effective even when transferring between fundamentally different architectures, such as from Convolutional Neural Networks (ResNet) to Vision Transformers (ViT).
  • Real-World Efficacy: When tested against the Google Cloud Vision API, SASD-WS achieved a 40.2% success rate, significantly higher than the 31.8% achieved by the best-performing baseline.
  • Defense Resistance: The generated perturbations remained effective against common defensive measures, including JPEG compression and feature denoising.

Conclusion

The SASD-WS framework shifts the focus of adversarial research from input-side augmentations to model-side enhancement. By prioritizing the generalization of the source model through flatness and simulated ensembles, it significantly bridges the gap in targeted attack transferability. While the initial fine-tuning requires computational resources, the resulting gains in black-box success rates represent a substantial advancement in understanding and exploiting the vulnerabilities of modern AI systems.

Summary updated

BibTeX
@inproceedings{wu2024improving,
  author = {Han Wu and Guanyan Ou and Weibin Wu and Zibin Zheng},
  title = {{Improving Transferable Targeted Adversarial Attacks with Model Self-Enhancement}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02324},
}
Figure