Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

TraSCE: Trajectory Steering for Concept Erasure

About

Recent advancements in text-to-image diffusion models have brought them to the public spotlight, becoming widely accessible and embraced by everyday users. However, these models have been shown to generate harmful content such as not-safe-for-work (NSFW) images. While approaches have been proposed to erase such abstract concepts from the models, jail-breaking techniques have succeeded in bypassing such safety measures. In this paper, we propose TraSCE, an approach to guide the diffusion trajectory away from generating harmful content. Our approach is based on negative prompting, but as we show in this paper, a widely used negative prompting strategy is not a complete solution and can easily be bypassed in some corner cases. To address this issue, we first propose using a specific formulation of negative prompting instead of the widely used one. Furthermore, we introduce a localized loss-based guidance that enhances the modified negative prompting technique by steering the diffusion trajectory. We demonstrate that our proposed method achieves state-of-the-art results on various benchmarks in removing harmful content, including ones proposed by red teams, and erasing artistic styles and objects. Our proposed approach does not require any training, weight modifications, or training data (either image or prompt), making it easier for model owners to erase new concepts.

Anubhav Jain, Yuya Kobayashi, Takashi Shibuya, Yuhta Takida, Nasir Memon, Julian Togelius, Yuki Mitsufuji• 2024

Related benchmarks

TaskDatasetResultRank
Concept UnlearningUnlearnDiffAtk
UnlearnDiffAtk0.169
36
Adversarial Robustness in Concept ErasingMMA-Diffusion
MMA-Diffusion Score15.6
14
Adversarial Robustness in Concept ErasingRing-A-Bell K-16, K-38, K-77
K-16 Score0.0421
14
Utility PreservationCOCO
CLIP Score0.305
14
Inappropriate Content ErasingI2P
I2P (%)0.45
14
Safety EvaluationRing-a-Bell
Ring-16 Score4.26
13
Style ErasingUnlearnCanvas
UA72.35
13
Object ErasingUnlearnCanvas
Unlearning Accuracy (UA)49.85
13
Showing 8 of 8 rows

Other info

Follow for update