Skip to content
mentoor

Topic 2 of 6 · 4 min read

Why one good answer proves little

Goal: Explain why one successful run does not establish a pass rate and state how many runs a given claim needs.

A language model samples its answer, so the same input can pass today and fail on the next call; one success is one draw, not a pass rate. To claim a feature works, you need many draws.

Check yourself · 1 of 3

Why does a single successful run of an LLM feature not show that it works reliably?

Choose one answer

Why it matters

In ordinary code, add(2, 3) returns 5 every time, so one test is enough. A model call is different. At a temperature above zero, the model picks each next word from a probability spread. Run the same prompt ten times and you may get ten different answers, some right and some wrong. Even at temperature zero, providers do not promise identical output on every call.

Three other things move the answer without you touching your code:

  • Prompt sensitivity. A reworded input, an extra space, a different order of examples or a longer context can flip a result.
  • Model updates. A provider can change a hosted model behind an alias. Pin a dated model version when the provider offers one, and still expect to recheck.
  • Input variety. Real users write in ways you did not try.

How to reason about it

Treat each case as a small experiment. If a case passes 7 times out of 10, its pass rate is about 70 percent, and one run has a 70 percent chance of showing a pass. A single green run on a 70 percent feature is the normal outcome, not proof.

Match the number of runs to the claim:

Claim What you need
"It can do this" one pass is enough to show it is possible
"It does this reliably" many runs per case, across many cases
"This change is better" the same cases and runs for both versions, compared side by side
"It never does X" an eval cannot prove never; add a hard guard in code

For a first eval, run each case 3 to 5 times and record how many pass. Cases that pass sometimes are your most useful ones: they mark the edge of what the prompt handles.

Before and after

Before: "I ran it, it extracted the date correctly."

After: "Across 20 invoices, 5 runs each, the date was right in 88 of 100 runs; 3 invoices account for 11 of the 12 misses."

What goes wrong

  • Averaging away the flaky cases. Report per-case pass counts, not only a total.
  • Comparing two versions on different samples. Use the same cases for both.
  • Assuming a fixed model. Rerun the eval after any provider change.
  • Setting temperature to zero and calling it settled. It narrows variance. It does not remove it.

Examples

Table of one case, ten runs

Run 1 2 3 4 5 6 7 8 9 10
Date extracted correctly pass pass fail pass pass pass fail pass pass pass

8 of 10. Anyone who ran it once saw a pass with 80 percent probability and would have said it works.

The silent alias

An app calls model: "provider-large-latest". Overnight the alias moves to a new snapshot. Output format shifts slightly, the JSON parser fails on 6 percent of replies, and no code was deployed. Pinning a dated snapshot and rerunning the eval on every change would have shown it.

Key points

  • A model call is a draw from a distribution, so one pass shows possibility, not a pass rate.
  • Rewording, context length and provider model updates can all change an answer without a code change.
  • Run each case several times and record passes per case, not one total.
  • Flaky cases that pass sometimes mark the edge of what the prompt can do; keep them.
  • Use identical cases and run counts when comparing two prompts or models.
  • An eval measures how often something happens; use a code guard for something that must never happen.

Common mistakes

  • Trusting one green run after a prompt change.
  • Reporting a single overall percentage and hiding which cases are flaky.
  • Comparing a new prompt on one run against an old prompt's remembered result.
  • Assuming temperature zero makes a model fully repeatable.

Check yourself · 2 of 3

One test case passed in 7 of 10 runs. Which statement is most accurate?

Choose one answer

Check yourself · 3 of 3

You want to say a prompt change is better. What makes the comparison fair?

Choose one answer

Practice items, not counted towards your mastery.

Start here