Data labeling
Also known as: data annotation, data labelling
Having people (or tools) attach the right answer to each example, such as “cat”, “complaint” or “angry”, so a model can learn from it.
Draft - this entry has not been reviewed yet.
Formal
The work of adding the correct output to each input in a data set, producing the answered examples that supervised learning needs as training data and that evaluation needs as a reference.
In plain English
Like writing the answer on the back of every flash card before a pupil starts practising with the deck.
In practice
In a Danish region, two hospital doctors mark tumours on 10,000 scans; where they disagree, a third decides, and the marked scans become training data for a model that flags suspect cases.
Why it matters
A model can only be as good as the answers it learns from; rushed, poorly paid or one-sided labelling passes straight into the model's errors and bias.
Technical deep dive
Labelling covers very different annotation types: document- or image-level class labels, bounding boxes, polygons and pixel masks for vision, span and relation annotation for named-entity recognition, relevance judgements for search, transcripts for speech, and pairwise preference rankings for RLHF. Each project rests on a written guideline (a codebook) defining every label with positive and negative examples and explicit rules for edge cases, refined in pilot rounds until annotators converge. Quality control in production relies on gold items with known answers mixed into the queue, overlap where several annotators label the same item, and review or adjudication of disagreements. Open-source tools such as Label Studio and CVAT handle queues, overlap and export formats.
Inter-annotator agreement quantifies how well-defined the task is. Cohen's kappa corrects two-rater agreement for chance, Fleiss' kappa extends this to many raters, and Krippendorff's alpha handles missing ratings and ordinal or interval scales. Low agreement usually indicates an ambiguous guideline or a genuinely subjective task rather than careless annotators, and it sets a ceiling on measurable model performance. Multiple labels can be aggregated by majority vote, by an adjudicator, or by probabilistic models such as Dawid and Skene's (1979) EM approach, which estimates a confusion matrix per annotator; some teams keep the label distribution as a soft target instead of forcing a single answer.
Because labelling is expensive, much effort goes into doing less of it. Active learning queries the examples a current model is least certain about; weak supervision, as in Snorkel (Ratner et al., 2017), combines noisy programmatic labelling functions into probabilistic labels; and model-assisted pre-labelling or LLM-generated labels let humans correct rather than create. Pre-labelling speeds work but anchors annotators towards the model's suggestion, which can hide exactly the errors the project needs to find. Label errors are common even in famous data sets: Northcutt et al. (2021) estimated an average of at least 3.3% across ten benchmark test sets, and confident-learning tools such as cleanlab are used to flag likely mislabelled items for review.
Labelling is also a compliance and supply-chain activity. Under the EU AI Act, data governance for high-risk systems must cover data-preparation operations "such as annotation, labelling, cleaning" (Art. 10(2)(c)). When annotators see personal data, an external labelling vendor is a processor under GDPR Art. 28, requiring a data processing agreement and, for work done outside the EEA, a Chapter V transfer basis. Working conditions are a known risk: in 2023 TIME reported that Kenyan workers labelling toxic content for OpenAI via the contractor Sama were paid less than two dollars an hour.
What to learn first
Everything this builds on, foundations first.
- Training data
- →Data labeling
Relationships
- Part of
- Supervised learning
- Requires
- Training data
- Causes
- AI bias
Sources & further reading
Standards & official texts
Reference works
- Northcutt, Athalye & Mueller (2021), Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks · NeurIPS 2021 Datasets and Benchmarks
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…