Week 1 Session: The number
The bold number in a results table is the field's account of what got better, and nothing in the table says what it was computed against. The bench is built here.
Open any generative modelling paper from the past three years and find the table where it reports results. There is a column of numbers to two decimal places, one of them in bold. Read down that column and you are reading the field’s account of what got better. Read across a row and you get a model name, a parameter count, and then the number.
Nothing in the table says what the number was computed against.
Five things the model does not decide
A reported FID depends on the model. It also depends on the reference set the samples were scored against, the number of samples drawn to compute it, the feature extractor and the exact weights loaded into it, the pipeline that resized the images on the way in, and the implementation that did the arithmetic. Change any one of those five and the number changes. A results table states none of them, and a caption rarely states more than the name of a dataset.
This is not sloppiness. Each of the five was settled once, by someone, and then stopped being worth mentioning. The semester is an attempt to find out what each of those settlements is worth.
Where the number came from
Heusel and colleagues introduced the score in 2017. Read them for the shape of the paper rather than for the metric: the subject is GAN training dynamics, and the score arrives partway through as an instrument the argument needs. Find the number of samples they generate, then look for the sentence that argues for it. Come to the session able to state the figure and to say what stands behind it.
The bench
The bench is the object we score every week. It is small enough to run on a laptop and simple enough that every score on it has a closed form, so you can always tell whether a number is right. The reference set R is a standard Gaussian in 2048 dimensions, the width of the feature space the score is usually computed in. Two candidates sit against it. A is N(0.05·1, I), where the mean is displaced and the covariance is untouched. B is N(0, 1.1·I), where the mean is exact and the covariance is too wide.
Two candidates rather than one, because a single score says nothing. There is no scale on which a score of five is good. A comparison is the smallest unit of meaning the score has, and every claim this course makes about FID is a claim about an ordering.
Exercise
The week 1 lecture runs a small version of this bench in your browser. Press draw again there first, and watch the estimate move while the true value does not.
Score A and B against R at N = 10,000, through whatever implementation you reach for first. Record both numbers, the sample size, and the name and version of the implementation. That is entry one of your measurement log, and every entry after it carries those same three things.
In your measurement log
This week’s entry: the two scores, their sample size, and the implementation that produced them. It joins themeasurement log, which is read as a whole at the end of week 12.
Reading
Required
- GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash EquilibriumHeusel, M. et al. NIPS 2017.
The spec
What you bring to the session. Written so a reader can tell whether it has been met without asking you.
- you can name three things a reported FID depends on besides the model
- you have a working bench, two generators and a reference set, and have scored it once
- you can say what sample size the paper that introduced the score used, and what reason it gave
S01 / Optional self-check · Not assessed
Before you leave
No marks or penalties. Try it, retry it, or read the explanation. Nothing here is submitted.
Two papers report FID 4.8 and 5.2. You do not yet know their evaluation protocols. What should you do before treating 4.8 as evidence for a better comparison result?
Answer and explanation
Correct: A. The score depends on measurement choices as well as the model. Without compatible conditions, the gap is not a clean comparison. Even a compatible comparison supports a statement about the specified metric, not an automatic verdict on every aspect of image quality.
Feedback for B: A smaller reported number cannot supply the missing protocol or establish quality outside what the instrument measures.
Feedback for C: Display precision does not make evaluation conditions comparable.
Teaching takeaway: Ask what produced the number before reading the ranking.
Collection code
SLOP-S01This code opens the matching comic. It is not a grade or proof of mastery. If browser storage is unavailable, copy the code and enter it on the collection page.