atlas

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

A Comprehensive Study of Decoder-Only LLMs for Text-to-Image Generation

CVPR 2025 · Image generation › Text-to-image diffusion · approach: T2I evaluation and controllable adapters · 1 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.

Systematically compares 12 text encoders (T5, CLIP, decoder-only LLMs, and LLM-based embedding models) in a controlled SD2-style U-Net pipeline, finding that layer-normalized averaging across all LLM layers beats last-layer embeddings and T5.

Problem

Most text-to-image diffusion models use outdated encoders like T5 and CLIP, and it is unclear whether decoder-only LLMs, and how to extract embeddings from them, improve text-image alignment, since prior works trained on different proprietary data and setups.

Approach

Replace only the text encoder in a fixed Stable Diffusion v2-style U-Net training pipeline and compare embedding extraction strategies; the key finding is that averaging layer-normalized hidden states across all LLM layers, rather than using the last layer, yields better compositional alignment than T5.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use layer-normalized average of all layers instead of last-layer embeddingsMistral-7B · GenAI-BenchVQAScore Overall Average: 0.675 -> 0.769Helped
use layer-normalized average of all layers instead of last-layer embeddingsbge-Gemma2 · GenAI-BenchVQAScore Overall Average: 0.737 -> 0.789Helped
use last-layer embeddings from decoder-only LLMs instead of T5-XXLMistral-7B, Llama3, Qwen2, Gemma2 and embedding models · GenAI-BenchVQAScore Overall Average: e.g. Mistral-7B 0.675 vs T5-XXL 0.741Hurt
use a single middle layer (15th) instead of last layer (ablation)Mistral-7B · GenAI-BenchVQAScore Overall Average: 0.675 -> 0.725Helped
use first layer (layer 0) embeddings (ablation)Mistral-7B · GenAI-BenchVQAScore Overall Average: 0.375 vs 0.675 last layerHurt
plain average across layers without layer normalization (ablation)Mistral-7B · GenAI-BenchVQAScore Overall Average: 0.675 -> 0.731 (norm avg 0.769 is better still)Helped
apply layer normalization before averaging vs plain averaging (ablation)Mistral-7B and bge-Gemma2 · GenAI-BenchVQAScore Overall Average: Mistral 0.731 -> 0.769; bge-Gemma2 0.774 -> 0.789Helped
layer-normalized averaging applied to T5 embeddings (ablation)T5-XXL · GenAI-BenchVQAScore Overall Average: 0.741 -> 0.747No clear effect
add pooled global embedding conditioning (SDXL-style) to last-layer embeddings (ablation)bge-Gemma2 and sfr-Mistral · GenAI-BenchVQAScore Overall Average: bge-Gemma2 0.737 -> 0.737; sfr-Mistral 0.710 -> 0.698No clear effect
fine-tune LLM into embedding model (bge-Gemma2, sfr-Mistral vs gte-Qwen2)Gemma2-9B, Mistral-7B, Qwen2-7B · GenAI-BenchVQAScore Overall Average: bge-Gemma2 0.737 vs Gemma2 0.710 (up); sfr-Mistral 0.710 vs Mistral-Instruct/base 0.675 (up); gte-Qwen2 0.482 vs Qwen2 0Mixed
scale LLM size (Qwen2 1.5B to 7B, last layer) (ablation)Qwen2 · GenAI-BenchVQAScore Overall Average: 0.655 -> 0.683Helped
scale LLM size (Gemma2 2B to 9B, last layer) (ablation)Gemma2 · GenAI-BenchVQAScore Overall Average: 0.640 -> 0.710Helped

Surprising findings

Limitations

Experimental setup

Datasets: LAION-Aesthetics GenAI-Bench

Benchmarks: GenAI-Bench

Metrics: VQAScore

Baselines: CLIP-ViT-H/14 T5-XXL Playground-v3 Lumina-T2X Sana

Builds on: Stable Diffusion VQAScore SDXL pooled conditioning

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