Data Labelling for AI Models: How to Build Labels Your Model Can Trust

Data Labelling for AI Models: How to Build Labels Your Model Can Trust

Data labelling for AI models is the work of attaching the right answers to training examples, so that a model learns the task instead of the noise. A label can be a category, a bounding box, a span of text, a score or a preference between two answers, and in every case the label is the teaching signal. The central question is how to produce labels a model can trust, and the answer is to define each label in writing, test the definition with a pilot, measure how often annotators agree, and check the finished labels before they reach training.

Labels are expensive, and they are the hardest part of a dataset to fix later. A model trained on inconsistent labels will be inconsistent, and no amount of tuning will remove errors that were baked into the teaching signal. Getting labelling right is therefore not a data chore; it is the quality control step that decides what the model becomes.

Key takeaways

  • Data labelling for AI models sets the ceiling on model quality: inconsistent labels teach inconsistency.
  • Every label needs a written guideline with clear cases, borderline cases and decision rules.
  • Measure agreement between annotators, and use a chance-corrected score, not raw percent agreement alone.
  • Pilot the task, revise the guideline, and only then scale up.
  • Quality control means gold questions, expert adjudication and review before training.

Design the labelling task before anyone labels

A labelling task starts with a written guideline, not with a tool. The guideline defines each label precisely, gives examples of clear cases, gives examples of borderline cases, and states how to decide them. It also says what to do when the answer is genuinely unclear: an unsure or other option, so that annotators are not forced to guess. A forced guess is worse than a skipped item, because it looks like a confident label in the data.

The label set itself needs design. Labels should be exhaustive, covering everything the model will meet, and mutually exclusive, so that each item has one correct answer. Too many labels make the task slow and inconsistent; too few make it useless. The right number is found by piloting, not by guessing, and the pilot often shows that two labels annotators keep confusing should be merged, or that one label hides two different things and should be split.

Instructions should also cover the practical details: how much context the annotator sees, whether they see the model’s current prediction, and what counts as enough evidence for a label. Showing a model’s prediction can speed work, but it can also bias annotators towards agreeing with the model, which hides the errors the labelling was meant to catch. Best for: any team whose model errors trace back to the training labels rather than the model.

Pilot, revise, then scale

Never scale a labelling task before piloting it. In a pilot, several annotators label the same small batch, disagreements are discussed openly, and the guideline is revised until agreement is acceptable. The pilot also reveals whether the task is too hard, too slow, or too ambiguous to be worth doing at all, and it is far cheaper to learn that from a hundred items than from ten thousand.

The pilot should measure time as well as agreement. A task that takes five minutes per item will cost far more than the plan assumed, and a task that annotators rush through will produce noisy labels. Throughput targets should come from the pilot, not from a spreadsheet, and they should leave room for the hard items that take longer. Annotators who are pushed to go faster will guess more, and the guesses will end up in the model.

Onboarding matters as much as the guideline. Annotators need training, worked examples, and a way to ask questions when they meet a case the guideline does not cover. Those questions are valuable: each one is a gap in the guideline, and the answers should be written back into it. A guideline that never changes is a guideline nobody is reading.

Measure agreement, and measure it honestly

Inter-annotator agreement is how often independent annotators give the same item the same label, and it answers one question before any model sees the data: is the task defined well enough that different people, working alone, produce the same answer? The simplest measure is percent agreement, the share of items on which annotators matched, but it overstates reliability when one class dominates. If 95 percent of items belong to one class, two annotators labelling at those rates agree on most items by chance alone.

Chance-corrected measures fix that. Cohen’s kappa is the standard choice for exactly two annotators labelling categorical data: it compares observed agreement with the agreement expected by chance, so a score of 1 means perfect agreement and 0 means no better than chance. Fleiss’ kappa extends the idea to three or more annotators, and Krippendorff’s alpha handles any number of annotators, missing labels and different kinds of labels, which makes it the safest default for larger or messier projects.

Spatial labels need spatial measures. For bounding boxes, polygons and segmentation masks, agreement is measured with Intersection over Union, the overlap between two annotators’ shapes divided by their combined area. A high score means the annotators drew the same object in the same place; a low score means the definition of the object’s boundary is unclear. The metric must match the task, or the number will mislead.

Agreement is a property of the task, the guidelines and the annotators together, measured on a specific sample. A score from one batch says little about a later batch with new annotators or a revised label set, so measure it again whenever any of those change. High agreement also does not prove the labels are right: two annotators can agree perfectly and both be wrong if the guideline itself is flawed, which is why agreement must sit alongside checks against known answers.

Build quality control into the workflow

Quality control should run through the project, not at the end. Gold questions, items with known answers mixed into the work, check each annotator’s accuracy over time and catch drift before it spreads. Disagreements should be routed to an expert for adjudication, and the adjudicated answer, with its reasoning, should be fed back into the guideline so the same disagreement does not recur.

Review tiers make quality control affordable. A sample of finished labels is reviewed by a senior annotator, the review rate rises for annotators whose accuracy is falling, and the items the model finds hardest get extra review. The review should look at the labels the model will actually learn from, not only at a random sample, because errors on rare classes matter more than errors on common ones. For the evaluation view, see our guide to AI evaluation best practices, which covers how to judge model quality honestly.

Human review of model outputs is a labelling task too. When raters compare two responses or score an answer, the same rules apply: a written guideline, a pilot, measured agreement, and adjudication of disagreements. For that angle, see our guide to human evaluation of AI systems, which covers what human raters catch that metrics miss.

Choose the right labelling approach for the task

Not every label needs a human from scratch. Pre-labelling with a model, then asking humans to correct the result, can be faster than labelling from a blank page, but it risks bias towards the model’s errors. Active learning, where the model asks for labels on the items it is least sure about, can reduce the number of labels needed, but it changes the mix of the dataset and needs care. Weak supervision, where labels come from rules or heuristics, is cheap and noisy, and it needs validation against human labels before it is trusted.

The choice depends on the cost of an error. Where a wrong label is cheap and easy to spot, automation can do more of the work. Where a wrong label teaches the model a harmful pattern, humans should do more of it. The mix can also change over time: a project often starts with heavy human labelling, then moves to correction and review as the model improves and the guideline settles.

Outsourcing does not remove the need for quality control; it moves it. A vendor’s annotators need the same guideline, the same pilot, the same agreement measurement and the same gold questions as an in-house team, and the contract should require the quality numbers, not just the volume. For the data quality view, see our guide to building an AI data quality framework, which covers how quality checks survive contact with real data.

Comparing labelling approaches

Approach Cost per label Label quality Best use
Human labelling from scratch High Highest, if guidelines are good High-stakes or ambiguous tasks
Model pre-labelling plus correction Medium Good, with bias risk Large volumes of routine items
Active learning Medium Good on hard cases Reducing labels needed
Weak supervision from rules Low Noisy, needs validation Large, well-understood patterns
Crowdsourced labelling Low to medium Variable, needs agreement checks Simple tasks at scale
Expert-only labelling Very high Highest for specialist domains Medical, legal, technical content

The table shows the trade-off clearly: cost and quality move together, and the right approach is the cheapest one whose errors the project can afford. A task where errors are cheap can use automation; a task where errors teach the model the wrong thing needs humans.

A computer monitor showing a street scene with an orange bounding box drawn around a car, with a hand on a mouse
Drawing a box around the right object, in the right place, is a labelling decision, and the model will learn exactly the decision the annotator made.

Data labelling checklist

  • Each label is defined in a written guideline with clear and borderline examples.
  • The label set is exhaustive and mutually exclusive, with an unsure option for genuine doubt.
  • The task is piloted with several annotators before it is scaled.
  • Agreement is measured with the right metric for the task and the number of annotators.
  • Gold questions check accuracy over time, and disagreements go to an expert.
  • Adjudication decisions are written back into the guideline.
  • Review is heavier on rare classes, hard items and annotators whose accuracy is falling.
  • Pre-labelling and automation are validated against human labels before being trusted.
  • Annotators are trained, can ask questions, and are not pushed to guess for speed.
  • Labels, guidelines and agreement scores are versioned with the dataset.

Frequently asked questions

What is inter-annotator agreement?

It is how often independent annotators give the same item the same label, beyond what chance alone would produce. It shows whether the task is defined well enough for different people to produce the same answer.

When should Cohen’s kappa be used?

When exactly two annotators label the same categorical items. For three or more annotators, use Fleiss’ kappa; when annotators label different subsets or some labels are missing, Krippendorff’s alpha is the safer choice.

Why is percent agreement not enough?

Because it overstates reliability when one class dominates. If most items belong to one class, annotators can agree often by chance, so a high percent agreement can hide a poorly defined task. A chance-corrected score is needed alongside it.

How are bounding boxes checked for agreement?

With Intersection over Union: the overlap between two annotators’ shapes divided by their combined area. A high score means they drew the same object in the same place.

What are gold questions?

Items with known answers mixed into the labelling work, used to check each annotator’s accuracy over time. They catch drift, fatigue and misunderstanding before the errors reach training.

Should annotators see the model’s predictions?

Only with care. Showing predictions speeds work, but it biases annotators towards agreeing with the model, which hides the errors labelling was meant to catch. If predictions are shown, agreement should be checked without them too.

Latest articles

Scroll to Top