通过注意力干扰保护图像免受扩散模型的恶意修改。
PromptFlare: Prompt-Generalized Defense via Cross-Attention Decoy in Diffusion-Based Inpainting
- 利用交叉注意力机制识别并干扰提示词中的无意义共享标记。
- 在EditBench上实现最优防护效果,同时降低计算开销和显存占用。
- 适合需要防御文本引导图像编辑的隐私与版权保护场景。
扩散模型的成功使用户能轻松、高质量地按意图修改图像,引发恶意滥用的担忧。以往研究尝试通过对抗攻击缓解此问题,但其严重依赖图像级不一致,难以应对文本提示的影响。本文提出PromptFlare,一种针对基于扩散的修复模型的新型对抗防护方法。该方法利用交叉注意力机制,识别提示词嵌入中不变且语义无信息的共享标记,并注入对抗噪声以抑制采样过程。该噪声作为交叉注意力伪影,转移模型对提示-图像对齐的关注,从而消除提示影响。在EditBench数据集上的大量实验表明,该方法在多种指标上达到最先进性能,同时显著降低计算开销和GPU显存使用。结果表明PromptFlare在抵御未经授权的图像篡改方面具有鲁棒性与高效性。代码已公开于https://github.com/NAHOHYUN-SKKU/PromptFlare。
原文摘要 · Abstract (English)
The success of diffusion models has enabled effortless, high-quality image modifications that precisely align with users' intentions, thereby raising concerns about their potential misuse by malicious actors. Previous studies have attempted to mitigate such misuse through adversarial attacks. However, these approaches heavily rely on image-level inconsistencies, which pose fundamental limitations in addressing the influence of textual prompts. In this paper, we propose PromptFlare, a novel adversarial protection method designed to protect images from malicious modifications facilitated by diffusion-based inpainting models. Our approach leverages the cross-attention mechanism to exploit the intrinsic properties of prompt embeddings. Specifically, we identify and target shared token of prompts that is invariant and semantically uninformative, injecting adversarial noise to suppress the sampling process. The injected noise acts as a cross-attention decoy, diverting the model's focus away from meaningful prompt-image alignments and thereby neutralizing the effect of prompt. Extensive experiments on the EditBench dataset demonstrate that our method achieves state-of-the-art performance across various metrics while significantly reducing computational overhead and GPU memory usage. These findings highlight PromptFlare as a robust and efficient protection against unauthorized image manipulations. The code is available at https://github.com/NAHOHYUN-SKKU/PromptFlare.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。