本文提出 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.
Jilin University(吉林大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Peng Cheng Laboratory(鹏城实验室);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院)
Where Concept Erasure Should Occur: Concept-Layer Alignment in Text-to-Video Diffusion Models
The School of Artificial Intelligence and Automation, Huazhong University of Science and Technology, Wuhan 430074, China(人工智能与自动化学院,华中科技大学,武汉430074,中国);Department of Computer Science and Engineering, University of Nevada, Reno, NV, USA(计算机科学与工程系,内华达大学里诺分校,内华达州,美国)
FlowErase-RL: Rethinking Concept Erasure as Reward Optimization in Flow Matching Models
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Jilin University(吉林大学);Peng Cheng Laboratory(鹏城实验室);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Closing the Safety Gap: Surgical Concept Erasure in Visual Autoregressive Models
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Jilin University(吉林大学);Peng Cheng Laboratory(鹏城实验室);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Models
Fudan University(复旦大学);Shanghai Key Lab of Intell. Info. Processing(上海智能信息处理重点实验室);School of Computer Science(计算机学院);Shanghai Collaborative Innovation Center on Intelligent Visual Computing(上海智能视觉计算协同创新中心)
ActErase: A Training-Free Paradigm for Precise Concept Erasure via Activation Redirection
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Peng Cheng Laboratory(鹏城实验室)
DuMo: Dual Encoder Modulation Network for Precise Concept Erasure
School of Computer Science, Fudan University(复旦大学计算机科学技术学院);Shanghai Key Lab of Intell. Info. Processing(上海智能信息处理重点实验室);Shanghai Collaborative Innovation Center on Intelligent Visual Computing(上海智能视觉计算协同创新中心)
RealEra: Semantic-level Concept Erasure via Neighbor-Concept Mining
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳));School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)
Z-Erase: Enabling Concept Erasure in Single-Stream Diffusion Transformers
Beijing Advanced Innovation Center for Future Blockchain(未来区块链与隐私计算北京创新中心);Privacy Computing, School of Artificial Intelligence, Beihang University(隐私计算,北京航空航天大学人工智能学院);University of Science(科学大学);Shanghai University(上海大学);Tencent(腾讯);Beijing Academy of Blockchain(北京区块链研究院)
VisualErase: Dual-Branch Visual Trajectory Redirection for Robust Concept Erasure in Text-to-Image Diffusion Models
Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));City University of Hong Kong(香港城市大学);Shenzhen Loop Area Institute(深圳河套学院);National University of Singapore(新加坡国立大学);Shandong University(山东大学)
Rethinking Robust Adversarial Concept Erasure in Diffusion Models
Beijing University of Posts and Telecommunications(北京邮电大学);Dept. of Comp. Sci. and Tech., Institute for AI, Tsinghua University(计算机科学与技术系,人工智能研究院,清华大学);University of Chinese Academy of Sciences(中国科学院大学);Nanjing University of Aeronautics and Astronautics(南京航空航天大学)
Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, School of Artificial Intelligence, Beihang University(北京未来区块链与隐私计算先进创新中心,人工智能学院,北航);University of Science and Technology of China(中国科学技术大学)
CleanVideo: Adaptive Concept Erasure for Text-to-Video Diffusion Models
Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);University of Electronic Science and Technology of China (UESTC)(电子科技大学);The Hong Kong University of Science and Technology (HKUST)(香港科技大学)
Semantic Steering for Controllable Generation: Tuning-Free Concept Erasure in Multimodal Diffusion Transformers
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)