Adversarial Attacks to Multi-Modal Models

Zhihao Dou, Xin Hu, Haibo Yang, Zhuqing Liu, Minghong Fang

Presented at LAMPS ’24, this research introduces CrossFire, a potent adversarial attack framework designed to exploit the vulnerabilities of multi-modal models. By leveraging generative AI to bridge the "modality gap," CrossFire demonstrates that downstream applications—ranging from image generators to AI assistants—can be systematically hijacked with high precision and resilience.

Introduction

Multi-modal models, such as CLIP and ImageBind, are the backbone of modern AI, enabling systems to map diverse data types—text, images, and audio—into a single, shared embedding space. This shared representation allows an AI to understand that the linguistic concept of a "tiger" and a visual representation of a tiger occupy the same semantic territory. However, this shared space introduces a significant security surface: if an attacker can manipulate an input to occupy a specific coordinate in the embedding space, they can control the output of any downstream application relying on that model.

The Problem: The Modality Gap

Previous adversarial attacks attempted to align embeddings directly across different modalities (e.g., forcing an image embedding to match a text embedding). These efforts often struggled due to the "modality gap"—the structural and distributional differences between how text and images are represented within the model. Because the model processes these inputs through different encoders, forcing a cross-modal alignment is often inefficient, leading to low attack success rates and poor transferability.

Methodology: The CrossFire Approach

CrossFire overcomes the modality gap by ensuring the adversarial optimization occurs within the same modality. The attack follows a two-step process:

  1. Modality Transformation: Instead of targeting a text string directly, the attacker uses a generative model (such as Stable Diffusion for images or Stable Audio for sound) to "translate" the target text into a reference file of the same modality as the victim file. For example, if the goal is to make a picture of a "bus" be perceived as a "tiger," the attacker first generates a high-quality image of a tiger.
  2. Angular Deviation Minimization (ADM): The attack is then framed as an optimization problem using Projected Gradient Descent (PGD). The attacker iteratively adds imperceptible perturbations to the original victim file (the bus). The goal is to minimize the angular distance between the embedding of this perturbed file and the embedding of the transformed target (the generated tiger).

By aligning two inputs of the same modality (image-to-image or audio-to-audio), CrossFire bypasses the friction of the modality gap, resulting in a much tighter alignment in the shared embedding space.

Experimental Setup

The authors evaluated CrossFire across six diverse real-world datasets to ensure broad applicability:

  • Visual Modality: ImageNet, MS-COCO, STL-10, and Wikiart.
  • Audio Modality: AudioCaps and Audioset.
  • Downstream Tasks: The attack's impact was measured on image generation (via BindDiffusion) and text-based AI assistants (via PandaGPT).

Key Results and Insights

Superior Performance

CrossFire significantly outperforms previous state-of-the-art methods. On the ImageNet dataset, CrossFire achieved an Attack Success Rate (ASR) of 0.98, whereas previous methods (such as the Zhang attack) only reached 0.57. This jump in performance highlights the effectiveness of the modality-transformation strategy.

Black-Box Resilience

The attack remains highly effective even in "black-box" scenarios where the attacker does not know the specific encoder used by the victim. In tests where CrossFire was crafted using ImageBind but deployed against an OpenCLIP-based system, it still maintained a 0.92 ASR.

Defense Fragility

Standard defensive measures proved largely ineffective against CrossFire. Traditional "purification" techniques—such as JPEG compression, image resizing, or rotation—fail because the attack targets high-level semantic features rather than fragile, pixel-level patterns. Even advanced Stochastic Differential Equation (SDE) denoising only reduced the ASR from 0.98 to 0.87, leaving the system highly vulnerable.

Semantic Hijacking

The practical implications are stark. The attack enables "semantic hijacking," where an image of a mundane object (like a bus) can reliably cause a downstream generator to produce a completely different image (like a tiger) or cause an AI assistant to generate harmful or inappropriate descriptions of a benign scene.

Conclusion and Future Work

CrossFire reveals a recursive irony in modern AI: the generative models enabled by multi-modal embeddings are now the very tools used to compromise their security. While the attack's success rate dips slightly when dealing with complex, multi-element prompts (e.g., "a dog playing with a ball"), it remains a formidable threat to current multi-modal architectures.

Future research must focus on developing robust defensive mechanisms that can bridge the modality gap from a security perspective, ensuring that shared embedding spaces are resilient against same-modality optimization attacks.

Summary updated

BibTeX
@inproceedings{dou2024adversarial,
  author = {Zhihao Dou and Xin Hu and Haibo Yang and Zhuqing Liu and Minghong Fang},
  title = {{Adversarial Attacks to Multi-Modal Models}},
  booktitle = {LAMPS@CCS},
  year = {2024},
  doi = {10.1145/3689217.3690619},
}
Figure