[Paper Review] On the Evaluation of Conditional GANs
This paper proposes the Fréchet Joint Distance (FJD), a novel metric that evaluates conditional GANs by computing the Fréchet distance between joint distributions of generated images and their conditioning inputs. FJD simultaneously captures image quality, conditional consistency, and intra-conditioning diversity in a single metric, outperforming existing benchmarks like FID and IS in capturing all three key properties across diverse conditioning types such as class labels, bounding boxes, masks, and text.
Conditional Generative Adversarial Networks (cGANs) are finding increasingly widespread use in many application domains. Despite outstanding progress, quantitative evaluation of such models often involves multiple distinct metrics to assess different desirable properties, such as image quality, conditional consistency, and intra-conditioning diversity. In this setting, model benchmarking becomes a challenge, as each metric may indicate a different "best" model. In this paper, we propose the Frechet Joint Distance (FJD), which is defined as the Frechet distance between joint distributions of images and conditioning, allowing it to implicitly capture the aforementioned properties in a single metric. We conduct proof-of-concept experiments on a controllable synthetic dataset, which consistently highlight the benefits of FJD when compared to currently established metrics. Moreover, we use the newly introduced metric to compare existing cGAN-based models for a variety of conditioning modalities (e.g. class labels, object masks, bounding boxes, images, and text captions). We show that FJD can be used as a promising single metric for cGAN benchmarking and model selection. Code can be found at https://github.com/facebookresearch/fjd.
Motivation & Objective
- To address the challenge of benchmarking conditional GANs, which currently rely on multiple disjoint metrics for image quality, conditional consistency, and intra-conditioning diversity.
- To develop a single, unified metric that implicitly captures all three key properties of conditional generation without requiring external models or pre-trained detectors.
- To evaluate the effectiveness of FJD across diverse conditioning modalities, including class labels, bounding boxes, object masks, and text captions.
- To demonstrate that FJD enables more reliable model selection and hyperparameter tuning by resolving trade-offs between image quality and diversity.
- To provide a computationally efficient alternative to existing metrics with minimal overhead over FID.
Proposed method
- FJD computes the Fréchet distance between the joint distributions of generated images and their conditioning inputs, using a deep neural network to embed both into a shared latent space.
- The method uses a pre-trained feature extractor (e.g., Inflated Inception Network) to map images and conditioning inputs into a shared embedding space, where the Fréchet distance is computed.
- For conditioning inputs such as bounding boxes or masks, the method applies spatially-aware embedding techniques (e.g., autoencoder representations) to preserve structural information.
- For class labels, the method uses one-hot or n-hot encoding as the conditioning embedding, which is then projected into the shared space.
- The metric is designed to be compatible with any type of conditioning input, including image-level, spatial, and sequential (e.g., text) conditions.
- FJD is computed using the same deep feature extractor as FID, ensuring low computational overhead and compatibility with existing evaluation pipelines.
Experimental results
Research questions
- RQ1Can a single metric effectively evaluate multiple desirable properties of conditional GANs—image quality, conditional consistency, and intra-conditioning diversity—simultaneously?
- RQ2How does FJD compare to established metrics like FID and Inception Score in capturing the full spectrum of conditional generation performance?
- RQ3Does FJD demonstrate consistent and reliable behavior across diverse conditioning modalities, such as class labels, bounding boxes, masks, and text?
- RQ4Can FJD be used to identify optimal hyperparameters and select the best-performing model when trade-offs exist between image quality and diversity?
- RQ5Is FJD computationally feasible and scalable for real-world benchmarking of cGAN models?
Key findings
- FJD successfully captures image quality, conditional consistency, and intra-conditioning diversity in a single metric, unlike FID and Inception Score, which fail to fully represent conditional consistency and intra-conditioning diversity.
- On the dSprites dataset, FJD consistently ranks models according to their expected behavior, with lower FJD values indicating better performance across all three properties.
- On the COCO-Stuff dataset, mask-conditioned models achieved the lowest FJD score (49.44 ± 2.46 at 64×64), followed by multi-label (57.35 ± 1.60) and bounding box (67.97 ± 1.70), indicating higher conditional consistency or diversity in mask-conditioned generation.
- FID values remained relatively stable across conditioning types (ranging from 40.75 to 41.81 at 64×64), suggesting FID fails to distinguish meaningful differences in conditional behavior.
- At 128×128 resolution, FJD showed increased sensitivity to conditioning type, with mask conditioning again achieving the lowest score (68.12 ± 1.33), indicating FJD's ability to detect subtle performance differences at higher resolutions.
- The FJD metric demonstrated strong correlation with qualitative human evaluation, suggesting it aligns well with human perception of conditional generation quality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.