基于DDIM度量损失的通用对抗净化方法用于稳定扩散模型 Universal Adversarial Purification with DDIM Metric Loss for Stable Diffusion 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-01-12
👁️ 预览文献
💡 AI 中文简介
稳定扩散模型在训练数据被对抗噪声污染时,生成图像质量会下降。现有净化方法主要针对分类任务,无法应对专门攻击稳定扩散模型(如攻击VAE编码器、UNet去噪器)的对抗策略。本文提出UDAP框架,利用干净图像和对抗图像在DDIM反演过程中的重建行为差异,通过最小化DDIM度量损失来去除对抗噪声,并引入动态调整迭代次数的策略提升效率。实验表明,UDAP能有效防御多种攻击方法,并跨模型版本和文本提示泛化。
领域计算机视觉/生成模型安全
适合谁读需要一定专业背景(了解扩散模型和对抗攻击)
核心贡献提出首个针对稳定扩散模型的通用对抗净化框架UDAP,利用DDIM反演中的重建行为差异优化净化;引入动态迭代调整策略,在保证净化质量的同时显著提升效率。
关键数据实验证明UDAP对PID(VAE攻击)、Anti-DreamBooth(UNet攻击)、MIST(混合攻击)及增强变体Anti-DF和MetaCloak均具有鲁棒性,并能跨SD版本和文本提示泛化。
推荐理由如果你关注AI生成模型的安全问题,这篇论文提供了一种高效且通用的防御方案,值得一读。
关键词["对抗净化", "稳定扩散", "DDIM反演", "对抗攻击", "扩散模型安全"]

原文摘要

查看英文原文摘要

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.