Skip to content
BIASED

Fréchet Inception Distance

Block 1 of 7~2 min

How to judge a model

The topic Inception Score judged a generator by its samples alone, through a frozen Inception network. But no real image ever entered its formula, so it could not notice a model that copies its training set, and it rewarded ImageNet's classes rather than resemblance to the data. This topic keeps the network as a fixed ruler and adds what was missing: a set of real images to compare against.

Why not return to the average log-likelihood of held-out images instead? That topic gave the first reason: not every model has one. A GAN has no likelihood at all; VAEs and ordinary DDPM usually give an ELBO — a lower bound, not the value itself. Exact likelihood comes from flows and autoregressive models, and also from the continuous-time probability-flow ODE (Continuous-time diffusion and flow matching), where log⁡p0\log p_0 is an integral of a divergence rather than a DDPM ELBO. The second reason is worse.

It barely tracks sample quality (Theis, van den Oord and Bethge, 2016). Take a good model QQ and mix it with noise: with probability ww draw from QQ, otherwise output noise from QnoiseQ_{\text{noise}}. The mixture's density is at least ww times that of QQ, so

log⁡(w Q(x)+(1−w) Qnoise(x))≥log⁡w+log⁡Q(x).\log\big(w\, Q(x) + (1 - w)\, Q_{\text{noise}}(x)\big) \ge \log w + \log Q(x).

With w=0.01w = 0.01, 99 samples out of 100 are noise, yet the log-likelihood drops by at most a small constant. One 32×3232 \times 32 color image at 3 bits per dimension takes about 64006400 nats, so the drop is invisible. The reverse also happens: a model that memorizes its training set draws perfect samples and gives zero density to every new image.

So we want a score computed from samples alone, compared against real images, that agrees with what a person sees.

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

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • FID from 1D moments of two Gaussiansoptional

    Analytic FID=(Δμ)²+(Δσ)² and an empirical estimate. Self-check in the notebook.

    ~15 min · easier on a computer · The FID topic read.

    Self-check in the notebook — not part of mastery or the certificate.