Skip to content
mentoor

Topic 3 of 5 · 5 min read

Sampling outputs for human review

Goal: Design a review sample that mixes random and targeted items for a given review budget.

You cannot review everything, so you choose which outputs a human sees: a random slice to measure quality, plus targeted slices to find problems. Each kind of sample answers a different question, and a good plan uses both.

Check yourself · 1 of 3

Which sample can support the statement 'about 8 percent of our replies fail'?

Choose one answer

Why it matters

An AI feature can produce thousands of outputs a day. A reviewer can read perhaps a few dozen an hour. If you pick the outputs that happen to be at the top of the log, you review the newest and the easiest, and you learn little. The sample decides what you can honestly claim.

Three kinds of sample

  1. Random. Every output has the same chance of selection. Use it to estimate how often the feature fails overall. It is the only sample that supports a statement like "about 8 percent of replies fail". It finds rare problems slowly.
  2. Stratified. Split outputs into groups that matter, such as language, customer tier, topic or prompt version, then sample inside each group. Without it, a small group (say, 3 percent of traffic in Arabic) may get zero reviews, and its failures stay hidden.
  3. Targeted. Pick outputs likely to be bad: low confidence from an automated judge, a thumbs-down or user report, an escalation to a human agent, a long conversation, or a new feature in its first week. Use it to find failures fast and to build test cases. It cannot estimate the overall failure rate, because you chose the hard ones on purpose.

How many items

Small samples are noisy. With 20 reviewed items, one extra failure moves the rate by 5 points. Decide the question first. To catch a failure that affects 1 in 20 outputs, you need dozens of random items before you can expect to see one. To compare two prompt versions, review the same items under both. For the first pass of error analysis, a few dozen items is enough to start finding patterns; precision comes later.

A simple plan for a budget

Say you have 4 reviewer hours a week, at about 3 minutes per item, so roughly 80 items:

  • 30 random items, to track the overall rate.
  • 20 stratified items from low-traffic groups.
  • 30 targeted items: the lowest judge scores and the newest user flags.

Report the random slice and the targeted slices separately, never combined.

What goes wrong

  • Mixing slices into one percentage. A sample full of flagged items will make the feature look worse than it is.
  • Reviewing only flagged items. Silent failures, where users never complain, go unseen.
  • Not recording how items were chosen. Later nobody knows what the numbers mean.

Examples

An 80-item weekly plan

Slice Items Question it answers
Random 30 What is the overall failure rate?
Stratified (low-traffic languages) 20 Do small groups fail more?
Targeted (lowest judge scores, new flags) 30 What are the new failure types?

A rate that lied

A team reviewed 50 items, all with user thumbs-down, and reported a 64 percent failure rate. The real rate over all traffic was far lower, because almost nobody votes. The 50 items were useful for finding failure types, but not for the headline number.

Key points

  • Random samples estimate the overall failure rate, and only random samples can support that claim.
  • Stratified samples make sure small but important groups get reviewed.
  • Targeted samples such as low judge confidence or user flags find failures fast but cannot estimate a rate.
  • Decide the question first, then pick the size; tiny samples swing by several points per item.
  • Record how each item was chosen and report each slice separately.

Common mistakes

  • Reviewing the latest outputs in the log and calling it random.
  • Computing one failure rate from random and targeted items together.
  • Skipping stratification so rare languages or topics are never seen.
  • Choosing the sample size before deciding what question it must answer.

Check yourself · 2 of 3

Arabic users are 3 percent of traffic. A random sample of 60 reviewed items contains one Arabic item. What does stratified sampling add?

Choose one answer

Check yourself · 3 of 3

You launch a new summarising feature this week. Which addition to the review sample makes most sense?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic