Diffusion Beats Autoregressive: An Evaluation of Compositional Generation in Text-to-Image Models

Arash Mari Oriyad, Parham Rezaei, Mahdieh Soleymani Baghshah, Mohammad Hossein Rohban

TL;DR

While autoregressive models have recently challenged diffusion models in pure visual generation quality, their ability to handle complex prompt composition tells a different story. This study benchmarks nine state-of-the-art text-to-image (T2I) models using T2I-CompBench, revealing that vanilla autoregressive generation (LlamaGen) significantly underperforms diffusion models of comparable size. Meanwhile, the open-source diffusion model FLUX matches—and in some metrics exceeds—the compositional capabilities of OpenAI's closed-source DALL-E 3.

What Problem Does This Paper Address?

Text-to-image models frequently stumble when prompts demand compositional reasoning. These failures manifest in four primary ways:

  • Entity missing: Dropping an object entirely from multi-object scenes.
  • Attribute binding errors: Swapping attributes between objects (e.g., painting a yellow cube red when a red sphere is also present).
  • Spatial inconsistencies: Misinterpreting relative positions in 2D or 3D space ("left of", "behind").
  • Numeracy failures: Miscounting items specified in the text.

While recent autoregressive architectures like LlamaGen claim visual quality on par with diffusion models, prior work lacked a direct, rigorous comparison between diffusion and autoregressive paradigms on complex compositionality. This paper provides that empirical comparison.

Methods

The authors evaluate nine prominent T2I models spanning two generative paradigms across five model families:

  • Latent Diffusion: Stable Diffusion (SD-v1.4, SD-v2, SD-XL)
  • Closed-source Diffusion: DALL-E 3
  • Diffusion Transformer (DiT): PixArt-$\alpha$ (utilizing DiT with dense recaptioning)
  • Flow-Matching / Hybrid DiT: FLUX (FLUX-Dev and FLUX-Schnell)
  • Vanilla Autoregressive: LlamaGen (Stage 1 at $256 \times 256$ and Stage 2 at $512 \times 512$, using discrete image tokenization with next-token prediction)

Evaluations follow the automated metrics defined in T2I-CompBench:

  • Attribute Binding: Assessed via Visual Question Answering using BLIP-VQA.
  • Spatial & Numeracy: Assessed via the UniDet object detector to verify bounding boxes, relative coordinates, and item counts.
  • Non-Spatial & Complex Compositions: Assessed via CLIP score, GPT-4V multimodal evaluation, ShareGPT-4V Chain-of-Thought (Share-CoT), and an integrated "3-in-1" metric combining CLIP, BLIP-VQA, and UniDet.

Datasets

  • Evaluation Dataset: T2I-CompBench, consisting of 300 validation prompts per subcategory:
  • Attribute Binding: Color, shape, and texture (900 prompts total).
  • Object Relationships: 2D spatial, 3D spatial, and non-spatial interactions (900 prompts total).
  • Numeracy: Counting and numerical consistency (300 prompts).
  • Complex Compositions: Challenging real-world combinations of objects, attributes, and relations (300 prompts).
  • Training Datasets (Evaluated Models): LAION-5B, LAION-COCO, and SA-1B (used during PixArt-$\alpha$ pretraining).

Key Insights and Ideas

  • The Inductive Bias Gap: Next-token autoregressive generation without visual or spatial inductive biases struggles with compositional prompt alignment. LlamaGen underperforms SD-v1.4 across every metric, despite having a similar parameter footprint (~775M vs. 860M) and comparable inference times.
  • Conditioning Complexity: While autoregressive models perform competitively under simple class conditioning, mapping complex multi-clause text to a 1D sequence of visual tokens appears significantly harder than continuous latent denoising.
  • FLUX Rivals DALL-E 3: The open-weight FLUX models demonstrate that open-source diffusion models have effectively closed the compositionality gap with proprietary models like DALL-E 3.
  • Data Quality & Recaptioning Matter: PixArt-$\alpha$ (600M parameters) outperforms SD-XL (3.5B parameters) on most spatial and attribute binding tasks, underscoring the decisive role of dense, high-quality recaptioning over raw model scale.

Key Results

Category / Metric SD-v1.4 SD-XL PixArt-$\alpha$ DALL-E 3 FLUX-Schnell LlamaGen-Stage1
Color Binding ($\uparrow$) 0.376 0.588 0.670 0.778 0.740 0.271
Shape Binding ($\uparrow$) 0.358 0.469 0.493 0.620 0.571 0.391
2D Spatial ($\uparrow$) 0.125 0.213 0.206 0.286 0.292 0.084
3D Spatial ($\uparrow$) 0.303 0.357 0.390 0.374 0.391 0.227
Numeracy ($\uparrow$) 0.446 0.499 0.506 0.588 0.606 0.357
Complex (3-in-1) ($\uparrow$) 0.308 0.324 — 0.377 0.368 0.283
Complex (GPT-4V) ($\uparrow$) 0.714 0.756 — 0.828 0.823 0.584
  • Top Performers: DALL-E 3 leads in attribute binding (Color: 0.778, Shape: 0.620, Texture: 0.704). FLUX-Dev and FLUX-Schnell lead in Numeracy (0.618 and 0.606 vs. DALL-E 3's 0.588) and 2D/3D spatial reasoning.
  • LlamaGen Lag: LlamaGen-Stage1 achieved only 0.084 in 2D Spatial and 0.357 in Numeracy, falling well behind SD-v1.4 (0.125 and 0.446, respectively). Fine-tuning in Stage 2 did not resolve these issues, resulting in lower scores on numeracy (0.265) and 3D spatial positioning (0.155).

Limitations and Future Work

  • Scope of Autoregressive Architectures: The evaluation focuses solely on LlamaGen as a representative vanilla autoregressive model; other discrete tokenization schemes, orderings, or bidirectional masked-token architectures remain unexamined.
  • Tokenizer Granularity: The authors note that the choice of quantized visual autoencoder (codebook size, compression ratio) likely imposes an information bottleneck that hurts compositional alignment.
  • Future Directions: Investigating visual inductive biases within the next-token prediction paradigm and designing tokenizers specifically optimized for multi-concept grounding and relational understanding.

Summary updated

BibTeX
@inproceedings{oriyad2024diffusion,
  author = {Arash Mari Oriyad and Parham Rezaei and Mahdieh Soleymani Baghshah and Mohammad Hossein Rohban},
  title = {{Diffusion Beats Autoregressive: An Evaluation of Compositional Generation in Text-to-Image Models}},
  booktitle = {Compositional Learning @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=WxRS0Nld3X},
}
Figure