EvalGIM: A Library for Evaluating Generative Image Models

Melissa Hall, Oscar Mañas, Reyhane Askari Hemmat, Mark Ibrahim, Candace Ross, Pietro Astolfi, Tariq Berrada Ifriqi, Marton Havasi, Yohann Benchetrit, Karen Ullrich, Carolina Braga, Abhishek Charnalia, Maeve Ryan, Mike Rabbat, Michal Drozdzal, Jakob Verbeek, Adriana Romero-SorianoarXiv 2024 · DOI

Introduction

The evaluation of text-to-image (T2I) generative models has historically been a fragmented process. While metrics like Fréchet Inception Distance (FID) and CLIPScore are widely used, they are often implemented inconsistently across different codebases. Furthermore, single-number summaries frequently fail to capture the nuanced trade-offs between image quality, diversity, and prompt alignment. EvalGIM (pronounced "EvalGym") is an open-source library designed to unify these metrics, datasets, and visualizations into standardized "Evaluation Exercises," providing researchers with actionable insights into model performance.

The EvalGIM Framework

EvalGIM introduces a unified workflow for the entire evaluation lifecycle, encompassing image generation, metric calculation, and visualization. The core of the library is the Evaluation Exercise: a pre-packaged, end-to-end workflow designed to test specific research hypotheses.

Overview of the EvalGIM framework, illustrating the components of an Evaluation Exercise: goals, tools (models, data, metrics), and visualizations.

The library's architecture is modular, allowing users to easily integrate new datasets or metrics. It supports both "Marginal" metrics (e.g., Precision and Coverage for realism and diversity) and "Conditional" metrics (e.g., VQAScore and CLIPScore for prompt alignment). By moving beyond simple leaderboards, EvalGIM enables complex analyses such as Pareto Fronts for trade-offs and Radar Plots for geographic disparities.

Standardized Evaluation Exercises

To facilitate reproducible research, EvalGIM provides several standardized exercises that address common evaluation needs, such as understanding quality-diversity trade-offs, assessing geographic fairness, and testing the robustness of model rankings across different datasets.

Summary of standardized Evaluation Exercises in EvalGIM, detailing the goals, datasets, metrics, and visualization types for each.

Key Insights and Methodology

One of the primary motivations for EvalGIM is to avoid the "FID Trap." FID often conflates quality and diversity into a single score. By disaggregating these components into Precision (quality) and Coverage (diversity), EvalGIM reveals instances where a model might improve in realism while simultaneously losing representational diversity.

The library also highlights the fragility of model rankings. A model that appears superior on one benchmark may perform poorly on another. EvalGIM’s ranking tables make this volatility explicit, encouraging a more holistic reporting of results. Additionally, the library includes specialized benchmarks like GeoDE to identify performance gaps across different global regions, ensuring that advancements in model architecture benefit a diverse range of users.

Results and Training Dynamics

Using the "Trade-offs" exercise, researchers can monitor how different performance dimensions evolve during training. For instance, evaluations of the Latent Diffusion Model (LDM) family showed that while newer iterations like LDM-3 offer significant quality gains, their performance can be inconsistent across different prompt styles and geographic regions. Furthermore, the library demonstrates that mixing original and re-captioned training data often yields the best balance of diversity and consistency, avoiding the artifacts associated with purely synthetic captions.

Conclusion

EvalGIM provides a much-needed standardized infrastructure for the generative AI community. By unifying disparate evaluation methods into a single, extensible library, it empowers researchers to conduct more rigorous and multi-faceted assessments of text-to-image models. Future work will focus on better correlating these automatic metrics with human judgment and expanding the library's capabilities to include complex spatial and reasoning benchmarks.

Code is available at https://github.com/facebookresearch/EvalGIM/.

Summary updated

BibTeX
@misc{hall2024evalgim,
  author = {Melissa Hall and Oscar Mañas and Reyhane Askari Hemmat and Mark Ibrahim and Candace Ross and Pietro Astolfi and Tariq Berrada Ifriqi and Marton Havasi and Yohann Benchetrit and Karen Ullrich and Carolina Braga and Abhishek Charnalia and Maeve Ryan and Mike Rabbat and Michal Drozdzal and Jakob Verbeek and Adriana Romero-Soriano},
  title = {{EvalGIM: A Library for Evaluating Generative Image Models}},
  year = {2024},
  eprint = {2412.10604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.10604},
}
Figure