LLMScore: Unveiling the Power of Large Language Models in Text-to-Image Synthesis Evaluation

Yujie Lu, Xianjun Yang, Xiujun Li, Xin Eric Wang, William Yang Wang

TL;DR

This paper introduces LLMScore, a novel framework that leverages Large Language Models (LLMs) to evaluate text-to-image synthesis. LLMScore goes beyond simple image-text matching by generating multi-granularity visual descriptions and then using LLMs with specific instructions to assess compositional alignment, achieving significantly higher correlation with human judgments than existing metrics.

What Problem Does This Paper Address?

Evaluating the quality of generated images from text prompts is a critical but challenging task in text-to-image synthesis. Existing automatic metrics, like CLIPScore and BLIP, primarily focus on image-text matching and often fail to capture the nuanced compositional aspects of an image, such as the correct attributes (color, shape, location) of multiple objects and their relationships. This leads to a poor correlation with human evaluations, which are more adept at identifying these compositional errors. Furthermore, current metrics provide a single, often uninterpretable score and lack the flexibility to adapt to different evaluation objectives (e.g., overall quality vs. specific error counting).

Methods

LLMScore tackles this problem in two main stages:

  1. LLMs As Multi-Granularity Visual Descriptor: The generated image is first processed to create detailed visual descriptions. This involves:
  2. Global Image Description: Generating an image-level caption and incorporating image meta-information (like resolution).
  3. Local Region Descriptions: Using a model like GRiT to extract regions of interest and generate dense textual descriptions for each object, including its bounding box.
  4. Object-Centric Visual Description: An LLM (GPT-4 by default) fuses the global and local descriptions to create a coherent, object-centric description that captures multi-granularity compositionality, including attributes and relationships.
  5. LLMs As Text-to-Image Evaluator: The LLM is then used to evaluate the alignment between the original text prompt and the generated object-centric visual description. This stage involves:
  6. Instruction-Following Rating: The LLM is given specific evaluation instructions (e.g., "Rate the overall quality..." or "Provide the number of compositional errors...") to guide its assessment.
  7. Rule-Enhanced Rating: To improve consistency and enable decimal scores, the LLM's output is refined using heuristic rules based on atomic tasks (e.g., counting specified vs. matched objects/attributes).
  8. Rationale Generation: The LLM provides a textual rationale explaining the generated score, offering interpretability.

Datasets

The paper evaluates LLMScore on a combination of datasets:

  • General Purpose Datasets: MSCOCO (2014 & 2017), DrawBench, and PaintSkills.
  • Compositional Purpose Datasets: Concept Conjunction (CC) and Attribute Binding Contrast (ABC).

These datasets total 1200 text prompts for human correlation experiments.

Key Insights and Ideas

  • Compositionality is Key: Simple image-text matching is insufficient for evaluating text-to-image synthesis. Capturing object-level compositionality is crucial for aligning with human judgment.
  • LLMs as Powerful Evaluators: LLMs, with their reasoning and instruction-following capabilities, can effectively mimic human evaluation by understanding complex visual descriptions and specific criteria.
  • Multi-Granularity Descriptions Improve Accuracy: Combining global and local visual descriptions, and then processing them into an object-centric format, provides a richer representation that LLMs can use for more accurate evaluation.
  • Interpretability Matters: LLMScore's ability to generate rationales alongside scores is a significant advantage, offering insights into why an image is rated a certain way.
  • Flexibility in Evaluation: The instruction-following nature of LLMs allows LLMScore to adapt to various evaluation objectives (e.g., overall quality, error counting) simply by changing the prompt.

Key Results

  • LLMScore achieves the highest human correlation across all tested datasets compared to existing metrics like CLIP and BLIP.
  • On compositional datasets, LLMScore achieves 58.8% higher Kendall's τ correlation than CLIP and 31.2% higher than BLIP.
  • The framework demonstrates strong performance on both general and compositional text-to-image evaluation benchmarks.
  • LLMScore provides interpretable rationales that accurately explain the scores, highlighting specific errors or agreements.

Limitations and Future Work

  • Reliance on GPT: The current implementation relies on GPT-4, which is not publicly accessible and can be costly. Future work could explore using publicly available LLMs (like LLaMA) or fine-tuned models.
  • Potential for Inherited Biases: As LLMScore incorporates existing LLMs, it may inherit their biases, which could propagate to the evaluation metric. Future work should be cautious about applying LLMScore in specific domains where harmful biases might be present.
  • Further Exploration of LLM Variants: The paper notes that while GPT-4 improves overall correlation, its performance on error counting is comparable to GPT-3.5, suggesting that counting accuracy in LLMs is still an area for improvement.

Summary updated

BibTeX
@inproceedings{lu2023llmscore,
  author = {Yujie Lu and Xianjun Yang and Xiujun Li and Xin Eric Wang and William Yang Wang},
  title = {{LLMScore: Unveiling the Power of Large Language Models in Text-to-Image Synthesis Evaluation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=OJ0c6um1An},
}
Figure