arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.08950cs.LGcs.AI
收藏

关于通用“跳跃连接”的对抗迁移性

On the Adversarial Transferability of Generalized "Skip Connections"

Yisen Wang, Yichuan Mo, Dongxian Wu, Mingjie Li, Xingjun Ma, Zhouchen Lin

AI总结:

本文研究了跳跃连接在对抗场景下的迁移性,提出Skip Gradient Method (SGM)提升攻击迁移性,并验证其在多种模型和攻击场景下的有效性。

摘要:

跳跃连接是现代深度模型更深层和更强大不可或缺的组成部分。尽管在正常场景下(如自然示例的最新分类性能)取得了巨大成功,我们研究并识别了跳跃连接在对抗场景下的一个有趣性质,即使用跳跃连接可以更容易地生成高度可迁移的对抗示例。具体而言,在ResNet-like模型(带有跳跃连接)中,我们发现通过将反向传播偏向于优先考虑跳跃连接的梯度(通过衰减因子抑制残差模块的梯度),可以构造出具有高迁移性的对抗示例。基于这一见解,我们提出了Skip Gradient Method (SGM)。虽然从视觉领域ResNet-like模型开始,我们进一步将SGM扩展到更高级的架构,包括Vision Transformers (ViTs)、具有不同长度路径的模型,以及其他领域如自然语言处理。我们对多样化的模型家族进行了全面的基于迁移的攻击,包括ResNets、Transformers、Inceptions、基于神经网络架构搜索的模型和大型语言模型 (LLMs)。结果表明,在几乎所有情况下,使用SGM都能显著提高所构造攻击的迁移性。此外,我们证明SGM在更具挑战性的设置下仍然有效,如基于集成的攻击、目标攻击以及针对配备防御的模型。最后,我们提供了SGM如何工作的理论解释和实证见解。我们的发现不仅激发了新的对抗研究进入模型的架构特性,也进一步挑战了安全模型架构设计。我们的代码可在https://github.com/mo666666/SGM获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑