In this article
  1. Before you start
  2. Why interviewers ask this
  3. Annotated training data from first principles
  4. The Staff-level answer
  5. The rubric
  6. Three variants of this question
  7. Common mistakes
  8. Follow-up questions
  9. Sources

Before you start

Why interviewers ask this

A model learns only what its labels teach it, so interviewers use this question to see whether you treat labeling as an engineering problem with cost, quality and risk. Labeling is a real bottleneck: Ratner et al. (2017) write that "Labeling training data is increasingly the largest bottleneck in deploying machine learning systems."

The question is reported by candidates in machine learning interviews, usually as a short opener before loss functions or evaluation. A weak answer says "we hire people to label it." A strong answer names the routes and says how it would check label quality. A Staff-level answer ties the route to the task's ambiguity and budget, measures agreement beyond chance, and keeps the evaluation set clean of the shortcuts used to build the training set.

Annotated training data from first principles

Labeling function
A labeling function is a small piece of code that looks at one unlabeled example and returns a label or abstains, so a person can write a rule of thumb once and apply it to the whole dataset.

In plain words

Think of a teacher who needs an answer key for a thousand exam questions. She can write it herself. She can ask several students and take the vote. She can write a rule that grades the easy questions. Or she can let a draft grader point out the hardest ones. The analogy breaks in one place. A real answer key is correct by definition, while labels are only someone's best judgment, so they can be wrong and must be checked.

In one precise sentence: a labeling route produces the labels, and an agreement statistic checks them. They are then merged into one label per example. Rules, and a model that asks humans where it is unsure, stretch them further.

Step 1: Pick a route by the task, not by habit

Four routes produce labels: experts, crowd workers, labeling functions and model-assisted labeling. In-house experts give the best labels for ambiguous or specialist tasks and cost the most per label. A crowd or vendor workforce gives volume; one cloud provider calls its public workforce "large and economical but as with any set of diverse workers, can be prone to errors", so it needs a written guideline and several annotators per item. Labeling functions replace hand labels with rules, covered in the fourth step. In model-assisted labeling, a model, including a large language model, pre-labels and humans review; Label Studio documents this as a standard use case.

Check first for labels you already have, such as logged clicks, purchases or chargebacks; they are cheap but biased by what the product showed, delayed and noisy.

Input: unlabeled data and a budget. Output: a chosen mix of routes. Real projects combine them, for example experts for a small gold set and a crowd for the bulk.

Step 2: Measure label quality with kappa, not raw agreement

Inter-annotator agreement is how often independent annotators give the same label to the same item. Raw percent agreement misleads because annotators also agree by chance. Cohen's kappa corrects agreement for chance before labels are trusted:

κ=Po−Pe1−Pe

Here Po is observed agreement and Pe is the agreement expected from each annotator's label frequencies. Cohen's kappa compares two annotators; with three or more, use Fleiss' kappa or Krippendorff's alpha (Fleiss, 1971). Take two annotators on 100 items with a 50/50 label split who agree on 90 (illustrative): Po is 0.90, Pe is 0.50 and κ is 0.80.1 A rule of thumb after Landis and Koch (1977), reproduced in a 2026 paper, calls 0.61 to 0.80 substantial and 0.81 to 1.00 almost perfect.

Take 1,000 items, 95% in one class, annotators agree on 950 (illustrative). Raw agreement is 0.95 on skewed labels but kappa falls to 0.4737, because Pe is 0.905.1 The kappa paradox, described in an analysis of kappa under imbalanced ratings (2023), is that kappa can be low despite high raw agreement when ratings are imbalanced. Raw agreement is 0.90 on balanced labels with kappa 0.80, so report both.1

High raw agreement can hide a weak kappa on skewed labelsGrouped bars for two illustrative annotator pairs: with balanced labels agreement is 0.90 and kappa 0.80; with skewed labels agreement rises to 0.95 while kappa falls to 0.4737.Score00.51BalancedSkewedIllustrative label setRaw agreementCohen's kappa0.90.950.80.4737Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/how-do-you-get-annotated-training-data.html
Raw agreement rises on skewed labels while kappa falls, so report both.CC BY 4.0 — source: How do you get annotated training data?
Text description of the diagram
  • Raw agreement is 0.90 on balanced labels with kappa 0.80.
  • Raw agreement is 0.95 on skewed labels but kappa falls to 0.4737.

Step 3: Consolidate several annotations into one label

An annotation is the result of one worker's labeling task. Annotation consolidation is the step that combines the annotations of two or more workers into one label for each item. Majority vote is the simplest rule. The SageMaker documentation says its multi-class consolidation uses a variant of expectation maximization that estimates each worker's reliability and applies Bayesian inference to estimate the true class. The same page says more workers can raise label accuracy but also raise cost.

If each of three workers is independently right with probability 0.8 (illustrative, and independence is an assumption), the majority is right with probability 0.896; five workers give 0.9421.1 On 10,000 items, three workers per item means 30,000 annotations and five means 50,000.1 Amazon Web Services (AWS) says it does not plan to add new features to this service (as of October 2026), so treat it as a vendor example, not a recommendation.

Step 4: Write labeling functions instead of labeling by hand

Weak supervision makes the training set from rules. In Snorkel, users write labeling functions that "express arbitrary heuristics, which can have unknown accuracies and correlations". A model then estimates how accurate each function is from where they agree and disagree, with no ground truth, and outputs one probabilistic label per example. A cross-entropy loss can train a downstream model on such confidence-weighted labels.

A toy case with four support messages (illustrative) and three functions, one voting billing on the word refund, one billing on invoice and one account on password. The message about a refund for an invoice gets two billing votes, the password reset gets one account vote, "refund after password reset" splits one against one, and "hello" gets no vote.1

So two of four messages get a clear label, one is a conflict and one is uncovered: the functions cover three of four messages but agree on only two.1 In the Snorkel user study (Ratner et al., 2017), subject matter experts built models 2.8x faster and with 45.5% higher average predictive performance than with seven hours of hand labeling. Humans are still needed: experts write the functions.

Step 5: Send the hardest items to humans with active learning

Active learning sends the items the model is least sure about to humans. In the pool-based setting Settles (2010) describes, queries are chosen from a large pool of unlabeled examples. Uncertainty sampling is the query strategy that selects the example about which the model is least certain how to label. The loop: train on a small labeled set, score the pool, label the least certain items, add them and repeat.

In one toy text task, after 30 new labels uncertainty sampling reached 81% accuracy while a random baseline reached 73% (Settles, 2010). That is a single illustrative example, not a general rule. Label Studio wires the loop with a webhook, through which the machine learning (ML) backend can retrain the model on new annotations. Because the model chooses its own data, keep a random labeled slice for evaluation so you notice distribution shift.

Labels come from a route, a check, then rules and questionsFlow of five steps: pick a labeling route, check agreement with kappa, consolidate annotations into one label, write labeling functions, and send the items the model is least sure about to humans.Pick a routeexperts, crowd,rules, modelsCheckagreementCohen's kappaConsolidatevote orreliabilityLabelingfunctionsrules that labelActivelearninglabel thedoubtfulDiagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/how-do-you-get-annotated-training-data.html

Labels come from a chosen route, are checked for agreement, then stretched with rules and with questions to humans.CC BY 4.0 — source: How do you get annotated training data?
Step-by-step description
  1. Choose experts, crowd, rules or model-assisted labeling.
  2. Kappa corrects agreement for chance.
  3. Several annotations become one label.
  4. Labeling functions label the bulk.
  5. Humans label the items the model doubts.
  • Four routes produce labels: experts, crowd workers, labeling functions and model-assisted labeling.
  • Cohen's kappa corrects agreement for chance before labels are trusted.
  • Active learning sends the items the model is least sure about to humans.

Knowing it is half the job. Saying it is the other half.

Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.

Start Free Trial →

The Staff-level answer

Interviewer asks

How do you get annotated training data?

A strong answer

I pick the route by how ambiguous the task is and what it costs, after checking for logged outcome labels, which are cheap but biased and delayed. Experts handle ambiguous or regulated labels, a crowd or vendor with a clear guideline handles simple ones, and labeling functions cover cases where a rule captures the label.

I label each item more than once, report a chance-corrected agreement such as Cohen's kappa for two annotators or Fleiss' kappa for more, next to raw agreement, and consolidate by vote or by a model of annotator reliability. To save money I train an early model and send humans the items it is least sure about, keep a random slice for evaluation, and review any model pre-labels. I also audit the test labels, because benchmarks contain errors too.

What makes it Staff-level: it ties each route to a property of the task, measures quality instead of assuming it, and protects the evaluation set.

The rubric

The answers differ most in whether label quality is measured and whether the route is justified by the task.
DimensionWeak answerStrong answerStaff answer
CorrectnessSays "hire labelers."Names experts, crowd, rules, model-assisted routes and logged outcome labels.Matches each route to task ambiguity, volume and budget.
DepthNo mechanism for any route.Explains consolidation or labeling functions.Explains agreement beyond chance and how noisy sources are combined.
Trade-offsIgnores cost.Notes more annotators cost more.Prices annotations, compares routes and names where each fails.
CommunicationRambles through tools.Orders the answer by route, then quality.Gives route, check and risk in one sentence each.
Follow-up readinessStuck on "how do you know?"Mentions kappa.Reports chance-corrected agreement with raw agreement and audits test labels.

Three variants of this question

How would you label data with a tiny budget?

Hand label a small expert set to evaluate on, then use labeling functions for the bulk and active learning to spend the remaining human labels on the items the model is least sure about.

What if the labels cost too much to collect twice?

Double-label only a random sample, compute kappa on that sample, and treat the result as the estimate of quality for the whole set.

Can you trust the labels in a public benchmark?

Not blindly. Northcutt et al. (2021) estimate at least 3.3% label errors on average across 10 test sets, and at least 6% in the ImageNet validation set. Audit the test labels you rely on.

Common mistakes

  • "Ninety percent agreement means the labels are good." (wrong) Chance and class skew inflate raw agreement. (right) "I report kappa beside raw agreement."
  • "Weak supervision means no humans." (wrong) Experts write the labeling functions and the labels stay noisy. (right) "It removes hand labeling of the training set, not human judgment."
  • "Active learning always beats random sampling." (wrong) The sourced result is one toy example. (right) "It often helps, so I compare against a random baseline."
  • "More annotators is always better." (wrong) Each extra annotator costs money, and gains shrink when annotators share the same bias or the task is ambiguous. (right) "I add annotators where agreement is low."
  • "The test set is ground truth." (wrong) Test sets contain errors. (right) "I audit the labels I evaluate on."

Follow-up questions

How do you write annotation guidelines?

Define each label in plain words, add positive and negative examples, write a rule for each edge case you have seen, and revise the guideline whenever annotators disagree on a pattern.

How many annotators do you need per item?

Enough to reach acceptable agreement at an affordable cost; the cost grows linearly with annotators per item, and you add annotators where agreement is low.

What do you do when annotators disagree?

Look at the disagreements first, because they often expose a vague guideline. Then send the item to an adjudicator, or keep the vote share as a soft label that a cross-entropy loss can learn from.

Can a large language model label your data?

It can act as a model-assisted pre-labeler, but its labels are not ground truth. Check it against a human-labeled sample with kappa and review the items it gets wrong before training on its output.

What happens to labels when the data drifts?

Labels go stale when the inputs change, so relabel a fresh random sample on a schedule and compare it with the old distribution; the page on distribution shift covers detection. Cleaner labels also help bias and variance analysis, because noisy labels set a floor on measured error that no model removes, and good feature engineering cannot fix wrong targets.

Key takeaways
  • Four routes produce labels: experts, crowd workers, labeling functions and model-assisted labeling.
  • Measure quality with Cohen's kappa and report raw agreement beside it.
  • Consolidate several annotations into one label by vote or by an estimate of worker reliability.
  • Weak supervision still needs experts, and active learning needs a random baseline.
  • Audit test labels, because benchmarks contain errors.

Sources

  1. Snorkel: Rapid Training Data Creation with Weak Supervision (arXiv 1711.10160) — arXiv (Ratner et al., VLDB 2018), 28 Nov 2017
  2. Active Learning Literature Survey — University of Wisconsin-Madison (Settles), 26 Jan 2010
  3. Set up an active learning loop — HumanSignal (Label Studio documentation), 26 Oct 2026
  4. Label Studio: machine learning integration and pre-annotation — HumanSignal (Label Studio documentation), 26 Oct 2026
  5. Annotation consolidation — Amazon Web Services (SageMaker AI Developer Guide), 26 Oct 2026
  6. Use the wisdom of crowds with Amazon SageMaker Ground Truth to annotate data more accurately — AWS Machine Learning Blog, 26 Oct 2026
  7. Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks (arXiv 2103.14749) — arXiv (Northcutt, Athalye, Mueller; NeurIPS 2021), 26 Mar 2021
  8. Kappa scale after Landis and Koch (1977), as reproduced in arXiv 2603.08286 — arXiv, 1 Mar 2026
  9. Cohen's kappa under imbalanced ratings (arXiv 2307.04367) — arXiv, 10 Jul 2023
  10. Measuring nominal scale agreement among many raters (Fleiss, Psychological Bulletin 76(5)) — Psychological Bulletin (Fleiss), 1 Nov 1971