ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning

Ruchika Chavhan, Da Li, Timothy Hospedales
5/29/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: ruchikachavhan/concept-prune (24 stars, last commit 2024-08-13).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Code for the paper - ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning

242Shell, PythonMay 29, 20242 years ago

Similar Papers

Cite this paper

@article{chavhan2024conceptprune,
  title  = {ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning},
  author = {Ruchika Chavhan and Da Li and Timothy Hospedales},
  year   = {2024},
  eprint = {2405.19237},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19237v1},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.19237.svg)](https://codeofpaper.com/paper/2405.19237)

Discussion