atlas

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

Grounded Text-to-Image Synthesis with Attention Refocusing

CVPR 2024 · Image generation › Text-to-image diffusion · approach: Compositional text-to-image guidance · 74 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 attention-refocusing losses (cross- and self-attention) applied during diffusion sampling, paired with GPT-4 layout generation, to improve layout-grounded text-to-image synthesis.

Problem

Text-to-image diffusion models fail to faithfully render prompts with multiple objects, attributes, and spatial relations, causing missing, mixed, or swapped objects.

Approach

Two losses (CAR for cross-attention and SAR for self-attention) update the noised latent at early denoising steps so that each grounded token's attention concentrates inside its box and pixels inside a box attend less to outside regions; GPT-4 supplies the boxes via in-context learning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add CAR and SAR lossesGLIGEN · HRSSpatial accuracy: 30.74 -> 40.22Helped
Add CAR and SAR lossesGLIGEN · HRSColor accuracy: 18.78 -> 26.32Helped
Add CAR and SAR lossesStable Diffusion 1.4 · TIFAAverage score: 78.38 -> 78.87Helped
Add CAR and SAR lossesStable Diffusion 2.1 · TIFAAverage score: 81.84 -> 81.89Helped
Apply attention-refocusing losses with mask guidanceStable Diffusion · Mask-guidance datasetIoU: 34.99 ± 1.13 -> 38.97 ± 0.56Helped
Add CAR and SAR lossesStable Diffusion · COCO 2014FID: 20.82 -> 21.03Hurt
Add CAR and SAR lossesGLIGEN · COCO 2014FID: 20.63 -> 20.37Helped
Use SAR without CAR (ablation)GLIGEN · HRSSpatial accuracy: 30.74 -> 36.43Helped
Use CAR without SAR (ablation)GLIGEN · HRSSpatial accuracy: 30.74 -> 36.92Helped
Use both CAR and SAR (ablation)GLIGEN · HRSSpatial accuracy: 30.74 -> 40.22Helped

Surprising findings

Limitations

Experimental setup

Datasets: COCO 2014 DenseDiffusion mask-and-text dataset

Benchmarks: HRS DrawBench TIFA COCO 2014

Metrics: F1 accuracy TIFA score FID IoU CLIP score SOA-I Format Validness Correctness

Baselines: Stable Diffusion Attend-and-excite Layout-guidance MultiDiffusion GLIGEN BoxDiff SD-Pww DenseDiffusion ControlNet

Builds on: Attend-and-Excite Layout-guidance GLIGEN Stable Diffusion MultiDiffusion

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