Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Models

About

Text-to-image models encounter safety issues, including concerns related to copyright and Not-Safe-For-Work (NSFW) content. Despite several methods have been proposed for erasing inappropriate concepts from diffusion models, they often exhibit incomplete erasure, consume a lot of computing resources, and inadvertently damage generation ability. In this work, we introduce Reliable and Efficient Concept Erasure (RECE), a novel approach that modifies the model in 3 seconds without necessitating additional fine-tuning. Specifically, RECE efficiently leverages a closed-form solution to derive new target embeddings, which are capable of regenerating erased concepts within the unlearned model. To mitigate inappropriate content potentially represented by derived embeddings, RECE further aligns them with harmless concepts in cross-attention layers. The derivation and erasure of new representation embeddings are conducted iteratively to achieve a thorough erasure of inappropriate concepts. Besides, to preserve the model's generation ability, RECE introduces an additional regularization term during the derivation process, resulting in minimizing the impact on unrelated concepts during the erasure process. All the processes above are in closed-form, guaranteeing extremely efficient erasure in only 3 seconds. Benchmarking against previous approaches, our method achieves more efficient and thorough erasure with minor damage to original generation ability and demonstrates enhanced robustness against red-teaming tools. Code is available at \url{https://github.com/CharlesGong12/RECE}.

Chao Gong, Kai Chen, Zhipeng Wei, Jingjing Chen, Yu-Gang Jiang• 2024

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationCOCO
FID65.94
104
Compositional Image GenerationGenEval
Overall Score56.2
94
Text-to-Image GenerationCOCO 30k
FID33.94
77
Text-to-Image GenerationMS-COCO (30K)
FID (30K)18.25
72
Object ErasureCIFAR-10
Accuracy (Erase)36.13
62
Nudity ErasureI2P
Total Count549
52
Concept RemovalRing-A-Bell Nudity
Attack Success Rate (ASR)9.5
52
Explicit Content RemovalI2P
Buttocks Count3
47
Nudity RemovalMMA-Diffusion
ASR69.5
45
NSFW suppressionP4D
ASR0.427
41
Showing 10 of 191 rows
...

Other info

Follow for update