Boosting Alignment for Post-Unlearning Text-to-Image Generative Models
Myeongseob Ko, Henry Li, Zhun Wang, Jonathan Patsenker, Jiachen T. Wang, Qinbin Li, Ming Jin, Dawn Song, Ruoxi Jia
TL;DR
This paper tackles the challenge of unlearning targeted content in text-to-image diffusion models without sacrificing alignment to retained concepts. It introduces a principled restricted-gradient update that monotonically improves both forgetting and remaining-data losses, while also proposing a dataset-diversification strategy for $D_r$ to avoid overfitting. The approach outperforms baselines on both class-level forgetting in CIFAR-10 diffusion models and concept-level removals (nudity, art style) in Stable Diffusion, achieving superior forgetting with close-to-original alignment. The work advances practical unlearning by offering a mathematically grounded update rule and data-collection tactics that enhance safety and copyright compliance for diffusion-based generation systems.
Abstract
Large-scale generative models have shown impressive image-generation capabilities, propelled by massive data. However, this often inadvertently leads to the generation of harmful or inappropriate content and raises copyright concerns. Driven by these concerns, machine unlearning has become crucial to effectively purge undesirable knowledge from models. While existing literature has studied various unlearning techniques, these often suffer from either poor unlearning quality or degradation in text-image alignment after unlearning, due to the competitive nature of these objectives. To address these challenges, we propose a framework that seeks an optimal model update at each unlearning iteration, ensuring monotonic improvement on both objectives. We further derive the characterization of such an update. In addition, we design procedures to strategically diversify the unlearning and remaining datasets to boost performance improvement. Our evaluation demonstrates that our method effectively removes target classes from recent diffusion-based generative models and concepts from stable diffusion models while maintaining close alignment with the models' original trained states, thus outperforming state-of-the-art baselines. Our code will be made available at https://github.com/reds-lab/Restricted_gradient_diversity_unlearning.git.
