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

通过可学习提示在文生图扩散模型中隐藏与恢复知识

Hiding and Recovering Knowledge in Text-to-Image Diffusion Models via Learnable Prompts

Monash University(莫纳什大学);VinAI Research(VinAI研究院);Defence Science and Technology Group(国防科技集团)

Anh Bui, Khanh Doan, Trung Le, Paul Montague, Tamas Abraham, Dinh Phung

AI总结:

针对文生图扩散模型中不良概念永久擦除导致性能下降和信息不可逆丢失的问题,本文提出在交叉注意力中加入带密钥的可学习提示,实现概念隐藏与受控恢复。

摘要:

扩散模型已展现出从文本描述生成高质量视觉内容的卓越能力。然而,由于这些模型是在大规模互联网数据上训练的,它们不可避免地会学习到不良概念,例如敏感内容、受版权保护的材料以及有害或不道德元素。以往工作关注永久移除这些概念,但这种方法往往并不实用,因为它会降低模型性能并导致不可逆的信息丢失。在本工作中,我们提出一种新颖的概念隐藏方法,使不良概念无法被公开用户访问,同时允许在需要时进行受控恢复。我们并非从模型中彻底擦除知识,而是将可学习提示引入交叉注意力模块,充当安全存储器,抑制隐藏概念的生成,除非提供密钥。这实现了灵活的访问控制——确保不良内容无法被轻易生成,同时保留在受限条件下将其恢复的选项。我们的方法引入了概念抑制与受控恢复共存的新范式,这在以往工作中是不可行的。我们在 Stable Diffusion 模型上验证了其有效性,结果表明隐藏概念可缓解永久移除带来的风险,同时保持模型的整体能力。

英文摘要:

Diffusion models have demonstrated remarkable capability in generating high-quality visual content from textual descriptions. However, since these models are trained on large-scale internet data, they inevitably learn undesirable concepts, such as sensitive content, copyrighted material, and harmful or unethical elements. While previous works focus on permanently removing such concepts, this approach is often impractical, as it can degrade model performance and lead to irreversible loss of information. In this work, we introduce a novel concept-hiding approach that makes unwanted concepts inaccessible to public users while allowing controlled recovery when needed. Instead of erasing knowledge from the model entirely, we incorporate a learnable prompt into the cross-attention module, acting as a secure memory that suppresses the generation of hidden concepts unless a secret key is provided. This enables flexible access control -- ensuring that undesirable content cannot be easily generated while preserving the option to reinstate it under restricted conditions. Our method introduces a new paradigm where concept suppression and controlled recovery coexist, which was not feasible in prior works. We validate its effectiveness on the Stable Diffusion model, demonstrating that hiding concepts mitigate the risks of permanent removal while maintaining the model's overall capability.

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

↑