atlas

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

Magnet: We Never Know How Text-to-Image Diffusion Models Work, Until We Learn How Vision-Language Models Function

NeurIPS 2024 · Image generation › Text-to-image diffusion · approach: Text-driven synthesis and semantic guidance · 3 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.

Magnet is a training-free method that manipulates CLIP text embeddings of object words with positive and negative binding vectors (with neighbor-guided estimation) to fix attribute binding in Stable Diffusion.

Problem

Stable Diffusion often fails to bind attributes to the correct objects in multi-attribute prompts (attribute leakage, object sticking, missing objects), and unnatural attribute-object pairs are generated as their common priors. The authors trace this partly to context entanglement in CLIP text encod

Approach

Analyze CLIP text embeddings to show attribute bias in word embeddings and context entanglement in [EOT]/padding embeddings, then shift each object's word embedding with positive (pull target attribute) and negative (push other attributes) binding vectors, scaled by an adaptive strength and estimated from semantically/feature-nearest neighbor objects, all in text space without training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply Magnet's positive and negative binding vectorsStable Diffusion V1.4 · ABC-6Kattribute disentanglement: 27.14 vs 19.71Helped
apply Magnet's positive and negative binding vectorsStable Diffusion V1.4 · CC-500attribute alignment: 74.0 vs 66.2Helped
apply Magnet instead of Attend-and-ExciteStable Diffusion V1.4 · CC-500object existence: 84.6 vs 68.6Hurt
apply Magnet's binding vectorsStable Diffusion V1.4 · MS-COCO 10k images, SD V1.4FID: 19.04 -> 18.92Helped
apply Magnet's binding vectorsStable Diffusion V1.4 · MS-COCO 10k images, SD V2.1FID: 19.76 -> 19.20Helped
use the neighbor-guided vector estimation strategy (ablation)Magnet · CC-500 and ABC-6Kconcept disentanglementHelped
set neighbor count K to 1 instead of using neighbors (ablation)Magnet · prompts with unnatural concepts, including blue bananasbinding accuracyHurt
increase neighbor count to K≥10 (ablation)Magnet · CC-500 promptsbinding accuracyHurt
set lambda to 0 rather than 0.6 (ablation)Magnet · a pink cake with white roses on silver plateconcept disentanglementHurt
set lambda to 1 rather than 0.6 (ablation)Magnet · a pink cake with white roses on silver plateimage qualityHurt
use both positive and negative binding vectors instead of only one vector (ablation)Magnet · CC-500 and ABC-6Kobject disentanglement: 5.1 vs 3.9Helped
use both positive and negative binding vectors instead of only one vector (ablation)Magnet · CC-500 and ABC-6Kattribute disentanglement: 3.0 vs 1.3Helped

Surprising findings

Limitations

Experimental setup

Datasets: ABC-6K CC-500 MS-COCO captions

Benchmarks: ABC-6K CC-500 MS-COCO FID (10k images)

Metrics: human preference (image quality, object disentanglement, att object existence attribute alignment GroundingDINO detection FID CLIP score BLIP score runtime memory usage

Baselines: Stable Diffusion v1.4 Structure Diffusion Attend-and-Excite

Builds on: Stable Diffusion CLIP Attend-and-Excite Structure Diffusion Stanza dependency parsing

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