What FID sees: position, orientation and clusters

Background notes · Foundations

Why this page exists

These notes came out of reading Wu et al., A Pragmatic Note on Evaluating Generative Models with FID for Retinal Image Synthesis (MIDL 2026; see the MIDL 2026 overview). The paper shows that FID does not track how useful synthetic images are for training. To see why that is unsurprising, it helps to know exactly what FID can and cannot see. The answers below are written as the questions came up, with pictures instead of calculations.

The formula, for reference. Fit a Gaussian to the real features (\mu_r,\Sigma_r) and one to the generated features (\mu_g,\Sigma_g), then

\text{FID} \;=\; \underbrace{\lVert \mu_r-\mu_g\rVert^2}_{\text{position}} \;+\; \underbrace{\operatorname{Tr}\!\Big(\Sigma_r+\Sigma_g-2\big(\Sigma_r\Sigma_g\big)^{1/2}\Big)}_{\text{size, shape and orientation}} .

This is the 2-Wasserstein distance between the two fitted Gaussians (see optimal transport, Closed forms worth memorising).

Two panels. Left: a blue real ellipse and an orange generated ellipse of the same shape with centres apart, joined by an arrow labelled position term. Right: the two ellipses drawn on a common centre, tilted relative to each other and of different sizes, labelled covariance term.
FID splits into two independent parts. Left: the position term only asks how far apart the centres are. Right: the covariance term compares the two clouds as if their centres had been moved on top of each other.

Q1. Does FID require the two feature clouds to have the same mean?

No. It allows different means but charges for them. The first term is the squared distance between the two centres. It is zero only when they coincide, and otherwise it adds to the score directly. It is completely separate from the covariance term: shifting one cloud without changing its shape raises the first term and leaves the second untouched.

Q2. Is FID blind to orientation because of the trace?

No. The trace makes FID ignore a rotation of the whole space, not a rotation of one cloud against the other. Two different things are going on inside the covariance term:

So two clouds with the same shape and size but different orientations get a positive FID. The only shape that looks the same at every orientation is a round one, and only then does turning it change nothing.

Three panels with a blue real ellipse and a dashed orange generated ellipse on one centre. A: aligned, they coincide, covariance term zero. B: the orange one turned a quarter turn, crossing the blue one, covariance term positive. C: both turned together with the axes, still coinciding, FID unchanged.
What the trace does and does not forgive. A: same shape, same orientation, no cost. B: same shape, turned relative to the other, so FID sees a difference. C: turning both clouds together, which only relabels the axes, leaves FID unchanged.

What FID does ignore. Rotating, reflecting or shifting both clouds together. That is the invariance the trace buys: the choice of coordinate axes does not matter, but how the two clouds sit relative to each other does.

Where the “orientation-invariant” intuition comes from. The covariance term is the squared Bures–Wasserstein distance between the two covariance matrices, and one way to write it involves a minimisation over rotations. That looks like “the best rotation is chosen for you”, but it is not a rotation of the cloud. A covariance matrix has many “square-root” factors A with AA^\top=\Sigma, which all describe the same cloud, and the minimisation only picks the most convenient one. No cloud is ever turned. When the two clouds’ axes happen to be aligned, the covariance term reduces to comparing their spreads axis by axis; any misalignment adds to that.

Q3. How does FID treat one Gaussian versus two separate clusters?

It cannot tell them apart, because it only ever sees a mean and a covariance. FID replaces each feature cloud by the single Gaussian with the same mean and covariance. For a cloud made of two separated clusters, that fitted Gaussian is centred in the gap between them and stretched along the line joining them: the covariance adds the spread within each cluster to the spread between the cluster centres. A single blob with that same mean and covariance has the same fitted Gaussian, so FID between the two is zero.

Three panels. A: real features in two blue clusters with a gap; the dashed fitted Gaussian is one long ellipse covering both. B: generated features in one orange blob centred in the gap; its fitted ellipse is the same, so FID is about zero. C: generated features covering only the left cluster; its fitted ellipse is small and shifted, so FID is large.
Two clusters through FID’s eyes. A: the Gaussian fitted to two clusters covers the empty gap. B: one blob with the same mean and covariance looks identical to FID, though most of its samples sit where no real image does. C: collapsing onto one cluster moves the mean and shrinks the spread, so this failure is caught.

What this means in practice, case by case:

What the generator does What FID sees Caught?
One blob filling the gap between two real clusters (blurry “in-between” images) same mean and covariance as the real data No
Collapses onto one of two equal clusters mean shifts by half the gap, between-cluster spread disappears Yes
Drops a small cluster (a rare class or rare finding) mean and covariance barely move Mostly no
Right clusters, wrong proportions mean moves towards the over-represented cluster Partly
Right mean and covariance, wrong shape in other ways (skew, heavy tails, rings) nothing beyond second moments No

The third row is the one that matters most for medical imaging. The rare classes and rare findings are exactly what synthetic data is often meant to supply, and they are what a mean-and-covariance summary weighs least. This is one concrete reason a good FID need not mean useful training data, which is the point of the MIDL paper.

What does see clusters. Metrics that compare whole distributions rather than two moments: KID (a kernel two-sample statistic, which with its polynomial kernel reaches beyond the covariance), precision and recall in feature space, which separate “are the samples realistic” from “is every region of the real data covered”, or simply counting samples per class or per cluster. Changing the feature network (CLIP, DINOv2, a domain model) changes where the clusters lie but not the fact that FID summarises them with one Gaussian.

Questions and doubts

Takeaways