arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12383cs.CV
收藏

文本到图像扩散模型的可靠且高效的概念擦除

Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Models

Fudan University(复旦大学);Shanghai Key Lab of Intell. Info. Processing(上海智能信息处理重点实验室);School of Computer Science(计算机学院);Shanghai Collaborative Innovation Center on Intelligent Visual Computing(上海智能视觉计算协同创新中心)

Chao Gong, Kai Chen, Zhipeng Wei, Jingjing Chen, Yu-Gang Jiang

AI总结:

针对扩散模型概念擦除不彻底、耗算力且损害生成能力的问题,提出 RECE,通过闭式迭代推导并对齐目标嵌入,3 秒内实现高效、可靠且鲁棒的概念擦除。

摘要:

文本到图像模型面临安全问题,包括与版权和 Not-Safe-For-Work(NSFW,工作场所不宜)内容相关的担忧。尽管已经提出了多种从扩散模型中擦除不当概念的方法,但它们往往表现出擦除不彻底、消耗大量计算资源,并意外损害生成能力。在本工作中,我们提出了 Reliable and Efficient Concept Erasure(RECE,可靠且高效的概念擦除),这是一种无需额外微调即可在 3 秒内修改模型的新颖方法。具体而言,RECE 高效利用闭式解来推导新的目标嵌入,这些嵌入能够在已执行非学习的模型中重新生成被擦除的概念。为缓解推导出的嵌入可能表示的不当内容,RECE 进一步在交叉注意力层中将它们与无害概念对齐。新表示嵌入的推导和擦除以迭代方式进行,以实现对不当概念的彻底擦除。此外,为保留模型的生成能力,RECE 在推导过程中引入额外的正则化项,从而在擦除过程中最小化对无关概念的影响。上述所有过程均采用闭式形式,保证仅需 3 秒即可完成极高效的擦除。与以往方法进行基准比较,我们的方法实现了更高效、更彻底的擦除,对原始生成能力的损害较小,并展现出对红队工具更强的鲁棒性。代码可在 https://github.com/CharlesGong12/RECE 获取。

英文摘要:

Text-to-image models encounter safety issues, including concerns related to copyright and Not-Safe-For-Work (NSFW) content. Despite several methods have been proposed for erasing inappropriate concepts from diffusion models, they often exhibit incomplete erasure, consume a lot of computing resources, and inadvertently damage generation ability. In this work, we introduce Reliable and Efficient Concept Erasure (RECE), a novel approach that modifies the model in 3 seconds without necessitating additional fine-tuning. Specifically, RECE efficiently leverages a closed-form solution to derive new target embeddings, which are capable of regenerating erased concepts within the unlearned model. To mitigate inappropriate content potentially represented by derived embeddings, RECE further aligns them with harmless concepts in cross-attention layers. The derivation and erasure of new representation embeddings are conducted iteratively to achieve a thorough erasure of inappropriate concepts. Besides, to preserve the model's generation ability, RECE introduces an additional regularization term during the derivation process, resulting in minimizing the impact on unrelated concepts during the erasure process. All the processes above are in closed-form, guaranteeing extremely efficient erasure in only 3 seconds. Benchmarking against previous approaches, our method achieves more efficient and thorough erasure with minor damage to original generation ability and demonstrates enhanced robustness against red-teaming tools. Code is available at \url{https://github.com/CharlesGong12/RECE}.

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

↑