Erasing Undesirable Influence in Diffusion Models
Jing Wu, Trung Le, Munawar Hayat, Mehrtash Harandi
TL;DR
EraseDiff tackles the challenge of erasing undesired information from diffusion models without sacrificing performance. It recasts data forgetting as a constrained optimization problem via a value-function formulation, yielding a first-order update that balances preservation of remaining data with erasure of forgotten data, and proves Pareto-optimality of the solution. Empirically, EraseDiff achieves faster forgetting with better trade-offs than state-of-the-art baselines across DDPM and Stable Diffusion setups, including class-wise and concept-wise forgetting and Nudity erasure, while maintaining image fidelity (FID) and alignment (CLIP). The work demonstrates practical impact for privacy and safety in generative models, offering a scalable, principled approach that reduces computational cost relative to existing methods. It also highlights limitations and invites future work on fairness and privacy-preserving enhancements.
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 ground-truth 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.
