What is self-supervised learning?
Self-supervised learning is a machine learning approach in which labels are derived automatically from the structure of the data rather than prepared by people; the model learns representations by predicting these targets.
It differs from unsupervised learning in its objective: unsupervised learning looks for clusters or structure, while self-supervised learning builds an artificial prediction task from the data and solves it like supervised learning. Unlike semi-supervised learning it uses no human labels at all.
- Topic
- Machine learning, models and training
- Also known as
- SSL, self-supervision
How self-supervised learning works
- Input and target pairs are generated from the data, such as predicting the next token or recovering a masked word.
- The model predicts the hidden or next part from the visible part; the gap between prediction and reality is the training signal.
- In contrastive methods two views of the same example are pulled together and different examples pushed apart.
- Learned representations are then transferred to tasks with few labels through fine-tuning.
In more detail
Three main objective families
Self-supervised learning spans three major objective families beyond text: generative or autoregressive (GPT next-token prediction), masked reconstruction (BERT, Vision MAE) and joint-embedding or contrastive learning (SimCLR, DINOv2, I-JEPA) that predict abstract representations rather than raw pixels or tokens. This breadth explains why SSL powers modern vision, audio and multimodal foundation models as well as LLMs.
Commonly confused terms
| Term | How it differs |
|---|---|
| Supervised fine-tuning | Supervised fine-tuning (SFT) trains a pre-trained model on curated human- or model-written prompt-response pairs to follow instructions, rather than learning general representations from raw unlabelled text via next-token prediction. |
Why self-supervised learning matters for on-premises AI
Pre-training large language models is self-supervised learning: next-token prediction makes learning from internet-scale text possible without labels. For organisations this means unlabelled documents gathered over years can familiarise a model with company language and terms without waiting for expert labelling. The route is continued pre-training with a self-supervised objective, keeping the data in-house, followed by task fine-tuning on few labels.
A telecom operator continues training its in-house language model on years of call centre transcripts with a next-token objective; once the model learns the operator's tariff and product language, a few labelled examples adapt it to complaint classification.
Common questions
Is self-supervised learning unsupervised?
It is often classed that way because it uses unlabelled data. But it predicts targets derived from the data like supervised learning, so it is named as a separate category.
Are large language models trained with self-supervised learning?
The pre-training stage is self-supervised: the model learns by predicting the next token. Later instruction tuning and human feedback stages use labelled data.
Related terms
- Next-token prediction
- Pre-training
- Masked language modelling
- Semi-supervised learning
- Contrastive learning
- Representation learning
- Unsupervised learning
Sources
- Devlin et al., BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, 2018
- Balestriero et al., A Cookbook of Self-Supervised Learning, 2023
In the glossary: Glossary, R to Z