ActErase: A Training-Free Paradigm for Precise Concept Erasure via Activation Patching
Yi Sun, Xinhao Zhong, Hongyan Li, Yimin Zhou, Junhao Li, Bin Chen, Xuan Wang
TL;DR
Diffusion models trained on broad web data risk unsafe outputs and copyright issues. ActErase presents a training-free paradigm that performs precise concept erasure by activation patching inside FFN layers, identified via prompt-pair analysis and applied as $x^l_p = M^l \odot x^l_{avg} + (1 - M^l) \odot x^l_t$. It demonstrates state-of-the-art or competitive erasure across nudity, artistic style, and object concepts while largely preserving non-target content and maintaining image quality, with robustness to adversarial prompts. This work offers a lightweight, plug-and-play mechanism for safe, controllable diffusion-model generation with practical deployment advantages.
Abstract
Recent advances in text-to-image diffusion models have demonstrated remarkable generation capabilities, yet they raise significant concerns regarding safety, copyright, and ethical implications. Existing concept erasure methods address these risks by removing sensitive concepts from pre-trained models, but most of them rely on data-intensive and computationally expensive fine-tuning, which poses a critical limitation. To overcome these challenges, inspired by the observation that the model's activations are predominantly composed of generic concepts, with only a minimal component can represent the target concept, we propose a novel training-free method (ActErase) for efficient concept erasure. Specifically, the proposed method operates by identifying activation difference regions via prompt-pair analysis, extracting target activations and dynamically replacing input activations during forward passes. Comprehensive evaluations across three critical erasure tasks (nudity, artistic style, and object removal) demonstrates that our training-free method achieves state-of-the-art (SOTA) erasure performance, while effectively preserving the model's overall generative capability. Our approach also exhibits strong robustness against adversarial attacks, establishing a new plug-and-play paradigm for lightweight yet effective concept manipulation in diffusion models.
