How do you know that one image maker is better than another? There is no single correct picture to compare with, so people use scores. Each score answers one question: does it look real, does it cover the full variety, does it match the request? No score answers all three, so read every "best model" claim with care.
This lesson is the plain half of evaluation: FID, precision and recall, CLIP score and human judging, explained in everyday words with small hands-on cells. The maths behind FID, the newer preference and composition scores, and how to choose among them are in the optional follow-up, Generative Evaluation in Depth.
After this lesson, you will be able to:
Explain what FID measures (how close the generated images are to the real ones) and why lower is better
Compare the main scores: FID for realism, precision and recall for variety, CLIP score for following the prompt, and human votes
Spot failure modes such as mode collapse and know which score catches them
Pick the right score for a task, and explain why every fixed score eventually gets gamed
You do not need maths beyond averages. You will learn what FID, precision, recall and CLIP score each measure, how people judge images, and how to spot a model that makes only a few kinds of output.
Words you need7 terms
One number for how far a set of generated images is from a set of real images. Lower is better.
A list of numbers a pretrained network produces to describe an image. FID compares these lists, not pixels.
The share of generated images that look real, meaning they land inside the region where real images live.
The share of the real variety that the generator reaches. Low recall means whole kinds of images are missing.
How well an image matches a text prompt, measured by a model trained on image and caption pairs.
The generator makes only a few kinds of output and ignores the rest of the real data.
People compare or rate outputs. It is slow and costly, but it is the final test.
Evaluation can sound like the boring part, but it is one of the hardest open problems in generative AI. How do you measure whether an image is "good"? This lesson gives you the scores the field uses to compare models, so you can judge any tool's claims for yourself.
Try it! Generate 10 images from the same prompt with any AI art tool. Rate each from 1 to 10. Ask a friend to rate them separately, then compare. The disagreement you see is why human rating is noisy, and why automatic scores such as FID are useful: they give the same answer every time.
FID is the most widely used score for generative image models. It compares the distribution of real images with the distribution of generated images. A distribution here means the overall pattern of a whole set, not any single image.
Pass all real images through a pretrained image-recognition network (Inception-v3) and take the numbers from its last hidden layer. These 2048 numbers per image are called features
Compute the mean (the center) and the covariance (the spread and how features move together) of these feature lists for the real set
Do the same for a set of generated images
Measure how different the two resulting bell curves (Gaussians) are
Picture first. Describe each set of images by a center and a spread. FID is the squared gap between the two centers, plus a gap between the two spreads. A tiny one-dimensional example: the real set has center 5 and spread 1, and the generated set has center 4 and spread 1.5. The distance is (5 - 4)^2 + (1 - 1.5)^2 = 1 + 0.25 = 1.25. A perfect match scores 0.
FID=∥μr−μg∥2+Tr(Σr+Σg−2(ΣrΣg)1/2)
Where:
mu_r, mu_g are the mean feature vectors for real and generated images
Sigma_r, Sigma_g are the covariance matrices of those features
Tr is the matrix trace (sum of diagonal elements)
Lower FID = better (0 means the distributions are identical)
The formula is the squared Fréchet distance between two bell curves (Gaussians). The optional lesson Generative Evaluation in Depth derives it, in the section "FID in Depth".
There is no universal scale for FID. The same number means different things on different datasets, feature networks and sample counts. These are scores the authors reported for strong models, not thresholds. Do not rank across rows.
Dataset and setting
Reported FID
Source
CIFAR-10, unconditional, 32x32
1.97
EDM (Karras et al. 2022)
ImageNet, class-conditional, 256x256, with guidance
2.27
DiT-XL/2 (Peebles and Xie 2023)
FFHQ faces, 1024x1024
2.84
StyleGAN2 (Karras et al. 2020)
COCO captions, zero-shot text-to-image
7.27
Imagen (Saharia et al. 2022)
A score that is excellent on COCO text-to-image would be poor on CIFAR-10. As of Oct 2026 newer models may score lower, so compare only under identical settings.
What Do You Think?
Model A has FID=10, Model B has FID=50. Which produces more realistic images?
A lower FID means the generated set is closer to the real set. Under identical settings, the outputs are statistically closer to real images in both realism and variety. What counts as a good number depends on the dataset.
#Precision & Recall: Decomposing Quality from Mode Coverage
FID mixes two different failures into one number. Suppose a model makes only golden retrievers, while the real data has 120 dog breeds. It lost coverage, and FID does notice, because the spread of its features shrinks. But FID cannot say whether a high score came from poor pictures or from missing breeds. Two separate numbers fix this. Precision is the share of generated images that look real. Recall is the share of the real variety that the model covers. Kynkäänniemi et al. (2019) gave the version used today.
In words: precision asks "are my generated images inside the real region?" and recall asks "do my generated images reach every part of the real region?" Mode collapse looks like high precision and low recall: every sample is realistic, but the model covers only a sliver of what exists. Random noise looks like the opposite: low precision, high recall.
Why this matters: imagine a GAN that always produces the same 10 sharp, realistic faces. Its feature spread is nearly zero, so FID gets worse, but the number alone does not say why. Precision will be close to 1 (every sample is realistic) and recall will be very low (it covers a sliver of the real faces). The diagnosis is clear in precision and recall, and hidden in FID alone.
To see these two scores move on real points, open the lab in Generative Evaluation in Depth, where you can drop whole clumps and watch recall fall while precision holds.
Quick check
A GAN posts precision ≈ 0.92 and recall ≈ 0.18. What is it doing?
Automatic scores are stand-ins. The real test is whether people find the outputs good. Common ways to ask them:
Two-alternative forced choice (2AFC): show a person two images, one from Model A and one from Model B, and ask which is better
Mean Opinion Score (MOS): people rate images from 1 to 5 for quality, realism and prompt match
Elo ratings: images from different models compete head to head and a ranking is built from the wins (this is how Chatbot Arena works for language models)
Human rating is the gold standard, but it is expensive (you pay raters), slow (days to weeks for a large study) and noisy (people disagree). In practice, teams use automatic scores for quick checks during training and keep human rating for milestone comparisons.
Mode collapse means a generative model makes only a narrow range of outputs. Ways to detect it:
High precision but low recall (Kynkäänniemi 2019): Samples sit inside the real-data manifold (high precision = realistic), but only a small fraction of the manifold is covered (low recall = limited diversity). This is the most direct signal for mode collapse.
Low variance in feature space: take features (numbers from a pretrained vision network such as DINOv2 or Inception) for many generated samples and measure their spread. Low spread means the model is stuck in a few modes.
Nearest-neighbour check: for each generated image, find its nearest neighbour in the generated set. Many near-duplicates mean mode collapse.
Per-category dropouts in a composition test (GenEval, in the deep-dive lesson): a model that draws beautiful single objects but fails every two-object or counting prompt shows a kind of collapse in composition. It is common in older or over-distilled models.
Tests: Verify the Good generator has the lowest FID, the Random noise generator has the highest, and the generator collapsed at the real centre scores above the Good one even though its mean is exact. The cell asserts all three.
FID compares sets, not single images. It measures how close a set of generated images is to a set of real images, using features from a pretrained network. Lower means closer
Precision and recall split what FID mixes. Precision (realism) and recall (variety) show why a score is high, and mode collapse appears as high precision with low recall
CLIP score checks the text match. It matters for text-to-image models, and it uses CLIP's shared space for text and images
No single score is enough. FID for realism, CLIP score for prompt match and human rating for the final check together make a sound basic test