Erasing Undesirable Influence in Diffusion Models

Jing Wu, Trung Le, Munawar Hayat, Mehrtash Harandi
2/9/2026

No official code found. Best implementation: JingWu321/EraseDiff (14 stars, last commit 2024-11-20).

Abstract

Diffusion models are highly effective at generating high-quality images but pose risks, such as the unintentional generation of NSFW (not safe for work) content. Although various techniques have been proposed to mitigate unwanted influences in diffusion models while preserving overall performance, achieving a balance between these goals remains challenging. In this work, we introduce EraseDiff, an algorithm designed to preserve the utility of the diffusion model on retained data while removing the unwanted information associated with the data to be forgotten. Our approach formulates this task as a constrained optimization problem using the value function, resulting in a natural first-order algorithm for solving the optimization problem. By altering the generative process to deviate away from the groundtruth denoising trajectory, we update parameters for preservation while controlling constraint reduction to ensure effective erasure, striking an optimal trade-off. Extensive experiments and thorough comparisons with state-of-the-art algorithms demonstrate that EraseDiff effectively preserves the model’s utility, efficacy, and efficiency.$\color{Red} {\text {WARNING}}$: This paper contains sexually explicit imagery that may be offensive in nature.

View on arXivView PDF

Code Implementations(1)

JingWu321/EraseDiffCommunity100%

EraseDiff: Erasing Data Influence in Diffusion Models

141Shell, PythonJan 29, 20241 years ago

Similar Papers

Cite this paper

@article{wu2026erasing,
  title  = {Erasing Undesirable Influence in Diffusion Models},
  author = {Jing Wu and Trung Le and Munawar Hayat and Mehrtash Harandi},
  year   = {2026},
  eprint = {2401.05779},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.05779},
  journal = {CVPR 2024 2024}
}

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/2401.05779.svg)](https://codeofpaper.com/paper/2401.05779)

Discussion