atlas

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

A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding Optimization

NeurIPS 2024 · Image generation › Text-to-image diffusion · approach: Inference-time T2I improvement · 0 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.

Analyzes how the causal text encoder of Stable Diffusion causes first-mentioned-object bias and object mixing/missing, proposes a training-free text embedding balance loss (TEBOpt) applied to text embeddings, and an OWL-ViT-based metric for mixture/missing objects.

Problem

Text-to-image diffusion models suffer from information bias toward the first-mentioned object and object mixing/missing when prompts contain multiple objects; the role of the causal text encoder in this failure was previously unexamined.

Approach

Attributes information bias and loss to causal self-attention in the CLIP text encoder, which accumulates earlier tokens into later ones; a training-free loss optimizes text embeddings to push the later object's embedding away from earlier ones while keeping it close to its pure embedding, complemented by existing latent optimization methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add TEBOptStable Diffusion 3 · T2I-CompBench color setInfo bias: 2.07 to 1.30Helped
Add TEBOptStable Diffusion 3 · T2I-CompBench color set2 objects exist: +7.9%Helped
Add TEBOptStable Diffusion 1.4 · T2I-CompBench spatial set2 objects exist: +6.8%Helped
Add TEBOptStable Diffusion 1.4 · T2I-CompBench spatial setInfo bias: from 1.43 to 1.21Helped
Add TEBOptStable Diffusion 1.4 · COCO 2017 val, 5,000 samplesFID: 133.08 to 133.30Hurt
Add TEBOptSDXL-Turbo and SD3 · COCO 2017 val, 5,000 samplesFID: 202.50 to 200.71; 143.77 to 142.20Helped
Replace the later object's token embedding with its pure embedding (ablation)Stable Diffusion 1.4 · 400 two-object prompts2 objects coexistence: 5.25% lossHurt
Mask all given-token embeddings (ablation)Stable Diffusion 1.4 · 400 two-object promptsMixture rate: reduces 2.5% mixture rateHelped
Mask all given-token embeddings (ablation)Stable Diffusion 1.4 · 400 two-object promptsMissing rate: increases 11.75% missing rateHurt
Remove information accumulation across tokens (ablation)Stable Diffusion 1.4 · 400 two-object prompts2 objects exist: 0.00%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: T2I-CompBench

Benchmarks: T2I-CompBench COCO 2017 val

Metrics: object mixture rate object missing rate info bias 2-object coexistence rate FID human agreement accuracy token embedding similarity cross-attention map distance

Baselines: Stable Diffusion 1.4 Structure Diffusion Attend-and-Excite SynGen SD 1.5 + ELLA SDXL-Turbo SD3

Builds on: Stable Diffusion Attend-and-Excite SynGen Structure Diffusion

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