arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.18877cs.CVcs.CRcs.LG
收藏

在文本条件扩散模型中通过嵌入失真缓解性内容生成

Mitigating Sexual Content Generation via Embedding Distortion in Text-conditioned Diffusion Models

Department of Artificial Intelligence(人工智能系);Kyungpook National University(全北国立大学)

Jaesin Ahn, Heechul Jung

AI总结:

本文提出基于文本编码器的防御方法 DES,通过将不安全嵌入扭曲到安全区域并中和“裸体”嵌入,在保持图像质量的同时显著降低性内容生成攻击成功率。

摘要:

扩散模型在遵循文本提示生成图像方面表现出卓越性能,但存在生成性内容的风险。现有方法,如提示过滤、概念移除乃至性内容缓解方法,在防御对抗性攻击的同时保持良性图像质量方面面临困难。本文提出一种名为 Distorting Embedding Space (DES) 的新方法,这是一种基于文本编码器的防御机制,通过创新的嵌入空间控制有效解决上述问题。DES 将使用不安全提示从文本编码器中提取的不安全嵌入,变换到经过精心计算的安全嵌入区域,以防止不安全内容生成,同时复现原始安全嵌入。DES 还通过将“裸体”嵌入与中性嵌入对齐来中和该嵌入,以增强对对抗性攻击的鲁棒性。结果表明,在显式内容缓解和自适应攻击防御上的大量实验表明,DES 实现了最先进(SOTA)的防御效果,在近期流行模型 FLUX.1 上的攻击成功率(ASR)为 9.47%,在广泛采用的 Stable Diffusion v1.5 上为 0.52%。与之前的 SOTA 方法 EraseAnything 和 AdvUnlearn 相比,这分别对应 ASR 降低 76.5% 和 63.9%。此外,DES 保持了良性图像质量,其 Frechet Inception Distance 和 CLIP score 与原始 FLUX.1 和 Stable Diffusion v1.5 相当。

英文摘要:

Diffusion models show remarkable image generation performance following text prompts, but risk generating sexual contents. Existing approaches, such as prompt filtering, concept removal, and even sexual contents mitigation methods, struggle to defend against adversarial attacks while maintaining benign image quality. In this paper, we propose a novel approach called Distorting Embedding Space (DES), a text encoder-based defense mechanism that effectively tackles these issues through innovative embedding space control. DES transforms unsafe embeddings, extracted from a text encoder using unsafe prompts, toward carefully calculated safe embedding regions to prevent unsafe contents generation, while reproducing the original safe embeddings. DES also neutralizes the ``nudity'' embedding, by aligning it with neutral embedding to enhance robustness against adversarial attacks. As a result, extensive experiments on explicit content mitigation and adaptive attack defense show that DES achieves state-of-the-art (SOTA) defense, with attack success rate (ASR) of 9.47% on FLUX.1, a recent popular model, and 0.52% on the widely adopted Stable Diffusion v1.5. These correspond to ASR reductions of 76.5% and 63.9% compared to previous SOTA methods, EraseAnything and AdvUnlearn, respectively. Furthermore, DES maintains benign image quality, achieving Frechet Inception Distance and CLIP score comparable to those of the original FLUX.1 and Stable Diffusion v1.5.

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

↑