arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.11219cs.CVcs.LG
收藏

Score Forgetting Distillation:一种用于扩散模型机器遗忘的快速、免数据方法

Score Forgetting Distillation: A Swift, Data-Free Method for Machine Unlearning in Diffusion Models

The University of Texas at Austin(得克萨斯大学奥斯汀分校)

Tianqi Chen, Shujian Zhang, Mingyuan Zhou

AI总结:

本文提出 Score Forgetting Distillation (SFD) 方法,通过将不安全概念的条件分数与安全概念对齐,实现免数据的扩散模型机器遗忘,在加速遗忘不良信息的同时保留正常生成能力并提升生成速度。

摘要:

机器学习界日益认识到在现代生成式 AI(GenAI)模型中培养信任与安全的重要性。我们认为,机器遗忘(MU)是开发安全、可靠且值得信赖的 GenAI 模型的关键基础。传统的 MU 方法通常依赖严格的假设并需要访问真实数据。本文引入了 Score Forgetting Distillation(SFD),这是一种创新的 MU 方法,通过将“不安全”类别或概念的条件分数与“安全”类别或概念的条件分数对齐,来促进扩散模型对不良信息的遗忘。为了消除对真实数据的需求,我们的 SFD 框架将基于分数的 MU 损失纳入到预训练扩散模型的分数蒸馏目标中。这作为一个正则化项,在保留所需生成能力的同时,能够通过单步生成器生成合成数据。我们在预训练的标签条件扩散模型和文本到图像扩散模型上进行的实验表明,我们的方法能有效加速生成过程中对目标类别或概念的遗忘,同时保留其他类别或概念的质量。这种经过遗忘和蒸馏的扩散模型不仅开创了 MU 中的新概念,还加快了扩散模型的生成速度。我们在一系列扩散模型和数据集上的实验和研究证实,我们的方法对于扩散模型中的 MU 具有普适性、有效性且是有益的。代码可在 https://github.com/tqch/score-forgetting-distillation 获取。(警告:本文包含性露骨图像、色情讨论、种族相关术语以及其他可能令部分读者感到不安、困扰和/或冒犯的内容。)

英文摘要:

The machine learning community is increasingly recognizing the importance of fostering trust and safety in modern generative AI (GenAI) models. We posit machine unlearning (MU) as a crucial foundation for developing safe, secure, and trustworthy GenAI models. Traditional MU methods often rely on stringent assumptions and require access to real data. This paper introduces Score Forgetting Distillation (SFD), an innovative MU approach that promotes the forgetting of undesirable information in diffusion models by aligning the conditional scores of "unsafe" classes or concepts with those of "safe" ones. To eliminate the need for real data, our SFD framework incorporates a score-based MU loss into the score distillation objective of a pretrained diffusion model. This serves as a regularization term that preserves desired generation capabilities while enabling the production of synthetic data through a one-step generator. Our experiments on pretrained label-conditional and text-to-image diffusion models demonstrate that our method effectively accelerates the forgetting of target classes or concepts during generation, while preserving the quality of other classes or concepts. This unlearned and distilled diffusion not only pioneers a novel concept in MU but also accelerates the generation speed of diffusion models. Our experiments and studies on a range of diffusion models and datasets confirm that our approach is generalizable, effective, and advantageous for MU in diffusion models. Code is available at https://github.com/tqch/score-forgetting-distillation. ($\textbf{Warning:}$ This paper contains sexually explicit imagery, discussions of pornography, racially-charged terminology, and other content that some readers may find disturbing, distressing, and/or offensive.)

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑