ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning
About
While large-scale text-to-image diffusion models have demonstrated impressive image-generation capabilities, there are significant concerns about their potential misuse for generating unsafe content, violating copyright, and perpetuating societal biases. Recently, the text-to-image generation community has begun addressing these concerns by editing or unlearning undesired concepts from pre-trained models. However, these methods often involve data-intensive and inefficient fine-tuning or utilize various forms of token remapping, rendering them susceptible to adversarial jailbreaks. In this paper, we present a simple and effective training-free approach, ConceptPrune, wherein we first identify critical regions within pre-trained models responsible for generating undesirable concepts, thereby facilitating straightforward concept unlearning via weight pruning. Experiments across a range of concepts including artistic styles, nudity, object erasure, and gender debiasing demonstrate that target concepts can be efficiently erased by pruning a tiny fraction, approximately 0.12% of total weights, enabling multi-concept erasure and robustness against various white-box and black-box adversarial attacks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text-to-Image Generation | MS-COCO (val) | FID29.56 | 202 | |
| Artistic Style Erasure | SD Target Class artistic styles 1.4 (test) | Erased Accuracy24.5 | 36 | |
| Artistic Style Erasure | SD Other Class artistic styles 1.4 (test) | Preservation Drop8.9 | 36 | |
| Concept Unlearning | UnlearnDiffAtk | UnlearnDiffAtk64.8 | 36 | |
| Artistic Style Revival | Artist style | Similarity27 | 24 | |
| Concept Erasure | P4D | ASR39.1 | 23 | |
| Image Generation | MS-COCO 30k (val) | FID18.4 | 22 | |
| General Generation Fidelity | COCO | Similarity Score32 | 20 | |
| Text-to-Image Alignment | MS-COCO | CLIP Score27.93 | 20 | |
| Concept Unlearning | Ring-a-Bell | Ring-A-Bell Score59.8 | 20 |