arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.03631cs.CV
收藏

使用任务向量进行鲁棒的概念擦除

Robust Concept Erasure Using Task Vectors

Minh Pham, Kelly O. Marshall, Chinmay Hegde, Niv Cohen

AI总结:

本文提出 Diverse Inversion 估计任务向量编辑强度,并仅修改部分模型权重,以实现对未知提示更鲁棒的文本到图像概念无条件擦除,同时保持模型核心性能。

摘要:

随着文本到图像模型的快速发展,人们提出了多种技术来防止不良图像生成。然而,这些方法通常只能防范特定的用户提示,并且已被证明在其他输入下仍会允许不安全的生成。本文关注的是从文本到图像模型中无条件地擦除某个概念,而不是根据用户提示来决定是否擦除。我们首先表明,与依赖输入的擦除方法相比,使用任务向量(Task Vectors,TV)的概念擦除对于训练期间未见过的意外用户输入更加鲁棒。但是,基于 TV 的擦除也可能影响被编辑模型的核心性能,尤其是在所需编辑强度未知时。为此,我们提出了一种名为 Diverse Inversion 的方法,用它来估计 TV 编辑所需的强度。Diverse Inversion 在模型输入空间中找到大量词嵌入集合,其中每个词嵌入都会诱导目标概念的生成。我们发现,增强该集合的多样性会使我们的估计对意外提示更加鲁棒。最后,我们表明 Diverse Inversion 使我们能够仅对模型权重的一个子集应用 TV 编辑,从而增强擦除能力,同时更好地保持模型的核心功能。

英文摘要:

With the rapid growth of text-to-image models, a variety of techniques have been suggested to prevent undesirable image generations. Yet, these methods often only protect against specific user prompts and have been shown to allow unsafe generations with other inputs. Here we focus on unconditionally erasing a concept from a text-to-image model rather than conditioning the erasure on the user's prompt. We first show that compared to input-dependent erasure methods, concept erasure that uses Task Vectors (TV) is more robust to unexpected user inputs, not seen during training. However, TV-based erasure can also affect the core performance of the edited model, particularly when the required edit strength is unknown. To this end, we propose a method called Diverse Inversion, which we use to estimate the required strength of the TV edit. Diverse Inversion finds within the model input space a large set of word embeddings, each of which induces the generation of the target concept. We find that encouraging diversity in the set makes our estimation more robust to unexpected prompts. Finally, we show that Diverse Inversion enables us to apply a TV edit only to a subset of the model weights, enhancing the erasure capabilities while better maintaining the core functionality of the model.

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

↑