Unlearning in Diffusion Models: A Unified Framework with KL Divergence and Likelihood Constraints
Abstract
Unlearning in diffusion models aims to remove undesirable data or concepts while preserving the utility of pretrained models---two fundamentally conflicting objectives. We propose a principled constrained optimization framework that formulates unlearning as minimizing the deviation from a pretrained model, subject to explicit separation constraints from the unlearning distributions. Specifically, we formulate three constrained optimization problems based on reverse and forward KL divergences, and likelihood constraints. The first two generalize existing approaches for concept and data unlearning, while the third offers a novel and natural formulation for unlearning. Despite the nonconvexity of the KL constraints, we establish strong duality for all three problems, enabling us to explicitly characterize their optimal solutions as unlearning targets and develop primal–dual algorithms for each formulation. Experimental results demonstrate that our KL-constrained approach achieves superior retention-unlearning tradeoffs compared to weight-based baselines for concept and data unlearning, and that our likelihood-based approach matches unlearning effectiveness while better preserving retained concepts compared to baselines.
Lay Summary
Generative AI models are trained on vast datasets that may include copyrighted material or harmful content. Once trained, selectively removing specific concepts or data from these models without degrading their broader capabilities is a problem known as machine unlearning. This paper introduces a rigorous constrained optimization framework for unlearning in diffusion models. Rather than applying heuristic modifications, the approach formally requires the model to remain as close as possible to its original state while guaranteeing a minimum separation from whatever must be forgotten. Experiments confirm that the proposed framework achieves superior tradeoffs between retaining general capabilities and erasing targeted content compared to naive baselines.