Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    Self-supervised learning: how AI learns from unlabelled data

    Self-supervised learning trains models on unlabelled data by making up the labels from the data itself, for example by hiding part of an input and asking the model to fill it in.[1][2] It is widely used to pre-train large models before they are refined for specific tasks: BERT, for example, was pre-trained on unlabelled text, and the GPT-3 paper noted large gains from pre-training on a big text corpus.[3][4][1][5] The same idea works for images, through contrastive methods such as SimCLR, masked autoencoders and CLIP's image-caption matching.[6][7][8]

    Editor reviewedUpdated Explainer10 claims · 10% primaryMachine learning foundations, Artificial intelligence
    Reading level: 2 passages differ; the rest is the same for everyone.

    This page is part of our machine learning foundations series. It follows how embeddings work; afterwards read how transformers work and how large language models work.

    Supervised learning needs labelled examples, each paired with the answer the model should predict. An unlabelled example has the features but no label.[9] Self-supervised learning is a family of techniques that bridges the gap. It turns an unsupervised problem into a supervised one by creating surrogate labels from the unlabelled data itself.[1] A 2023 survey preprint calls it a promising path for machine learning, noting that it has been dubbed the “dark matter of intelligence”.[10]

    Making up your own exam

    The trick is to hide part of the data and ask the model to guess it. Take the sentence “The cat in the hat came back”, blank out one word, and train the model to predict it. The missing word is the answer key, and nobody had to write it down.[2]

    Training a model this way on a large dataset is called pre-training. The pre-trained model is then usually refined for a particular job.[3]

    Self-supervised objectives generate targets from the input: a masked language model predicts the probability of candidate tokens for blanked positions in a sequence.[2] Pre-training is this initial training on a large dataset, after which the model is usually refined, for example through fine-tuning.[3] A 2023 survey describes the design space as a dizzying set of choices, from the pretext task to the training hyperparameters.[10] See how fine-tuning works.

    Language: BERT and GPT

    Two families of language models showed how far the idea could go:

    • BERT (2018) pre-trained deep bidirectional representations from unlabelled text, using context on both sides of each word. The pre-trained model could then be fine-tuned with just one extra output layer for tasks such as question answering.[4] Google’s glossary lists BERT as an example of self-supervised learning.[1]
    • GPT-3 (2020) was an autoregressive language model with 175 billion parameters. Its paper noted that pre-training on a large text corpus followed by fine-tuning had produced substantial gains on many language tasks.[5]

    How large language models work explains what happens after pre-training.

    Images: contrastive learning and masking

    For images, there are two main tricks. One, called contrastive learning, builds its training task from altered (augmented) copies of images. SimCLR, a 2020 method, works this way, and its authors found that the choice of alterations plays a critical role.[6] The other hides most of an image and asks the model to repaint the missing parts. Masked autoencoders do this, and their authors found that hiding as much as 75% of the image made a useful task.[7]

    SimCLR is a framework for contrastive self-supervised learning of visual representations. Its authors reported that the composition of data augmentations plays a critical role, and that contrastive learning benefits from larger batch sizes and more training steps than supervised learning. A linear classifier trained on its representations reached 76.5% top-1 accuracy on ImageNet, matching a supervised ResNet-50.[6] Masked autoencoders mask random image patches and reconstruct the missing pixels; their authors found that a high masking ratio, such as 75%, yields a meaningful self-supervised task.[7]

    CLIP (2021) took a third route, pairing images with text. Its pre-training task was to predict which caption goes with which image, across 400 million image-text pairs collected from the internet. Afterwards, plain language could point the model at new visual tasks without task-specific training.[8] Learned representations of this kind are embeddings; see how embeddings work.

    What is known and what is open

    The core approach is well established: BERT, SimCLR, MAE and CLIP all learned from large datasets without task-specific human labels.[4][6][7][8] What remains hard is the recipe. The 2023 survey compares training these methods to a delicate art with a high barrier to entry.[10] Results reported in each paper are the authors’ own benchmarks; how to read an AI research paper explains how to judge them.

    Next in the crash course

    Questions readers ask

    What is self-supervised learning?

    A family of techniques that turn an unsupervised problem into a supervised one by creating stand-in labels from unlabelled examples. Models such as BERT use it.[1]

    How is self-supervised learning different from supervised learning?

    Supervised learning needs examples with labels, the answers a model should predict. Self-supervised learning starts from unlabelled examples, which have features but no label, and generates its own training targets from the data.[9][1]

    How are language models pre-trained?

    Language-model pre-training learns from large amounts of unlabelled text. BERT, for example, pre-trained bidirectional representations from unlabelled text, and the GPT-3 paper noted that pre-training on a large text corpus followed by fine-tuning had produced substantial gains on many language tasks.[4][5]

    What is contrastive learning?

    A self-supervised approach that learns representations by comparing examples. The SimCLR paper found that the choice of data augmentations was critical and that the method benefits from larger batches and longer training than supervised learning.[6]

    Sources

    · 10 claims from 7 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      Self-supervised learning is a family of techniques that turn an unsupervised problem into a supervised one by creating surrogate labels from unlabelled examples; Transformer models such as BERT use it. reportedas of 2026-11-22

      • Machine Learning Glossary · Google for Developers · Secondary source · Glossary, self-supervised learning (retrieved 2026-11-07)
      • Machine Learning Glossary · Google for Developers · Secondary source · Glossary, self-supervised learning (retrieved 2026-11-07)
    2. [2]

      A masked language model predicts the probability of candidate tokens to fill in blanks in a sequence, such as the missing word in "The ____ in the hat came back." reportedas of 2026-11-22

      • Machine Learning Glossary · Google for Developers · Secondary source · Glossary, masked language model (retrieved 2026-11-07)
    3. [3]

      Pre-training is the initial training of a model on a large dataset, after which the model is usually refined with further training; for example, a large language model might be pre-trained on a vast text dataset such as all English Wikipedia pages. reportedas of 2026-11-22

    4. [4]

      The 2018 BERT paper pre-trained deep bidirectional language representations from unlabelled text, conditioning on both left and right context, so that the pre-trained model could be fine-tuned with just one additional output layer for tasks such as question answering. confirmedas of 2026-11-22

    5. [5]

      The 2020 GPT-3 paper noted that pre-training on a large corpus of text followed by fine-tuning had produced substantial gains on many language tasks, and described GPT-3 as an autoregressive language model with 175 billion parameters. reportedas of 2026-11-22

    6. [6]

      The 2020 SimCLR paper, a framework for contrastive self-supervised learning of image representations, reported that the composition of data augmentations plays a critical role and that contrastive learning benefits from larger batches and more training steps than supervised learning; a linear classifier on its representations reached 76.5% top-1 accuracy on ImageNet, matching a supervised ResNet-50. reportedas of 2026-11-22

    7. [7]

      The 2021 masked autoencoder (MAE) paper masked random patches of an input image and trained the model to reconstruct the missing pixels, and its authors found that masking a high proportion of the image, such as 75%, makes a meaningful self-supervised task. reportedas of 2026-11-22

    8. [8]

      The 2021 CLIP paper learned image representations from scratch with the pre-training task of predicting which caption goes with which image, on 400 million image-text pairs collected from the internet, and then used natural language to transfer the model to new tasks without task-specific training. reportedas of 2026-11-22

    9. [9]

      An unlabelled example contains features but no label, the answer a supervised model would be trained to predict. reportedas of 2026-11-22

    10. [10]

      A 2023 preprint survey calls self-supervised learning a promising path to advance machine learning, noting it has been dubbed the "dark matter of intelligence", compares training such methods to a delicate art with a high barrier to entry, and says it involves a dizzying set of choices, from the pretext task to training hyperparameters. reportedas of 2026-11-22

    Revision history (1)
    1. Page created.

    Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Jul 19, 2027.

    Cite this page

    "Self-supervised learning: how AI learns from unlabelled data." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/self-supervised-learning-explained

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.