[Paper Review] SalUn: Empowering Machine Unlearning via Gradient-based Weight Saliency in Both Image Classification and Generation
SalUn introduces a novel machine unlearning framework that leverages gradient-based weight saliency to selectively target and update only the most influential model weights, significantly improving unlearning accuracy and stability in both image classification and text-to-image generation. It achieves near-perfect unlearning accuracy (99.74%) in removing harmful concept generation from diffusion models, outperforming state-of-the-art baselines like Erased Stable Diffusion and Forget-Me-Not.
With evolving data regulations, machine unlearning (MU) has become an important tool for fostering trust and safety in today's AI models. However, existing MU methods focusing on data and/or weight perspectives often suffer limitations in unlearning accuracy, stability, and cross-domain applicability. To address these challenges, we introduce the concept of 'weight saliency' for MU, drawing parallels with input saliency in model explanation. This innovation directs MU's attention toward specific model weights rather than the entire model, improving effectiveness and efficiency. The resultant method that we call saliency unlearning (SalUn) narrows the performance gap with 'exact' unlearning (model retraining from scratch after removing the forgetting data points). To the best of our knowledge, SalUn is the first principled MU approach that can effectively erase the influence of forgetting data, classes, or concepts in both image classification and generation tasks. As highlighted below, For example, SalUn yields a stability advantage in high-variance random data forgetting, e.g., with a 0.2% gap compared to exact unlearning on the CIFAR-10 dataset. Moreover, in preventing conditional diffusion models from generating harmful images, SalUn achieves nearly 100% unlearning accuracy, outperforming current state-of-the-art baselines like Erased Stable Diffusion and Forget-Me-Not. Codes are available at https://github.com/OPTML-Group/Unlearn-Saliency. (WARNING: This paper contains model outputs that may be offensive in nature.)
Motivation & Objective
- To address the instability and limited cross-domain applicability of existing approximate machine unlearning methods.
- To develop a principled unlearning approach effective for both image classification and generative models.
- To reduce the performance gap between approximate unlearning and exact retraining (i.e., full fine-tuning from scratch).
- To enable effective unlearning of specific data, classes, or harmful concepts in diffusion models.
- To introduce and validate the concept of 'weight saliency' as a new paradigm in machine unlearning.
Proposed method
- The method introduces 'weight saliency'—a measure of how much each model weight contributes to the model's prediction for a forgetting data point, computed via gradient-based analysis.
- SalUn identifies and updates only the most salient weights associated with forgetting data, rather than retraining the entire model.
- It applies a soft or hard thresholding mechanism to select weights based on their saliency scores, enabling efficient and targeted unlearning.
- The approach is applied to both classifier-based and classifier-free diffusion models, with unlearning performed via fine-tuning on a modified loss function.
- The method is compatible with various unlearning baselines and enhances their performance by focusing on high-impact weights.
- It uses a gradient-based influence estimation to compute saliency scores without requiring full retraining or complex certification.
Experimental results
Research questions
- RQ1Can weight saliency be used as a principled mechanism to improve machine unlearning in both classification and generation tasks?
- RQ2How does SalUn compare to exact unlearning (retraining from scratch) in terms of performance and stability?
- RQ3Can SalUn effectively unlearn harmful or sensitive concepts in text-to-image diffusion models?
- RQ4Does weight saliency reduce the performance variance seen in existing approximate unlearning methods?
- RQ5Is SalUn adaptable to different forgetting scenarios, including random data forgetting and class-specific erasure?
Key findings
- SalUn reduces the performance gap with exact unlearning to just 0.2% on CIFAR-10 under high-variance random forgetting, demonstrating strong stability.
- In conditional diffusion models, SalUn achieves 97.95% unlearning accuracy for class-conditional generation, outperforming Erased Stable Diffusion and Forget-Me-Not.
- For concept erasure in text-to-image generation, SalUn achieves 99.74% unlearning accuracy on NSFW concept prompts, significantly outperforming baselines.
- The method maintains high unlearning accuracy across multiple random seeds and forgetting classes, indicating robustness and low variance.
- SalUn achieves 39.41% unlearning accuracy on the 'cat' class in diffusion models, with only 0.27% residual influence, showing strong concept erasure.
- The ablation study confirms that weight saliency is critical: removing it reduces performance by over 20% compared to the full SalUn method.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.