Reproduce “Localizing and Editing Knowledge in Text-to-Image Generative Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Samyadeep Basu, Nanxuan Zhao, Vlad Morariu, Soheil Feizi, Varun Manjunatha
Researchers adapted Causal Mediation Analysis to pinpoint where visual knowledge resides in Text-to-Image generative models, revealing distributed knowledge in the UNet but strong localization in the text-encoder's first self-attention layer. This understanding enabled the development of DIFF-QUICKFIX, an editing method that achieves a 1000x speedup over prior fine-tuning approaches.
Key insights
- Knowledge corresponding to distinct visual attributes in the UNet is distributed across a set of components (e.g., ResNet blocks, self-attention, cross-attention layers), with varying causal importance for different attributes.
- In contrast to the UNet, knowledge for distinct visual attributes in the CLIP text-encoder is strongly localized to a single causal state: the first self-attention layer (self-attn-0) corresponding to the last subject token.
- This strong localization in the text-encoder for T2I models is a major deviation from findings in Large Language Models, where factual knowledge is typically localized in mid-MLP layers.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.