VLEU: a Method for Automatic Evaluation for Generalizability of Text-to-Image Models

Jingtao Cao, Zhang Zheng, Hongru Wang, Kam-Fai Wong

Abstract

Text-to-image (T2I) models have achieved remarkable performance, yet evaluating their generalizability—the ability to maintain broad knowledge while learning specific concepts—remains difficult. Traditional metrics like Fréchet Inception Distance (FID) and CLIP scores often fail to capture the degradation of general knowledge during fine-tuning. We introduce VLEU (Visual Language Evaluation Understudy), an automated metric that leverages Large Language Models (LLMs) to sample diverse prompts and measures the statistical divergence between intended and generated distributions. Our results demonstrate that VLEU is highly sensitive to overfitting and aligns well with human judgment, providing a robust tool for assessing model generalizability and bias.

Introduction

While text-to-image models like Stable Diffusion and DALL-E 3 have reached incredible heights, evaluating them remains a challenge. Existing metrics have specific blind spots. Inception Score (IS) and Fréchet Inception Distance (FID) focus on image quality and diversity but ignore how well the image actually matches the text. Conversely, CLIP scores measure the alignment of a single image to a single prompt but fail to capture a model's generalizability—its ability to handle a broad spectrum of diverse, unseen inputs.

This gap is particularly problematic during fine-tuning. When a user fine-tunes a model on a specific subject (like their own dog), the model often "overfits," losing its ability to generate other types of dogs or different styles. Until now, researchers largely relied on subjective human judgment to see if a model had "broken" its general knowledge during this process.

Overfitting during fine-tuning: as the model learns a specific subject, it loses the ability to generate diverse variations of that category.

The VLEU Framework

The VLEU framework operates in three main stages:

  1. Visual Text Sampling: Instead of using a static dataset, the authors use LLMs (like GPT-4 or LLaMA) to sample the "visual text domain." They use specific templates to generate hundreds or thousands of diverse prompts, ranging from unconstrained random scenes to specific subjects with complex properties.
  2. Text-Image Scoring: The T2I model under evaluation generates images for these prompts. A CLIP model then calculates similarity scores for every generated image against every prompt in the sample set.
  3. VLEU Calculation: The similarity scores are converted into probability distributions. VLEU calculates the Kullback-Leibler (KL) divergence between the marginal distribution of the text prompts and the conditional distribution of the generated images. If a model is overfit (e.g., it always generates a brown dog even when asked for a white one), the distributions will diverge significantly, resulting in a lower VLEU score.

The name "VLEU" is a deliberate nod to BLEU, the classic metric that revolutionized machine translation evaluation by comparing model outputs to human references.

Experimental Results

The researchers evaluated several prominent open-source T2I models: Stable Diffusion (SD) 1.5, 2.0, 2.1, and SDXL. For experiments on fine-tuning and overfitting, they utilized the DreamBooth dataset.

Sensitivity to Overfitting

VLEU proved much more sensitive to the loss of generalization than traditional metrics. In a teddy bear fine-tuning task, VLEU scores steadily declined as overfitting progressed, while IS and FID scores fluctuated inconsistently. This makes VLEU a "canary in the coal mine" for researchers trying to balance subject-specific learning with general knowledge retention.

Comparison of metrics over fine-tuning steps. VLEU (d) shows a consistent decline as overfitting progresses, whereas IS (a) and FID (b) fluctuate inconsistently.

Human Alignment and Bias Detection

VLEU scores showed a strong correlation with human Elo ratings. In most domains, SD 2.1 emerged as the most generalizable model. Furthermore, the authors used VLEU to measure generalizability across different ethnicities, finding that all tested models scored significantly higher on "Caucasian" prompts than "African" or "Asian" ones. This suggests the models generalize better to Caucasian features because those groups are overrepresented in the original training data (like LAION-5B).

Conclusion

VLEU provides a robust, automated way to detect overfitting and bias that traditional metrics often miss. While the metric's quality depends on the LLM used for prompt generation, it offers a significant step forward in quantifying the generalizability of T2I models. Future work may expand VLEU to test complex spatial relationships and physical logic as LLMs improve their understanding of the physical world.

Summary updated

BibTeX
@inproceedings{cao2024vleu,
  author = {Jingtao Cao and Zhang Zheng and Hongru Wang and Kam-Fai Wong},
  title = {{VLEU: a Method for Automatic Evaluation for Generalizability of Text-to-Image Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.618},
}
Figure