Rethinking Robust Adversarial Concept Erasure in Diffusion Models
About
Concept erasure methods aim to remove specific unsafe target concepts in diffusion models while preserving image generation utility. To address the vulnerability that erased concepts can be easily recovered under adversarial attacks, adversarial concept erasure methods integrate adversarial optimization into the concept erasure process. However, existing adversarial concept erasure methods face a trade-off between robustness and computational cost. We attribute this to adversarial optimization techniques that use random samples to approximate the adversarial objective function. Adversarial optimization that uses a small number of samples fails to produce adversarial embeddings that accurately capture the target concept space. To mitigate this limitation, we propose Semantic-Guided Adversarial Optimization, which uses a single sample to produce adversarial embeddings that better capture the target concept space. We also propose Semantic-Guided Concept Erasure, which automatically maps the target concept to a semantically similar surrogate. Extensive experiments on not-safe-for-work content, artistic styles, and object-related concepts demonstrate that our method, S-GRACE (Semantic-Guided Robust Adversarial Concept Erasure) achieves state-of-the-art erasure robustness and superior image generation utility, with significantly lower computational cost than existing methods. Our code is available at https://github.com/Qhong-522/S-GRACE.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Concept Erasure | Stable Diffusion Nudity Concept v1.4 | FID15.01 | 21 | |
| Concept Erasure | Van Gogh Artistic Style | Prompts (ASR)0.00e+0 | 9 | |
| Object-related concept erasure | UD Church v1.0 (test) | Prompt ASR2 | 7 | |
| Object-related concept erasure | UD Parachute v1.0 (test) | ASR Score (Prompt)0.00e+0 | 7 | |
| Object-related concept erasure | UD Garbage Truck v1.0 (test) | Prompt ASR0.00e+0 | 7 | |
| Concept Erasure | Violence COCO-30K | ASR (Natural Prompts)6.93 | 5 | |
| Concept Erasure | Illegal COCO-30K | ASR (Natural Prompts)12.24 | 4 | |
| Concept Erasure | Picasso Artistic Style | Prompts (ASR)0.00e+0 | 4 |