发现跳过连接会增强对抗样本的迁移性,提出新方法提升攻击效果。
On the Adversarial Transferability of Generalized "Skip Connections"
- 通过抑制残差模块梯度、强化跳连梯度,生成高迁移性对抗样本。
- 在多种模型上测试,使用该方法后攻击迁移率显著提升。
- 适用于视觉与语言模型,对防御模型仍有效,适合安全研究者参考。
跳过连接是现代深度模型能更深更强的关键组件。尽管在正常场景下表现优异(自然样本分类达到顶尖性能),我们发现其在对抗场景中存在一个有趣特性:使用跳过连接可更易生成高度迁移的对抗样本。具体而言,在类似ResNet的模型中,若通过衰减因子抑制残差模块的梯度,同时偏向跳过连接的梯度进行反向传播,即可构造出具有高迁移性的对抗样本。基于此,我们提出跳过梯度法(SGM)。虽然起源于视觉领域的ResNet类模型,但该方法进一步拓展至Vision Transformers(ViTs)、路径长度可变的模型及自然语言处理领域。我们在多种模型家族上进行了全面的迁移攻击实验,包括ResNets、Transformer、Inception、神经架构搜索模型及大语言模型(LLMs)。结果表明,采用SGM几乎在所有情况下均显著提升了攻击的迁移能力。此外,我们还验证了该方法在集成攻击、定向攻击以及对抗防御模型等更具挑战性的设置下依然有效。最后,我们提供了理论解释与实证洞察,阐明其作用机制。本研究不仅激发了对模型结构特征的新型对抗研究,也给安全的模型架构设计带来了新挑战。代码已公开于 https://github.com/mo666666/SGM。
原文摘要 · Abstract (English)
Skip connection is an essential ingredient for modern deep models to be deeper and more powerful. Despite their huge success in normal scenarios (state-of-the-art classification performance on natural examples), we investigate and identify an interesting property of skip connections under adversarial scenarios, namely, the use of skip connections allows easier generation of highly transferable adversarial examples. Specifically, in ResNet-like models (with skip connections), we find that biasing backpropagation to favor gradients from skip connections--while suppressing those from residual modules via a decay factor--allows one to craft adversarial examples with high transferability. Based on this insight, we propose the Skip Gradient Method (SGM). Although starting from ResNet-like models in vision domains, we further extend SGM to more advanced architectures, including Vision Transformers (ViTs), models with varying-length paths, and other domains such as natural language processing. We conduct comprehensive transfer-based attacks against diverse model families, including ResNets, Transformers, Inceptions, Neural Architecture Search-based models, and Large Language Models (LLMs). The results demonstrate that employing SGM can greatly improve the transferability of crafted attacks in almost all cases. Furthermore, we demonstrate that SGM can still be effective under more challenging settings such as ensemble-based attacks, targeted attacks, and against defense equipped models. At last, we provide theoretical explanations and empirical insights on how SGM works. Our findings not only motivate new adversarial research into the architectural characteristics of models but also open up further challenges for secure model architecture design. Our code is available at https://github.com/mo666666/SGM.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。