arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06135cs.CVcs.AIcs.LG
收藏

MACE:扩散模型中的大规模概念擦除

MACE: Mass Concept Erasure in Diffusion Models

School of Computer Science and Engineering, Nanyang Technological University(南洋理工大学计算机科学与工程学院)

Shilin Lu, Zilan Wang, Leyang Li, Yanzhu Liu, Adams Wai-Kin Kong

AI总结:

针对扩散模型易生成有害内容的问题,提出MACE微调框架,结合闭式交叉注意力优化与LoRA微调,可同时擦除至多100个概念并兼顾通用性与特异性,在四类擦除任务中性能优于现有方法。

摘要:

大规模文本到图像扩散模型的快速发展引发了人们对其可能被滥用于生成有害或误导性内容的日益担忧。本文提出了MACE,一种面向大规模概念擦除任务的微调框架,该任务旨在防止模型在被提示时生成包含不良概念的图像。现有概念擦除方法通常仅限于同时处理少于5个概念,且难以在擦除概念同义词(通用性)与保留无关概念(特异性)之间取得平衡。相比之下,MACE的不同之处在于它成功将擦除范围扩展至100个概念,并在通用性与特异性之间实现了有效平衡。这一效果通过结合闭式交叉注意力优化与LoRA(低秩适配)微调实现,二者共同消除不良概念的信息。此外,MACE可集成多个LoRA且不会产生相互干扰。我们在四个不同任务上对MACE与现有方法进行了广泛评估:物体擦除、名人擦除、露骨内容擦除以及艺术风格擦除。结果表明,MACE在所有评估任务上均优于现有方法。代码可在https://github.com/Shilin-LU/MACE 获取。

英文摘要:

The rapid expansion of large-scale text-to-image diffusion models has raised growing concerns regarding their potential misuse in creating harmful or misleading content. In this paper, we introduce MACE, a finetuning framework for the task of mass concept erasure. This task aims to prevent models from generating images that embody unwanted concepts when prompted. Existing concept erasure methods are typically restricted to handling fewer than five concepts simultaneously and struggle to find a balance between erasing concept synonyms (generality) and maintaining unrelated concepts (specificity). In contrast, MACE differs by successfully scaling the erasure scope up to 100 concepts and by achieving an effective balance between generality and specificity. This is achieved by leveraging closed-form cross-attention refinement along with LoRA finetuning, collectively eliminating the information of undesirable concepts. Furthermore, MACE integrates multiple LoRAs without mutual interference. We conduct extensive evaluations of MACE against prior methods across four different tasks: object erasure, celebrity erasure, explicit content erasure, and artistic style erasure. Our results reveal that MACE surpasses prior methods in all evaluated tasks. Code is available at https://github.com/Shilin-LU/MACE.

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

↑