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

RealEra:通过邻域概念挖掘实现语义级概念擦除

RealEra: Semantic-level Concept Erasure via Neighbor-Concept Mining

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳));School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)

Yufan Liu, Jinyang An, Wanqian Zhang, Ming Li, Dayan Wu, Jingzi Gu, Zheng Lin, Weiping Wang

AI总结:

针对文本到图像模型中概念擦除的“概念残留”问题,提出RealEra框架,通过邻域概念挖掘机制扩大擦除范围,并利用超越概念正则化保持无关概念的生成性能,结合闭式解优化U-Net和LoRA模块,实现了更优的擦除有效性、特异性和通用性。

摘要:

文本到图像生成模型的显著发展引发了显著的安全担忧,例如肖像权侵犯和不适当内容的生成。概念擦除被提出用于移除模型关于受保护和不适当概念的知识。尽管许多方法试图平衡有效性(擦除目标概念)和特异性(保留无关概念),但在语义相关输入的引导下,它们仍能生成大量擦除概念。在本工作中,我们提出 RealEra 来解决这一“概念残留”问题。具体而言,我们首先引入邻域概念挖掘机制,通过向擦除概念的嵌入添加随机扰动来挖掘关联概念,从而扩大擦除范围并消除即使通过关联概念输入也能生成的现象。此外,为了减轻擦除范围扩大对无关概念生成造成的负面影响,RealEra 通过超越概念正则化来保持特异性。这使得无关概念保持其对应的空间位置,从而保持其正常的生成性能。我们还采用闭式解来优化 U-Net 的权重,以实现交叉注意力对齐,以及利用 LoRA 模块进行预测噪声对齐。在多个基准上的大量实验表明,RealEra 在擦除有效性、特异性和通用性方面优于以往的概念擦除方法。更多详情请访问我们的项目页面 https://realerasing.github.io/RealEra/ 。

英文摘要:

The remarkable development of text-to-image generation models has raised notable security concerns, such as the infringement of portrait rights and the generation of inappropriate content. Concept erasure has been proposed to remove the model's knowledge about protected and inappropriate concepts. Although many methods have tried to balance the efficacy (erasing target concepts) and specificity (retaining irrelevant concepts), they can still generate abundant erasure concepts under the steering of semantically related inputs. In this work, we propose RealEra to address this "concept residue" issue. Specifically, we first introduce the mechanism of neighbor-concept mining, digging out the associated concepts by adding random perturbation into the embedding of erasure concept, thus expanding the erasing range and eliminating the generations even through associated concept inputs. Furthermore, to mitigate the negative impact on the generation of irrelevant concepts caused by the expansion of erasure scope, RealEra preserves the specificity through the beyond-concept regularization. This makes irrelevant concepts maintain their corresponding spatial position, thereby preserving their normal generation performance. We also employ the closed-form solution to optimize weights of U-Net for the cross-attention alignment, as well as the prediction noise alignment with the LoRA module. Extensive experiments on multiple benchmarks demonstrate that RealEra outperforms previous concept erasing methods in terms of superior erasing efficacy, specificity, and generality. More details are available on our project page https://realerasing.github.io/RealEra/ .

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

↑