概念针灸师:一种通过稀疏自动编码器实现扩散模型高效且精准的概念擦除方法
Concept Acupuncturist: An Efficient and Precise Concept Erasure Method for Diffusion Models via Sparse Autoencoders
AI总结:
该研究提出ConceptACP框架,通过定位U-Net交叉注意力块并结合SAE特征校正机制,实现扩散模型高效精准的概念擦除,在SDXL-Turbo上遗忘成功率提升36.34个百分点且保留图像质量。
摘要:
基于扩散的图像生成模型可生成高质量图像,但可能产生有害或违反政策的内容,这推动了机器遗忘(MU)技术的发展,以在保留模型通用能力的同时选择性移除目标概念。然而,现有的机器遗忘方法往往受概念表示的分布式和纠缠特性影响,在通过完整扩散轨迹进行大规模微调时,会出现优化效率低、编辑不精准的问题。为解决这一差距,我们提出Concept Acupuncturist(ConceptACP),一种将可解释性引导分析与无推理微调相结合的新型机器遗忘框架,用于高效且精准的概念移除。通过建立语义概念与U-Net去噪器中交叉注意力块的映射,并定位与概念最相关的块进行针对性优化,ConceptACP避免了完整扩散轨迹的优化,从而提升了微调效率。为缓解概念纠缠问题,我们提出一种基于稀疏自动编码器(SAEs)的特征级校正机制,其中对SAE衍生的稀疏、语义有意义的特征激活进行操作,以构建针对性的校正信号,随后将其投影回对应块的输出空间,并作为监督信号用于精准的概念移除。因此,ConceptACP无需外部推理时模块,即可实现高效且细粒度的遗忘。在SDXL-Turbo上实例化后,ConceptACP在标准单步生成设置下,相比表现最佳的基线方法,平均遗忘成功率提升了36.34个百分点,同时保留了图像质量和提示保真度,并在其他Stable Diffusion骨干网络上实现了有效泛化。我们的代码可在该https URL获取。
英文摘要:
Diffusion-based image generation models produce high-quality images but may generate harmful or policy-violating content, motivating machine unlearning (MU) to selectively remove target concepts while preserving general capabilities. However, existing MU approaches often struggle with the distributed and entangled nature of concept representations, leading to inefficient optimization and imprecise edits when applied through large-scale fine-tuning over full diffusion trajectories. To bridge this gap, we propose Concept Acupuncturist (ConceptACP), a novel MU framework that integrates interpretability-guided analysis with inference-free fine-tuning for efficient and precise concept removal. By establishing mappings between semantic concepts and cross-attention blocks in the U-Net denoiser and localizing the most concept-relevant block for targeted optimization, ConceptACP avoids full diffusion trajectory optimization, thereby improving fine-tuning efficiency. To mitigate concept entanglement, we propose a feature-level correction mechanism based on Sparse Autoencoders (SAEs), where SAE-derived sparse, semantically meaningful feature activations are manipulated to construct targeted correction signals, which are then projected back to the output space of the corresponding block and used as supervision for precise concept removal. Consequently, ConceptACP eliminates the need for external inference-time modules while achieving efficient and fine-grained unlearning. Instantiated on SDXL-Turbo, ConceptACP improves the forgetting success rate by 36.34 percentage points in the standard one-step generation setting on average over the best-performing baseline, while preserving image quality and prompt fidelity, and generalizes effectively across other Stable Diffusion backbones. Our code is available at https://github.com/Eran-Xia/ConceptACP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。