What does “good” mean when many answers are possible?
A classifier can be checked against a known label. A generator is different: ten useful summaries or images may all look different, so there is often no single exact answer to compare with. Evaluation begins by defining the qualities that matter for the real user job, then measuring those qualities separately.
An attractive image may ignore the prompt. A fluent answer may invent a fact. A strong model may be too slow or expensive for the product. These are different failures, and one impressive score cannot make the others disappear.
Evaluating Generative Models in Simple Words
Evaluating a classification model is simple: is the email spam or not? Evaluating generative AI is much harder: there is no single "correct" response to a prompt. Instead, we measure multiple dimensions: FID (Fréchet Inception Distance) measures whether generated images match real statistical distributions, CLIP Score measures prompt adherence, and Human Preference ranks creative appeal!
Perceptual Fidelity
FID & IS measure realism and sharpness
Prompt Alignment
CLIP & semantic similarity score intent match
Coverage & Diversity
Verifies the model doesn't suffer mode collapse
Human & LLM Judges
Paired side-by-side preference tournaments
Build a quality profile, not a single scoreboard number
| Dimension | Question it answers | Possible evidence | Better direction |
|---|---|---|---|
| Fidelity / perceptual quality | Does the output look or sound plausible? | Human ratings, feature-distribution metrics | Higher rating; often lower distance |
| Diversity / coverage | Does the system cover the useful range rather than repeat one pattern? | Mode, duplicate, and coverage analysis | Broader relevant coverage |
| Condition adherence | Did it follow the prompt, label, layout, or other control? | Rubric scores, constraint checks, text–image similarity | Higher |
| Factuality / grounding | Are claims supported by supplied evidence? | Citation checks, evidence matching, expert review | Higher support; fewer unsupported claims |
| Task success | Did the output help the user complete the intended job? | Acceptance, completion, correction, or conversion rate | Depends on the product goal |
| Human preference | Which candidate do people prefer under a defined rubric? | Blind A/B choices and comments | Higher, with uncertainty reported |
| Safety | How often does harmful, private, or prohibited output occur? | Safety test-set failure rate and red-team findings | Lower failure rate |
| Latency and cost | Can the system meet its service and budget constraints? | p50/p95 latency and cost per successful task | Usually lower after quality gates pass |
Design the test set before comparing models
Start with representative cases drawn from the intended workload. Add difficult edge cases, deliberate adversarial attempts, and subgroup slices whose failure might be hidden by an overall average. Keep this set fixed and versioned so a later model faces the same questions.
Keep evaluation cases out of training and prompt-tuning data: that hold-out separation protects the test from becoming practice material. If generation is random, run important cases several times with recorded seeds or settings. One lucky sample does not describe a distribution of possible outputs.
Figure 1 — Evaluation begins with the use case and ends with a release decision
Choose only the quality dimensions that the user job actually needs. Automatic checks and human review produce complementary evidence before failures are sliced and a candidate is released, selected, or rejected.
The use case and success criteria lead to a selected quality profile, a fixed evaluation set, and recorded candidate models or settings. Each candidate branches into automatic evaluation and human review. Their evidence reunites in failure and subgroup analysis, which leads to release, select, or reject. The quality profile lists fidelity, diversity, adherence, factuality, safety, latency, and cost as possible dimensions rather than mandatory universal metrics.
What FID, KID, and CLIP-like scores actually say
For image generation, Fréchet Inception Distance (FID) sends real and generated images through a feature extractor. It compares the centre and spread of the two resulting collections of feature vectors. A lower distance means the generated collection is closer to the real collection in that feature space. FID is therefore a set-level comparison—not a quality score for one image.
μᵣ and μg are the mean feature vectors calculated from the real and generated sets. Σᵣ and Σg are their covariance matrices, which describe how features vary together. || · ||² is squared distance, and Tr adds the diagonal entries of the matrix term. Software performs this matrix calculation; the beginner interpretation is “difference in feature centres plus difference in feature spread.”
FID changes with sample count, preprocessing, feature extractor, and image domain. A score computed on natural photographs is not automatically meaningful for medical scans or diagrams. Compare candidates only under the same documented pipeline. KID also compares feature distributions using a kernel estimate and is commonly reported with uncertainty across subsets; it remains a distribution proxy, not proof of usefulness or safety.
A CLIP-like alignment score compares an image embedding with a text embedding, often using cosine similarity. Higher similarity can indicate that the picture matches the prompt better, but it does not prove clean anatomy, readable text, factual correctness, diversity, or safety.
t is the text feature vector and i is the image feature vector produced by the chosen encoder. The dot product t · i and the two vector lengths are calculated from those model-produced features. The result measures directional closeness in that feature space; it is not a percentage of total image quality.
FID Score (Lower is Better) vs Inception Score (Higher is Better)
FID measures distance between generated and real feature distributions; Inception Score measures class certainty and diversity.
Human review answers questions that proxies miss
In a blind A/B comparison, reviewers see two anonymous outputs for the same case and choose one using a written criterion. Removing model names reduces brand and expectation bias. A rubric-based review instead scores defined properties—for example, instruction coverage from 1 to 5—and records a reason.
Reviewers can disagree because quality is partly subjective or the rubric is unclear. Report agreement, inspect disputed cases, and calibrate reviewers with examples. Also tag failures in words such as “missed object,” “unsupported claim,” or “distorted text.” Those tags tell the team what to fix; an average alone does not.
Worked example: two product-image generators
A hypothetical retail team compares Generator A and Generator B on the same 100 held-out product prompts. Each model produces one image per prompt using recorded settings. Reviewers also make 50 blind paired choices. The table contains hypothetical measured results, not claims about real products.
| Measure and source | Generator A | Generator B | Direction |
|---|---|---|---|
| Prompt adherence Mean of reviewer-assigned 1–5 rubric scores | 4.4 | 4.0 | Higher is better |
| Artifact rate Tagged failures ÷ 100 generated images | 8 ÷ 100 = 8% | 3 ÷ 100 = 3% | Lower is better |
| Human preference Wins in 50 blind paired reviews | 31 ÷ 50 = 62% | 19 ÷ 50 = 38% | Higher is better |
| p95 latency Measured request time below which 95% of runs completed | 4.2 seconds | 2.1 seconds | Lower is better |
| Cost per successful image Hypothetical billed compute ÷ usable outputs | $0.04 | $0.02 | Lower is better |
A wins preference and adherence; B wins artifact rate, latency, and cost. The product team had already chosen two release limits: artifact rate at most 5% and p95 latency at most 3 seconds. A fails both, so B is the measured choice for this release. Those thresholds are developer/business choices, not universal constants. Averaging all five columns into one score would hide why A was rejected.
Figure 2 — Generator A and B win different dimensions
Bars are scaled within each row only; do not compare bar lengths across different metrics. A passes preference and adherence more strongly, while B has fewer artifacts, lower latency, and lower cost.
Five paired metric rows compare hypothetical Generator A and B. Prompt adherence is 4.4 versus 4.0, where higher is better. Artifact rate is 8 percent versus 3 percent, where lower is better. Human preference is 62 percent versus 38 percent, where higher is better. P95 latency is 4.2 seconds versus 2.1 seconds, where lower is better. Cost per successful image is four cents versus two cents, where lower is better. Hard release gates require artifact rate at most 5 percent and p95 latency at most 3 seconds, so only B is eligible despite A winning other dimensions.
Prompt adherence ↑
row winner: AArtifact rate ↓
row winner: BHuman preference ↑
row winner: Ap95 latency ↓
row winner: BCost / successful image ↓
row winner: BHard gates: artifacts ≤ 5% · p95 ≤ 3 s
No combined score: “best” depends on requirements.
Reproduce two rates from the scorecard
This runnable Python 3 code calculates artifact and preference percentages from the hypothetical observed counts. The rubric score, latency, and cost were measured separately and are therefore not invented by this calculation.
# Hypothetical review counts from the worked example below.
evaluations = {
"Generator A": {"artifact_cases": 8, "outputs": 100, "preference_wins": 31},
"Generator B": {"artifact_cases": 3, "outputs": 100, "preference_wins": 19},
}
paired_reviews = 50
for name, result in evaluations.items():
artifact_rate = 100 * result["artifact_cases"] / result["outputs"]
preference_rate = 100 * result["preference_wins"] / paired_reviews
print(f"{name}: artifacts={artifact_rate:.0f}%, preference={preference_rate:.0f}%")Common mistakes and what to inspect next
| Mistake | Why it misleads | Diagnostic action |
|---|---|---|
| Reporting one average | Safety, rare failures, or a subgroup can disappear inside it. | Break results down by case type, subgroup, and failure tag. |
| Changing prompts between candidates | The comparison mixes model and test-set effects. | Freeze cases, settings, seeds, preprocessing, and scoring code. |
| Treating proxy metrics as truth | A feature distance or embedding similarity covers only part of quality. | Pair proxies with task checks, human review, and failure inspection. |
| Evaluating one random sample | A lucky or unlucky output may dominate the conclusion. | Repeat generation and report variation or pass rates. |
| Tuning on the final test set | The set becomes training feedback and stops estimating unseen performance. | Keep a separate final hold-out and version every evaluation set. |
Summary / Key Takeaways
- Generative-model evaluation begins by defining separate quality dimensions from the real user job because many different outputs may be acceptable.
- Every candidate should face the same fixed, held-out, versioned cases, including representative work, edge cases, adversarial attempts, and important slices.
- FID and KID compare generated and real feature distributions; a CLIP-like score estimates text–image alignment, but none is a universal quality score.
- Blind A/B comparisons, explicit rubrics, reviewer calibration, agreement, and failure tags reveal information that automatic proxies miss.
- Random generators should be run repeatedly with recorded settings because one lucky sample does not describe the output distribution.
- Hard release limits can eliminate a candidate even when it wins another metric, as the product-image example demonstrates.
- A defensible conclusion documents trade-offs across quality, safety, latency, cost, and slices instead of hiding them inside one average.