Self-supervised learning
Machine learning where the right answers come from the data itself, for instance hiding a word in a sentence and guessing it back.
Draft - this entry has not been reviewed yet.
Formal
A form of machine learning that makes its own labels from unlabelled training data, by hiding or holding back part of each example and learning to fill it in from the rest.
In plain English
Like learning a song by pausing the recording mid-line, singing the next words yourself, then playing on to check. The song is its own answer key.
In practice
A region's speech-to-text team lets a model learn from thousands of hours of Danish speech by hiding short bits of sound and guessing them, then needs only a few hours of typed-up dictations to handle doctors' notes.
Why it matters
Removing the need for human labels is what made training on the whole web possible, and it is why whatever is on the web, good or bad, ends up in the model.
Technical deep dive
The approach defines a pretext task whose target can be computed from the raw input, trains a network on it with an ordinary supervised loss, and then reuses the learned representations for downstream tasks. Two families dominate. Generative or predictive objectives reconstruct hidden parts of the input: causal language modelling predicts the next token from the preceding ones (the GPT line), masked language modelling predicts hidden tokens from both sides, and masked autoencoders for images (He et al., 2021) hide a large share of image patches, typically 75 percent, and reconstruct the pixels. Contrastive and joint-embedding objectives instead learn to map different views of the same item close together and different items apart: SimCLR (2020) contrasts two augmented crops of an image, and CLIP (2021) aligns images with their captions using a contrastive loss over large batches.
BERT (Devlin et al., 2019) illustrates the details. It selects 15 percent of input tokens for prediction; of those, 80 percent are replaced by a [MASK] token, 10 percent by a random token and 10 percent are left unchanged, so the model cannot rely on seeing [MASK] at fine-tuning time. Speech works similarly: wav2vec 2.0 (Baevski et al., 2020) masks spans of latent speech features and solves a contrastive task over quantised targets, and showed that fine-tuning on as little as ten minutes of transcribed audio, after pretraining on 53,000 hours of unlabelled speech, could produce usable recognisers, which is the pattern behind low-resource languages and domain-specific dictation.
A known failure mode for joint-embedding methods is representational collapse, where the network maps every input to the same vector and trivially satisfies the objective. Negative pairs (contrastive methods), asymmetric architectures with stop-gradient (BYOL, SimSiam) or explicit variance regularisation (VICReg) prevent it. Augmentation choices also encode assumptions: cropping and colour jitter teach invariance to those changes, which is harmful if colour matters for the downstream task.
The terminology is contested. Some authors, including Yann LeCun, who popularised the term, distinguish it sharply from unsupervised learning; older literature files the same methods under unsupervised learning. The practical distinction is that self-supervised methods have an explicit prediction target and a supervised-style loss.
Scale is the consequence and the risk. Because no human labelling is needed, pretraining corpora can include trillions of tokens of web text, which is what makes foundation models possible but also means that toxic content, personal data, copyrighted material and deliberately poisoned pages enter the model unless filtered. The pretrained model is usually followed by supervised fine-tuning and preference training before deployment.
What to learn first
Everything this builds on, foundations first.
- Training data
- →Self-supervised learning
Relationships
- A kind of
- Machine learning
- Requires
- Training data
- Unlocks
- Foundation modelPretraining
- Don't confuse with
- Supervised learningUnsupervised learning
Sources & further reading
Reference works
- Devlin et al. (2019), BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding · NAACL 2019
- He et al. (2021), Masked Autoencoders Are Scalable Vision Learners · arXiv
- Baevski et al. (2020), wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations · NeurIPS 2020
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…