Step Vulnerability Guided Mean Fluctuation Adversarial Attack against Conditional Diffusion Models

Hongwei Yu, Jiansheng Chen, Xinlong Ding, Yudong Zhang, Ting Tang, Huimin Ma

Introduction

Conditional diffusion models, such as Stable Diffusion, have set new standards in image generation and editing. However, their widespread adoption necessitates a rigorous evaluation of their security and robustness. While previous adversarial research has primarily targeted prompt encoders to disrupt model instructions, this paper explores a more fundamental vulnerability: the internal dynamics of the 1,000-step reverse denoising process. We demonstrate that these models are exceptionally sensitive to shifts in the mean value of input noise, a weakness that can be exploited to systematically collapse image generation.

Methodology: Mean Fluctuation and Step Vulnerability

We introduce the Mean Fluctuation Attack (MFA), which shifts the mean value of noise during the reverse process. Our findings indicate that even a 10% shift in the mean can cause the entire generation process to fail, resulting in monochromatic or nonsensical outputs.

To optimize this attack, we mathematically modeled Step Vulnerability ($v(t)$). This model accounts for three intrinsic properties of the diffusion process:

  1. Error Amplification: The Markov chain structure ensures that early-step errors are compounded throughout the sequence.
  2. Step Stability: Models are generally more robust at higher noise levels (larger $t$).
  3. Transferability: Perturbations at a specific step $t$ naturally affect adjacent steps.
Overview of the Mean Fluctuation Attack (MFA) framework and the identification of the Most Vulnerable Step (MVS) within the reverse diffusion process.

By synthesizing these factors, we developed MFA-MVS (Most Vulnerable Step). This method focuses the adversarial budget on the "sweet spot" of vulnerability, which we identified as approximately $t \approx 0.8T$ (the 800th step in a 1,000-step process). At this stage, there is sufficient signal for the attack to latch onto, yet enough remaining steps for the error to be maximally amplified.

Experimental Results

We evaluated the MFA-MVS attack against standard baselines, including the Embedding Attack and AdvDM, using the Places365 dataset for inpainting and ImageNet for super-resolution.

Quantitative Performance

MFA-MVS consistently outperformed existing methods across all metrics. In thick-mask inpainting tasks, MFA-MVS increased the Fréchet Inception Distance (FID) to 52.5, significantly higher than the Embedding Attack (17.1) and AdvDM (18.4). Furthermore, the Delta E (color distortion) for MFA-MVS reached 12.77, nearly doubling the baseline and indicating severe chromatic anomalies.

Qualitative Impact

Visually, the attack transforms high-quality reconstructions into distorted blocks of solid color (often purple or green). This "Mean Shift" phenomenon acts as a poison that the model's internal filters cannot effectively remove.

Qualitative comparison of adversarial attacks on inpainting tasks. MFA-MVS results in significant color distortion and structural collapse compared to traditional baselines.

Conclusion

Our research reveals that step vulnerability is an intrinsic property of conditional diffusion models. By targeting the most vulnerable steps in the reverse process, the MFA-MVS attack achieves superior disruption with higher efficiency than all-step attacks. While this work focuses on image-conditioned models, the underlying principles of mean sensitivity suggest a broad vulnerability across the diffusion paradigm. Future research must prioritize the development of defense mechanisms to counter these mean-shift perturbations and ensure the safety of generative AI systems.

Summary updated

BibTeX
@inproceedings{yu2024step,
  author = {Hongwei Yu and Jiansheng Chen and Xinlong Ding and Yudong Zhang and Ting Tang and Huimin Ma},
  title = {{Step Vulnerability Guided Mean Fluctuation Adversarial Attack against Conditional Diffusion Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i7.28503},
}
Figure