atlas

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

Directed Diffusion: Direct Control of Object Placement through Attention Guidance

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

Training-free method (Directed Diffusion) that steers Stable Diffusion object placement by optimizing a small weight vector over trailing cross-attention maps so prompt-word attention concentrates inside user-given bounding boxes.

Problem

Text-to-image diffusion models struggle to compose multiple objects in specified positional relationships, which limits controllable storytelling and scene composition.

Approach

Edit cross-attention maps of directed prompt words during early denoising steps by injecting Gaussian activation inside user bounding boxes and optimizing a small weight vector over trailing (non-prompt) attention maps so the effect propagates through the network, requiring no training and only a few lines of code.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Directed Diffusion instead of the strongest listed baseline, SDScene compositing · SceneCompCLIP score: 0.821 -> 0.824Helped
Use Directed Diffusion instead of the strongest listed baseline, SDOne-object placement · OneMaskCLIP score: 0.834 -> 0.807Hurt
Use Directed Diffusion instead of the strongest listed baseline, SDTwo-object placement · TwoMasksCLIP score: 0.842 -> 0.851Helped
Remove optimization and directly inject Gaussian-falloff activations into directed-word and trailing attention maps (ablation)Directed Diffusion · Object placement and scene generationplacement and scene qualityMixed
Use only a small number of edited trailing attention maps (ablation)Direct-injection ablation · Object placement and scene generationsemantic and placement qualityHurt
Use too many edited trailing attention maps (ablation)Direct-injection ablation · Object placement and scene generationbackground preservationHurt
Use an intermediate number of edited trailing attention maps and editing steps (ablation)Direct-injection ablation · Object placement and scene generationsemantic and placement qualityHelped
Vary the number of edited trailing attention maps across 5, 10, 15, and 20 (ablation)Direct-injection ablation · A photo of a squirrel eating a burgersemantic and placement qualityMixed
Vary attention editing steps across 1, 3, 5, 10, and 15 (ablation)Direct-injection ablation · A photo of a squirrel eating a burgersemantic and placement qualityMixed

Surprising findings

Limitations

Experimental setup

Benchmarks: SceneComp OneMask TwoMasks

Metrics: CLIP score IoU

Baselines: Stable Diffusion GLIGEN BoxDiff Composable Diffusion Blended Latent Diffusion MultiDiffusion

Builds on: Stable Diffusion Prompt-to-prompt MagicMix Blended Latent Diffusion SDEdit

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