Data Unlearning in Diffusion Models
Silas Alberti, Kenan Hasanaliyev, Manav Shah, Stefano Ermon
TL;DR
This work tackles data unlearning in diffusion models, addressing the need to forget specific datapoints without full retraining. It introduces Subtracted Importance Sampled Scores (SISS), a loss that combines naive deletion and NegGrad via a defensive mixture $q_{\lambda}$ and a superfactor $s$, with $\lambda$ typically set to 0.5 to balance unlearning and quality. The authors prove that $\ell_{s,\lambda}(\theta)$ is equivalent in expectation to the naive deletion objective and demonstrate stability through gradient clipping analysis, delivering practical unlearning guarantees. Empirically, SISS achieves Pareto-optimal trade-offs between model quality and unlearning strength across CelebA-HQ, MNIST T-Shirt, and Stable Diffusion, including substantial memorization mitigation on text-conditioned diffusion, while outperforming prior baselines. This approach has implications for privacy and copyright compliance by enabling efficient datapoint forgetting in large generative models, albeit with ongoing considerations about legal sufficiency.
Abstract
Recent work has shown that diffusion models memorize and reproduce training data examples. At the same time, large copyright lawsuits and legislation such as GDPR have highlighted the need for erasing datapoints from diffusion models. However, retraining from scratch is often too expensive. This motivates the setting of data unlearning, i.e., the study of efficient techniques for unlearning specific datapoints from the training set. Existing concept unlearning techniques require an anchor prompt/class/distribution to guide unlearning, which is not available in the data unlearning setting. General-purpose machine unlearning techniques were found to be either unstable or failed to unlearn data. We therefore propose a family of new loss functions called Subtracted Importance Sampled Scores (SISS) that utilize importance sampling and are the first method to unlearn data with theoretical guarantees. SISS is constructed as a weighted combination between simpler objectives that are responsible for preserving model quality and unlearning the targeted datapoints. When evaluated on CelebA-HQ and MNIST, SISS achieved Pareto optimality along the quality and unlearning strength dimensions. On Stable Diffusion, SISS successfully mitigated memorization on nearly 90% of the prompts we tested.
