atlas

Research map / Large language models / Language, safety and interpretability

Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 4 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.

Shows that decoder-only LLMs degrade diffusion prompt following and proposes LLM-infused Diffuser (instruction insertion, bidirectional linguistic token refiner, collaborative refiner over multiple LLMs), instantiated as LI-DiT-1B/10B.

Problem

Decoder-only LLMs used directly as text encoders for diffusion models degrade prompt following, due to next-token-prediction misalignment and causal-attention positional bias that hurts later prompt tokens.

Approach

Insert an instruction before the prompt so the LLM focuses on image-relevant attributes, then pass LLM hidden states through a full-attention (non-causal) timestep-gated linguistic token refiner, and fuse multiple LLMs' outputs with a collaborative refiner using cross-attention across branches.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LI-DiT-1B instead of open-source comparison modelstext-to-image generation · T2I-CompBench and DPG-Benchalignment scoreHelped
Scale the proposed model from LI-DiT-1B to LI-DiT-10BLI-DiT · T2I-CompBench, GenEval, and DPG-Benchalignment scoreMixed
Add an image-description instruction (ablation)base LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 38.72 -> 38.47No clear effect
Use multimodal instruction fine-tuning (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 38.72 -> 44.22Helped
Add an image-description instruction to multimodal instruction-tuned LLaMA3 (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 44.22 -> 48.41Helped
Add a linguistic token refiner (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 38.72 -> 54.02Helped
Add a linguistic token refiner with full attention (ablation)T5 encoder · T2I-CompBenchT2I-avg: 48.82 -> 49.52No clear effect
Use causal attention in the token refiner instead of full attention (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 54.02 -> 45.84Hurt
Increase token-refiner blocks from 1 to 2 (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 48.25 -> 54.02Helped
Increase token-refiner blocks from 2 to 3 (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 54.02 -> 55.13Helped
Remove gating from the token refiner (ablation)LLaMA3-8B prompt encoder · T2I-CompBenchT2I-avg: 54.02 -> 53.47Hurt
Fuse LLaMA and Qwen representations with a collaborative refiner instead of concatenation (ablation)LI-DiT text encoder · T2I-CompBenchT2I-avg: 58.32 -> 60.31Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet CC12M LAION-5B internal bilingual datasets T2I-CompBench

Benchmarks: T2I-CompBench GenEval DPG-Bench

Metrics: T2I-CompBench attribute scores GenEval overall DPG-Bench average human preference for alignment and quality

Baselines: SD v1.5 SD v2 SD XL SD3-1B DALL-E 2 PixArt-alpha DALL-E 3 SD3-8B Midjourney V6

Builds on: DiT PixArt-alpha Stable Diffusion 3 T5 latent diffusion models

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