FlashEval: Towards Fast and Accurate Evaluation of Text-to-image Diffusion Generative Models

Lin Zhao, Tianchen Zhao, Zinan Lin, Xuefei Ning, Guohao Dai, Huazhong Yang, Yu Wang

Abstract

Evaluating modern text-to-image (T2I) diffusion models is computationally expensive, often requiring thousands of image generations to achieve stable metric estimates. We present FlashEval, a framework that identifies a highly representative subset of prompts to reduce evaluation costs by up to 10x. By employing an iterative evolutionary search algorithm, FlashEval selects a small set of prompts (e.g., 50) that maintains a high ranking correlation with the full dataset, enabling rapid and accurate model benchmarking during iterative development.

Introduction

The rapid development of T2I models, such as Stable Diffusion, necessitates frequent evaluation for hyperparameter tuning, architecture pruning, and sampler selection. Standard benchmarks like COCO require tens of thousands of generations (e.g., 47,000), which can consume over 60 GPU hours on high-end hardware. While random sampling is a common shortcut, it suffers from high variance and poor ranking correlation at small sample sizes. FlashEval addresses this bottleneck by finding a "perfect" small subset that preserves the performance ranking of the full dataset, significantly improving the quality-speed trade-off.

FlashEval significantly improves the quality-speed trade-off, reaching high evaluation quality at a much lower cost than current random sampling methods.

Methods

The core of FlashEval is an iterative search algorithm inspired by evolutionary strategies. The goal is to find a subset of prompts that maximizes the Kendall’s Tau (KD) correlation between the subset's scores and the "ground truth" scores from the full dataset across a diverse "model zoo" of 78 configurations.

Key components include:

  • Frequency-based Prompt Selection: Unlike training coreset selection, evaluation subsets must be representative. FlashEval identifies prompts that frequently appear in the highest-performing subsets to overcome "interference," where individually accurate prompts perform poorly in combination.
  • Iterative Filtering: The algorithm starts with a large population and iteratively narrows it down by constructing random subsets, evaluating their ranking accuracy, and updating the population with the most successful prompts.
  • Empirical Grounding: The authors found that linguistic features (e.g., semantic clustering) are poor predictors of evaluation utility; effective selection must be grounded in actual image-based metric scores rather than text features alone.
The FlashEval search method uses an iterative process to condense large datasets into representative subsets of 10-100 prompts.

Key Results

FlashEval consistently outperforms random sampling and other baseline search methods across various metrics, including CLIPScore, FID, and ImageReward.

  • 10x Speedup: A 50-item subset found by FlashEval achieves a ranking correlation comparable to a 500-item random subset.
  • High Correlation: On the COCO dataset, FlashEval achieved a Kendall’s Tau of ~0.8-0.9 with very small subsets, providing highly trustworthy rankings compared to the full-set ground truth.
  • Generalization: Subsets found using a "training" group of models generalized effectively to entirely unseen "test" models, indicating that the selected prompts capture fundamental performance characteristics.

Conclusion and Future Work

FlashEval provides a robust solution for fast T2I model evaluation, reducing the computational barrier for iterative model development. While the initial search requires a one-time "ground truth" evaluation of a model zoo, the resulting subsets offer significant long-term savings. Future work includes extending FlashEval to video and 3D generation tasks where evaluation costs are even more extreme.

The code and condensed subsets are available at https://github.com/thu-nics/FlashEval.

Summary updated

BibTeX
@inproceedings{zhao2024flasheval,
  author = {Lin Zhao and Tianchen Zhao and Zinan Lin and Xuefei Ning and Guohao Dai and Huazhong Yang and Yu Wang},
  title = {{FlashEval: Towards Fast and Accurate Evaluation of Text-to-image Diffusion Generative Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure