English

Erasing Undesirable Concepts in Diffusion Models with Adversarial Preservation

Machine Learning 2025-05-26 v4 Computer Vision and Pattern Recognition

Abstract

Diffusion models excel at generating visually striking content from text but can inadvertently produce undesirable or harmful content when trained on unfiltered internet data. A practical solution is to selectively removing target concepts from the model, but this may impact the remaining concepts. Prior approaches have tried to balance this by introducing a loss term to preserve neutral content or a regularization term to minimize changes in the model parameters, yet resolving this trade-off remains challenging. In this work, we propose to identify and preserving concepts most affected by parameter changes, termed as \textit{adversarial concepts}. This approach ensures stable erasure with minimal impact on the other concepts. We demonstrate the effectiveness of our method using the Stable Diffusion model, showing that it outperforms state-of-the-art erasure methods in eliminating unwanted content while maintaining the integrity of other unrelated elements. Our code is available at https://github.com/tuananhbui89/Erasing-Adversarial-Preservation.

Keywords

Cite

@article{arxiv.2410.15618,
  title  = {Erasing Undesirable Concepts in Diffusion Models with Adversarial Preservation},
  author = {Anh Bui and Long Vuong and Khanh Doan and Trung Le and Paul Montague and Tamas Abraham and Dinh Phung},
  journal= {arXiv preprint arXiv:2410.15618},
  year   = {2025}
}

Comments

Erasing Concepts, Generative Unlearning, NeurIPS 2024. arXiv admin note: text overlap with arXiv:2403.12326

R2 v1 2026-06-28T19:29:05.271Z