CE-SDWV: 基于语义驱动词表的文本到图像扩散模型高效有效概念擦除方法
CE-SDWV: Effective and Efficient Concept Erasure for Text-to-Image Diffusion Models via a Semantic-Driven Word Vocabulary
AI总结:
针对文本到图像扩散模型的不安全/受版权概念生成问题,提出无需重训模型权重的CE-SDWV概念擦除框架,通过语义驱动词表增强、自适应语义抑制及梯度正交优化实现高效擦除,经基准测试验证有效。
摘要:
大规模文本到图像(T2I)扩散模型在各类概念的生成上已取得卓越性能。但在实际应用中受隐私与安全限制,其针对NSFW(工作场所不宜内容)概念的生成能力存在隐患,例如生成露骨色情图片、受版权保护的图像。T2I扩散模型的概念擦除任务因此受到广泛关注,亟需兼具有效性与高效性的解决方法。为此我们提出CE-SDWV框架,仅通过调整文本条件标记在文本语义空间中移除T2I扩散模型的目标概念(如NSFW概念),无需重新训练原始T2I扩散模型的权重。具体而言,该框架首先构建与目标概念相关的词表,增强目标概念在文本语义空间中的表征,随后采用自适应语义分量抑制策略,消融文本条件标记中与目标概念相关的语义信息。为进一步让调整后的文本条件标记适配原始图像语义空间,我们提出端到端的梯度正交标记优化策略。在I2P和UnlearnCanvas基准上开展的大量实验验证了该方法的有效性与高效性。代码已开源至https://github.com/TtuHamg/CE-SDWV。
英文摘要:
Large-scale text-to-image (T2I) diffusion models have achieved remarkable generative performance about various concepts. With the limitation of privacy and safety in practice, the generative capability concerning NSFW (Not Safe For Work) concepts is undesirable, e.g., producing sexually explicit photos, and licensed images. The concept erasure task for T2I diffusion models has attracted considerable attention and requires an effective and efficient method. To achieve this goal, we propose a CE-SDWV framework, which removes the target concepts (e.g., NSFW concepts) of T2I diffusion models in the text semantic space by only adjusting the text condition tokens and does not need to re-train the original T2I diffusion model's weights. Specifically, our framework first builds a target concept-related word vocabulary to enhance the representation of the target concepts within the text semantic space, and then utilizes an adaptive semantic component suppression strategy to ablate the target concept-related semantic information in the text condition tokens. To further adapt the above text condition tokens to the original image semantic space, we propose an end-to-end gradient-orthogonal token optimization strategy. Extensive experiments on I2P and UnlearnCanvas benchmarks demonstrate the effectiveness and efficiency of our method. Code is available at https://github.com/TtuHamg/CE-SDWV.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。