The evaluation mindset
Before any metric: how is the output used, what does each error cost, and what failures do you fear? The evaluation mindset — error taxonomy before metrics — drilled on three systems where the obvious metric hides the real failure.
On this page
The evaluation mindset
”Here’s the model — evaluate it”
A teammate drops a trained model in your lap: “It works pretty well. Can you set up an eval?” Your hands itch to compute accuracy, or BLEU, or to spin up an LLM-as-judge. In the interview version of this moment, that itch is the trap.
Pause: before any metric, what three questions decide whether the eval will mean anything? Write them down.
What before how
Strong evaluators start from the system, not the metric. Three questions, in order:
- How is the output used? A ranked queue worked top-down, a probability that sets a price, a generated answer a user trusts — each implies a different metric family before you pick a specific number.
- What’s the operating point and the cost of each error? A fixed review capacity, a recall floor, a false-positive budget. Which mistake is expensive, and how much more than the other? (Chapter 2 turns exactly this into a threshold.)
- What failures do you most fear? Write the error taxonomy first — the concrete ways this system goes wrong — and the metrics fall out of it. Starting with “let’s compute ROUGE” before “what does broken look like here?” is backward.
The taxonomy tells you what to measure; the metric is only how well you measure each item on it. Reverse that order and you get a number that’s easy to compute and easy to game, tracking a failure mode nobody cares about.
The wrong metric hides the failure
The same model can look great or terrible depending on which metric you reach for — and the tempting metric is often the one that hides the failure that matters. Three systems, three traps:
- A fraud queue worked at fixed capacity: accuracy is ~99% by doing nothing, and a whole-list ranking score grades cases no investigator will ever see.
- An insurance price built from a predicted probability: a model can rank risk beautifully (AUC 0.95) and still be miscalibrated enough to misprice every policy.
- A RAG answer with sources: a fluent reply can match a reference yet invent facts the documents never supported.
Predict, for each, which metric matches the use — then see what the alternatives hide.
For each system, pick the metric that matches how the output is actually used. Then see what the tempting wrong choices quietly hide.
A fraud model scores every transaction; investigators work the top ~200 flagged cases a day — no more, no less.
A model outputs the probability a policy files a claim, and that probability is multiplied into the premium customers pay.
A retrieval-augmented assistant answers from retrieved documents; some answers add confident facts the documents never stated.
Now explain the pattern you used: in every case the right metric mirrors how the output is consumed — the top of a capacity-bounded queue, the calibrated probability itself, the grounding of a generated claim. The wrong choices aren’t incorrect arithmetic; they’re correct numbers answering the wrong question.
Now apply it on a system you haven’t seen.
How this is graded
- Technical Correctness — you map a system to the right metric family (classification vs ranking vs calibration vs generation) and know why.
- Trade-off Awareness — this chapter’s weighted dimension: you start from use and error cost, and can say what each tempting-but-wrong metric hides.
- Evaluation Rigor — you write an error taxonomy before metrics, and stratify rather than trusting one aggregate number.
- Communication — “the output feeds a fixed-capacity queue, so I’d report precision@k, not AUC” is the one-sentence justification interviewers grade.
Industry variation
- Frontier labs / research — capability and safety are co-equal; “what failure do you fear” includes harmful or deceptive outputs, not just wrong ones.
- Fintech / risk — calibration and fairness sit beside accuracy, because the probability is the product and the decision is regulated.
- Healthcare — the feared error (a missed diagnosis) dominates metric choice; recall and calibrated risk beat headline accuracy.
Stretch: the metric that looked fine
Your triage model’s offline F1 has been flat for months — green dashboard, no alerts. Then the human automation rate quietly climbs from 42% to 62%, and complaints rise with it. The offline metric never moved. What did it fail to measure, and what would you have watched instead? (Hint: the threshold the product runs at drifted as the input mix changed; F1 at a fixed cut missed a calibration shift — Chapter 4 — and an online signal — Chapter 11 — would have caught it. The mindset lesson: an unmoving offline number is not the same as a system that’s still working.)