TL;DR
Evaluating text-to-image diffusion models is notoriously slow and resource-intensive, often requiring dozens of GPU hours. This paper introduces FlashEval, an evolutionary-inspired search algorithm that curates tiny, highly representative subsets of evaluation prompts (e.g., just 50 prompts instead of 500). FlashEval achieves a 10x evaluation speedup while maintaining near-perfect accuracy in ranking model performance across various architectures and sampler schedules.
What Problem Does This Paper Address?
Text-to-image (T2I) generative models are advancing rapidly, but evaluating their generation quality remains a massive bottleneck. Running standard benchmarks like COCO requires generating thousands of images and calculating complex metrics (such as FID or CLIPScore), which can take up to 60 GPU hours for a single model. This makes periodic evaluation during model development—such as monitoring training progress, tuning hyperparameters, or selecting sampler schedules—highly impractical.
To save time, researchers typically resort to randomly sampling a smaller subset of prompts (e.g., 1,000 prompts). However, as the subset size shrinks, the evaluation quality degrades drastically, leading to high variance and unreliable model rankings. The authors address this challenge by finding a way to select a representative subset of prompts that maintains high evaluation accuracy even at extremely small sizes (10 to 100 prompts).
Methods
The authors first discovered that standard "coreset selection" techniques from training data literature (like balancing parts-of-speech or semantic diversity in text features) fail to predict how well a subset will evaluate image generation quality. Instead, they focused directly on optimizing the Kendall’s Tau (KD) ranking correlation using image-based metrics.
However, simply picking the best individual prompts doesn't work because prompts interfere with each other when combined into a set. To solve this, they developed FlashEval, an iterative search algorithm inspired by evolutionary strategies:
- Initialization: Start with the full dataset as the candidate prompt population.
- Evolutionary Operations & Fitness Evaluation: Randomly sample subsets from the current population and evaluate their "fitness" based on how accurately they rank a "model zoo" of diverse diffusion configurations compared to the ground-truth ranking of the full dataset.
- Frequency-Based Prompt Selection: Instead of just picking the highest-scoring subsets, FlashEval counts which individual prompts appear most frequently across all top-performing subsets. This filters out "corner-case" prompts that don't play well with others.
- Iteration: Update the candidate population with these high-frequency prompts and repeat until convergence.
Datasets
- COCO validation dataset (val2014): A standard benchmark, filtered to 40,504 prompts (one prompt per image).
- DiffusionDB: A large-scale prompt gallery dataset, from which they uniformly sampled 5,000 prompts as a baseline set.
- Model Zoo: To train and test the search algorithm, they built a diverse "model zoo" consisting of 78 configurations based on Stable Diffusion, varying across 12 model variants (including quantized versions) and 8 sampler schedules (DDIM, PNDM, DPM-Solver at different step sizes).
Key Insights and Ideas
- Text features don't predict evaluation utility: Traditional text-space clustering or part-of-speech balancing does not yield good evaluation subsets for text-to-image models. Image-space metric feedback is essential.
- The "Interference" Problem: A prompt that is excellent at distinguishing model performance on its own might perform poorly when combined with other seemingly good prompts. Evaluation data selection is fundamentally a set-level optimization problem, not a prompt-level one.
- Frequency as a Proxy for Synergy: Prompts that repeatedly show up in high-performing random subsets possess a unique property: they maintain high ranking correlation regardless of which other prompts they are paired with.
Key Results
- 10x Speedup: On the COCO dataset, a 50-item subset selected by FlashEval achieved a ranking correlation comparable to a 500-item random sample on unseen test models, effectively cutting evaluation costs by 90%.
- Strong Generalization: Subsets found using a small training set of models generalized robustly to entirely unseen model architectures, quantization levels, and sampling steps.
- Cross-Metric Success: FlashEval successfully optimized subsets across five distinct evaluation metrics covering fidelity (FID), text-alignment (CLIPScore), aesthetic quality, and human preference (ImageReward, HPS).
Limitations and Future Work
The primary limitation is the one-time computational cost required to run the FlashEval search on a brand-new dataset, as it requires evaluating the full dataset across a diverse model zoo to establish a ground truth.
To mitigate this, the authors proposed a two-step approach where FlashEval is run using a moderately sized random sample (e.g., 5,000 prompts) as a proxy ground truth instead of the entire dataset, which significantly reduces search overhead without sacrificing subset quality. The authors suggest that future work could explore zero-shot subset selection that bypasses the need for a model zoo entirely.
Summary updated