概念校正器:为文本到图像扩散模型即时擦除概念
Concept Corrector: Erase concepts on the fly for text-to-image diffusion models
AI总结:
本文提出Concept Corrector,一种基于中间生成图像视觉特征检测并利用Concept Removal Attention擦除目标概念的方法,无需改变模型参数即可实现文本到图像扩散模型的即时概念擦除。
摘要:
文本到图像扩散模型已展现出生成各种不良内容(如性元素)的潜在风险。为解决这一问题,概念擦除任务被提出,旨在擦除模型能够生成的任何不期望的概念。以往的方法,无论是基于训练的还是无需训练的,主要聚焦于输入侧,即文本。然而,由于从有限提示到多样化图像内容的泛化存在局限,这些方法常常面临擦除不彻底的问题。在本文中,受输出侧(即生成图像)上的概念擦除可能更直接、更有效的启发,我们提出了Concept Corrector。它基于在特定时间步预测的最终生成图像所提供的视觉特征来检测目标概念。此外,它引入了Concept Removal Attention来擦除已生成的概念特征。它克服了现有方法的局限,这些方法要么无法移除图像中已生成的概念特征,要么依赖于输入提示中包含相关概念词的假设。在整个流程中,我们的方法不改变任何模型参数,只需要给定的目标概念以及相应的替换内容,易于实现。据我们所知,这是首个基于中间生成图像的擦除方法,实现了即时擦除概念的能力。在各种概念上的实验证明了其出色的擦除性能。
英文摘要:
Text-to-image diffusion models have demonstrated the underlying risk of generating various unwanted content, such as sexual elements. To address this issue, the task of concept erasure has been introduced, aiming to erase any undesired concepts that the models can generate. Previous methods, whether training-based or training-free, have primarily focused on the input side, i.e., texts. However, they often suffer from incomplete erasure due to limitations in the generalization from limited prompts to diverse image content. In this paper, motivated by the notion that concept erasure on the output side, i.e., generated images, may be more direct and effective, we propose Concept Corrector. It checks target concepts based on visual features provided by final generated images predicted at certain time steps. Further, it incorporates Concept Removal Attention to erase generated concept features. It overcomes the limitations of existing methods, which are either unable to remove the concept features that have been generated in images or rely on the assumption that the related concept words are contained in input prompts. In the whole pipeline, our method changes no model parameters and only requires a given target concept as well as the corresponding replacement content, which is easy to implement. To the best of our knowledge, this is the first erasure method based on intermediate-generated images, achieving the ability to erase concepts on the fly. The experiments on various concepts demonstrate its impressive erasure performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。