How Many Labels Should a Reviewer Check? Sample Sizes for Annotation QA

2026-12-05来源 dev.toEnglish

Most annotation teams review a slice of every batch instead of re-checking every label. That is sensible, but the slice is usually picked by gut feel: "let's check 5%". On a 2,000-item batch that is 100 labels. On a 200,000-item batch it is 10,000. Neither number is tied to what you actually want to know.

There are two questions a QA sample can answer, and they need different sample sizes.

Question 1: What is the error rate of this batch?

If you want an estimate of the error rate with a known margin of error, the standard proportion formula applies:

n = z² · p · (1 − p) / e² 
  • z is 1.96 for 95% confidence
  • p is your expected error rate (use last batch's rate, or 0.5 if you have no idea)
  • e is the margin you can live with

With an expected error rate of 5% and a margin of ±2 points, you get about 457 items. For a finite batch, apply the finite population correction:

import math def qa_sample_size(batch_size, expected_error=0.05, margin=0.02, z=1.96): n0 = (z**2) * expected_error * (1 - expected_error) / margin**2 n = n0 / (1 + (n0 - 1) / batch_size) return math.ceil(n) print(qa_sample_size(10_000)) # 437 print(qa_sample_size(2_000)) # 372 print(qa_sample_size(200_000)) # 456 

Notice how little the batch size matters once it is large. A 200,000-item batch needs almost the same sample as a 10,000-item one. A flat percentage gets this wrong in both directions.

Question 2: Is the batch good enough to accept?

Often you do not need a precise rate. You need to know whether errors are above a threshold. If you want 95% confidence that you will see at least one error when the true error rate is 1% or higher:

n = ln(1 − confidence) / ln(1 − threshold) 
def detection_sample_size(threshold=0.01, confidence=0.95): return math.ceil(math.log(1 - confidence) / math.log(1 - threshold)) print(detection_sample_size()) # 299 

Review 299 random items. If you find zero errors, you can be 95% confident the rate is under 1%. If you find any, escalate to a full estimate or a re-review.

Things that break the math

  • Non-random samples. Reviewing the first 300 items of a batch tells you about the first 300 items. Shuffle before sampling.
  • Mixed difficulty. If 10% of the batch is hard edge cases, sample those separately (stratify) so they are not drowned out.
  • Reviewer error. The reviewer is also a labeler. Seed the sample with a few gold items whose answer you already know, and track reviewer accuracy on them.

Making it routine

The easiest way to keep this honest is to bake it into the workflow, so a batch cannot move to "done" until its QA sample passes. Platforms with built-in Maker-Checker and consensus review workflows make that a configuration step instead of a spreadsheet exercise. For a wider look at the metrics behind label quality, Taskmonk's guide to data labeling quality is a good companion read.

Takeaway

Pick the question first: "how bad is it?" or "is it bad enough to reject?". Then size the sample for that question, sample randomly, and stratify the hard cases. A few hundred well-chosen labels tell you more than thousands picked by habit.

原文:https://www.a8q9.cn/en/article/how-many-labels-should-a-reviewer-check-sample-sizes-for-annotation-qa-ed0c9a.html

相关文章