What is unsupervised learning?
Unsupervised learning is a machine learning approach that looks for groups, structure and patterns in data without explicit target labels; clustering, dimensionality reduction and density estimation are its main tasks.
It differs from self-supervised learning in where targets come from: self-supervised learning derives targets from the data itself, such as the next token in a text, while unsupervised learning seeks structure without a set prediction target. Results are not objective truth; choices such as cluster count and similarity measure change them.
- Topic
- Machine learning, models and training
- Also known as
- Unsupervised machine learning
How unsupervised learning works
- The model gets only features or raw observations, with no correct class or target output.
- Clustering groups similar examples with algorithms such as k-means, based on similarity or distance.
- Dimensionality reduction methods such as principal component analysis or an autoencoder move data into a lower-dimensional space.
- Density estimation learns the normal data distribution; examples that do not fit are flagged as anomalies.
Commonly confused terms
| Term | How it differs |
|---|---|
| Semi-supervised learning | Semi-supervised learning combines a small set of human-labelled examples with a large pool of unlabelled data to improve a supervised classifier, whereas purely unsupervised learning uses no target labels at all during training. |
Why unsupervised learning matters for on-premises AI
It underpins anomaly detection that catches previously unseen attacks, fraud or equipment failure patterns. Because no labels are needed, large unlabelled logs, documents and transactions can be analysed without leaving the organisation; clustering and anomaly detection often run on a CPU. Groups found are not automatically real business categories or confirmed anomalies, so experts review the findings.
A telecoms operator clusters unlabelled network performance records in-house to surface similar behaviour patterns and passes them to experts for review.
Common questions
Is LLM pre-training unsupervised or self-supervised?
It uses no human-made labels, so in a broad sense it is unlabelled learning. Technically it is self-supervised: the model predicts the next token and the target comes from the text itself.
How are unsupervised models evaluated without labels?
Internal measures such as cluster tightness and separation are used. A small sample is also reviewed by experts to check that results make business sense.
Related terms
- Clustering
- Anomaly detection
- Autoencoder
- Self-supervised learning
- Topic modelling
- Supervised learning
- Semi-supervised learning
- Representation learning
- Latent space
Sources
- Goodfellow, Bengio and Courville, Deep Learning, 2016, chapter 5
- Hastie, Tibshirani and Friedman, The Elements of Statistical Learning, 2009
In the glossary: Glossary, R to Z