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

EraseAnything: Enabling Concept Erasure in Rectified Flow Transformers

About

Removing unwanted concepts from large-scale text-to-image (T2I) diffusion models while maintaining their overall generative quality remains an open challenge. This difficulty is especially pronounced in emerging paradigms, such as Stable Diffusion (SD) v3 and Flux, which incorporate flow matching and transformer-based architectures. These advancements limit the transferability of existing concept-erasure techniques that were originally designed for the previous T2I paradigm (e.g., SD v1.4). In this work, we introduce EraseAnything, the first method specifically developed to address concept erasure within the latest flow-based T2I framework. We formulate concept erasure as a bi-level optimization problem, employing LoRA-based parameter tuning and an attention map regularizer to selectively suppress undesirable activations. Furthermore, we propose a self-contrastive learning strategy to ensure that removing unwanted concepts does not inadvertently harm performance on unrelated ones. Experimental results demonstrate that EraseAnything successfully fills the research gap left by earlier methods in this new T2I paradigm, achieving state-of-the-art performance across a wide range of concept erasure tasks.

Daiheng Gao, Shilin Lu, Shaw Walters, Wenbo Zhou, Jiaming Chu, Jie Zhang, Bang Zhang, Mengxi Jia, Jian Zhao, Zhaoxin Fan, Weiming Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationMS-COCO
FID21.63
131
Nudity ErasureI2P
Total Count294
38
Concept UnlearningUnlearnDiffAtk--
36
Image GenerationMS-COCO 10k (test)
FID21.75
24
Concept ErasureP4D
ASR40.4
23
Utility PreservationMS-COCO 10k
FID27.86
22
Utility PreservationCOCO-10K (val)
FID26.63
20
Artistic Style ErasureMSCOCO Concept-prune 480
Top-1 Accuracy0.00e+0
15
Concept ErasureI2P
ASR (%)4.7
14
Concept ErasureMMA
ASR (%)11.2
14
Showing 10 of 45 rows

Other info

Follow for update