TL;DR
Existing automatic evaluation metrics for text-to-image (T2I) models struggle to understand complex, compositional prompts—such as correctly binding colors to specific objects. This paper introduces LLMScore, a novel framework that converts images into detailed, multi-level text descriptions and uses Large Language Models (like GPT-4) to evaluate text-image alignment. LLMScore achieves state-of-the-art correlation with human judgments while providing readable explanations for its scores.
What Problem Does This Paper Address?
Text-to-image synthesis has advanced rapidly, but our ability to automatically evaluate these models has lagged behind. Standard metrics like CLIPScore or BLIP rely on global image-text embeddings. While they are great at checking if the general "vibe" of an image matches a prompt, they fail miserably at compositionality.
If a prompt asks for "a red book and a yellow vase," a T2I model might generate a yellow book and a red vase. CLIP will often give this a high score because the concepts "red," "yellow," "book," and "vase" are all present in the image. Furthermore, these metrics spit out a single, opaque number, offering developers no insight into why an image failed. The authors tackle this by creating an interpretable metric that can accurately evaluate object-level details, counts, and spatial relationships.
Methods
Instead of relying on opaque embedding distances, the authors leverage the reasoning power of LLMs. Because standard LLMs process text rather than images, the authors built a pipeline to translate the visual world into a highly detailed textual format.
- Multi-Granularity Visual Descriptor: The system extracts two levels of information from the generated image.
- Global: A standard image captioning model generates a high-level summary of the scene.
- Local: A dense captioning model extracts specific regions of interest, outputting descriptions and bounding boxes for individual objects.
- An LLM then fuses these global and local descriptions into a single, coherent "object-centric" visual description.
- LLM as Evaluator: The original text prompt, the object-centric image description, and specific evaluation instructions (e.g., "Rate the overall alignment" or "Count the compositional errors") are fed into the LLM.
- Rule-Enhanced Rating: LLMs can sometimes struggle to output consistent decimal scores. To fix this, the authors break the evaluation into deterministic "atomic tasks." The LLM counts the objects requested vs. objects present, and attributes requested vs. attributes present. A simple heuristic formula combines these counts into a final, highly reliable score.
- Rationale Generation: Finally, the LLM is prompted to output a short paragraph explaining exactly why it gave the score it did (e.g., "The prompt asked for a red car, but the image contains a white car").
Datasets
To test human correlation, the authors generated 2,400 images using Stable Diffusion 2.1 and DALL-E 2 across a variety of prompt datasets:
- GeneralBench (General Purpose): Prompts sampled from MSCOCO (2014 & 2017), DrawBench, and PaintSkills.
- CompBench (Compositional Purpose): Prompts from Concept Conjunction (CC) and Attribute Binding Contrast (ABC), which are specifically designed to trick models with complex object-attribute pairings.
Key Insights and Ideas
- Text is a powerful bridge for visual reasoning: By translating an image into a highly detailed, multi-level text representation, we can unlock the massive logical reasoning capabilities of LLMs to perform visual evaluation tasks that standard vision encoders fail at.
- Local context is the secret to compositionality: Global image captions aren't enough to evaluate complex prompts. Injecting bounding-box-level dense captions is what actually gives the LLM the ability to verify if the red is actually bound to the book and not the vase.
- Atomic tasks beat holistic guessing: Asking an LLM to "rate this from 0 to 1" yields inconsistent results. Forcing the LLM to act like a human grader—ticking off a checklist of requested objects and attributes—makes the resulting metric vastly more stable and aligned with human annotators.
- Interpretability is a feature, not a bonus: A score of 0.4 is useless for debugging a model. LLMScore's ability to output a rationale makes it an actionable tool for model developers.
Key Results
- State-of-the-Art Human Correlation: LLMScore achieved the highest correlation with human judgments across all tested datasets, beating out CLIP, NegCLIP, BLIP-ITM, and BLIP-ITC.
- Massive Gains on Compositionality: On the tricky compositional datasets (CompBench), LLMScore achieved a Kendall’s $\tau$ correlation that was 58.8% higher than CLIP and 31.2% higher than BLIP.
- Better Error Counting: LLMScore proved much more capable of explicitly counting errors (e.g., missing objects, wrong colors) than baseline metrics, though the authors note this remains a highly challenging task even for advanced LLMs.
Limitations and Future Work
The authors acknowledge a few key limitations. First, the framework relies heavily on proprietary, paid APIs (like GPT-4), which limits its accessibility as a fast, plug-and-play metric for the broader public. Second, because it relies on existing LLMs and captioning models, LLMScore may inherit and propagate their underlying biases. Finally, while much better than baselines, large language models still occasionally struggle with perfect numerical counting.
Future work suggests replacing proprietary models with publicly available open-source models or developing in-house, fine-tuned multimodal models to streamline the pipeline and reduce costs.
Summary updated