Dark Miner:针对文本到图像扩散模型的不良生成防御
Dark Miner: Defend against undesirable generation for text-to-image diffusion models
AI总结:
针对文本到图像扩散模型因训练数据未过滤导致的不良生成问题,提出Dark Miner三阶段(挖掘、验证、规避)方法,有效降低不良生成概率,在多重对抗攻击下仍保持良好防御效果和原生生成能力。
摘要:
由于未经过滤的大规模训练数据(如色情图像和受版权保护的内容),文本到图像扩散模型已被证明存在不良生成问题,因此需要擦除不良概念。大多数现有方法侧重于修改以包含目标概念的文本为条件的生成概率。然而,它们无法保证训练阶段未见过的文本的期望生成,尤其是来自恶意攻击的对抗性文本。在本文中,我们分析了擦除任务,并指出现有方法无法保证不良生成总概率的最小化。为解决这一问题,我们提出了Dark Miner。它包含一个循环的三阶段过程,包括挖掘、验证和规避。该方法贪婪地挖掘具有目标概念最大生成概率的嵌入,并更有效地降低其生成。在实验中,我们评估了其在不当性、对象和风格概念上的性能。与之前的方法相比,我们的方法实现了更好的擦除和防御结果,尤其是在多重对抗性攻击下,同时保留了模型的原生生成能力。我们的代码将在GitHub上提供。
英文摘要:
Text-to-image diffusion models have been demonstrated with undesired generation due to unfiltered large-scale training data, such as sexual images and copyrights, necessitating the erasure of undesired concepts. Most existing methods focus on modifying the generation probabilities conditioned on the texts containing target concepts. However, they fail to guarantee the desired generation of texts unseen in the training phase, especially for the adversarial texts from malicious attacks. In this paper, we analyze the erasure task and point out that existing methods cannot guarantee the minimization of the total probabilities of undesired generation. To tackle this problem, we propose Dark Miner. It entails a recurring three-stage process that comprises mining, verifying, and circumventing. This method greedily mines embeddings with maximum generation probabilities of target concepts and more effectively reduces their generation. In the experiments, we evaluate its performance on the inappropriateness, object, and style concepts. Compared with the previous methods, our method achieves better erasure and defense results, especially under multiple adversarial attacks, while preserving the native generation capability of the models. Our code will be available on GitHub.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。