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

退化调优:利用乱序网格屏蔽 Stable Diffusion 中的非预期概念

Degeneration-Tuning: Using Scrambled Grid shield Unwanted Concepts from Stable Diffusion

Zhejiang University(浙江大学);Huawei inc.(华为公司)

Zixuan Ni, Longhui Wei, Jiacheng Li, Siliang Tang, Yueting Zhuang, Qi Tian

AI总结:

本文提出 Degeneration-Tuning (DT) 方法,通过 Scrambled Grid 在模型权重层面破坏非预期概念与图像域的关联,使 Stable Diffusion 对特定文本输入生成无意义内容,且对正常生成质量影响极小。

摘要:

由于训练数据中内容的不受限制特性,诸如 Stable Diffusion (SD) 等大型文本到图像扩散模型能够根据相应的文本概念信息生成可能涉及版权或危险内容的图像。这包括特定的知识产权 (IP)、人脸以及各种艺术风格。然而,广泛用于内容移除的 Negative Prompt 方法,由于其推理逻辑中的固有局限,经常无法隐藏这些内容。在这项工作中,我们提出了一种名为 Degeneration-Tuning (DT) 的新策略,用于从 SD 权重中屏蔽非预期概念的内容。通过利用 Scrambled Grid 重建非预期概念与其对应图像域之间的关联,我们引导 SD 在输入此类文本概念时生成无意义的内容。由于这种调整发生在模型权重层面,经过 DT 处理的 SD 可以移植到其他条件扩散框架(如 ControlNet)上,以屏蔽非预期概念。除了定性展示我们的 DT 方法在保护各类概念方面的有效性之外,对 DT 前后 SD 的定量比较表明,DT 方法不会显著影响其他内容的生成质量。模型在 COCO-30K 上的 FID 和 IS 分数在 DT 后仅发生微小变化,分别从 12.61 和 39.20 变为 13.04 和 38.25,明显优于先前的方法。

英文摘要:

Owing to the unrestricted nature of the content in the training data, large text-to-image diffusion models, such as Stable Diffusion (SD), are capable of generating images with potentially copyrighted or dangerous content based on corresponding textual concepts information. This includes specific intellectual property (IP), human faces, and various artistic styles. However, Negative Prompt, a widely used method for content removal, frequently fails to conceal this content due to inherent limitations in its inference logic. In this work, we propose a novel strategy named \textbf{Degeneration-Tuning (DT)} to shield contents of unwanted concepts from SD weights. By utilizing Scrambled Grid to reconstruct the correlation between undesired concepts and their corresponding image domain, we guide SD to generate meaningless content when such textual concepts are provided as input. As this adaptation occurs at the level of the model's weights, the SD, after DT, can be grafted onto other conditional diffusion frameworks like ControlNet to shield unwanted concepts. In addition to qualitatively showcasing the effectiveness of our DT method in protecting various types of concepts, a quantitative comparison of the SD before and after DT indicates that the DT method does not significantly impact the generative quality of other contents. The FID and IS scores of the model on COCO-30K exhibit only minor changes after DT, shifting from 12.61 and 39.20 to 13.04 and 38.25, respectively, which clearly outperforms the previous methods.

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

↑