Data annotation

Data annotation is the work of adding labels or other information to raw data, such as tagging objects in photos or ranking chatbot answers, so it can be used to train and evaluate AI models.

Most machine learning needs examples with the right answer attached. Google's machine learning glossary describes a labelled example as one or more features plus a label. Data annotation is the human work that supplies those labels and other markings: drawing boxes around cars in street photos, transcribing audio, tagging the part of speech of every word, or marking a message as abusive or not.

The scale can be enormous. ImageNet, the image dataset behind much of the deep learning boom, was annotated through Amazon Mechanical Turk between 2008 and 2010; it holds more than 14 million labelled images, about 1.03 million of them with bounding boxes marking where objects sit. Decades earlier, the Brown Corpus of English was tagged with about 80 part-of-speech categories, and the automatic tagger of the day made so many mistakes that its output needed extensive correction by hand.

Large language models made annotation central again. In OpenAI's March 2022 paper on InstructGPT, human labellers wrote examples of the answers they wanted and ranked the model's outputs from best to worst. Those demonstrations and rankings were used for fine-tuning and reinforcement learning from human feedback, and in the paper's human evaluations a 1.3 billion parameter model trained this way was preferred to the 175 billion parameter GPT-3.

The work can be hard on the people who do it. In January 2023 TIME reported that workers in Kenya employed by the outsourcing firm Sama had read and labelled tens of thousands of text passages describing violence, hate speech and sexual abuse, to help build a filter for OpenAI, and took home about $1.32 to $2 an hour. Sama disputed the account, saying workers earned $1.46 to $3.74 an hour after tax. Sama ended the work in February 2022.

Annotation is also now a legal matter. The EU AI Act's Article 10 requires providers of high-risk AI systems to apply data governance practices that cover data preparation steps including annotation, labelling and cleaning. In practice, the quality of the labels sets a ceiling on the quality of the model: a system cannot learn distinctions its annotators got wrong.

Common questions

What is data annotation?

Data annotation is adding labels, tags or other information to raw data so that a machine learning model can learn from it or be tested against it. Examples include marking objects in images, transcribing speech and rating which of two chatbot answers is better.

Is data annotation the same as data labelling?

The terms are mostly used interchangeably. Labelling usually refers to attaching a category or answer to each example, while annotation can also include richer markings such as bounding boxes, outlines, transcripts or notes on grammar.

Who does data annotation?

It is done by crowdworkers on online platforms, by staff at specialist outsourcing firms, by in-house teams and, for specialised subjects such as medicine or law, by paid experts.

Why does annotation matter for chatbots?

Chatbots are shaped after pre-training by human-written examples and human rankings of their answers. Those annotations teach the model to follow instructions and to avoid harmful replies, so the annotators' judgements and instructions directly affect how the chatbot behaves.

Finding more

Search for "data annotation", "data labelling workers" or "human feedback labellers" to see both the technique and the labour behind it. Reliable sources include model papers on arXiv that describe their labelling process, the documentation of major datasets, and investigative reporting from established publications. Company claims about annotation quality are hard to check from outside, so look for published agreement rates between annotators and descriptions of how labels were reviewed.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.