Erasing Concepts from Diffusion Models

Rohit Gandikota, Joanna Materzynska, Jaden Fiotto-Kaufman, David Bau
2/14/2026

No official code found. Best implementation: rohitgandikota/erasing (665 stars, MIT, last commit 2026-03-26). 1 more below.

Abstract

Motivated by concerns that large-scale diffusion models can produce undesirable output such as sexually explicit content or copyrighted artistic styles, we study erasure of specific concepts from diffusion model weights. We propose a fine-tuning method that can erase a visual concept from a pre-trained diffusion model, given only the name of the style and using negative guidance as a teacher. We benchmark our method against previous approaches that remove sexually explicit content and demonstrate its effectiveness, performing on par with Safe Latent Diffusion and censored training. To evaluate artistic style removal, we conduct experiments erasing five modern artists from the network and conduct a user study to assess the human perception of the removed styles. Unlike previous methods, our approach can remove concepts from a diffusion model permanently rather than modifying the output at the inference time, so it cannot be circumvented even if a user has access to model weights. Our code, data, and results are available at erasing.baulab.info.

View on arXivView PDF

Code Implementations(2)

MIT

Erasing Concepts from Diffusion Models

66543Python, Jupyter NotebookFeb 15, 20236 months agoMIT
p1atdev/LECOCommunity68%
Apache-2.0

Low-rank adaptation for Erasing COncepts from diffusion models.

32327Python, Jupyter NotebookJun 21, 20232 years agoApache-2.0
diffusionlorastable-diffusion

Similar Papers

Cite this paper

@article{gandikota2026erasing,
  title  = {Erasing Concepts from Diffusion Models},
  author = {Rohit Gandikota and Joanna Materzynska and Jaden Fiotto-Kaufman and David Bau},
  year   = {2026},
  eprint = {2303.07345},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2303.07345},
  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.07345.svg)](https://codeofpaper.com/paper/2303.07345)

Discussion