CompAlign: Improving Compositional Text-to-Image Generation with a Complex Benchmark and Fine-Grained Feedback

Yixin Wan, Kai-Wei ChangarXiv 2025 · DOI

Abstract

Text-to-image (T2I) models often struggle with complex compositional prompts involving multiple objects and precise spatial relationships. We present CompAlign, a framework that introduces a rigorous benchmark and a fine-grained evaluation method using Multimodal Large Language Models (MLLMs). By decomposing complex prompts into atomic questions, CompAlign provides interpretable feedback that can be used to align diffusion models, significantly enhancing their compositional accuracy.

Introduction

While state-of-the-art text-to-image models like DALL-E 3 generate visually impressive results, they often fail when prompts require precise "compositionality"—the ability to correctly bind attributes (like color or texture) to specific objects and arrange them in complex spatial layouts. For instance, a model might correctly render a "red cube" and a "blue sphere" but swap their relative positions. Existing benchmarks are often too simplistic, focusing on only two objects, and rely on "black-box" scoring metrics that lack interpretability. CompAlign addresses these gaps by providing a challenging testbed and a transparent evaluation method that can be used to improve model alignment.

Methodology

The researchers proposed a three-pillar approach to address compositional failures:

  1. CompQuest (Evaluation Framework): Instead of relying on a single holistic score, CompQuest breaks a prompt down into atomic questions (e.g., "Is there a blue jacket on the left of the second row?"). An MLLM answers these with a simple "Yes" or "No," which are then aggregated into an Aggregated Compositional Accuracy (ACA) score.
  2. Alignment Framework: The ACA score is used as a "preference signal." Images scoring above a threshold are considered "wins," and those below are "losses." Diffusion models are then fine-tuned using these automated binary signals, bypassing the need for expensive human labeling.
  3. Data Augmentation: To assist open-source models, the authors "bootstrap" them using images generated by stronger models (like DALL-E 3) as training examples for complex compositions.
The CompQuest evaluation pipeline decomposes prompts into atomic questions for fine-grained MLLM feedback.

The CompAlign Benchmark

The study introduces the CompAlign benchmark, consisting of 900 complex prompts. Unlike previous datasets, it emphasizes 3D spatial relationships (rows and columns) and includes up to six subjects with varied attribute bindings such as color, texture, and gender. Testing revealed a "complexity wall": model performance craters as spatial complexity increases. For example, DALL-E 3's accuracy drops from ~96% on simple layouts to ~63% on complex 2-row, 3-subject configurations.

Results and Key Insights

The evaluation across various models highlighted a massive performance gap between closed-source commercial models and open-weight models. OpenAI’s gpt-image-1-high led the benchmark with an overall ACA of 93.51%, followed by Flux.1 (83.92%) and SD3.5 (82.69%).

Crucially, the CompAlign alignment framework successfully improved base models. For instance, Stable Diffusion 2’s overall accuracy increased from 46.28% to 53.08%. This method consistently outperformed previous alignment techniques, which sometimes degraded performance on specific attribute-binding tasks.

Comparison of Average Compositional Accuracy across different categories for SD2 variants.

An interesting observation was the "Collage Hack": high-performing models sometimes satisfy complex prompts by generating what looks like a collage of separate images rather than one natural scene. While this satisfies compositional requirements, it fails on aesthetic naturalness.

Limitations and Future Work

Despite its success, CompAlign faces challenges. As models improve at following strict spatial instructions, they may lose the "vibe" of a natural photo. Future work must balance compositional accuracy with aesthetic harmony. Additionally, the framework's reliance on MLLM judges (like GPT-4o-mini) means that any inherent spatial biases in the judge could skew results. Finally, while more automated than human labeling, running thousands of MLLM queries remains computationally expensive, prompting a need for more efficient feedback signals.

Summary updated

BibTeX
@misc{wan2025compalign,
  author = {Yixin Wan and Kai-Wei Chang},
  title = {{CompAlign: Improving Compositional Text-to-Image Generation with a Complex Benchmark and Fine-Grained Feedback}},
  year = {2025},
  eprint = {2505.11178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.11178},
}
Figure