TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering

Yushi Hu, Benlin Liu, Jungo Kasai, Yizhong Wang, Mari Ostendorf, Ranjay Krishna, Noah A Smith

TL;DR

TIFA (Text-to-Image Faithfulness evaluation with question Answering) is a novel, reference-free metric that measures how well a generated image matches its text prompt by using visual question answering (VQA). By decomposing text prompts into multiple choice questions via a language model, TIFA evaluates image alignment with fine-grained interpretability, showing a significantly higher correlation with human judgment than standard metrics like CLIPScore.

What Problem Does This Paper Address?

While modern text-to-image (T2I) models like Stable Diffusion produce stunning visuals, they frequently struggle with "prompt faithfulness"—generating images that actually contain everything the user asked for. Common failures include ignoring specific objects, misbinding attributes (e.g., making a red car blue), or failing at spatial relations and counting.

Evaluating these failures automatically is incredibly difficult. Standard metrics like CLIPScore compress the entire image and text into single vector embeddings, which notoriously washes out details like counting and compositionality. Captioning-based metrics rely on an image-to-text model that might ignore crucial details, while object-detection metrics are restricted to predefined object categories. TIFA addresses this bottleneck by providing an automated, fine-grained, and highly interpretable metric to evaluate exactly what a T2I model got right or wrong.

Methods

TIFA shifts the evaluation paradigm from holistic embedding matching to targeted visual verification using a multi-step pipeline:

  1. Question-Answer Generation: Given a text prompt, TIFA uses a large language model (GPT-3) via in-context learning to extract distinct text elements (nouns, verbs, adjectives). It classifies these elements into 12 semantic categories and generates two types of questions for each: a binary (yes/no) question and a multiple-choice question.
  2. Question Filtering: To ensure the questions are actually answerable from the text alone, a text-based question-answering model (UnifiedQA) filters the generated pairs. If UnifiedQA's answer doesn't match the gold standard generated by GPT-3, the question is discarded.
  3. Visual Question Answering (VQA): The generated image and the filtered questions are passed to a VQA model (the authors recommend mPLUG-large).
  4. Scoring: The final TIFA score is simply the accuracy of the VQA model's answers. Because the questions are tied to specific text elements, the score is inherently interpretable—if a model scores poorly, researchers can see exactly which questions it failed.
Overview of the TIFA evaluation framework

Datasets

The authors introduce TIFA v1.0, a benchmark dataset to standardize T2I evaluation. It consists of:

  • 4,081 diverse text inputs compiled from COCO captions, DrawBench, PartiPrompts, and PaintSkill.
  • 25,829 pre-generated and filtered QA pairs covering 4.5K distinct elements.

The questions span 12 distinct categories: object, activity, animal, food, counting, color, material, spatial, location, shape, attribute, and other (e.g., art styles like "steampunk").

Key Insights and Ideas

  • Decomposition Over Compression: The core "aha moment" of TIFA is that verifying an image against a text prompt is easier and more accurate when the text is broken down into atomic, verifiable probes (questions) rather than compressed into a single embedding space.
  • Inherent Interpretability: Unlike black-box scores, TIFA tells you why an image failed. For example, it can explicitly flag that a model failed because it drew a dog standing instead of sitting.
  • The "Compositional Wall": By analyzing performance against the number of entities in a prompt, TIFA quantitatively demonstrates that current T2I models hit a performance cliff when asked to compose more than 5 distinct entities in a single image.

Key Results

  • Superior Human Correlation: TIFA achieves a Spearman’s correlation of $\rho = 0.60$ with human text-to-image faithfulness judgments, vastly outperforming CLIPScore ($\rho = 0.33$) and captioning-based approaches ($\rho = 0.34$).
  • Model Benchmarking: In a comprehensive evaluation of historical and modern T2I models, Stable Diffusion v2.1 achieved the highest overall TIFA score (82.0%), showing a steady evolution over older models like AttnGAN (58.1%).
  • Error Disentanglement: By comparing VQA model outputs to human VQA annotations, the authors showed that for their recommended VQA model (mPLUG), less than 25% of the errors were mistakes made by the VQA model itself. The remaining 75%+ were genuine failures of the text-to-image generation model.

Limitations and Future Work

  • Computational Runtime: Running multiple VQA questions per image is significantly slower than a single CLIP embedding lookup. Evaluating one image with mPLUG takes roughly 1.6 seconds, making TIFA excellent for benchmarking but less practical for massive web-scale dataset filtering (e.g., training LAION-style datasets).
  • VQA Dependency: TIFA's accuracy is fundamentally bounded by the capability of the underlying VQA model. It may struggle in highly stylized domains, such as anime or abstract art, where standard VQA models lack training data.
  • Future Proofing: Because TIFA is modular, the authors note it can easily be upgraded as stronger foundation models (like GPT-4 or advanced VQA tools) become available.

Summary updated

BibTeX
@inproceedings{hu2023tifa,
  author = {Yushi Hu and Benlin Liu and Jungo Kasai and Yizhong Wang and Mari Ostendorf and Ranjay Krishna and Noah A Smith},
  title = {{TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure