Repeated Trials and Variance
In this article
- Tell an eval case from a trial, and work out a case's pass rate and a suite's pass rate from repeated trials.
- Sort cases by their trials into stable passes, stable failures and flipping cases, and say which group a score difference comes from.
- Tell run-to-run variance from a case that is hard or broken, and explain why more trials never replace more cases.
- Decide whether a small gap between two pass rates is evidence, needs repeats under the same conditions, or needs statistical methods.
- Terms defined here: trial, run-to-run variance.
Overview
You run an eval on a new model version and it scores one point above the old one. You run it again the next morning, change nothing, and the old version is ahead. Which run was right? Neither, on its own: one run of an AI feature is one draw, and the next draw can differ.
The fix has three parts. Run each case several times, so every case gets a pass rate instead of one verdict. Read those pass rates case by case, because they split into cases that always pass, cases that always fail and cases that flip. Then compare any gap between two versions with how far the flipping cases move the score on their own. A gap no bigger than that is not yet news.
Brightline, a home-internet provider, runs a support assistant on its website. It answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team; above $50 it must ask a person for approval. Its tools are lookup_order, issue_refund, search_help and escalate_to_person(reason, note). The team is testing a switch from model version orbit-flash-2, the baseline, to orbit-flash-3, the candidate, on a 200-case release set. The company, the model names and every number below are invented.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- One case, several trials
- Reading 100 trials per system
- Variance or difficulty
- Same conditions on both sides
- When a gap is evidence
- Common mistakes
- Sources
- Check yourself, 5 questions