通过高层表示误导实现文本到图像扩散模型中的局部概念擦除
Localized Concept Erasure in Text-to-Image Diffusion Models via High-Level Representation Misdirection
AI总结:
本文提出HiRM方法,通过误导文本编码器中的高层表示来实现精确的概念擦除,减少对非目标概念的影响,并在低训练成本下保持生成能力。
摘要:
最近文本到图像(T2I)扩散模型的进步已经见到了快速且广泛的采用。然而,它们强大的生成能力引发了关于潜在被用于合成有害、私人或受版权保护内容的担忧。为缓解这些风险,概念擦除技术已经出现作为有希望的解决方案。先前的工作主要集中在微调去噪组件(例如U-Net骨干网络)。然而,最近的因果追踪研究表明,视觉属性信息在文本编码器的早期自注意力层中是局部化的,这表明了一个潜在的替代方案用于概念擦除。基于这一见解,我们进行了初步实验,发现直接微调早期层可以抑制目标概念,但往往会降低非目标概念的生成质量。为克服这一限制,我们提出了高层表示误导(HiRM),它将目标概念的高层语义表示在文本编码器中误导到指定向量,如随机方向或语义上定义的方向(例如超类),同时仅更新包含视觉属性因果状态的早期层。我们的解耦策略使得精确的概念移除在不影响无关概念方面具有最小的影响,如在UnlearnCanvas和NSFW基准测试中对多种目标(例如对象、风格、裸露)表现出强劲的结果。HiRM还能够在低训练成本下保持生成效用,并转移到最先进的架构如Flux而无需额外训练,并与基于去噪器的概念擦除方法显示出协同效应。
英文摘要:
Recent advances in text-to-image (T2I) diffusion models have seen rapid and widespread adoption. However, their powerful generative capabilities raise concerns about potential misuse for synthesizing harmful, private, or copyrighted content. To mitigate such risks, concept erasure techniques have emerged as a promising solution. Prior works have primarily focused on fine-tuning the denoising component (e.g., the U-Net backbone). However, recent causal tracing studies suggest that visual attribute information is localized in the early self-attention layers of the text encoder, indicating a potential alternative for concept erasing. Building on this insight, we conduct preliminary experiments and find that directly fine-tuning early layers can suppress target concepts but often degrades the generation quality of non-target concepts. To overcome this limitation, we propose High-Level Representation Misdirection (HiRM), which misdirects high-level semantic representations of target concepts in the text encoder toward designated vectors such as random directions or semantically defined directions (e.g., supercategories), while updating only early layers that contain causal states of visual attributes. Our decoupling strategy enables precise concept removal with minimal impact on unrelated concepts, as demonstrated by strong results on UnlearnCanvas and NSFW benchmarks across diverse targets (e.g., objects, styles, nudity). HiRM also preserves generative utility at low training cost, transfers to state-of-the-art architectures such as Flux without additional training, and shows synergistic effects with denoiser-based concept erasing methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。