Enhancing Adversarial Transferability with Adversarial Weight Tuning
Jiahao Chen, Zhou Feng, Rui Zeng, Yuwen Pu, Chunyi Zhou, Yi Jiang, Yuyou Gan, Jinbao Li, Shouling Ji
TL;DR
This work addresses adversarial example transferability across models with different architectures by proposing Adversarial Weight Tuning (AWT), a data-free bi-level optimization framework that jointly perturbs inputs and tunes surrogate-model parameters to create flatter, more transferable loss landscapes. The authors establish theoretical links between transferability, model smoothness, and flat local maxima, and they operationalize these insights through AWT, which minimizes a combined loss that promotes flatness in both input and parameter spaces without requiring external data. Extensive ImageNet-scale experiments show that AWT improves transferability on both CNN- and Transformer-based models, surpassing state-of-the-art gradient-based attacks and enhancing other attacks when combined with AWT. They also introduce a transferability metric and discuss its relationship to empirical results, while acknowledging limitations and practical considerations in real-world scenarios.
Abstract
Deep neural networks (DNNs) are vulnerable to adversarial examples (AEs) that mislead the model while appearing benign to human observers. A critical concern is the transferability of AEs, which enables black-box attacks without direct access to the target model. However, many previous attacks have failed to explain the intrinsic mechanism of adversarial transferability. In this paper, we rethink the property of transferable AEs and reformulate the formulation of transferability. Building on insights from this mechanism, we analyze the generalization of AEs across models with different architectures and prove that we can find a local perturbation to mitigate the gap between surrogate and target models. We further establish the inner connections between model smoothness and flat local maxima, both of which contribute to the transferability of AEs. Further, we propose a new adversarial attack algorithm, \textbf{A}dversarial \textbf{W}eight \textbf{T}uning (AWT), which adaptively adjusts the parameters of the surrogate model using generated AEs to optimize the flat local maxima and model smoothness simultaneously, without the need for extra data. AWT is a data-free tuning method that combines gradient-based and model-based attack methods to enhance the transferability of AEs. Extensive experiments on a variety of models with different architectures on ImageNet demonstrate that AWT yields superior performance over other attacks, with an average increase of nearly 5\% and 10\% attack success rates on CNN-based and Transformer-based models, respectively, compared to state-of-the-art attacks. Code available at https://github.com/xaddwell/AWT.
