Applied AI Vol. 2

FID and Its Limits: What an Image-Quality Score Does and Does Not Measure

The Fréchet Inception Distance compares feature statistics of real and generated images. It is useful, and easy to misuse.

Applied AI Vol. 2 · 5 min read

Fréchet Inception Distance, or FID, is a standard number in generative image papers. Knowing how it is computed helps you read it critically.

How it works

Pass real and generated images through a fixed pretrained network and collect feature vectors. Fit a Gaussian to each set, with a mean and a covariance. FID is the Fréchet distance between the two Gaussians, which combines the squared distance between means and a term comparing the covariances. Lower is better.

What it can tell you

It reflects both fidelity and diversity at the level of the feature distribution, and it tends to rank models consistently with human impressions on typical benchmarks. It is cheap to compute once features are extracted.

Where it misleads

  • It depends on the feature network. Different networks, preprocessing and resizing give different numbers, so only compare scores computed identically.
  • It is biased with small samples: using fewer images makes FID look worse. Fix and report the sample size.
  • The Gaussian assumption is a simplification and can hide important differences.
  • It compares sets of images, not individual quality, and it can miss artifacts people notice.

Reporting advice

State the feature extractor, the number of real and generated images, and the reference set. Give variation across several generation runs. Pair FID with other measures and with human evaluation when the decision matters.

More guides from this book