Ablating Concepts in Text-to-Image Diffusion Models

Nupur Kumari, Bingliang Zhang, Sheng-Yu Wang, Eli Shechtman, Richard Zhang +1 more
3/23/2023
cs.CVcs.GRcs.LG

No official code found. Best implementation: nupurkmr9/concept-ablation (171 stars, MIT, last commit 2024-12-21).

Abstract

Large-scale text-to-image diffusion models can generate high-fidelity images with powerful compositional ability. However, these models are typically trained on an enormous amount of Internet data, often containing copyrighted material, licensed images, and personal photos. Furthermore, they have been found to replicate the style of various living artists or memorize exact training samples. How can we remove such copyrighted concepts or images without retraining the model from scratch? To achieve this goal, we propose an efficient method of ablating concepts in the pretrained model, i.e., preventing the generation of a target concept. Our algorithm learns to match the image distribution for a target style, instance, or text prompt we wish to ablate to the distribution corresponding to an anchor concept. This prevents the model from generating target concepts given its text condition. Extensive experiments show that our method can successfully prevent the generation of the ablated concept while preserving closely related concepts in the model.

View on arXivView PDF

Code Implementations(1)

MIT

Ablating Concepts in Text-to-Image Diffusion Models (ICCV 2023)

17121Shell, PythonMar 23, 20231 years agoMIT
concept-ablationdiffusion-modelsimage-synthesis

Similar Papers

Cite this paper

@article{kumari2023ablating,
  title  = {Ablating Concepts in Text-to-Image Diffusion Models},
  author = {Nupur Kumari and Bingliang Zhang and Sheng-Yu Wang and Eli Shechtman and Richard Zhang and Jun-Yan Zhu},
  year   = {2023},
  eprint = {2303.13516},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.13516v3},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.13516.svg)](https://codeofpaper.com/paper/2303.13516)

Discussion