在值空间中实现精确、快速且低成本的 concept erasure:orthogonal complement matters
Precise, Fast, and Low-cost Concept Erasure in Value Space: Orthogonal Complement Matters
AI总结:
提出无需训练的AdaVD方法,利用正交补计算在扩散模型值空间中实现精确快速低成本的单/多概念擦除,通过自适应移位因子平衡擦除有效性与先验保留,性能优于现有方法。
摘要:
由 diffusion models 驱动的 text-to-image (T2I) 生成技术近期取得成功且应用日益广泛,这要求以精确、及时且低成本的方式,从预训练模型中擦除不需要的概念(例如受版权保护的、冒犯性的和不安全的概念)。concept erasure 的双重需求不仅包括精确移除目标概念(即擦除有效性),还包括在生成过程中对非目标内容产生最小的改变(即先验保留)。现有方法在维持擦除有效性和先验保留之间的有效平衡方面面临挑战,且计算成本可能很高。为了改进这一点,我们提出了一种精确、快速且低成本的 concept erasure 方法,称为 Adaptive Value Decomposer (AdaVD),该方法无需训练。我们的方法基于计算 orthogonal complement 的经典线性代数运算,在 diffusion models 的 UNet 内每个 cross-attention 层的值空间中实现。我们设计了一个 shift factor 来自适应地调节擦除强度,在不牺牲擦除有效性的情况下增强有效的先验保留。大量与基于训练和无需训练的最先进方法进行的对比实验表明,所提出的 AdaVD 在单概念和多概念擦除方面均表现出色,在先验保留方面比次优方法提高了 2 到 10 倍,同时实现了最佳或接近最佳的擦除有效性。AdaVD 支持一系列 diffusion models 和下游图像生成任务,代码可在以下网址获取:https://github.com/WYuan1001/AdaVD。
英文摘要:
Recent success of text-to-image (T2I) generation and its increasing practical applications, enabled by diffusion models, require urgent consideration of erasing unwanted concepts, e.g., copyrighted, offensive, and unsafe ones, from the pre-trained models in a precise, timely, and low-cost manner. The twofold demand of concept erasure includes not only a precise removal of the target concept (i.e., erasure efficacy) but also a minimal change on non-target content (i.e., prior preservation), during generation. Existing methods face challenges in maintaining an effective balance between erasure efficacy and prior preservation, and they can be computationally costly. To improve, we propose a precise, fast, and low-cost concept erasure method, called Adaptive Value Decomposer (AdaVD), which is training-free. Our method is grounded in a classical linear algebraic operation of computing the orthogonal complement, implemented in the value space of each cross-attention layer within the UNet of diffusion models. We design a shift factor to adaptively navigate the erasure strength, enhancing effective prior preservation without sacrificing erasure efficacy. Extensive comparative experiments with both training-based and training-free state-of-the-art methods demonstrate that the proposed AdaVD excels in both single and multiple concept erasure, showing 2 to 10 times improvement in prior preservation than the second best, meanwhile achieving the best or near best erasure efficacy. AdaVD supports a series of diffusion models and downstream image generation tasks, with code available on: https://github.com/WYuan1001/AdaVD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。