atlas

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

Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidance

CVPR 2024 · Image generation › Text-to-image diffusion · approach: Compositional text-to-image guidance · 20 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 Semantic-aware Classifier-Free Guidance (S-CFG), a training-free method that segments latent images per denoising step via attention maps and assigns region-specific CFG scales to equalize guidance strength across semantic units.

Problem

A single global CFG scale gives spatially inconsistent text-guidance strength across semantic regions of a generated image, causing uneven quality and suboptimal images in text-to-image diffusion models.

Approach

Derive training-free semantic region masks from renormalized cross-attention maps refined by self-attention, then set per-region CFG scales so that the classifier-score norm in each region is rescaled to a uniform level, with the background (START token) region used as benchmark.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace global CFG with semantic-aware adaptive CFG scalesSD-v1.5 · MSCOCO validation, human evaluationimage quality preference: 26.78% -> 73.22%Helped
Replace global CFG with semantic-aware adaptive CFG scalesSD-v1.5 · MSCOCO validation, human evaluationimage-text alignment preference: 23.20% -> 76.80%Helped
Replace global CFG with semantic-aware adaptive CFG scalesSD-v2.1 · MSCOCO validation, human evaluationimage quality preference: 28.16% -> 71.84 %Helped
Replace global CFG with semantic-aware adaptive CFG scalesSD-v2.1 · MSCOCO validation, human evaluationimage-text alignment preference: 31.85% -> 68.15%Helped
Replace global CFG with semantic-aware adaptive CFG scalesIF · MSCOCO validation, human evaluationimage quality preference: 32.39% -> 67.61%Helped
Replace global CFG with semantic-aware adaptive CFG scalesIF · MSCOCO validation, human evaluationimage-text alignment preference: 29.17% -> 70.83%Helped
Replace global CFG with semantic-aware adaptive CFG scalesControlNet on SD-v1.5, Canny · ControlNet CannyFID: 8.670 -> 8.382Helped
Replace global CFG with semantic-aware adaptive CFG scalesControlNet on SD-v1.5, Canny · ControlNet CannyCLIP Score: 0.3006 -> 0.3019Helped
Replace global CFG with semantic-aware adaptive CFG scalesControlNet on SD-v1.5, segmentation · ControlNet SegmentationFID: 9.595 -> 9.549Helped
Replace global CFG with semantic-aware adaptive CFG scalesControlNet on SD-v1.5, segmentation · ControlNet SegmentationCLIP Score: 0.3004 -> 0.3017Helped
Use a foreground benchmarking mask instead of a mask covering all patches (ablation)S-CFG on SD-v1.5 · MSCOCO 256×256CLIP ScoreHelped
Remove self-attention-based segmentation completion (ablation)S-CFG on SD-v1.5 · MSCOCO 256×256image qualityHurt

Surprising findings

Limitations

Experimental setup

Datasets: MSCOCO validation

Benchmarks: MSCOCO 256x256 FID-30K MSCOCO CLIP score

Metrics: FID-30K CLIP score human preference vote rate

Baselines: CFG (global scale)

Builds on: classifier-free guidance Prompt-to-Prompt Attend-and-Excite DDIM DPM-Solver++

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