College of Engineering and Computer Science, VinUniversity(VinUniversity工程与计算机科学学院);VinUni-Illinois Smart Health Center, VinUniversity(VinUniversity伊利诺伊智能健康中心)
扩散模型已展现出根据文本提示生成逼真高质量图像的卓越能力。然而,训练后的模型在很大程度上仍是黑箱;我们对其各组件在呈现物体或风格等概念时所起的作用知之甚少。近期研究采用因果追踪来定位生成模型中存储知识的层,但未说明其他层如何对目标概念产生作用。在本研究中,我们从更通用的视角切入扩散模型的可解释性问题,并提出疑问:“模型组件如何协同运作以展现知识?”为解答该问题,我们通过组件归因分解扩散模型,系统揭示每个组件(具体为模型参数)在生成某一概念时的重要性。所提出的框架名为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}.
Unveiling the Dreams of Word Embeddings: Towards Language-Driven Image Generation
Center for Mind/Brain Sciences(心智/脑科学中心);University of Trento(特伦托大学);Institute of Formal and Applied Linguistics(形式与应用语言学研究所);Charles University of Prague(布拉格查理大学)
AI Alignment in Medical Imaging: Unveiling Hidden Biases Through Counterfactual Analysis
School of Computation, Information and Technology, Technical University of Munich(技术大学慕尼黑计算、信息与技术学院);Department of Computer Science, University of Oxford(牛津大学计算机科学系);Department of Engineering Science, University of Oxford(牛津大学工程科学系);Helmholtz AI, Munich, Germany(海德堡人工智能研究所,德国慕尼黑)
Revealing Hidden Context Bias in Segmentation and Object Detection through Concept-specific Explanations
Fraunhofer Heinrich-Hertz-Institute(弗劳恩霍夫海因里希·赫兹研究所);Technische Universität Berlin(柏林工业大学);Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所)
CRAFT: Concept Recursive Activation FacTorization for Explainability
Carney Institute for Brain Science, Brown University(布朗大学卡尼脑科学研究所);Sorbonne Université(索邦大学);CNRS(法国国家科学研究中心);Artificial and Natural Intelligence Toulouse Institute, Université de Toulouse(图卢兹大学人工智能与自然智能研究所);Institut de Recherche Technologique Saint-Exupery(圣埃克苏佩里技术研究所);Innovation & Research Division, SNCF(法国国家铁路公司创新与研究部);Scalian(Scalian公司)