Unlearning Concepts in Diffusion Model via Concept Domain Correction and Concept Preserving Gradient

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wu, Yongliang, Zhou, Shiji, Yang, Mingzhuo, Wang, Lianzhe, Chang, Heng, Zhu, Wenbo, Hu, Xinting, Zhou, Xiao, Yang, Xu
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917959276953600
author Wu, Yongliang
Zhou, Shiji
Yang, Mingzhuo
Wang, Lianzhe
Chang, Heng
Zhu, Wenbo
Hu, Xinting
Zhou, Xiao
Yang, Xu
author_facet Wu, Yongliang
Zhou, Shiji
Yang, Mingzhuo
Wang, Lianzhe
Chang, Heng
Zhu, Wenbo
Hu, Xinting
Zhou, Xiao
Yang, Xu
contents Text-to-image diffusion models have achieved remarkable success in generating photorealistic images. However, the inclusion of sensitive information during pre-training poses significant risks. Machine Unlearning (MU) offers a promising solution to eliminate sensitive concepts from these models. Despite its potential, existing MU methods face two main challenges: 1) limited generalization, where concept erasure is effective only within the unlearned set, failing to prevent sensitive concept generation from out-of-set prompts; and 2) utility degradation, where removing target concepts significantly impacts the model's overall performance. To address these issues, we propose a novel concept domain correction framework named \textbf{DoCo} (\textbf{Do}main \textbf{Co}rrection). By aligning the output domains of sensitive and anchor concepts through adversarial training, our approach ensures comprehensive unlearning of target concepts. Additionally, we introduce a concept-preserving gradient surgery technique that mitigates conflicting gradient components, thereby preserving the model's utility while unlearning specific concepts. Extensive experiments across various instances, styles, and offensive concepts demonstrate the effectiveness of our method in unlearning targeted concepts with minimal impact on related concepts, outperforming previous approaches even for out-of-distribution prompts.
format Preprint
id arxiv_https___arxiv_org_abs_2405_15304
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unlearning Concepts in Diffusion Model via Concept Domain Correction and Concept Preserving Gradient
Wu, Yongliang
Zhou, Shiji
Yang, Mingzhuo
Wang, Lianzhe
Chang, Heng
Zhu, Wenbo
Hu, Xinting
Zhou, Xiao
Yang, Xu
Machine Learning
Computer Vision and Pattern Recognition
Text-to-image diffusion models have achieved remarkable success in generating photorealistic images. However, the inclusion of sensitive information during pre-training poses significant risks. Machine Unlearning (MU) offers a promising solution to eliminate sensitive concepts from these models. Despite its potential, existing MU methods face two main challenges: 1) limited generalization, where concept erasure is effective only within the unlearned set, failing to prevent sensitive concept generation from out-of-set prompts; and 2) utility degradation, where removing target concepts significantly impacts the model's overall performance. To address these issues, we propose a novel concept domain correction framework named \textbf{DoCo} (\textbf{Do}main \textbf{Co}rrection). By aligning the output domains of sensitive and anchor concepts through adversarial training, our approach ensures comprehensive unlearning of target concepts. Additionally, we introduce a concept-preserving gradient surgery technique that mitigates conflicting gradient components, thereby preserving the model's utility while unlearning specific concepts. Extensive experiments across various instances, styles, and offensive concepts demonstrate the effectiveness of our method in unlearning targeted concepts with minimal impact on related concepts, outperforming previous approaches even for out-of-distribution prompts.
title Unlearning Concepts in Diffusion Model via Concept Domain Correction and Concept Preserving Gradient
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2405.15304