[Paper Review] Forget-Me-Not: Learning to Forget in Text-to-Image Diffusion Models
Forget-Me-Not is a plug-and-play method that efficiently forgets targeted concepts in text-to-image diffusion models via attention re-steering, evaluated with Memorization Score (M-Score) and ConceptBench.
The unlearning problem of deep learning models, once primarily an academic concern, has become a prevalent issue in the industry. The significant advances in text-to-image generation techniques have prompted global discussions on privacy, copyright, and safety, as numerous unauthorized personal IDs, content, artistic creations, and potentially harmful materials have been learned by these models and later utilized to generate and distribute uncontrolled content. To address this challenge, we propose extbf{Forget-Me-Not}, an efficient and low-cost solution designed to safely remove specified IDs, objects, or styles from a well-configured text-to-image model in as little as 30 seconds, without impairing its ability to generate other content. Alongside our method, we introduce the extbf{Memorization Score (M-Score)} and extbf{ConceptBench} to measure the models' capacity to generate general concepts, grouped into three primary categories: ID, object, and style. Using M-Score and ConceptBench, we demonstrate that Forget-Me-Not can effectively eliminate targeted concepts while maintaining the model's performance on other concepts. Furthermore, Forget-Me-Not offers two practical extensions: a) removal of potentially harmful or NSFW content, and b) enhancement of model accuracy, inclusion and diversity through extbf{concept correction and disentanglement}. It can also be adapted as a lightweight model patch for Stable Diffusion, allowing for concept manipulation and convenient distribution. To encourage future research in this critical area and promote the development of safe and inclusive generative models, we will open-source our code and ConceptBench at \href{https://github.com/SHI-Labs/Forget-Me-Not}{https://github.com/SHI-Labs/Forget-Me-Not}.
Motivation & Objective
- Motivate and define concept forgetting in text-to-image diffusion models to address privacy, safety, and copyright concerns.
- Provide a low-cost, plug-and-play solution that forgets targeted concepts without degrading overall model performance.
- Propose quantitative metrics (Memorization Score) and benchmarks (ConceptBench) to evaluate forgetting and memorization.
- Demonstrate extensions to concept correction, disentanglement, and lightweight model patches for diffusion models like Stable Diffusion.
Proposed method
- Introduce attention resteering loss that minimizes cross-attention maps corresponding to the forgetting concept across UNet cross-attention layers.
- Fine-tune only the cross-attention or related components to steer attention away from the forgetting concept without retraining the full model.
- Optional use of Concept Inversion to obtain precise concept embeddings when forgetting prompts are out-of-vocabulary or unclear.
- Provide a lightweight patchable approach that supports multi-concept forgetting and easy distribution to users.
- Define Memorization Score (based on cosine similarity changes in concept embeddings from textual inversion) and ConceptBench as evaluation tools.
Experimental results
Research questions
- RQ1How can targeted concepts be forgotten from text-to-image diffusion models without compromising unrelated content?
- RQ2Can a lightweight, plug-and-play method achieve multi-concept forgetting and be extended to concept correction and disentanglement?
- RQ3How can we quantitatively measure memorization and forgetting in diffusion models and benchmark it systematically?
Key findings
- Forget-Me-Not can remove targeted concepts with minimal impact on non-target concepts, and in some cases achieve forgetting in around 30 seconds.
- The method maintains model integrity for other concepts while removing the target concepts across cross-attention layers.
- ConceptBench categorizes concepts into identity, object, and style to evaluate forgetting and memorization.
- Memorization Score shows a decrease in concept embedding similarity after forgetting (e.g., Elon Musk from 0.943 to 0.848).
- The approach supports NSFW content removal and concept correction/disentanglement, with qualitative and quantitative evidence across concepts.
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.