arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.02542cs.CVcs.LG
收藏

揭示扩散模型中的概念归因

Unveiling Concept Attribution in Diffusion Models

College of Engineering and Computer Science, VinUniversity(VinUniversity工程与计算机科学学院);VinUni-Illinois Smart Health Center, VinUniversity(VinUniversity伊利诺伊智能健康中心)

Quang H. Nguyen, Hoang Phan, Khoa D. Doan

AI总结:

针对扩散模型黑箱特性及现有归因研究的局限,提出CAD框架揭示正向、负向概念组件,推出两种推理阶段编辑算法,为生成模型可解释性提供完整视角。

摘要:

扩散模型已展现出根据文本提示生成逼真高质量图像的卓越能力。然而,训练后的模型在很大程度上仍是黑箱;我们对其各组件在呈现物体或风格等概念时所起的作用知之甚少。近期研究采用因果追踪来定位生成模型中存储知识的层,但未说明其他层如何对目标概念产生作用。在本研究中,我们从更通用的视角切入扩散模型的可解释性问题,并提出疑问:“模型组件如何协同运作以展现知识?”为解答该问题,我们通过组件归因分解扩散模型,系统揭示每个组件(具体为模型参数)在生成某一概念时的重要性。所提出的框架名为Component Attribution for Diffusion Model(扩散模型组件归因,简称CAD),它不仅发现了诱导概念的(正向)组件的定位,还有趣地揭示了另一类对概念生成起负向作用的组件——这是以往知识定位研究中缺失的内容。基于对扩散模型的这一整体性理解,我们提出了两种快速的推理阶段模型编辑算法:CAD-Erase和CAD-Amplify;其中,CAD-Erase可通过消融正向组件实现生成概念的擦除,CAD-Amplify则可通过消融负向组件实现生成概念的放大,同时保留其他概念的知识。大量实验结果验证了我们框架所定位的正向和负向组件的重要性,展现了为生成模型的可解释性提供完整视角的潜力。我们的代码可在此处获取:https://github.com/mail-research/CAD-attribution4diffusion。

英文摘要:

Diffusion models have shown remarkable abilities in generating realistic and high-quality images from text prompts. However, a trained model remains largely black-box; little do we know about the roles of its components in exhibiting a concept such as objects or styles. Recent works employ causal tracing to localize knowledge-storing layers in generative models without showing how other layers contribute to the target concept. In this work, we approach diffusion models' interpretability problem from a more general perspective and pose a question: \textit{``How do model components work jointly to demonstrate knowledge?''}. To answer this question, we decompose diffusion models using component attribution, systematically unveiling the importance of each component (specifically the model parameter) in generating a concept. The proposed framework, called \textbf{C}omponent \textbf{A}ttribution for \textbf{D}iffusion Model (CAD), discovers the localization of concept-inducing (positive) components, while interestingly uncovers another type of components that contribute negatively to generating a concept, which is missing in the previous knowledge localization work. Based on this holistic understanding of diffusion models, we introduce two fast, inference-time model editing algorithms, CAD-Erase and CAD-Amplify; in particular, CAD-Erase enables erasure and CAD-Amplify allows amplification of a generated concept by ablating the positive and negative components, respectively, while retaining knowledge of other concepts. Extensive experimental results validate the significance of both positive and negative components pinpointed by our framework, demonstrating the potential of providing a complete view of interpreting generative models. Our code is available \href{https://github.com/mail-research/CAD-attribution4diffusion}{here}.

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

↑