Adversarial examples (AEs) for DNNs have been shown to be transferable: AEs that successfully fool white-box surrogate models can also deceive other black-box models with different architectures. Although a bunch of empirical studies have provided guidance on generating highly transferable AEs, many of these findings lack explanations and even lead to inconsistent advice. In this paper, we take a further step towards understanding adversarial transferability, with a particular focus on surrogate aspects. Starting from the intriguing little robustness phenomenon, where models adversarially trained with mildly perturbed adversarial samples can serve as better surrogates, we attribute it to a trade-off between two predominant factors: model smoothness and gradient similarity. Our investigations focus on their joint effects, rather than their separate correlations with transferability. Through a series of theoretical and empirical analyses, we conjecture that the data distribution shift in adversarial training explains the degradation of gradient similarity. Building on these insights, we explore the impacts of data augmentation and gradient regularization on transferability and identify that the trade-off generally exists in the various training mechanisms, thus building a comprehensive blueprint for the regulation mechanism behind transferability. Finally, we provide a general route for constructing better surrogates to boost transferability which optimizes both model smoothness and gradient similarity simultaneously, e.g., the combination of input gradient regularization and sharpness-aware minimization (SAM), validated by extensive experiments. In summary, we call for attention to the united impacts of these two factors for launching effective transfer attacks, rather than optimizing one while ignoring the other, and emphasize the crucial role of manipulating surrogate models.
翻译:深度神经网络的对抗样本(AEs)已被证明具有迁移性:能够成功欺骗白盒替代模型的对抗样本,同样可以误导其他具有不同架构的黑盒模型。尽管大量实证研究为生成高迁移性对抗样本提供了指导,但许多发现缺乏解释,甚至导致不一致的建议。本文在理解对抗迁移性方面迈出进一步步伐,特别关注替代模型层面。我们从有趣的“微弱鲁棒性”现象出发——即对轻度扰动的对抗样本进行对抗训练的模型可作为更优替代——将其归因于两个主导因素间的权衡:模型平滑性与梯度相似性。我们的研究聚焦于两者的联合效应,而非它们与迁移性的独立相关性。通过系列理论与实证分析,我们推测对抗训练中的数据分布偏移解释了梯度相似性的退化。基于这些见解,我们探究了数据增强和梯度正则化对迁移性的影响,识别出该权衡普遍存在于各种训练机制中,从而构建了迁移性背后调控机制的全面蓝图。最终,我们提供构建更优替代模型以增强迁移性的通用路径——同时优化模型平滑性与梯度相似性,例如结合输入梯度正则化与锐度感知最小化(SAM),并通过大量实验验证。总之,我们呼吁关注这两个因素对发起有效迁移攻击的联合影响,而非优化其一而忽略另一方,并强调操控替代模型的关键作用。