LGAIOct 11, 2024

On the Adversarial Transferability of Generalized "Skip Connections"

arXiv:2410.08950v13 citationsh-index: 14Has Code
Originality Highly original
AI Analysis

This work addresses security vulnerabilities in deep learning models by revealing architectural weaknesses that facilitate adversarial attacks, posing challenges for secure model design.

The paper investigates how skip connections in deep neural networks make it easier to generate highly transferable adversarial examples, introducing the Skip Gradient Method (SGM) that improves transferability by emphasizing gradients from skip connections during backpropagation. Experiments show SGM boosts transferability across various models including ResNets, Vision Transformers, and Large Language Models, with improvements demonstrated in almost all cases.

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 using more gradients from the skip connections rather than the residual modules according to a decay factor during backpropagation allows one to craft adversarial examples with high transferability. The above method is termed as 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) and models with length-varying paths and other domains, i.e. natural language processing. We conduct comprehensive transfer attacks against various models including ResNets, Transformers, Inceptions, Neural Architecture Search, and Large Language Models (LLMs). We show that employing SGM can greatly improve the transferability of crafted attacks in almost all cases. Furthermore, considering the big complexity for practical use, we further demonstrate that SGM can even improve the transferability on ensembles of models or targeted attacks and the stealthiness against current defenses. 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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes