Removing Undesirable Concepts in Text-to-Image Diffusion Models with Learnable Prompts
<|reference_start|>Removing Undesirable Concepts in Text-to-Image Diffusion Models with Learnable Prompts: Diffusion models have shown remarkable capability in generating visually impressive content from textual descriptions. However, these models are trained on vast internet data, much of which contains undesirable elements such as sensitive content, copyrighted material, and unethical or harmful concepts. Therefore, beyond generating high-quality content, it is crucial to ensure these models do not propagate these undesirable elements. To address this issue, we propose a novel method to remove undesirable concepts from text-to-image diffusion models by incorporating a learnable prompt into the cross-attention module. This learnable prompt acts as additional memory, capturing the knowledge of undesirable concepts and reducing their dependency on the model parameters and corresponding textual inputs. By transferring this knowledge to the prompt, erasing undesirable concepts becomes more stable and has minimal negative impact on other concepts. We demonstrate the effectiveness of our method on the Stable Diffusion model, showcasing its superiority over state-of-the-art erasure methods in removing undesirable content while preserving unrelated elements.<|reference_end|>
@article{bui2024removing,
    title={Removing Undesirable Concepts in Text-to-Image Diffusion Models with
  Learnable Prompts},
    author={Anh Bui, Khanh Doan, Trung Le, Paul Montague, Tamas Abraham, Dinh
  Phung},
    journal={arXiv preprint arXiv:2403.12326},
    year={2024},
    archivePrefix={arXiv},
    eprint={2403.12326},
    primaryClass={cs.LG cs.CV}
}