Introduction
While text-to-image diffusion models have achieved remarkable success in generating high-quality, photorealistic imagery, they frequently struggle with "compositional" prompts. These are instructions that require the model to manage multiple objects, specific attribute bindings (like color), or precise spatial arrangements. This paper presents a novel framework that leverages the reasoning capabilities of Large Vision-Language Models (LVLMs) to evaluate, fine-tune, and iteratively refine generated images, ensuring they align more closely with complex textual descriptions.
The Compositional Challenge in Diffusion Models
Current state-of-the-art models, such as Stable Diffusion, often exhibit failures in attribute binding and counting. For instance, a prompt requesting "three black cats and a white dog" might result in an image with an incorrect number of animals or the wrong colors assigned to specific subjects. These issues stem from the model's internal attention mechanisms, which can fail to correctly associate specific descriptors with their intended targets.
Furthermore, standard evaluation metrics like CLIPScore are often too coarse to detect these subtle compositional errors, as they measure global similarity rather than discrete factual alignment. Most existing research focuses on improving models during the training phase, leaving a significant opportunity to address errors during the inference process.
Proposed Methodology
The authors propose a comprehensive three-stage pipeline designed to bridge the gap between textual intent and visual output:
1. LVLM-based Evaluation
Inspired by the TIFA framework, the system uses a Large Language Model (LLM) to decompose a prompt into a series of objective "Yes/No" questions (e.g., "Is there a suitcase?", "Is the suitcase blue?"). An LVLM, such as Google’s Bard, then analyzes the generated image to answer these questions. The resulting accuracy score provides a fine-grained metric for text-image alignment.
2. Reward Feedback Learning (ReFL)
To improve the base model, the researchers employ Reward Feedback Learning. During fine-tuning, the diffusion model is trained on a variety of prompts, with the LVLM’s alignment accuracy serving as a reward signal. This process encourages the model to prioritize the generation of features that lead to higher factual consistency.
3. LVLM-guided Iterative Editing
This stage introduces a "plug-and-play" mechanism for inference-time corrections. If the LVLM identifies a misalignment in the initial output—such as a missing object or an incorrect color—the system utilizes the Segment Anything Model (SAM) to mask the problematic region. A diffusion-based inpainting algorithm then edits that specific area. This cycle of critique and correction repeats until the LVLM confirms the image satisfies the prompt requirements.
Results and Key Insights
Quantitative and Qualitative Performance
Evaluation on the T2I-CompBench dataset demonstrated that the fine-tuned model achieved a CLIPScore of 0.3032, surpassing the baseline Stable Diffusion score of 0.3010. Qualitatively, the framework showed significant improvements in handling spatial relationships and attribute binding.
The Role of Feedback Loops
By treating the LVLM as a "supervisor," the system moves beyond "vibe-based" generation toward a more structured, fact-based approach. Decomposing the generation task into discrete verification steps allows for surgical corrections that improve both the accuracy and the aesthetic quality of the final image by reducing object distortions.
Limitations and Future Work
The primary bottleneck of this approach is its reliance on the LVLM's accuracy. If the supervisor misinterprets the image, the subsequent corrections will be inherently flawed. Additionally, the iterative nature of the editing process increases computational overhead compared to single-shot generation. Future research will focus on integrating more advanced LVLMs as they become available and optimizing the efficiency of the iterative feedback loop.
Summary updated