Label
In machine learning, a label is the correct answer attached to a training example, such as "spam" for an email or the sale price of a house, which a supervised model learns to predict.
Google's machine learning glossary defines a label as the answer or result portion of an example in supervised learning. A labelled example has one or more features, the inputs, and a label, the output. In a spam filter's training data, each email is labelled spam or not spam. In a house valuation dataset, the features might be bedrooms, bathrooms and age, and the label the sale price. The model learns to predict the label from the features, then predicts labels for new examples that have none.
Labels can be categories, as in classification, or numbers, as in regression. They come from several places: from records of what happened (whether a loan was repaid), from instruments (how much rain fell) or, very often, from people who look at each example and decide. ImageNet, a collection of more than 14 million images, was labelled through Amazon Mechanical Turk between July 2008 and April 2010 by about 49,000 workers in 167 countries, with a budget that allowed each image to be labelled three times.
Labels are expensive, which shapes how AI is built. Labelled data costs much more to obtain than raw data, and some fields, such as medical imaging and legal documents, need annotators with expert knowledge. Self-supervised learning sidesteps some of that cost: when a large language model is pre-trained, the text itself supplies the answers, and smaller amounts of labelled data are used afterwards to refine it.
Labels can also be wrong or misleading. A study of 10 widely used datasets found label errors averaging at least 3.3 per cent of their test sets. When the real answer is unavailable, teams may use a proxy label that only approximates it. Human judgements can be inconsistent between annotators. And if labels reflect past decisions that were biased, a model trained on them learns that bias.
In AI news, the word also turns up in two related phrases. Data labelling, the paid work of annotating examples, is the industry that produces labels in this sense. Labelling AI-generated content, so people know how it was made, is a separate idea.
A label is the correct answer for a training example, the value a supervised model learns to predict. For an image classifier it might be cat or dog; for a price model it is the price. Examples with labels are used to train and test the model. Features are the inputs a model sees; the label is the output it is trained to produce. In a weather-based model of test scores, temperature and humidity are features and the test score is the label. Often people: crowd workers, specialist annotation companies or experts such as doctors for medical data. Labels also come from records of real outcomes and from instruments. ImageNet's labels came from about 49,000 Mechanical Turk workers in 167 countries. A model trained on wrong labels learns the mistakes, and a model tested on wrong labels gets a misleading score. Research on 10 common datasets found at least 3.3 per cent of test labels were wrong on average, enough to change which models appear to perform best.Common questions
What is a label in machine learning?
What is the difference between a label and a feature?
Who labels data for AI?
What happens if labels are wrong?
Search for "labels in machine learning", "labelled data" or "label noise". Machine learning glossaries and courses define the term, and research on dataset auditing and annotation practice shows how labels are produced and where they go wrong. When a company describes its training data, look for how the labels were made and checked.Finding more
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.