atlas

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

Text Embedding is Not All You Need: Attention Control for Text-to-Image Semantic Alignment with Text Self-Attention Maps

CVPR 2025 · Image generation › Text-to-image diffusion · approach: Compositional text-to-image 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.

Proposes T-SAM, a training-free test-time method that optimizes diffusion latents so cross-attention token similarity matches text encoder self-attention maps, improving text-image alignment without external parsers.

Problem

Text-to-image diffusion models suffer semantic misalignment (missing objects, attribute mis-binding) because cross-attention maps of syntactically related tokens are not properly spatially aligned, and CLIP text embeddings fail to encode syntactic relations.

Approach

Text self-attention maps from the text encoder capture syntactic relations that text embeddings lose (attention sink on bos token); the method transfers these relations to cross-attention by minimizing a loss between the cross-attention cosine-similarity matrix and the text self-attention matrix, updating latent noise at inference time.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
align cross-attention similarity with text self-attention mapsSD · TIFA benchmarkTIFA: 0.79 -> 0.83Helped
align cross-attention similarity with text self-attention mapsSD · TIFA benchmarkCLIP-I: 0.33 -> 0.34Helped
align cross-attention similarity with text self-attention mapsSD · TIFA benchmarkCLIP-T: 0.77 -> 0.77No clear effect
align cross-attention similarity with text self-attention mapsSD · Animals-Objects promptsCLIP-I (image-text prompt): 0.34 -> 0.37Helped
align cross-attention similarity with text self-attention mapsSD · Objects promptsCLIP-I (prompt-caption): 0.25 -> 0.28Helped
align cross-attention similarity with text self-attention mapsSD · Animals-Objects promptsCLIP-I (prompt-caption): 0.26 -> 0.28Helped
align cross-attention similarity with text self-attention mapsSD · Animals-Objects promptsCLIP-T (full prompt): 0.80 -> 0.85Helped
align cross-attention similarity with text self-attention mapsPixArt-ϖ · Objects promptsCLIP-T: 0.81 -> 0.82Helped
align cross-attention similarity with text self-attention mapsPixArt-ϖ · Animals-Objects promptsCLIP-T: 0.85 -> 0.86Helped
align cross-attention similarity with text self-attention mapsSD · Objects promptsCLIP-T (full prompt): 0.76 -> 0.81Helped

Surprising findings

Limitations

Experimental setup

Datasets: Attend-n-Excite prompt sets TIFA v1.0 prompts

Benchmarks: TIFA v1.0 Attend-n-Excite prompts

Metrics: TIFA score CLIP-I CLIP-T user preference

Baselines: Stable Diffusion Linguistic Binding Attend-n-Excite CONFORM

Builds on: Prompt-to-Prompt Attend-and-Excite CONFORM Linguistic Binding

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