Skip to content
BIASED

Precision and recall for generative models

Block 1 of 7~2 min

One number, two failures

The topic Fréchet Inception Distance warned that FID mixes two failures in one number. Here is how completely it can mix them.

Let the real features be a 2-D standard Gaussian, P=N(0,I)P = \mathcal N(0, I), and let a model draw from Qs=N(0,s2I)Q_s = \mathcal N(0, s^2 I). The means agree, and (ΣrΣg)1/2=sI(\Sigma_r \Sigma_g)^{1/2} = sI, so the FID formula reduces to

FID=Tr⁡(I+s2I−2sI)=2(1−s)2.\mathrm{FID} = \operatorname{Tr}\big(I + s^2 I - 2sI\big) = 2(1 - s)^2 .

Take s=0.3s = 0.3 and s=1.7s = 1.7. Both give 2⋅0.72=0.982 \cdot 0.7^2 = 0.98. Yet the two models fail in opposite ways.

The collapsed model, s=0.3s = 0.3, puts about 99% of its samples within radius 0.90.9 of the center. Each of them is a perfectly plausible real point. But that disc holds only a third of the real data, and the rest is never drawn. High fidelity, poor diversity.

The spread-out model, s=1.7s = 1.7, reaches every region of the data. But half of its samples land beyond radius 22, where only 14% of the real data lives. Good diversity, poor fidelity.

We want two numbers instead of one, one for each failure.

Answers are saved on the server and tied to this browser until you sign in.