Evaluating generative models: FID, CLIPScore, preference and VLM benchmarks

How a generated image is scored: FID from zero and why it moves with sample count, compression and resizing; KID, precision and recall, FD-DINOv2 and CMMD measured on the same eight sets; prompt alignment on Stable Diffusion; reward models and arenas; VLM, video and audio metrics. Child page of Topic: generative-and-multimodal. Data as of October 2026. Reading: 27 min, plus 8 in closed details.

The idea in one screen

A generator has no right answer to compare against, so it is judged by comparing two sets of images in a feature space: every image metric is a choice of features, a distance between the two clouds of vectors, and a sample count; text-to-image adds a check against the prompt, and in the end people decide.

You need: what CLIP and DINOv2 are, from the sibling page Vision encoders: ViT, CLIP and SigLIP; Bradley-Terry ratings, from Human preference and arenas. Everything else is defined here.

Feature space: a pretrained network's vector for each image; similar-looking images land near each other.
Floor: what real images score against other real images at the same N, the value that means "nothing is wrong".
MMD: maximum mean discrepancy, a distance between two sets built from a similarity (kernel) between points.
Precision / recall: share of samples that look real; share of the real data the samples cover.

Three questions, three pipelines: the features box decides what "similar" means

Does the set look like the data?fidelity and variety (sections 2 to 5, 9)
N generated + N realimages (here 10,000 each)
→
FeaturesInception-v3 (FID, KID), DINOv2 (FD-DINOv2), CLIP (CMMD); I3D for video (FVD), VGGish for audio (FAD)
→
Two cloudsone vector per image
→
DistanceFréchet between Gaussians (FID), kernel MMD (KID, CMMD), k-NN balls (precision, recall)
→
One numberread against the real-vs-real floor at the same N
Did it draw the prompt?alignment (section 6)
One image + its prompt
→
JudgeCLIP cosine (CLIPScore), or questions to a VLM or detector (TIFA, VQAScore, GenEval)
→
Score per imageaveraged over a fixed prompt suite, per skill
Would people choose it?preference (section 7)
Two images, one prompt
→
Votera person (arenas) or a reward model trained on votes (PickScore, HPS v2, ImageReward)
→
Win rateBradley-Terry (Elo-style) rating

Two knobs move every number in the first row without changing a single image: N, the sample count (section 3), and the pixels that reach the features: file format, resizing (section 5).

Every metric in one table (features, distance, what it catches and misses)
MetricFeaturesDistanceCatchesMisses or misleads
FIDInception-v3 pool, 2,048-d (ImageNet classifier)Fréchet distance of two Gaussiansbad images and too little variety, in one numberbiased upward at small N; moved by JPEG and resizing; ImageNet-class leakage; blind to the prompt
KIDInception, 2,048-dunbiased kernel MMD (cubic polynomial)the same as FID, with honest error barsthe same features, so the same leakage and preprocessing traps
Precision / recallany (VGG-16 in the paper)k-nearest-neighbour ballsseparates fidelity from varietysensitive to outliers and to k
FD-DINOv2DINOv2 ViT-L/14 (self-supervised)Fréchet distanceagrees with human judgments where Inception does notstill biased in N; a different scale from FID
CMMDCLIP ViT-L/14 at 336 pxGaussian-kernel MMDno Gaussian assumption; text-to-image era featuresofficial code uses the biased estimator; CLIP's own blind spots
CLIPScoreCLIP image and textcosine to the promptgross prompt mismatchcounts, relations, text; a "bag of words"
VQA-based (TIFA, VQAScore, GenEval)a VLM or detector answers questionsshare of yes answersmissing objects, counts, colours, positionsonly as good as the VLM; its own hallucinations
Human preferencepeople, or reward models trained on their votespairwise wins, Elo / Bradley-Terrywhat users actually preferstyle, self-selected prompts, reward hacking

The running example: eight sets, one reference

Everything measured here uses the topic's data setup: the 10,000 Fashion-MNIST test images are the reference, and eight sets of 10,000 images, from perfect to bad, are scored against them. They come from checkpoints the topic's earlier runs and sibling pages already trained; nothing was trained for this page.

Each strip: the first image of each class, T-shirt to ankle boot (the VAE ignores labels, so its strip is ten random draws; the "half" set only has the first five classes). measured on Apple M1 Pro (MPS); sampling times in the Metric comparator tab.

1. What a metric must do

A classifier is scored image by image. A generator draws a new image from noise, and there is no "correct" image for that noise; the question is whether its output distribution matches the data distribution. That splits into fidelity (does each image look real? a blurry VAE sample fails), coverage (does it make everything the data has, in the right proportions? a model that only draws trousers fails), alignment (does the image match its class label or prompt?) and preference (would a person choose it? which mixes all three with taste). One number cannot answer all four.

Images are compared in a feature space because raw pixels are a bad one: shift a shirt by two pixels and almost every pixel changes. The network decides what "similar" means: Inception-v3 was trained to name 1,000 ImageNet classes, DINOv2 learned without labels, CLIP learned from captions. That is why the same eight sets are ranked differently by different metrics (section 4).

The test every metric must pass first
Score real images against other real images. The result is the metric's floor at that sample count. For FID on this data the floor is 2.54 at 10,000 images and about 15.7 at 1,000 (the topic setup's measurement, reproduced in section 3). A model's score means something only next to its floor.

2. FID from zero

FID, the Fréchet Inception Distance (Heusel et al. 2017), is the standard score for image generators. FID in four steps (features, a Gaussian per set, the distance between the Gaussians, the number) on real data first: a good model, a blurry one and a model with half the variety go through the same steps. Pick a set; the figure replays.

  1. Two sets of images. The reference: the 10,000 real test images. The candidate: 10,000 images of the chosen set (DDPM 250). Each strip shows ten of them, one per class.
  2. Every image becomes a point. Resize every image to 299 x 299 and pass it through Inception-v3, an ImageNet classifier from 2015; keep the 2,048 numbers of its last pooling layer. Drawn: 300 test images (grey) and 300 samples of the chosen set, projected onto the two directions along which the real features vary most (principal components).
  3. Fit a Gaussian to each set: mean μr (2,048 numbers) and covariance Σr (2,048 x 2,048) for the real images; μg, Σg for the generated ones. Each glass bell is a fitted density, its rings at 0.5 to 2 standard deviations (the outer ring holds about 86% of a 2-D Gaussian). FID never looks at single points again: only these two summaries.
  4. The mean term, ‖μr − μg‖²: how far apart the centres of the clouds are, summed over all 2,048 dimensions; here 2.58. Large when the average content is wrong. For DDPM the two drawn directions carry only about a quarter of it, so its centres nearly coincide on the floor: the rest lies in the other 2,046 directions.
  5. The covariance term, Tr(Σr + Σg − 2 (ΣrΣg)1/2): how differently the clouds are spread; zero when the two have the same spread and orientation; here 8.88. Large when variety is missing or misplaced.
  6. FID = mean term + covariance term = 11.46, beside the real set's own 2.54, the floor at this sample count (one height scale for both columns). Lower is better, 0 only for identical Gaussians. Its unit is squared feature distance, so FIDs are comparable only with the same features, preprocessing and sample count.

Drawn: 300 test images and 300 samples of the chosen set on the plane of the first two principal components of the real features (18% of their variance); each bell's height is its fitted density, on one scale. The terms and FID use all 2,048 dimensions over all 10,000 images. measured on Apple M1 Pro (MPS features, CPU float64 statistics).

The Distance between the two Gaussians, the Fréchet (2-Wasserstein) distance, has a closed form:

FID = ‖μr − μg‖² + Tr(Σr + Σg − 2 (ΣrΣg)1/2)

Read the two terms for the two failures. The VAE's samples are blurry, so their features sit away from the real ones and the mean term is large. The "half" set holds perfect real images of 5 classes: each image is flawless, yet its FID is far from the floor, mostly through the covariance term. FID cannot tell you which failure you have; precision and recall can (section 4).

Predict: the "half" set is 10,000 flawless real images of T-shirts, trousers, pullovers, dresses and coats. The VAE set is 10,000 blurry images of every class. Which has the lower (better) FID?
The code that computes it, and where the 299 pixels come from

The topic's own implementation (shared by every run in the topic), the formula line for line:

def frechet(mu1, s1, mu2, s2):
    """||mu1 - mu2||^2 + Tr(S1 + S2 - 2 (S1 S2)^(1/2)) (Dowson and Landau 1982; Heusel et al. 2017)."""
    diff = mu1 - mu2
    covmean = linalg.sqrtm(s1 @ s2)          # scipy >= 1.16: no disp argument
    if not np.isfinite(covmean).all():
        off = np.eye(s1.shape[0]) * 1e-6
        covmean = linalg.sqrtm((s1 + off) @ (s2 + off))
    covmean = covmean.real
    return float(diff @ diff + np.trace(s1) + np.trace(s2) - 2 * np.trace(covmean))
the topic's src/data/fid.py (the root page's shared code). torch-fidelity 0.4.0 avoids the matrix square root: only its trace is needed, which is the sum of square roots of the eigenvalues of Σ1Σ2 (torch_fidelity/metric_fid.py line 39: tr_covmean = np.sum(np.sqrt(np.linalg.eigvals(sigma1.dot(sigma2)).astype("complex128")).real)). This page's scripts use the same identity in a symmetric form and agree with scipy's sqrtm to 1e-05 (the 1,000 VAE samples: 86.91202 against 86.91201).

torch-fidelity's Inception feature extractor insists on uint8 input and resizes inside the network (torch_fidelity/feature_extractor_inceptionv3.py lines 103 and 111, v0.4.0): vassert(torch.is_tensor(x) and x.dtype == torch.uint8, "Expecting image as torch.Tensor with dtype=torch.uint8") then x = interpolate_bilinear_2d_like_tensorflow1x(x, size=(self.INPUT_IMAGE_SIZE, self.INPUT_IMAGE_SIZE), align_corners=False). That bilinear resize copies the 2017 TensorFlow code on purpose, so its numbers match the papers that used it; section 5 shows what other resizes do.

3. Sample count: the bias that never goes away by itself

FID at N samples is too large, by roughly K/N: Chong and Forsyth 2020 showed FIDN ≈ FID∞ + K/N, with a slope K that depends on the generator. The figure plays it on the page's runs: each column is one set scored on N of its images against the full 10,000 test images (the mean of three draws below 10,000).

  1. The floor falls with N. Real training images, where nothing is wrong: the real set scores 44.9 at 250 samples and 2.54 at 10,000. The covariance is estimated from N samples and enters through a matrix square root; estimation noise makes the cloud look more spread out, and the formula turns that into extra distance.
  2. About K/N. The straight-line fit through N = 1,000 to 10,000 (dashed, drawn only where it was fitted) has K = 14,915 for the real set. Its extrapolated FID∞ (the glass column) is 0.87, not 0: extrapolating removes the bias from the generated side only, and the fixed 10,000-image reference has a noisy covariance too (and train and test images need not be identically distributed).
  3. Every model pays it. DDPM goes from 50.4 at 250 to 11.5 at 10,000 (FID∞ 9.8), strong guidance (flow s = 4) to FID∞ 26.2, the VAE (not drawn) from 114.2 to 76.1. The slopes differ (K from 12,405 to 14,915 over the eight sets), so fixing N does not make two models comparable: the model with more spread pays more bias (Chong and Forsyth's Figure 3: two identical DCGANs whose order swaps with N).
  4. Across N, real data can lose. At 250 samples the real data (FID 44.9) scores worse than DDPM does at 1,000 (23.8): a careless comparison across N can rank real data below a model.
  5. The gap moves too. DDPM against DDIM with 10 steps is 4.3 at 250 and 2.3 at 10,000: the difference between two models depends on N as well.

Hence the convention: 50,000 generated images against statistics of the whole training set (since Heusel et al.; stated for ADM by Dhariwal and Nichol 2021 and for EDM2 by Karras et al. 2024). The official FID code warns: "We recommend using a minimum sample size of 10,000 to calculate the FID otherwise the true FID of the generative model is underestimated" (TTUR README; read "misestimated": the finite-N error is an overestimate, as the curves show). Below 2,048 samples the covariance is not even full rank.

The bias with nothing else going on: two samples of the same Gaussian (depth, code)

FID is biased upwards at small counts even with nothing wrong. Two samples drawn from the same distribution still get a positive FID, and it shrinks as the count grows:

import numpy as np
from scipy import linalg

def fid(a, b):  # the Frechet distance FID uses, on any features
    m1, m2 = a.mean(0), b.mean(0)
    s1, s2 = np.cov(a, rowvar=False), np.cov(b, rowvar=False)
    covmean = linalg.sqrtm(s1 @ s2).real
    return float(((m1 - m2) ** 2).sum() + np.trace(s1 + s2 - 2 * covmean))

d = 64                                   # Inception features have 2,048 dimensions; 64 keeps this fast
rng = np.random.default_rng(0)
A = rng.normal(size=(d, d)) / np.sqrt(d)
cov = A @ A.T + 0.1 * np.eye(d)          # one fixed "true" feature distribution
L = np.linalg.cholesky(cov)
draw = lambda n: rng.normal(size=(n, d)) @ L.T

for n in [500, 2000, 10000, 50000]:
    scores = [fid(draw(n), draw(n)) for _ in range(3)]
    print(f"n = {n:>6}: FID between two samples of the SAME distribution = {np.mean(scores):.4f} (3 draws: {', '.join(f'{s:.4f}' for s in scores)})")
n =    500: FID between two samples of the SAME distribution = 3.3324 (3 draws: 3.3952, 3.3297, 3.2723)
n =   2000: FID between two samples of the SAME distribution = 0.8557 (3 draws: 0.8410, 0.8715, 0.8546)
n =  10000: FID between two samples of the SAME distribution = 0.1669 (3 draws: 0.1666, 0.1617, 0.1726)
n =  50000: FID between two samples of the SAME distribution = 0.0331 (3 draws: 0.0338, 0.0334, 0.0322)
measured on Apple M1 Pro CPU (numpy 2.5.4, scipy 1.18.1; the root’s src/read/fid_bias.py). The true distance is 0; the estimate falls roughly as 1 / n, and with 2,048 Inception dimensions instead of 64 the bias is far larger. So "FID 3.3" at 500 samples and "FID 0.03" at 50,000 can be the same model: compare only at equal n, and prefer 50,000.
Predict: a teammate scores your model on 1,000 samples and gets FID 40, and says "real Fashion-MNIST would get about 0". What would real data get at 1,000 samples?

Every set's FID falls with N, and the real data is far from 0 at small N

Three draws per point below 10,000; reference always the full 10,000 test images. Dashed (1/N view): the straight-line fit FIDN = FID∞ + K/N through N = 1,000 to 10,000, extended to 1/N = 0. measured on Apple M1 Pro.

4. The alternatives: change the distance, or change the features

Every fix to FID changes one box of the hero: the distance (KID, precision and recall, CMMD's kernel) to drop the Gaussian assumption or the bias, or the features (FD-DINOv2, CMMD's CLIP) to stop seeing the world as ImageNet classes. All were run on the same eight sets; the Metric comparator tab has every value at every N.

KID: an unbiased kernel distance on the same features

MMD compares two sets through a kernel k(x, y), a similarity between two feature vectors: MMD² = mean k within real + mean k within generated − 2 mean k across; identical clouds give 0. KID (Bińkowski et al. 2018) uses Inception features and the cubic kernel k(x, y) = (x·y / d + 1)³, and drops the k(x, x) terms from the within-set means. That makes it unbiased: its average over draws is the true value at any N, so the floor sits at 0 and only the error bar shrinks with N. The KID paper's example, CIFAR-10 train against test: "at n=2 000, when the KID estimator is essentially always 0, the FID estimator is still quite large" (section 4). torch-fidelity computes it on 100 random subsets of 1,000 images per side (defaults.py lines 20 and 21, v0.4.0) and reports mean and standard deviation; the score is usually printed times 1,000.

The real set's KID is -0.13 at 250 and -0.01 at 10,000: zero within noise at every N, where its FID falls from 44.9 to 2.54. DDPM's KID is 5.58 at 250 and 5.05 at 10,000: the same value, so small-N KIDs can be compared with large-N ones. Check against torch-fidelity's own KID on 2,000 random DDIM samples: 4.97 (x 1,000), this page's 5.09 (different random subsets). The cost is noise: one draw at small N can come out negative (an unbiased estimate of a value near zero has to). Report the spread across subsets and compare models at the same subset size.

KID stays put as N shrinks (x 1,000; mean of three draws at 250):

Precision and recall: two numbers for the two failures

Kynkäänniemi et al. 2019 estimate each set's region of feature space as a union of balls, one around every sample, with radius equal to its distance to its k-th nearest neighbour (k = 3). Precision is the share of generated samples inside the real region (realistic?); recall is the share of real samples inside the generated region (covered?). The paper used VGG-16 features and 50,000 images per set; here, Inception and DINOv2 features at 10,000.

The real set scores precision 0.78 and recall 0.78: with k = 3 even real data is not at 1.00, so read each model against it. The half set keeps real-level precision (0.79) and loses recall (0.46); strong guidance (flow s = 4) has precision 0.75 and recall 0.15 against 0.61 and 0.47 without guidance; the VAE is low on both (0.16, 0.08). These are the two failures FID merged in section 2. Their weakness: one real outlier swells the real region, and fakes clustered near it count as precise; Naeem et al. 2020 proposed density and coverage to fix that.

The half set and strong guidance keep precision and lose recall; the VAE loses both

Top right is perfect. measured on Apple M1 Pro; k = 3, equal set sizes, reference = the 10,000 test images.

FD-DINOv2: the same formula on better features

Stein et al. 2023 ran what they call the largest human study of generative-model realism so far and found "no strong correlation between human evaluation and any common metric computed in the Inception representation space outside of the simplistic CIFAR10 dataset"; replacing Inception-V3 with DINOv2 ViT-L/14 (self-supervised, 142M images without labels) "recovers the correlation". Diffusion models fooled their raters more often yet were ranked worse than GANs by FID. EDM2 (Karras et al. 2024) reports both, FID 1.81 and FDDINOv2 33.09 for EDM2-XXL with guidance on ImageNet-512 (Tables 2 and 5), and the two want different settings (best guidance 1.4 for FID, 1.9 for FDDINOv2), so they tuned each separately. FD values live on DINOv2's scale: an FDDINOv2 of 33 is not "worse" than an FID of 1.81 from the same model.

Here: DINOv2 ViT-B/14 (the model pinned by Vision encoders; the paper's L/14 was not run), the final [CLS] vector; the test-set vectors reproduce that page's stored embeddings (cosine 1.0000 at worst over the 10,000 images). The real floor here is 17.1 at 10,000 and 375 at 250: DINOv2's 768 features carry a large small-N bias too. Its order of the six models: DDPM 250, flow s=1.5, DDIM 10, flow s=1, flow s=4, VAE; Inception's: DDPM 250, DDIM 10, flow s=1.5, flow s=1, flow s=4, VAE. The visible change: DINOv2 puts DDIM with 10 steps (219) behind flow with s = 1.5 (217), where Inception has DDIM second.

CMMD: a kernel distance on CLIP features

Jayasumana et al. 2024 ("Rethinking FID") replace both parts: L2-normalised CLIP ViT-L/14 at 336 px embeddings, and MMD with a Gaussian kernel exp(−‖x − y‖² / 2σ²), σ = 10, times 1,000. FID needed "more than 20,000 images" to settle on COCO-30K subsets while "CMMD provides consistent estimates even with small image sets"; on PartiPrompts raters preferred a fully trained Muse model 92.5% to 6.9% over an early-stopped one while FID preferred the early-stopped one, and CMMD agreed with the raters.

Here: the official code's kernel, scale and estimator, on CLIP ViT-B/32 (the topic's pinned CLIP) for the full sweep, because the paper's L/14 at 336 px ran at about 10 images per second on this laptop (the 10,000 test images took 1,022 s, measured). As a check, both scored the same 1,000-image subset of each set: L/14-336 orders the five model sets DDPM 250, flow s=4, flow s=1, DDIM 10, VAE; B/32 orders them DDPM 250, flow s=4, flow s=1, DDIM 10, VAE (the same order). Values differ in scale (VAE 1.32 against 0.46; DDPM 0.035 against 0.034), so B/32 numbers are not CMMD numbers to quote, only a ranking.

Correction: the CMMD paper and its code disagree
The paper presents the unbiased estimator (its Eq. 4 leaves out the diagonal k(x, x) terms). The official code averages over the full matrix, diagonal included, and its docstring says it "implements the minimum-variance/biased version of the estimator" (google-research cmmd/distance.py, read 2026-10-17). Biased estimates carry a floor that falls with N: the real set scores 0.0043 at 250 and 0.0002 at 10,000 here (CLIP B/32). And with the code's σ = 10 on unit vectors, CMMD ≈ 10 · ‖μg − μr‖²: it mostly compares the two mean embeddings.
Why CMMD reduces to a distance between means, and the code lines

On unit vectors ‖x − y‖² is at most 4, so with σ = 10 the kernel never leaves the range exp(−0.02) to 1, where it is almost a straight line: exp(−d²/200) ≈ 1 − d²/200. Put that into the MMD and every term cancels except the means, so CMMD ≈ 1,000 · ‖μg − μr‖² / σ² = 10 · ‖μg − μr‖². Checked at 10,000: real CMMD 0.0002 against 10 · ‖Δμ‖² = 0.0002; DDPM 250 CMMD 0.0254 against 10 · ‖Δμ‖² = 0.0254; VAE CMMD 0.4795 against 10 · ‖Δμ‖² = 0.4801.

Code: k_xx = jnp.mean(jnp.exp(-gamma * (...))) over the full matrix (cmmd/distance.py, last changed in commit 5b09c22: docstring line 35, the means on lines 59 to 90, _SIGMA = 10 and _SCALE = 1000 on lines 25 and 28); the embeddings are L2-normalised by the scenic CLIP model it calls.

Do they agree?

Ranking the six model sets (leaving out the real and half sets) at 10,000 samples, rank in brackets (table beside):

FID, KID and the others agree on the ends (DDPM best, the VAE worst) and disagree in the middle. DDIM with 10 steps is second by FID (13.8) and KID, but 5th by CMMD and 4th by the classifier FD; strong guidance (flow s = 4) is 5th by FID and 3rd by CMMD. Different features see different failures: the classifier knows what each garment should look like, CLIP (with the code's kernel) compares averages, Inception sees through ImageNet classes. A claim that model A beats model B is only as strong as the agreement between metrics with different features.

Predict: the flow model with strong guidance (s = 4) against the same model without guidance (s = 1). Which way does each metric move?

Ranks at 10,000 samples: the ends agree, the middle does not

5. Pitfalls: the same images, a different FID

FID is a function of the pixels that reach Inception, so anything between the generator and the metric changes it: file format, resizing, the reference set, the code. The rule: process both sets identically, with the same code, and say how.

  1. The floor. Each case uses real training images as the "model", so the right answer is "nothing is wrong" and any change from the floor is pure artefact. Stored losslessly (PNG) on both sides, they score 2.54 against the 10,000 test images.
  2. Saved as JPEG on one side. PIL, grey, read back: to the eye, the same garments. FID 5.10 at quality 90, 10.04 at 75 (PIL's default), 22.20 at 50. Real images saved as JPEG look the same and score four times worse.
  3. What changed. The absolute difference, amplified 8x: JPEG works on 8 x 8 blocks, and on a 28-pixel image one block is almost a third of the width. At quality 75 the mean change is 3.69 of 255 per pixel over all 10,000 images (PSNR 32.5 dB).
  4. Compress both sides. Compress the reference the same way and it comes back to 2.60.
  5. Resize one side. Only the real set pre-resized to 299, so the extractor's own resize does nothing for it: PIL bicubic 74.19 (bicubic overshoots at edges and blurs differently from the bilinear resize the reference gets), nearest-neighbour 331.25 (blocky: hard pixel edges the reference never has; cut at the top of the scale). The same function on both sides: 3.22, back near the floor; only the reference resized: 75.03.
  6. Model samples too. DDPM scores 11.46 as PNG, 15.40 with its samples saved as JPEG 75, 22.37 if only the reference is compressed, and 10.13 with both compressed, lower than its PNG score.

PIL saves JPEG at quality 75 unless told otherwise, so img.save("x.jpg") is enough: FID moves from 2.54 to 10.04. Compress the reference the same way and it comes back to 2.60. The clean-fid paper (Parmar, Zhang and Zhu 2022) found the same on FFHQ: JPEG-75 copies of real images score "a high score (21)", while StyleGAN2 scores "around 3"; and on LSUN Church, whose training images were stored as JPEG, compressing StyleGAN2's samples at quality 87 improved its FID from 4.00 to 3.48.

Compression is not neutral: it erases fine detail the model got wrong as well as detail it got right. The flow model: 15.96, 22.11, 21.40 and 13.75 in the same four cases. Other features notice JPEG too: the JPEG-75 real set's FD-DINOv2 is 81.3 (floor 17.1) and its CMMD 0.103 (floor 0.0002), worse than the flow model's 0.072.

Resizing

Inception wants 299 x 299. Downsampling with a fixed-width bilinear filter (TensorFlow 1, PyTorch's F.interpolate) aliases: fine detail folds into false patterns. Here the images are 28 px, so the resize is an upsampling and cannot alias; resizing one set differently still moves FID (Fig. 3, step 5). Beside: what each resize hands the network, and the same effect at full scale.

measured on Apple M1 Pro: 10,000 images per set, reference = the 10,000 test images, torch-fidelity 0.4.0 Inception features. Pre-resizing only the real set to 299 with PIL bicubic gives 74.19, with nearest-neighbour 331.25; both sets the same way, 3.22.

The same garment, resized to 299 three ways

At scale (FFHQ, 1024 px), the resize library alone moves FID by more than typical gaps between methods

published Parmar, Zhang and Zhu 2022, Table 1. Left: FFHQ real images resized to 299 by each library, scored against the PIL-bicubic version of the same images (right answer 0). Right: StyleGAN2's samples resized by each library, against PIL-bicubic reference statistics (2.98 when both match). The same real images already differ by 4.34 (TensorFlow bilinear) and 7.43 (nearest); StyleGAN2's 2.98 becomes 7.45 if only its samples go through TensorFlow's or PyTorch's bilinear resize. Their library offers mode="clean" (PIL bicubic) plus two legacy modes that reproduce the old numbers.

The reference set, the features and the code

  • Reference set. Training or held-out images, how many, which split: each gives a different number. ADM and EDM2 use statistics of the whole training set against 50,000 samples; this topic uses the 10,000 test images.
  • ImageNet leakage. Kynkäänniemi et al. 2022 resampled generated images so that Inception's top-1 class histogram matched the real data's: FID fell by about 10% with no visible change (FFHQ 5.30 to 4.70, Table 1), while FID in CLIP space barely moved (2.76 to 2.74). Matching all of Inception's "fringe" features cut FFHQ FID from 5.30 to 1.78. A generator (or a discriminator built on ImageNet features) can game FID without looking better.
  • Implementation. Inception weights ported from TensorFlow, the resize, float precision and the square-root method differ between libraries. The topic's setup found MPS features differ from CPU features by at most 1.8e-5 over 200 images; differences between libraries are larger. Compute every number you compare with one tool.
What to write next to an FID
Features and weights (for example torch-fidelity 0.4.0, inception-v3-compat), resize (library and filter), file format of both sets, reference set and its size, number of generated samples, and the spread over seeds. Without these, two FIDs are not comparable.

6. Prompt alignment: did it draw what was asked?

Distribution metrics ignore the prompt: a model that draws beautiful random scenes scores well. For text-to-image each image is also checked against its prompt, either with one similarity or with questions.

CLIPScore (Hessel et al. 2021) is CLIP's cosine between image and text, CLIP-S = 2.5 · max(cos, 0), with CLIP ViT-B/32 (the 2.5 stretches the usual 0 to 0.4 range of cosines; the paper scored captions, prefixed "A photo depicts"). Many text-to-image papers instead report 100 · cos with a larger CLIP and call it "CLIP score": the same idea on another scale. It needs no reference image and inherits CLIP's blind spots: CLIP's text side behaves much like a "bag of words" (the VQAScore authors' phrase), so counts, relations and text are weak, as Vision encoders shows with a typographic image (its section 6).

Question-answering checks ask instead. TIFA (Hu et al. 2023) turns the prompt into question-answer pairs with a language model and asks a VQA model about the image; with mPLUG it correlated with human faithfulness ratings at Spearman 0.60 against 0.33 for CLIPScore (Table 2). DSG (Cho et al. 2024) orders the questions in a dependency graph, so "is the motorcycle blue?" is skipped when there is no motorcycle. VQAScore (Lin et al. 2024) asks one question, "Does this figure show '{text}'? Please answer yes or no.", and uses the probability of "Yes"; on Winoground its group score was 46.0 against 7.8 for CLIPScore.

Compositional benchmarks fix the prompt suite and the judge. GenEval (Ghosh et al. 2023) uses an object detector instead of a VLM for six tasks (single object, two objects, counting, colours, position, attribute binding): SD v1.5 scores 0.43 overall, SDXL 0.55, IF-XL 0.61, with position at most 0.15 (Table 2), and it agrees with human annotators on 83% of images against 88% between annotators. T2I-CompBench (Huang et al. 2023; its extended ++ version: 8,000 compositional prompts in four groups, attribute binding, object relationships, generative numeracy and complex compositions) scores spatial relations and counts with a detector and the rest with multimodal LLMs. DPG-Bench (Hu et al. 2024, ELLA) is about 1,000 dense, long prompts for "dense prompt following". Each reports a per-skill breakdown, which is the useful part.

Measured: Stable Diffusion 1.5 with and without guidance

The topic's eight shared prompts, two seeds, four guidance scales (s = 1 is no guidance: one U-Net pass per step; 7.5 is the default), 64 images. Each image gets CLIPScore with CLIP ViT-B/32 (Hessel's model), the cosine from CLIP ViT-L/14 at 336 px, a VQAScore-style P(yes) and a TIFA-style share of three yes/no questions answered by SmolVLM-500M (the topic's VLM, not the papers' models).

Averaged over the 16 prompt-seed pairs, CLIPScore rises from 0.741 without guidance to 0.834 at s = 3 and 0.851 at 7.5, then 0.843 at 12; the VQA P(yes) from 0.70 to 0.90, the element questions answered yes from 75% to 90%. Without guidance (s = 1, the plain conditional model) several images barely follow the prompt: no stop sign, no lighthouse on a cliff, a distorted puppy (thumbnails above). Guidance costs time: 8.5 s per image at s = 1 (one U-Net pass per step) against 15.7 s with guidance (two). Past s = 3 the averages flatten, while the thumbnails get more saturated, which none of these scores penalises. The VLM has its own errors: it answers yes to "Does the mug say HELLO?" for a mug lettered HELLLO (seed 0, s = 12) and for a plain mug with the word on a card beside it (seed 1, s = 7.5), so a VQA-based score is only as good as its VLM.

Predict: for "an astronaut riding a horse on the moon, digital art", which score notices that the horse is missing?

Same prompt, same noise: the similarity creeps up, the question says what is missing

SD 1.5 fp16, 512 x 512, 25 DPM-Solver steps, attention slicing; SmolVLM at 320 image tokens. measured on Apple M1 Pro (MPS). Thumbnails reduced for the page.

7. Human preference: arenas and reward models

People are the final judge. Arenas show two anonymous models' images for the same prompt, collect a vote, and fit a Bradley-Terry (Elo-style) rating; the mechanics, confidence intervals and critiques (style, self-selected prompts, private variants) are on Human preference and arenas. The text-to-image boards move monthly; a dated reading is in the closed block at the end of this section.

Reward models learn to predict those votes, so they can score thousands of images (or serve as a reward for fine-tuning). They are measured by the share of held-out human pairwise choices they predict:

Each model wins on its own test set; on another's the gap shrinks (HPS v2 reaches 65.7% on ImageReward's test set, ImageReward 65.1%). PickScore's model rankings correlate 0.790 with the users' own Elo rankings. A reward model is a learned proxy: optimise a generator against it and you get what it rewards, not what people want (the failure Reward hacking describes for language models), and reporting the same reward model you trained against goes up by construction. Hold out a different reward model, a question-based check and a human comparison. These numbers are the papers' (not run here: each model is about 1B parameters and teaches nothing a table does not).

On one shared test set (HPD v2), every fine-tuned reward model beats raw CLIP, and the set's own model wins

HPS v283.3%
PickScore79.8%
ImageReward74.0%
CLIP ViT-H/1465.1%

published accuracy on pairwise human choices, HPD v2 test set (Wu et al. 2023); bar length is the accuracy on a 0 to 100% axis, 50% is chance.

Each reward model: backbone, training data, accuracy on its own test set
ModelBackboneTraining dataAccuracy on its own test setBaselines in the same table
PickScore (Kirstain et al. 2023)CLIP-H, fine-tunedPick-a-Pic: real users' choices in a web app, 583,747 training examples70.5%expert humans 68.0%, zero-shot CLIP-H 60.8%, aesthetics 56.8%
HPS v2 (Wu et al. 2023)OpenCLIP ViT-H/14, fine-tunedHPD v2: 798,090 choices83.3%PickScore 79.8%, ImageReward 74.0%, CLIP ViT-H/14 65.1%
ImageReward (Xu et al. 2023)BLIP136,892 expert comparisons over 8,878 prompts65.14%CLIP score 54.82%, aesthetic 57.35%, BLIP 57.76%
Dated reading: the text-to-image arena boards, October 2026 (volatile)
LMArena (arena.ai) Text-to-Image, board dated 7 Oct 2026 (Wayback capture of 8 Oct; the live page was blocked on 17 Oct): 6,604,125 votes, 82 models. 1 gpt-image-2.5-sunburst 1425±7 (preliminary, 17,752 votes); 2 gpt-image-2.5-flare 1398±7 (preliminary); 3 gpt-image-2 (medium) 1383±4 (93,334 votes); 4 grok-imagine-image-2.0 (canvas) 1334±12 (preliminary, 3,113 votes); 5 mai-image-2.6 1332±5. (source)
Artificial Analysis Image Arena, text to image, read 17 Oct 2026 from the page's data (no vote counts or date shown): GPT Image 2.5 Sunburst (max) 1220, GPT Image 2.5 Flare (max) 1207, GPT Image 2 (high) 1186, Nano Banana 2.1 1174, Grok Imagine Image 2.0 1167; FLUX.2 [dev] is pinned at 1000. (source)

The two boards use different anchors and voters, so their numbers are not on one scale: compare ranks, not values. Ratings with few votes ("preliminary") move.

8. Vision-language models: benchmarks with answer keys

A VLM answers questions about images, so it is graded like a language model, against known answers. The benchmarks are named on Vision-language models: how images become tokens and catalogued with current scores on Long-context and multimodal benchmarks; the statistics of grading (error bars, paired tests) are on Eval statistics. Two habits carry over to every VLM score: report a text-only (blind) baseline beside it (GeminiPro scores 42.9% on MMMU with no image at all, random 22.1%), and report the yes-rate beside any yes/no accuracy (a model that always says yes gets F1 66.67 on POPE). The sibling page ran a POPE-style probe on SmolVLM-500M (69 of 72 right, yes to 2 of 47 absent objects, both adversarial: "a dog" on the cat with a DOG sticker); that page owns the probe.

What each image benchmark guards against, and the number that shows why (POPE's yes-bias, MMBench's CircularEval, MMStar's questions that need the image, OCRBench's five parts), is owned by Long-context and multimodal benchmarks.

9. Video and audio: the same recipe, other features

FVD (Unterthiner et al. 2018) is the Fréchet distance on features of I3D, an action-recognition network trained on Kinetics. It inherits FID's sample-count and preprocessing traps and adds one: Ge et al. 2024 found that FVD "increases only slightly with large temporal corruption" and that picking motionless samples can "drastically decrease FVD without improving the temporal quality": it mostly scores frames, not motion. Movie Gen's authors state that FVD and IS "do not correlate with human evaluation scores" and use human comparisons instead; VBench (Huang et al. 2023) splits video quality into 16 dimensions, each with its own prompts and evaluator. FAD (Kilgour et al. 2018) is the Fréchet distance on VGGish audio embeddings; on artificial distortions it correlated 0.52 with human ratings, against 0.39 for the signal-to-distortion ratio. The models these score are on Video and audio generation.

Depth: mistakes, design questions and provenance

Four mistakes the sections above do not show

Fewer samples than feature dimensions. With N below 2,048 the Inception covariance is singular (below 128 for the classifier's features). Scoring 20 samples in the classifier space during this page's CPU smoke test, the topic's own fid.py printed LinAlgWarning: Matrix is singular. The result might be inaccurate or the array might not have a square root. The number still comes out, and means little.

Taking the first N samples of a class-sorted set. This page's first KID cross-check passed torch-fidelity the first 2,000 DDIM samples. The sets are stored 1,000 per class in class order, so those were T-shirts and trousers only: KID x 1,000 came out 49.7 instead of 4.97 for a random 2,000. Shuffle before taking a subset.

Mixing CLIPScore conventions. 2.5 · cos with ViT-B/32 (Hessel et al.), 100 · cos with ViT-L/14 (many text-to-image papers), with or without "A photo depicts": three scales for one idea. The same SD image scores 0.900 as Hessel's CLIP-S, 0.895 with the "A photo depicts" prefix, and 33.9 as 100 · cos with CLIP L/14-336 (the puppy, seed 0, s = 7.5).

Reading a small FID change as progress. FID went from 9.1 to 8.4 after your change: same reference set, N, resize, file format and code? Several seeds? A 0.7 difference between single runs can be noise. Check precision and recall, the samples, and a second metric with different features (FD-DINOv2 or CMMD).

Two design questions (interview rehearsal)

You ship a new image model weekly. Design its evaluation. Fixed, versioned harness. Fidelity and diversity: FD-DINOv2 and FID (torch-fidelity, PNG, clean resize) on 30k to 50k samples against a fixed reference, plus precision and recall, with seed spread. Prompt following: GenEval-style detector checks and VQA-based scores on a fixed prompt suite, broken down by skill (counting, text, spatial). Preference: a held-out reward model that is never the training reward, plus a weekly blind human side-by-side against the current model (a few hundred pairs, Bradley-Terry with intervals). Safety and regressions: a red-team prompt set. Gate releases on human preference, not on any single automatic metric; track automatic metrics for regressions between human rounds.

How would you measure and reduce VLM hallucination? Measure with POPE-style balanced yes/no questions (random, popular, adversarial absent objects; report yes-rate and F1), a caption hallucination rate, and a blind baseline. Reduce with higher resolution or more image tokens, negative examples ("no") in instruction data, preference tuning against hallucinated answers; re-measure on held-out images.

What ran, on what, and the sources read

Runs (measured on Apple M1 Pro, 16 GB; GPU steps on MPS one at a time under the topic's shared lock with PyTorch's memory cap at 0.45 of the machine; torch 2.14.1, diffusers 0.41.0, transformers 5.20.1, torch-fidelity 0.4.0; code in this page's src/runs/, recorded outputs in src/out/):

  • ev_gen.py: eight sets of 10,000 images from checkpoints already trained by the topic (nothing trained here); peak MPS memory 4.3 GB. The first attempt ran out of memory under the cap on the guided flow model (batches of 2 x 1,000); guided sampling now runs 500 at a time.
  • ev_feats.py: Inception (134 images/s), DINOv2 ViT-B/14 (66 images/s), CLIP B/32 (131 images/s) and CLIP L/14 at 336 px (9 images/s, so 1,000 images per set) features of the reference, every set and the pitfall variants. Checks: the setup's reference statistics reproduced exactly and its real-vs-real floor at 10,000 (2.538); the Vision encoders page's DINOv2 test vectors reproduced (cosine 1.0000).
  • ev_metrics.py (CPU, about 10 minutes): every metric at six N, precision and recall, pitfalls; checked against scipy's matrix square root and torch-fidelity's KID.
  • ev_sd.py: Stable Diffusion 1.5 fp16, 64 images (peak 4.5 GB). ev_clipscore.py (CPU, 36 s). ev_vqa.py: SmolVLM-500M bf16, 256 questions in 353 s.

Models: the topic's checkpoints (TinyUNet DDPM resumed to 8,000 steps by Diffusion from zero, the topic's flow model (root Flow lab recordings), the topic's 16-d VAE (root Latent lab recordings); Fashion-MNIST, MIT licence); stable-diffusion-v1-5/stable-diffusion-v1-5 at 451f4fe (CreativeML OpenRAIL-M; safety checker not loaded); HuggingFaceTB/SmolVLM-500M-Instruct at a7da5b9 (Apache 2.0); openai/clip-vit-base-patch32 at 3d74acf and openai/clip-vit-large-patch14-336 at ce19dc9 (no licence field on the Hub cards; the OpenAI CLIP code is MIT); facebook/dinov2-base at f9e44c8 (Apache 2.0).

Source read: torch-fidelity v0.4.0 (feature_extractor_inceptionv3.py lines 103 and 111, metric_fid.py line 39, defaults.py lines 20 and 21, metric_kid.py line 68); google-research cmmd (distance.py lines 25, 28, 35, 59 to 90; embedding.py line 23; io_util.py line 46) and scenic's CLIP layers.py line 454, read 2026-10-17; the topic's src/data/fid.py. Every line in src/inputs/source_lines.json.

Papers and leaderboards: 73 entries, each with its quote, table and URL, in src/inputs/published.json (read 2026-10-17). Disagreements found while reading them are in the page's src/facts.md (for example CMMD's paper against its code, and the FID sample-size advice living in the code README rather than the paper). T2I-CompBench and DPG-Bench were added on 2026-10-24 from their arXiv abstracts.

Scripts and recorded outputs: src/runs/ and src/out/ in this page's folder; runs/make_data.py builds the page data, runs/check_data.py proves the page embeds exactly it.