Manuscript Offprint

arXiv:2610.32059

Concept Acupuncturist: An Efficient and Precise Concept Erasure Method for Diffusion Models via Sparse Autoencoders

Yiran Xiahou, Siliang Qin, Kai Chen, Shengzhi Zhang, Renyang Liu

Yiran Xiahou*, Siliang Qin*, Kai Chen*, Shengzhi Zhang†, Renyang Liu‡

*Institute of Information Engineering, Chinese Academy of Sciences, China

†Department of Computer Science, Metropolitan College, Boston University, USA

‡Institute of Data Science, National University of Singapore, Singapore, Singapore

Abstract—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.

Warning: This paper includes images that may contain non-explicit nudity and may be sensitive to some readers.

I. INTRODUCTION

Text-to-image diffusion models [1], [2], [3], [4], [5] have demonstrated strong capabilities in image synthesis [6], [2] and editing [7], [8]. Training these models on large-scale web datasets improves performance, but also exposes them to diverse and weakly curated content. Consequently, such models may produce harmful or policy-violating content, e.g., Not-Safe-For-Work (NSFW) imagery [9], [10] or infringing outputs that replicate protected identities or artistic styles without authorization [11]. These concerns motivate the development of various strategies for mitigating unsafe content, including dataset curation, post-processing and direct model modification. However, retraining on filtered datasets is often computationally expensive [12], [13], and post-processing remains vulnerable to prompt manipulation [14], [15]. Approaches for direct model modification, particularly machine unlearning (MU), offer a more direct and controllable way to remove specific concepts without full retraining [16], [17].

Existing MU methods can be broadly divided into three categories: inference-time intervention, model editing and fine-tuning-based unlearning. Inference-time approaches [18], [19], [20], [21], [22], [23], [24] typically suppress undesirable concepts by attaching external, removable modules during inference, which modify model outputs without altering model parameters and thus leave concept-related representations encoded within the model. Such interventions may introduce artifacts and degrade generation quality [25], while their inference overhead becomes non-negligible under large-scale deployment. Model editing methods [26], [27], [28] directly modify model parameters through closed-form or localized updates to remove target concepts. However, the highly distributed and entangled representations in diffusion models [1], [2], [3], [5] make precise parameter localization difficult. More fundamentally, existing methods focus on finding low-interference update directions rather than identifying the parameters or internal features that encode the target concept [28].

Fine-tuning-based MU methods, in contrast, directly modify model parameters without additional inference overhead, making them widely adopted for safer image generation. However, they still face two fundamental challenges: (i) limited edit precision, since global or layer-wise updates often interfere with unrelated concepts due to the polysemantic nature of neurons [29], [30], [31], making it difficult to precisely remove a target concept without affecting others; and (ii) high computational cost, as they often update a large portion of model parameters (e.g., all cross-attention layers or global weights [9], [32]) and require executing the denoising process up to an intermediate timestep to obtain supervision [9] due to the iterative nature of diffusion models, thereby incurring full-trajectory cost even for local updates and leading to substantial training overhead, especially when scaling to multiple concepts or iterative updates.

To overcome these limitations, we propose Concept Acupuncturist (CONCEPTACP), a structured fine-tuning framework that enables inference-free and localized updates for parameter optimization. Inspired by recent interpretability studies showing that concept-related information can be decomposed into structured and semantically meaningful components [33], we introduce Sparse Autoencoders (SAEs), an interpretable tool that decomposes neuron activations into sparse feature representations within the U-Net denoiser, to enable fine-grained concept removal. We further reformulate diffusion fine-tuning as a localized block-level learning problem, avoiding full denoising trajectories during optimization. Nevertheless, realizing this design presents two technical challenges:

C1: difficulty in internalizing feature-level interventions into model parameters. Existing SAE-based methods typically treat SAEs as inference-time intervention modules [22], [23]. A natural question is therefore whether the benefits of such feature-level editing can be directly embedded into model parameters. However, SAEs operate on the residual updates of corresponding blocks and require explicit feature manipulation to achieve forgetting, making their direct translation into parameter updates non-trivial.

C2: difficulty in identifying the target block and constructing reliable supervision signals. Concept representations in diffusion models are distributed across multiple cross-attention blocks and evolve over the denoising trajectory, making it challenging to identify an appropriate block and derive consistent supervision for localized fine-tuning.

To address C1, we move beyond treating SAEs as external modules but as a mechanism for constructing supervision signals. Given prompts containing the target concept, we identify concept-relevant features and suppress them according to their relevance scores via a feature selection procedure. The modified features are then projected back to the output space of the corresponding cross-attention block. This process yields target outputs that are equivalent to performing feature-level editing, but expressed in the model's native representation space. By pairing these corrected outputs with the original inputs, we construct a supervision dataset that enables internalization of feature-level interventions into model parameters.

To address C2, we reformulate diffusion fine-tuning as a localized block-level learning problem. Specifically, we establish mappings between semantic concepts and cross-attention blocks using a pool of pretrained SAEs, building upon prior analysis [33]. Based on the mappings, we identify one block most strongly associated with the target concept together with its relevant features and then construct a block-level input-output supervision dataset from a small set of text prompts at selected timesteps. The target outputs are obtained via the feature-level correction process described above. Importantly, we collect the block's activations across timesteps in a single forward pass, avoiding repeated denoising during fine-tuning while retaining further flexible feature manipulation through the cached activations.

We implement CONCEPTACP on SDXL-Turbo and evaluate it on the EvalIGMU [34] benchmark across four representative concepts. Experiments show that CONCEPTACP achieves strong balance between forgetting effectiveness and preservation of unrelated concepts, improving forgetting success rate by 36.34 percentage points on average under the standard one-step setting over the best-performing baseline. We further observe consistent gains on SDXL and SD v1.4, demonstrating transferability across backbones. In terms of efficiency, our block-level, inference-free fine-tuning reduces computational cost by 46.4% compared to full diffusion-based method without this design. In addition, we introduce two metrics, Feature Overlap Score and Feature Activation Correlation Score, to characterize internal feature dynamics before and after unlearning. Results show that our method induces feature-level changes consistent with the intended concept suppression and non-target preservation, providing internal evidence for its precise unlearning. Additional results demonstrate preserved image quality and robustness against adversarial prompts.

Our main contributions are outlined below:

• We propose CONCEPTACP, a novel unlearning framework that integrates interpretability-guided feature analysis into parameter-level fine-tuning for diffusion models. To the best of our knowledge, this is the first work to use SAE-derived feature corrections as supervision for localized and internalized fine-tuning in diffusion model unlearning.

• We introduce a structured fine-tuning paradigm that jointly improves edit precision and efficiency. For precision, we use SAE-derived feature corrections as fine-grained supervision, while for efficiency, we construct block-level input–output supervision to enable inference-free fine-tuning of a single cross-attention block.

• Extensive experiments show that CONCEPTACP effectively removes target concepts while preserving model utility and substantially reducing fine-tuning computational cost.

References (53)