Abstract
Adversarial attacks constitute a notable threat to machine learning systems, given their potential to induce erroneous predictions and classifications. However, within real-world contexts, the essential specifics of the deployed model are frequently treated as a black box, consequently mitigating the vulnerability to such attacks. Thus, enhancing the transferability of the adversarial samples has become a crucial area of research, which heavily relies on selecting appropriate surrogate models. To address this challenge, we propose a novel approach that generates adversarial attacks in a mutual-modality optimization scheme. Our approach is accomplished by leveraging the pre-trained CLIP model. Firstly, we conduct a visual attack on the clean image that causes semantic perturbations on the aligned embedding space with the other textual modality. Then, we apply the corresponding defense on the textual modality by updating the prompts, which forces the re-matching on the perturbed embedding space. Finally, to enhance the attack transferability, we utilize the iterative training strategy on the visual attack and the textual defense, where the two processes optimize from each other. We evaluate our approach on several benchmark datasets and demonstrate that our mutual-modal attack strategy can effectively produce high-transferable attacks, which are stable regardless of the target networks. Our approach outperforms state-of-the-art attack methods and can be readily deployed as a plug-and-play solution.
Introduction
Adversarial attacks—the art of making tiny, invisible changes to an image to trick an AI—have long been a "cat and mouse" game in machine learning. The primary hurdle in these attacks is transferability: an adversarial sample that successfully fools a specific surrogate model often fails when deployed against a different, black-box target model.
In their AAAI-24 paper, researchers from the National University of Singapore introduce a strategy to overcome this by using the bridge between images and text. Their "Mutual-Modality" attack leverages the CLIP model to create perturbations that are not just noisy, but "semantically" confusing, making them significantly more effective at fooling a wide range of target architectures.
The Challenge of Transferability
Most adversarial attacks are designed against a specific surrogate model. When these attacked images are used against a different target model, the attack often fails because the perturbations are too specific to the surrogate's internal architecture.
Current methods attempt to fix this using model ensembles or diverse input transformations, but they still struggle with stability. The authors identify a core gap: most attacks focus only on maximizing mathematical differences in features without considering semantic consistency. If an attack merely turns an image into "feature noise," a different model might simply ignore that noise. By contrast, a semantically meaningful perturbation is harder for any model to ignore.
Proposed Method: Mutual-Modality Attack
The researchers utilize CLIP (Contrastive Language-Image Pre-training) as their surrogate. CLIP is ideal because it maps images and text into a shared feature space, allowing for cross-modal optimization.
Their approach uses a three-step iterative process:
- Visual Attack with Semantic Perturbation: A generator adds a small amount of noise to a clean image. Instead of just making the image "different," they use a triplet loss to push the image's features away from its true text label (e.g., "horse") and toward a "wrong" text label (e.g., "dog").
- Textual Defense with Prompt Updating: While the image is being attacked, they simultaneously "defend" the text modality. They update the text prompts (using Probability Weighted Word Saliency) to try and "re-match" with the newly perturbed image features.
- Iterative Optimization: They alternate between these steps. This "tug-of-war" ensures the generator learns to create perturbations that aren't just random noise, but are semantically meaningful enough that the text encoder can still "recognize" them as something else.
Key Insights and Ideas
- The Power of Alignment: CLIP’s massive pre-training makes its feature space incredibly robust. Attacks generated here capture high-level concepts common across vision models, regardless of architecture.
- Defense as an Offensive Tool: Usually, "defense" means protecting a model. Here, textual defense is used to refine the attack. By seeing what it takes to "fix" the text-image match, the system learns to create a more logical (and thus more transferable) error.
- Stability Over Specificity: Unlike previous methods that perform inconsistently across different target models, the mutual-modality approach remains stable. Whether the target is a ResNet or a Vision Transformer, the semantic nature of the attack tends to trip them all up.
Experimental Results
The authors evaluated their method using standard benchmarks like CIFAR-10 and ImageNet, as well as cross-domain datasets (Comics, Paintings, and medical images). The results show a significant leap in attack success rates:
- Superior Transferability: On ImageNet, the proposed method reduced the overall accuracy of target models to 16.3%, compared to approximately 31% for previous state-of-the-art transfer attacks.
- Cross-Architecture Success: When attacking a variety of models (VGG, MobileNet, etc.), the method consistently outperformed others, often by a margin of 10-15%.
- Plug-and-Play: The method can be integrated into existing frameworks to further boost performance, improving cross-task transferability.
Conclusion
While training the generator in this mutual-modality scheme is computationally intensive, the resulting adversarial samples are remarkably potent. By forcing attacks to stay within the bounds of what a multi-modal model considers "meaningful," the researchers have created a more robust way to test the vulnerabilities of AI systems. Future work may extend this concept to other modalities like audio or depth data, potentially creating even more robust universal adversarial examples.
Summary updated