Skip to main content
QUICK REVIEW

[Paper Review] The Role of ImageNet Classes in Fr\'echet Inception Distance

Tuomas Kynkäänniemi, Tero Karras|arXiv (Cornell University)|Mar 11, 2022
Data Visualization and AnalyticsComputer Science32 citations
TL;DR

This paper reveals that Fréchet Inception Distance (FID) is heavily influenced by the alignment of top ImageNet class probabilities between real and generated images, rather than perceptual image quality. By manipulating these class activations—especially fringe classes like seat belts or suits—FID can be significantly reduced without improving visual fidelity, demonstrating that FID is prone to distortion when models inadvertently mimic irrelevant ImageNet class patterns.

ABSTRACT

Fr\'echet Inception Distance (FID) is the primary metric for ranking models in data-driven generative modeling. While remarkably successful, the metric is known to sometimes disagree with human judgement. We investigate a root cause of these discrepancies, and visualize what FID "looks at" in generated images. We show that the feature space that FID is (typically) computed in is so close to the ImageNet classifications that aligning the histograms of Top-$N$ classifications between sets of generated and real images can reduce FID substantially -- without actually improving the quality of results. Thus, we conclude that FID is prone to intentional or accidental distortions. As a practical example of an accidental distortion, we discuss a case where an ImageNet pre-trained FastGAN achieves a FID comparable to StyleGAN2, while being worse in terms of human evaluation.

Motivation & Objective

  • To investigate why FID sometimes disagrees with human judgment in generative model evaluation.
  • To identify the root cause of FID's sensitivity to irrelevant ImageNet class features.
  • To demonstrate that FID improvements can be achieved without perceptual quality gains by aligning top-ImageNet class distributions.
  • To evaluate the reliability of FID when ImageNet pre-training is used in GANs.
  • To propose alternative evaluation metrics using non-ImageNet feature spaces like CLIP to mitigate FID's biases.

Proposed method

  • Used Grad-CAM to visualize which image regions FID is most sensitive to, revealing fixation on prominent ImageNet classes.
  • Computed FID in alternative feature spaces: logits and class probabilities, comparing them to the standard pre-logit space.
  • Performed optimization to align Top-N ImageNet class probabilities between real and generated images, measuring resulting FID changes.
  • Used binarized class probability vectors to assess the influence of high- vs. low-ranked classes on FID.
  • Compared FID with FIDCLIP (using CLIP features) to validate that FID improvements from class alignment are not perceptually meaningful.
  • Conducted a case study on Projected FastGAN vs. StyleGAN2, using iso-FID comparison and human preference studies to validate FID's unreliability.

Experimental results

Research questions

  • RQ1Why does FID sometimes fail to correlate with human judgment of image quality?
  • RQ2To what extent is FID driven by the co-occurrence of top ImageNet classes rather than perceptual realism?
  • RQ3Can FID be artificially improved by aligning class probabilities without improving image quality?
  • RQ4How does the use of ImageNet pre-trained features in discriminators affect FID reliability?
  • RQ5Are alternative feature spaces like CLIP more robust for evaluating generative models?

Key findings

  • FID can be reduced by up to 2.5 points by aligning Top-5 ImageNet class probabilities between real and generated images, without improving visual quality.
  • Even with only N=5 top classes aligned, FID improves rapidly and reaches values close to those from optimizing in the pre-logit space.
  • Top-ranked ImageNet classes (e.g., 'suit', 'seat belt') have a disproportionately large influence on FID compared to lower-ranked classes.
  • Projected FastGAN achieves a similar FID to StyleGAN2 (5.28 vs. 5.30) but produces significantly more facial artifacts, indicating FID is misleading in this case.
  • FIDCLIP, using CLIP features, correctly identifies StyleGAN2 as superior (FIDCLIP=2.76 vs. 4.67), confirming that FID improvements were not perceptually meaningful.
  • The study confirms that ImageNet pre-training in GANs can lead to FID values that are artificially low due to unintended mimicry of fringe ImageNet classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.