Adversarial-Guided Diffusion for Multimodal LLM Attacks

Chengwei Xia, Fan Ma, Ruijie Quan, Kun Zhan, Yi YangarXiv 2025 · OpenReview

Abstract

This paper addresses the challenge of generating adversarial images using a diffusion model to deceive multimodal large language models (MLLMs) into generating targeted responses, while avoiding significant distortion of the clean image. We propose an adversarial-guided diffusion (AGD) approach that introduces adversarial-guided noise to ensure attack efficacy. Unlike traditional attacks that embed high-frequency perturbations directly into the clean image, AGD injects target semantics into the noise component of the reverse diffusion process. Since diffusion noise spans the entire frequency spectrum, the adversarial signal inherits this property, making it inherently robust to defenses like low-pass filtering. Extensive experiments demonstrate that AGD outperforms state-of-the-art methods in both attack performance and robustness.

Introduction: The Adversarial Trilemma

Multimodal Large Language Models (MLLMs), such as LLaVA and MiniGPT-4, are increasingly integrated into real-world systems. However, they remain vulnerable to adversarial attacks—carefully crafted images designed to elicit specific, incorrect textual responses. Existing attack methods often struggle with a "trilemma" of competing goals:

  1. Fidelity: Maintaining high visual similarity to the original clean image.
  2. Efficacy: Ensuring the MLLM consistently generates the target response.
  3. Robustness: Surviving defensive measures like JPEG compression or blurring.

Most current attacks rely on high-frequency perturbations that are easily removed by simple image processing. AGD aims to solve this by embedding the adversarial signal across the full frequency spectrum using diffusion models.

Methodology: Adversarial-Guided Diffusion

The core of AGD is the use of a Latent Diffusion Model (LDM) to craft the adversarial image through a two-phase reverse diffusion process:

1. Reconstruction Phase

The process begins with a clean image. It is slightly noised and then denoised from step $T$ down to a specific threshold $\Delta$. This phase ensures the global structure and visual appearance of the original image are preserved.

2. Adversarial Injection Phase

From step $\Delta$ down to 1, the standard Gaussian noise is replaced with Adversarial-Guided Noise.

  • Target Guidance: A text-to-image model generates a "target" image based on the desired adversarial response.
  • Momentum-based Injection: The authors use an Exponential Moving Average (EMA) of gradients to align the CLIP features of the evolving image with those of the target image.
  • Full-Spectrum Property: By integrating the attack into the diffusion noise—which naturally exists across all frequencies—the adversarial signal becomes "dissolved" into the image, making it difficult for frequency-based filters to isolate and remove.

Key Results and Robustness

AGD was evaluated against five state-of-the-art MLLMs (UniDiffuser, BLIP-2, LLaVA-1.5, MiniGPT-4, and Qwen2-VL) using images from ImageNet-1K and target captions from MS-COCO.

Comparison of AGD and AdvDiffVLM attacks. While both succeed against standard MLLMs, only AGD maintains efficacy when defensive measures are applied.

The results highlight several key advantages of AGD:

  • Superior Success Rates: On UniDiffuser, AGD achieved a 95.4% Attack Success Rate (ASR), outperforming the previous diffusion-based SOTA, AdvDiffVLM (84.4%).
  • High Visual Fidelity: AGD maintained an SSIM of 0.8351, significantly higher than AdvDiffVLM's 0.6062, indicating much less visual distortion.
  • Defense Resilience: Against DiffPure (a strong diffusion-based purification defense), AGD maintained an ASR of 89.4%. It also proved highly resistant to standard JPEG compression and low-pass filtering, where traditional high-frequency attacks typically fail.

Conclusion and Future Directions

AGD demonstrates that treating diffusion noise as a carrier for adversarial information is a highly effective strategy for attacking MLLMs. While the method is robust, the authors noted some limitations, such as occasional "hallucinations" in models like MiniGPT-4 and the need for careful hyperparameter tuning of the step threshold $\Delta$. Future work may focus on reducing the computational cost associated with diffusion-based generation to enable more real-time adversarial testing.

Summary updated

BibTeX
@misc{xia2025adversarial,
  author = {Chengwei Xia and Fan Ma and Ruijie Quan and Kun Zhan and Yi Yang},
  title = {{Adversarial-Guided Diffusion for Multimodal LLM Attacks}},
  year = {2025},
  eprint = {2507.23202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.23202},
}
Figure