No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generation

Mohammad Hossein Sameti, Amir M. Mansourian, Arash Mari Oriyad, Soheil Fadaee Oshyani, Mohammad Hossein Rohban, Mahdieh Soleymani BaghshaharXiv 2025 · DOI

Introduction

State-of-the-art text-to-image (T2I) models like FLUX.1 and DALL-E 3 have achieved remarkable levels of visual realism. However, they continue to struggle with compositionality—the ability to accurately represent all objects and relationships specified in a complex prompt. A common failure is the "missing object" problem, where a model might generate a "green elephant" but omit a "red mouse" requested in the same sentence.

The root cause often lies in the "coarse" feedback used during generation. Standard evaluation metrics like global CLIP scores measure how well an entire image matches an entire prompt. This global perspective can overlook missing details that are semantically important but visually small. To solve this, we present a framework that utilizes fine-grained feedback and iterative refinement to ensure "no concept is left behind."

Methodology: Fine-Grained Iterative Refinement

The proposed method treats prompt following as a multi-objective optimization problem, utilizing a feedback loop driven by a Large Language Model (LLM) and a specialized scorer.

The iterative framework for test-time optimization, featuring concept extraction, fine-grained scoring (FG-CLIP), and LLM-based prompt refinement.

The process consists of five key stages:

  1. Concept Extraction: LLaMA-3.1 decomposes the user's prompt into atomic concepts (e.g., "six keys," "a rabbit on the right").
  2. Candidate Generation: The base T2I model (FLUX.1) generates a set of candidate images.
  3. Fine-Grained Scoring (FG-CLIP): A specialized version of CLIP evaluates the candidates. Crucially, it provides a global score and individual scores for every extracted concept.
  4. Iterative Refinement: The LLM analyzes these scores. If a concept like "red mouse" has a low score, the LLM rewrites the prompt to emphasize that specific element for the next generation cycle.
  5. Selection: The best-performing images are retained, and the loop repeats for up to 10 iterations.

This approach acts as an adaptive equalizer. In signal processing, a composite signal is made of various frequencies; if one is missing, an equalizer boosts its volume. Similarly, this framework boosts the "volume" of missing prompt concepts until the final image is balanced and faithful.

Experimental Results

The framework was evaluated on two rigorous benchmarks: DrawBench and T2I-CompBench. These datasets test a model's ability to handle colors, counting, spatial relations, and complex attribute binding.

Quantitative Performance

The method significantly outperformed the baseline FLUX.1 model and MILS (a previous state-of-the-art iterative method). On the T2I-CompBench, the alignment score (measured by GPT-4o) rose from 0.717 for the base FLUX model to 0.810 using the proposed optimization. Human judges also preferred the results of this method in head-to-head tests for both image quality and text faithfulness.

Qualitative Analysis

Visual results demonstrate the system's ability to correct common T2I errors, such as incorrect counts or failed spatial arrangements.

Qualitative comparison showing the proposed method's superior performance in handling complex prompts compared to FLUX and MILS.

Conclusion and Future Work

By moving from global to fine-grained feedback, this test-time optimization framework significantly enhances the compositional capabilities of existing T2I models without requiring expensive retraining. While the iterative nature of the process increases computational overhead, the resulting improvements in prompt adherence are substantial. Future research will focus on integrating more robust spatial feedback mechanisms, such as object detectors, to further refine the accuracy of complex scene generation.

Reference: Sameti, M. H., et al. (2025). No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generation. arXiv:2509.23457v1.

Summary updated

BibTeX
@misc{sameti2025no,
  author = {Mohammad Hossein Sameti and Amir M. Mansourian and Arash Mari Oriyad and Soheil Fadaee Oshyani and Mohammad Hossein Rohban and Mahdieh Soleymani Baghshah},
  title = {{No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generation}},
  year = {2025},
  eprint = {2509.23457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.23457},
}
Figure