Abstract
Ensuring that text-to-image (T2I) models faithfully follow complex instructions is a significant challenge in generative AI. Current evaluation metrics, such as CLIPScore, often fail to capture fine-grained details like object counts or spatial relations and lack interpretability. We introduce TIFA (Text-to-Image Faithfulness evaluation with question Answering), a novel automated metric that uses Large Language Models (LLMs) to generate descriptive questions from prompts and Vision Question Answering (VQA) models to verify these details in generated images. TIFA provides a fine-grained, interpretable score that correlates significantly better with human judgment than existing standards.
Introduction: The Faithfulness Gap
The rapid advancement of models like Stable Diffusion has enabled the generation of high-quality visuals. However, these models frequently struggle with compositional prompts—missing objects, failing to count correctly, or misattributing properties (e.g., swapping colors between objects).
The industry standard, CLIPScore, measures global similarity but operates as a "black box," failing to explain why a model failed. It is particularly weak at understanding spatial relations and counting. Other methods, such as image captioning, often overlook specific details requested in the original prompt. TIFA addresses these limitations by providing a diagnostic tool that is both accurate and human-interpretable.
Methodology
TIFA employs a multi-stage pipeline to evaluate how well a generated image adheres to its text prompt:
- Question Generation: An LLM (e.g., GPT-3 or a fine-tuned LLaMA 2) extracts entities and attributes from the text prompt to generate question-answer pairs. For instance, a prompt mentioning "three dogs" would trigger questions about the presence and count of the animals.
- Question Filtering: A text-based QA model (UnifiedQA) verifies that the questions are answerable solely based on the prompt, discarding low-quality pairs.
- Visual Question Answering (VQA): A pre-trained VQA model (such as mPLUG) answers the filtered questions using the generated image.
- Scoring: The TIFA score is the percentage of correct answers. Because questions are categorized (e.g., color, spatial, counting), it provides a detailed breakdown of model performance.
The TIFA v1.0 Benchmark
To standardize evaluation, the authors introduced the TIFA v1.0 benchmark, comprising:
- 4,081 text inputs from MSCOCO and specialized sets like DrawBench and PartiPrompt.
- 25,829 filtered QA pairs across 12 categories, including object, counting, color, and material.
Key Insights and Results
TIFA's primary advantage is its interpretability. Unlike single-float metrics, TIFA identifies specific failure modes. For example, researchers found a "compositional ceiling" where performance drops sharply when prompts exceed five distinct entities.
Performance and Human Correlation
TIFA achieves a Spearman’s correlation of 0.60 with human faithfulness judgments, nearly doubling CLIPScore’s 0.33. It effectively tracks model evolution; Stable Diffusion v2.1 (TIFA: 82.0) shows clear improvements over v1.1 (75.7) in attribute binding and object rendering.
Diagnostic Capabilities
The study reveals that while modern T2I models excel at rendering colors and materials, they consistently struggle with counting and spatial relations. This provides a clear roadmap for future research.
Limitations and Future Work
TIFA's accuracy is dependent on the underlying VQA model. While robust, VQA models can still fail in niche domains like abstract art. Additionally, running multiple VQA queries is more computationally intensive than calculating CLIP embeddings. Future work includes using TIFA as a reward signal for Reinforcement Learning from Human Feedback (RLHF) and integrating more advanced vision-language models like GPT-4V.
Summary updated