atlas

Research map / Image generation / Text-to-image diffusion

On Mechanistic Knowledge Localization in Text-to-Image Generative Models

ICML 2024 · Image generation › Text-to-image diffusion · approach: Compositional text-to-image guidance · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LocoGen to localize visual-attribute knowledge (style, objects, facts) to small sets of cross-attention layers in text-to-image UNets via altered-input interventions, and LocoEdit for closed-form key/value edits there.

Problem

Causal tracing localizes knowledge in early Stable Diffusion text encoders but fails for newer text-to-image models (SD-XL, DeepFloyd), hindering closed-form model editing.

Approach

Replace the text embedding in a small contiguous subset of UNet cross-attention layers with a target-prompt embedding and measure the direct effect on output (CLIP-score change) to find controlling layers; then apply closed-form key/value updates at those layers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LocoGen-identified cross-attention layers for attribute editingLocoGen · Human study, all image pairsverification rate (rating above 1): 92.58%Helped
Edit only LocoGen-identified localized layers instead of all UNet layers (ablation)LocoEdit · Object and fact editsedit correctnessHelped
Apply closed-form editing at LocoGen locations using only the last-subject token embeddingDeepFloyd · Style, object, and fact editsedit effectivenessHurt
Modify more identified neurons during inference (ablation)Stable Diffusion v1.5 neuron-level editing · Style removalstyle removalHelped
Modify more identified neurons during inference (ablation)Stable Diffusion v1.5 neuron-level editing · Generated image qualityimage qualityHurt
Use LocoEdit for style editing rather than the compared editing baselinesStable Diffusion v1.5 · Style editingCLIP-Score changeNo clear effect
Use LocoEdit rather than the compared editing baselinesStable Diffusion v1.5 · Fact editingCLIP-Score increaseHelped
Use LocoEdit rather than the compared editing baselinesStable Diffusion v1.5 · Object editingCLIP-Score dropHurt
Use LocoEdit in place of DiffQuickFixStable Diffusion v2.1 · Fact editingedit effectivenessHelped
Vary the selected number of adjacent controlling layers (ablation)Stable Diffusion v1.5 LocoGen · Style localizationCLIP-ScoreNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: prompt sets for objects, style, and facts from prior benchmarks (e.g., trademarked objects, artist styles, factual promp

Metrics: CLIP-Score human rating (1-5) of attribute removal/update

Baselines: DiffQuickFix Concept-Ablation Concept-Deletion causal tracing update all UNet layers

Builds on: causal tracing Concept-Ablation DiffQuickFix classifier-free guidance DDIM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy