What makes an example unlabeled
An unlabeled example is a data point that has input features but no label. The features are the measurable inputs a model can work with: the pixel values in a photo, the words in an email, or the size and location of a house. The label is the answer attached to those inputs, such as “cat,” “spam,” or a sale price. An unlabeled example has the inputs without that answer.
The missing label is what sets an unlabeled example apart. Its features look the same as they would in a labeled example, with the same kinds of measurements. Only the target is absent.
Labeled and unlabeled examples side by side
Consider a small made-up dataset of houses:
| Example | Features (inputs) | Label (sale price) |
|---|---|---|
| A | 3 bedrooms, 1,800 sq ft, suburban location | Recorded |
| B | 2 bedrooms, 1,100 sq ft, city-center location | Not recorded |
Example A is labeled. Example B is unlabeled: its features are known, but no price has been recorded for it.
Email works the same way. An email that a person has tagged as spam or not spam is a labeled example. A new email that nobody has reviewed is unlabeled.
Labeled data is the counterpart, where every example has its label attached. That contrast is what makes the unlabeled case stand out.
Why unlabeled data is so common
Data often piles up without anyone attaching a label to it. Server logs, sensor readings, photos, and text pulled from websites are produced continuously. Labels usually take human effort, expert judgment, or a deliberate process to collect. That gap is why unlabeled datasets are often much larger than labeled ones.
How learning methods use unlabeled examples
Different methods use unlabeled examples in different ways.
Unsupervised learning
Unsupervised learning uses unlabeled examples alone. With no target to predict, the method looks for structure in the features:
- Clustering groups examples that are similar to one another, such as customers with similar buying habits. Common methods include k-means and hierarchical clustering.
- Dimensionality reduction compresses many features into fewer ones while keeping much of the important variation. Principal component analysis (PCA) is a common example.
- Anomaly detection looks for examples that differ sharply from the rest, which can help flag unusual activity.
When people ask which learning uses unlabeled data, the main answer is unsupervised learning.
Semi-supervised learning
Semi-supervised learning mixes a small set of labeled examples with a larger set of unlabeled ones. The labels show what the outputs mean, and the unlabeled examples help the model learn more about the shape of the data. Two common approaches are self-training, where the model labels the examples it is most confident about and retrains on them, and pseudo-labeling, which works in a similar way.
These methods rest on assumptions. A common one is that examples close together in feature space tend to share a label. When the assumptions don’t hold, unlabeled data can make results worse, so this approach is not a guaranteed improvement.
Self-supervised learning
Self-supervised learning creates its training targets from the unlabeled data itself. A model might be asked to predict a word hidden in a sentence, or the next word in a passage. No person has to label each example, because the target is part of the data.
Large language models are commonly pretrained this way, on very large collections of text. People often ask, “Is ChatGPT supervised or unsupervised?” The answer depends on the stage. Early pretraining relies on next-word prediction over unlabeled text, and later stages use other kinds of data, including human-written examples and feedback.
Reinforcement learning
Does reinforcement learning use unlabeled data? In the standard setup, no. A reinforcement learning agent learns from rewards it receives after acting in an environment, not from a set of examples with or without labels. Some research pairs reinforcement learning with unlabeled observations, but that is an extra design choice.
Unlabeled examples at prediction time
A supervised model still meets unlabeled examples, just in a different role. When a trained spam filter receives a new email, the email has features but no spam tag yet. It’s an unlabeled example, and the model’s job is to predict the missing label. Unlabeled examples are therefore inputs at prediction time, not training data.
What unlabeled examples can’t do on their own
Working without labels has real limits:
- You can’t check accuracy directly against a known correct answer. Evaluation depends on other measures or on human review.
- Structure found in unlabeled data may not match what you care about. A clustering method will return groups, but whether they’re useful depends on your goal.
- Unlabeled data can carry biases and errors. Removing labels doesn’t remove those problems.
- Many unsupervised results depend on settings you choose, such as the number of groups or the distance measure.
Practical steps before using unlabeled data
Cleaning and organizing the features is usually the first job. Removing duplicates, fixing obvious errors, and deciding how to handle missing values all matter. Checking quality this way is a big part of why data preprocessing is needed in machine learning.
Scaling is also often needed, since many methods compare examples by distance and a feature with large numbers can dominate. Looking through a sample by hand helps you spot problems early. If you need predictions, labeling a small, representative set lets you train and test a supervised model, and semi-supervised methods can make use of the rest.
Key terms
- Feature: a measurable input attribute of an example.
- Label: the target value or answer attached to an example.
- Labeled example: an example with features and a label.
- Unlabeled example: an example with features but no label.
- Supervised learning: learning from labeled examples.
- Unsupervised learning: learning structure from unlabeled examples.
- Semi-supervised learning: learning from a mix of labeled and unlabeled examples.
- Self-supervised learning: learning from unlabeled data, with targets generated from the data.
Summary
An unlabeled example has the inputs but not the answer. That single difference shapes which methods can use it. Unsupervised methods rely on it entirely, semi-supervised methods combine it with a few labels, and self-supervised methods create their own targets from it. Unlabeled data is often easier to collect, but it puts more weight on how you evaluate and check the results.