Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Unveiling Concept Attribution in Diffusion Models

About

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}.

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

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationMS-COCO
FID68.31
193
Text-to-Image GenerationI2P
ASR4
21
Text-to-Image GenerationMMA
ASR8
21
Text-to-Image GenerationVSA
ASR12
21
Text-to-Image GenerationRAB
ASR0.06
21
Semantic PreservationHard Negative Prompts (Nudity)
CLIP Score30.73
19
Safety AlignmentRAB Violence (adversarial prompts)
ASR8
16
Safety AlignmentVSA Violence (visual synonym attack prompts)
ASR12
16
Utility PreservationStandard Benign Prompts
CLIP Score30.64
16
Safety AlignmentI2P Violence (explicit prompts)
ASR3
16
Showing 10 of 11 rows

Other info

Follow for update