Concepts / Measuring Model Performance

Measuring Model Performance

An evaluation set is a dataset used to test and validate the performance of a model or system, and the source recommends building it at the start of a project, after scoping.

  • Programming

Two Systems With the Same Score

Imagine a contract-review system that has just finished its first full run and produced an overall score. That number tells you how the system did on average, but it does not tell you where it went wrong. Two different systems can earn the same aggregate score while failing in completely different ways. One might consistently miss a single high-stakes clause type, while the other scatters small errors across many documents. Both produce the same headline number, yet the right next step is different for each.

This article follows one idea from the source material: the diagnostic value of a first run is often higher than any aggregate score it produces. Before you tune anything, you need to know which situation you are in. The article covers why measurement is set up at the start of a project, how a gap between results and expectations is judged, how individual failures are read, and how to tell whether a stalled metric is a prompt problem or a rubric problem.

Building the Evaluation Set First

Definition

An evaluation set is a dataset used to test and validate the performance of a model or system. The source recommends building it at the start of a project, after scoping.

A common instinct is to scope the project, then move straight into building. Production code gets written, integrations get stood up, and the model gets deployed, and only then does anyone check how well the result performs. The assumption behind this sequence is that measurement can wait until there is something substantial to measure.

The source rejects this sequence directly. During the first week, the team does not write production code, stand up the integration, or deploy the model. Instead, that week is spent building the evaluation set and running baseline performance against it. The reason is that the evaluation set is the instrument that makes the rest of the project measurable. Once it exists, the team can see how the system performs before any optimization has been applied. That starting measurement gives the team and the customer something concrete to discuss, rather than an unspoken expectation that each side may interpret differently.

Scopingdefine the workEvaluation set andbaselinefirst weekGap shown to customernext to the expectedthresholdScope and timelinesetshaped by the gapCode, integration,deploymentbuilt after measurementthenthenthenthen
At what point in the project does the evaluation set get built, and what is gained by building it early? The evaluation set is built right after scoping and before development, so the starting gap is visible while changes are still cheap.

Reading the Baseline Gap

Definition

Baseline performance is the result measured against the evaluation set before any optimizations. It is shown to the customer alongside the threshold the customer is paying for. The gap is the distance between what the baseline shows and what the customer is paying for.

Trace the state of a project through this comparison. Start with the baseline score and the customer's expected level. If the baseline already meets the threshold, the gap is effectively closed. If it falls short, the size of the shortfall becomes the central fact for planning. The source describes two outcomes. When the gap is small, the engagement is expected to be short. When the gap is large, the source does not promise a fixed schedule; instead, the team and customer can use the shared understanding to adjust scope and timeline together. The value lies in making the gap visible early, while changes are still possible.

Gap sizeWhat the source says followsWhy it matters
SmallThe engagement is expected to be shortLittle re-planning is needed; the plan can proceed largely as scoped
LargeTeam and customer adjust scope and timeline togetherAvoids misaligned expectations and late-stage scope creep

How the size of the baseline gap shapes the rest of the engagement, as described in the source

Why One Failed Case Matters

An aggregate score averages over every document, so a specific failure can disappear inside it. An aggregate score summarizes results, but the individual failures from a diagnostic run often reveal the specific cause that needs fixing. Pulling one miss out of the score and reading it closely is how you learn what the average hides.

Worked example

Reading two misses from a contract-review run

The first run of a contract-review system produced an overall score. Looking at the individual misses on material clauses, two were indemnification clauses. Each one, taken alone, could be dismissed as a fluke. What do the two misses have in common?

  1. 1
    Take each miss on its own

    One indemnification clause was missed. Viewed in isolation, a single miss looks like bad luck or noise.

  2. 2
    Compare the locations

    One clause sat in an appendix. The other appeared inline inside a definitions section. Both were non-standard placements.

  3. 3
    Name the shared pattern

    The two misses share one cause: the clauses were written in a non-standard placement. That pattern is a testable hypothesis, not a random error.

  4. 4
    Ask what the average hides

    The overall score treated these as two small losses among many documents. The shared cause is only visible when the misses are read together.

Result

Two misses that looked like isolated flukes point to one specific, fixable cause: non-standard clause placement. The aggregate score alone would not have revealed this.

The contrast between the two systems in the introduction makes the point clear. One system that consistently misses a single high-stakes clause type and another that scatters small errors can share an identical score. Only the individual failures reveal which situation you are in, and therefore which change is worth making.

From Misses to Targeted Changes

Diagnostic analysis reads misses together to find a shared pattern, then turns that pattern into a testable hypothesis. The next step is a targeted change aimed directly at that pattern. The source describes three prompt changes working together: explicit instructions to scan appendices and definitions, and a structured pre-pass that listed every section of the contract before the redline pass began. The effect was that the C1 gap closed on the next run. The source does not elaborate on what C1 measured beyond this gap, so the lesson here is about the method, not the specific metric.

The first run does not end the process. It supplies the evidence that shapes the next change. The cycle repeats: diagnose the misses, change the prompt or rubric, and re-run against the same evaluation set to confirm or refute the change. Each pass carries a specific piece of knowledge forward, from raw misses, to a shared cause, to a targeted adjustment, and finally to a re-run.

Diagnosefind the shared cause ofthe missesChangetargeted prompt or rubriceditRe-runscore the same evaluationsethypothesisapplynew misses
In what order do the diagnose, change, and re-run steps repeat, and how does each pass feed the next one? The re-run produces new misses, which return to diagnosis.

The loop is read as a cycle rather than a single pass. Each re-run either confirms the hypothesis, as when the C1 gap closed, or refutes it, in which case the misses are diagnosed again with the new evidence in hand.

Prompt Problem or Rubric Problem

When a metric stalls, the instinct is to change the model or its prompt. The source warns that this is not always right. Before concluding the model is at fault, check whether the rubric is unclear. A rubric is the set of grading criteria that decide whether an output counts as correct. If those criteria are ambiguous, the metric cannot measure the intended behavior reliably, and changing the model would not fix a measurement that was ambiguous to begin with.

The source reports that its C2 gap took longer to resolve and turned out to be a rubric-clarity problem more than a model problem. The fix that worked was a second iteration of the rubric, with worked examples for each risk level. The source says this revision unblocked the metric. The practical lesson is that the rubric is part of the evaluation system. An unclear rubric can make a correct output look wrong, or an incorrect output look right.

Metric has stalledno improvement across runsIs the rubric clear?can graders apply itconsistently?Revise the rubricadd worked examples perrisk levelRe-run the evaluationsame evaluation setAre the misses apattern?shared cause across misses?Change the prompttargeted instructions orpre-passcheck firstnoyesyes
When a metric stops improving, which question should be asked first, and which branch leads to changing the prompt versus clarifying the rubric? The rubric question comes before the prompt question.

Read the flowchart as a sequence of checks. The rubric question comes first because a stalled metric may be a measurement problem rather than a model problem. Only when the rubric is clear and the misses share a pattern does a targeted prompt change follow. Either branch ends in a re-run against the same evaluation set, so the effect of the change can be confirmed.

Mistakes Teams Make With Measurement

  • Common mistake

    Building the evaluation set at the end of the project

    Why it fails

    The source recommends building it at the start, after scoping. Waiting until delivery means the gap appears when changes are expensive, and expectations may already be misaligned.

    Do this instead

    Spend the first week building the evaluation set and running baseline performance before writing production code.

  • Common mistake

    Trusting the overall score and ignoring individual misses

    Why it fails

    Two systems can share an identical aggregate score while failing in completely different ways. The average hides the cause.

    Do this instead

    Read the individual failures from the first run and look for a shared pattern before deciding on a change.

  • Common mistake

    Blaming the model whenever a metric stalls

    Why it fails

    A stalled metric can be a rubric-clarity problem. If the grading criteria are ambiguous, the metric cannot measure the intended behavior, and changing the model will not fix it.

    Do this instead

    Check whether the rubric is clear first, and revise it with worked examples if it is not.

  • Common mistake

    Hiding a large gap from the customer to keep the schedule intact

Applying the Loop to a New Review Run

This scenario is generated for practice and is not drawn from the source. A contract-review system's first run on an evaluation set shows that its misses cluster on limitation-of-liability clauses. Three of the four misses are clauses placed inside an exhibit, not the main body. Work through one pass of the loop: state the shared cause you would hypothesize, the targeted change you would make, and what the re-run should show if your hypothesis is right.

MEDIUM

Using the diagnose, change, and re-run loop, write a short plan for the contract-review system described above. Name the shared cause, the single targeted change, and the outcome that would confirm the hypothesis. Then state what you would do if the re-run showed no improvement, and whether you would check the rubric before changing the prompt again.

Hints
  • Start by asking what the misses have in common, as the source does with the two indemnification clauses.
  • A good change is targeted at the shared cause, for example an instruction to scan exhibits, rather than a general rewrite.
  • If the re-run does not move the metric, the flowchart in the previous section suggests checking whether the rubric is clear first.

Key Takeaways

  • An evaluation set is a dataset used to test and validate a model or system, and the source recommends building it at the start of a project, after scoping, so that the gap to customer expectations is visible while changes are still cheap.
  • Baseline performance is measured against the evaluation set before optimization and shown to the customer next to the expected threshold; a small gap suggests a short engagement, while a large gap lets the team and customer adjust scope and timeline together.
  • An aggregate score hides the cause of failure, so reading individual misses together can reveal a shared pattern, such as the non-standard clause placements in the source's indemnification example.
  • Diagnose, change, and re-run is a cycle: each targeted change is confirmed or refuted on re-run, and new misses return to diagnosis.
  • When a metric stalls, check whether the rubric is unclear before blaming the model, because an ambiguous rubric can make correct outputs look wrong and incorrect outputs look right.