2025-02-03 · 专家 · 机器学习 · 计算机视觉

SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders

SAeUron通过利用稀疏自编码器学习到的特征,实现了对文本到图像扩散模型中不希望概念的可解释性去除。

更新于 2025-02-03。作者:Bartosz Cywiński、Kamil Deja。

中文摘要

扩散模型虽然功能强大,但可能会无意中生成有害或不希望的内容,引发重大的伦理和安全问题。最近的机器反学习方法提供了潜在的解决方案,但往往缺乏透明度,使得难以理解它们对基础模型引入的变化。在这项工作中,我们介绍了SAeUron,这是一种新颖的方法,它利用稀疏自编码器(SAEs)学习到的特征来从文本到图像的扩散模型中去除不希望的概念。首先,我们证明SAEs在扩散模型的多个去噪时间步的激活上以无监督的方式进行训练,能够捕捉到与特定概念相对应的稀疏且可解释的特征。在此基础上,我们提出了一种特征选择方法,该方法能够对模型激活进行精确干预,以阻止目标内容,同时保持整体性能。在对象和风格反学习的竞争性UnlearnCanvas基准上的评估突出了SAeUron的顶尖性能。此外,我们展示了使用单个SAE可以同时去除多个概念,并且与其它方法相比,SAeUron降低了在对抗攻击下生成不希望内容的可能性。代码和检查点可在以下链接获取:https://github.com/cywinski/SAeUron。

英文摘要

Diffusion models, while powerful, can inadvertently generate harmful or undesirable content, raising significant ethical and safety concerns. Recent machine unlearning approaches offer potential solutions but often lack transparency, making it difficult to understand the changes they introduce to the base model. In this work, we introduce SAeUron, a novel method leveraging features learned by sparse autoencoders (SAEs) to remove unwanted concepts in text-to-image diffusion models. First, we demonstrate that SAEs, trained in an unsupervised manner on activations from multiple denoising timesteps of the diffusion model, capture sparse and interpretable features corresponding to specific concepts. Building on this, we propose a feature selection method that enables precise interventions on model activations to block targeted content while preserving overall performance. Evaluation with the competitive UnlearnCanvas benchmark on object and style unlearning highlights SAeUron's state-of-the-art performance. Moreover, we show that with a single SAE, we can remove multiple concepts simultaneously and that in contrast to other methods, SAeUron mitigates the possibility of generating unwanted content, even under adversarial attack. Code and checkpoints are available at: https://github.com/cywinski/SAeUron.

解读

一句话总结

SAeUron通过利用稀疏自编码器学习到的特征,实现了对文本到图像扩散模型中不希望概念的可解释性去除。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:扩散模型在生成高度逼真的图像方面取得了成功,但可能会意外生成有害或不希望的内容,如色情、版权侵犯等。 • 现有方案不足:现有的机器反学习方法通常缺乏透明度,难以理解对基础模型产生的变化,并且可能无法完全去除目标概念,易受到对抗攻击。 • 研究目标:提出一种可解释的反学习方法,通过定位和去除与不希望概念相关的特征,在不影响扩散模型整体性能的情况下,实现精确干预。

问题2:论文的核心创新点是什么?

• 技术创新:利用稀疏自编码器(SAEs)从扩散模型的内部激活中学习有意义的特征,以识别和去除与不希望概念相关的特征。 • 方法改进:提出了一种基于SAE的特征选择方法,允许对模型激活进行精确干预,以阻止目标内容,同时保持整体性能。 • 优势:与现有方法相比,SAeUron具有更高的透明度,能够同时去除多个概念,并且对对抗攻击具有更高的鲁棒性。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在UnlearnCanvas基准测试上对对象和风格反学习进行评估,SAeUron在反学习中实现了最先进的性能。 • 性能提升:SAeUron在风格反学习中显著优于其他方法,在对象反学习中表现相当。 • 对比结果:与其他方法相比,SAeUron在反学习准确性和保留准确性方面均表现出色。

问题4:这个研究的实际应用价值是什么?

• 应用场景:可以用于去除文本到图像扩散模型中的不希望内容,如色情、版权侵犯等。 • 实施建议:建议在实际部署中,结合具体应用场景调整SAeUron的参数,以获得最佳性能。 • 局限与展望:SAeUron在推理过程中引入了额外的开销,但与其他技术相比,其GPU和存储需求较低。未来的研究可以探索更高效的SAE训练方法和更鲁棒的对抗攻击防御策略。

来源

机器可读索引:llms.txt