Divide, Evaluate, and Refine: Evaluating and Improving Text-to-Image Alignment with Iterative VQA Feedback

Jaskirat Singh, Liang Zheng

Introduction

State-of-the-art text-to-image (T2I) models, such as Stable Diffusion, have demonstrated a remarkable ability to generate high-quality artistic imagery. However, these models often struggle with "semantic alignment" when faced with complex prompts. For instance, a request for a "penguin wearing a bowtie standing on a surfboard in a swimming pool" might result in an image where the bowtie is missing or the surfboard is replaced by a block of ice. These fine-grained errors occur because the underlying models often fail to capture all the distinct entities and relationships specified in a prompt.

To address this, researchers from The Australian National University have introduced "Divide, Evaluate, and Refine," a training-free framework designed to detect and correct these misalignments through an iterative feedback loop. By leveraging Large Language Models (LLMs) and Visual Question Answering (VQA) models, the framework ensures that every component of a complex prompt is represented in the final output.

The Challenge of Semantic Alignment

Traditional evaluation metrics like the CLIP score are "holistic," meaning they compare the entire image to the entire prompt. While effective for general themes, CLIP is often insensitive to missing details. It might assign a high score to an image of a "pink tree and a yellow car" even if the car is absent, provided the trees are rendered beautifully. This lack of granularity makes it difficult to automatically identify and fix specific failures in AI-generated art.

The "Divide, Evaluate, and Refine" Framework

The proposed framework operates in three distinct stages to bridge the gap between text and image:

1. Divide: Prompt Decomposition

The process begins by using an LLM (such as GPT-4) to break a complex prompt into a series of "disjoint assertions." For example, the prompt "A scuba diver playing a guitar underwater" is decomposed into a checklist:

  • "The image shows a scuba diver."
  • "The scuba diver is playing a guitar."
  • "The setting is underwater."

2. Evaluate: The DA-Score

The researchers introduce the Decompositional-Alignment-Score (DA-Score). A VQA model (such as BLIP) is tasked with answering "Yes/No" questions based on these assertions. By calculating the probability of a positive response for each assertion, the system can pinpoint exactly which part of the prompt the model failed to generate. If the VQA model indicates a low probability that the diver is playing a guitar, the system identifies this as the primary failure point.

3. Refine: Iterative Feedback

Instead of restarting the generation, the system uses the VQA scores as feedback to guide the diffusion process. It identifies the "least-aligned" assertion and boosts its influence using two techniques:

  • Prompt Weighting: Increasing the numerical weight of the specific words associated with the missing element.
  • Cross-Attention Control: Forcing the model to allocate more "attention" to specific pixels during the denoising process to ensure the object is rendered.

This loop repeats for several iterations, focusing on the most problematic elements until the image meets a quality threshold or aligns with the full prompt.

Benchmarking with Decomposable-Captions-4k

To validate their approach, the authors developed a new benchmark called Decomposable-Captions-4k. This dataset includes:

  • 4,160 prompts ranging in complexity from two to five distinct subjects.
  • 24,960 human annotations providing a ground-truth scale (1 to 5) for how well images match their prompts.
  • A variety of "realism difficulty" levels, from simple scenes to surreal scenarios like "a bear playing a piano on a mountain top."

Key Results and Insights

The framework demonstrates several advantages over existing methods:

  • Superior Correlation: The DA-Score shows a significantly higher correlation with human judgment than traditional CLIP or BLIP scores, making it a more reliable metric for alignment.
  • Performance Gains: In user studies, this iterative approach outperformed the previous state-of-the-art method (Attend-and-Excite) by 8.7% in overall alignment accuracy.
  • Efficiency: Because the system can "early exit" once all assertions are satisfied, it only adds a marginal increase to inference time—typically 10-12 seconds per image—compared to other complex guidance techniques.
  • Training-Free: A major benefit of this framework is that it requires no retraining or fine-tuning of the underlying diffusion models; it simply guides the existing generation process more effectively.

Limitations and Future Directions

While the framework marks a significant step forward, it is not without limitations. The refinement process is heavily dependent on the accuracy of the VQA model; if the VQA model misidentifies an object, the refinement will be flawed. Additionally, some prompt elements are not "visually verifiable" (e.g., "a park on a Tuesday"), which poses a challenge for any VQA-based system.

Future research may explore the use of more advanced VQA models like BLIP-2 or utilize this framework to generate high-quality synthetic datasets, which could be used to train future diffusion models to be more inherently "obedient" to complex instructions.

Summary updated

BibTeX
@inproceedings{singh2023divide,
  author = {Jaskirat Singh and Liang Zheng},
  title = {{Divide, Evaluate, and Refine: Evaluating and Improving Text-to-Image Alignment with Iterative VQA Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=CLjBBd8u2j},
}
Figure