# What a label is in machine learning, explained by sorting post

Picture a new sorter on their first morning at a post office. In front of them is a pile of letters, and behind them a wall of boxes, one for each town. Their trainer has stuck a small note on every letter in the practice pile, saying which box it belongs in. The new sorter reads the address, makes a guess, then checks the note. By lunchtime they've stopped checking.

That small note is what machine learning calls a **label**. Keep the sorting office in mind, because it explains nearly everything about labels, including why the chat models people use every day learned most of what they know without any.

## A label is the answer written on the example

A machine learning model learns by seeing examples and adjusting itself until its guesses match the right answers. The label is the right answer attached to an example. A photo with the word "cat" beside it. An email marked "spam" or "not spam". A letter with "Leeds" on its sticky note.

When every example in a pile comes with its answer, people call it labelled data. When the examples come bare, it's unlabelled data. A box of letters with notes on them is labelled. The morning's real post, with no notes, is unlabelled, and sorting it is the job the sorter was trained for.

Learning from labelled examples has its own name, supervised learning, because the labels act like a supervisor looking over the learner's shoulder and saying "right" or "wrong" after each try.

## Features are what you look at, the label is what you want

People often mix up labels and features, and the post office keeps them apart nicely.

The features are everything the sorter can see on the envelope: the postcode, the town name, the handwriting, maybe the stamp. They're the clues. The label is the box the letter should end up in. It's the thing you want to predict.

So in a spam filter the features are the words in the email, the sender, the links inside it. The label is "spam" or "not spam". In a model that guesses house prices, the features are the number of rooms, the area, the size of the garden, and the label is the price the house really sold for.

A simple test helps. If the model gets it as input, it's a feature. If the model has to come up with it, and you check its guess against it, it's the label.

## Where labels come from

In the sorting office the notes were written by the trainer. In machine learning they're mostly written by people too, and that work is called data labelling.

Some of it happens without anyone thinking of it as work. When you press the button that moves an email to spam, you've written a label. Other labelling is a job in its own right. A well known example is ImageNet, a large collection of photos sorted by hand into categories, first presented by a team of university researchers in 2009. Much of the progress in recognising images in the years after it came from having that many labelled photos to learn from.

Labels made by hand have three weaknesses, and the post office shows each of them.

They're slow and they cost effort. Someone has to read every letter and write every note. A pile of a few thousand is fine. A pile the size of a country's yearly post is a different matter.

People disagree. One trainer puts a letter for a small village in the box for the nearest town, another puts it in the box for the county. Neither is plainly wrong, but the learner gets mixed signals.

Mistakes get learned. If a trainer keeps sending Bath letters to Bristol, the new sorter will cheerfully do the same, and do it with confidence. A model can only be as right as its labels.

There's a quieter limit as well. Labels decide what a model can ever say. A sorter trained only with town boxes has no box for "return to sender". Whatever answers the labels never offered, the model will never give.

## Why chat models mostly learned without labels

Here's the part that surprises people. The large language models behind chat assistants learned most of what they know from text that nobody labelled.

The trick is that ordinary text carries its own answers. Take any sentence, hide the word that comes next, and ask the model to guess it. The real next word is sitting right there in the original text, so it serves as the label. No one had to write it.

Back in the sorting office, imagine the trainer runs out of sticky notes. So instead they take a letter, cover the last line of the address with a thumb, and ask the sorter to guess it. Then they lift their thumb. Every letter in the building has become a practice question, and the answer was on the envelope all along.

This is usually called self-supervised learning, because the data supervises itself. It changed what was possible. Hand labelling stops at whatever people have time to label. Self-supervised learning can use every book, article and web page that can be gathered, and each one holds as many practice questions as it has words.

The idea took hold for language models around 2018. OpenAI's 2018 paper, Improving Language Understanding by Generative Pre-Training, trained a model to predict the next word on a large amount of plain text first, and only afterwards taught it particular tasks with a much smaller set of labelled examples. In the same year a team at Google published BERT, which learned by guessing words hidden in the middle of sentences. Both showed that a model could pick up a great deal about grammar, facts and style from text that carried no labels at all.

That first stage is called pre-training. It's where the bulk of the learning happens, and it uses no hand-written labels.

## Labels come back at the end

Pre-training alone gives you a model that's very good at continuing text, which is a different thing from a helpful assistant. Ask it a question and it might carry on with three more questions, because that's what text on a web page often does.

So labels return, in smaller numbers. People write examples of a request and a good reply, and the model learns from those. People also compare two answers and mark the better one, and that choice is a kind of label too. The pile is far smaller than the pre-training text, but each note in it was written with care.

In sorting office terms, the sorter learned the whole map of the country by guessing covered addresses, and then spent a short afternoon with the trainer learning the house rules of this particular office.

## When a model writes its own labels

There's a tempting shortcut. If labels are slow to write, why not let a model write them, and train on those?

We tried a version of this in our Lab. When a model writes an answer across several computers, a small guesser runs ahead and guesses the next few words, and every right guess saves a trip. We tried training that guesser on the model's own answers, so the model's text became the labels. It went the wrong way. The Lab's entry records three tries, worse each time, and right guesses in English fell from 72.6% to 68.0%. You can read [the whole entry](https://deepnile.org/lab/training-the-guesser-on-its-own-answers/), with the prediction we wrote before the test.

That result doesn't settle the question for anyone else's setup. It does show the sorting office rule again. Whoever writes the notes decides what gets learned, and a learner copying its own notes can drift.

## Why this matters if you use an open model

DeepNile is a network of ordinary home computers that run large open AI models together. When this was written, in November 2026, the program was not released yet. The open models such a network runs were made the way this post describes: a long pre-training on text with no labels, then a short stretch with labels written by people.

Knowing that helps you read a model's answers. Its broad knowledge of language came from guessing hidden words in a vast pile of text, and its manners came from a much smaller pile of examples someone chose. If you'd like to see how we test ideas like the guesser above, one numbered result at a time, the [Lab](https://deepnile.org/lab/) keeps every one, the failed ones too.

---

DeepNile is published by MT THEMES LTD, a company registered in England and Wales, number 17281540. Registered office: Office 6065 G K, 182-184 High Street North, Area 1/1, East Ham, London, E6 2JA, United Kingdom.

© 2026 MT THEMES LTD. Text and figures under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/); the DeepNile name and mark are not.

Contact: support@deepnile.com · business@deepnile.com · security@deepnile.org
