arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07253cs.CVcs.CR
收藏

通用对抗净化与DDIM度量损失用于稳定扩散

Universal Adversarial Purification with DDIM Metric Loss for Stable Diffusion

Li Zheng, Liangbin Xie, Jiantao Zhou, He YiMin

AI总结:

UDAP通过DDIM度量损失去除稳定扩散中的对抗噪声,提升模型鲁棒性与泛化能力。

摘要:

稳定扩散(SD)在训练数据包含对抗性噪声时常常产生退化输出。对抗性净化提供了一个有前景的解决方案,通过从受污染的数据中去除对抗性噪声。然而,现有净化方法主要针对分类任务,未能解决SD特定的对抗策略,如攻击变分自编码器编码器、UNet去噪器或两者。为弥补SD安全性的不足,我们提出了通用扩散对抗净化(UDAP),一种专门用于防御针对SD模型的对抗攻击的框架。UDAP利用DDIM倒置过程中干净和对抗性图像的重建行为差异来优化净化过程。通过最小化DDIM度量损失,UDAP可以有效去除对抗性噪声。此外,我们引入了一种动态周期调整策略,根据重建误差调整优化迭代次数,显著提高效率而不牺牲净化质量。实验表明,UDAP对多种对抗方法具有鲁棒性,包括PID(VAE针对性)、Anti-DreamBooth(UNet针对性)、MIST(混合)以及增强鲁棒性的变体如Anti-Diffusion(Anti-DF)和MetaCloak。UDAP在SD版本和文本提示之间也具有良好的泛化能力,展示了其在现实场景中的实用性。

英文摘要:

Stable Diffusion (SD) often produces degraded outputs when the training dataset contains adversarial noise. Adversarial purification offers a promising solution by removing adversarial noise from contaminated data. However, existing purification methods are primarily designed for classification tasks and fail to address SD-specific adversarial strategies, such as attacks targeting the VAE encoder, UNet denoiser, or both. To address the gap in SD security, we propose Universal Diffusion Adversarial Purification (UDAP), a novel framework tailored for defending adversarial attacks targeting SD models. UDAP leverages the distinct reconstruction behaviors of clean and adversarial images during Denoising Diffusion Implicit Models (DDIM) inversion to optimize the purification process. By minimizing the DDIM metric loss, UDAP can effectively remove adversarial noise. Additionally, we introduce a dynamic epoch adjustment strategy that adapts optimization iterations based on reconstruction errors, significantly improving efficiency without sacrificing purification quality. Experiments demonstrate UDAP's robustness against diverse adversarial methods, including PID (VAE-targeted), Anti-DreamBooth (UNet-targeted), MIST (hybrid), and robustness-enhanced variants like Anti-Diffusion (Anti-DF) and MetaCloak. UDAP also generalizes well across SD versions and text prompts, showcasing its practical applicability in real-world scenarios.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑