The data supplies a training signal #
Imagine an archive of photographs with few written descriptions. A fully labeled training set might require someone to identify every object of interest. A self-supervised task can begin with the images already available. The system might hide some patches and predict them, or learn to associate two altered versions of the same photograph. The pairing or missing content determines what counts as a training target. An investigator still chooses the data, transformations and scoring rule.
The representation is the intermediate numerical description learned while solving that task. Its usefulness is usually tested on a second problem. A representation learned from photographs might support a classifier even if the pretraining task never mentioned the classifier’s categories. How much labeled data the second task requires is itself a meaningful outcome. If later training collections contain more machine-generated material, model collapse becomes a question about which rare patterns survive successive rounds of sampling.
Reconstructing missing content #
BERT used a masked language-modeling objective. For example, a training sentence can have the position containing a town’s name selected for prediction. The surrounding sentence gives clues, and the original text supplies the answer. BERT used context on both sides. A representation sensitive to the difference between a place name and a person’s name can subsequently be useful to another task.
Masked autoencoders applied a related idea to images. He and colleagues withheld a large random fraction of image patches, trained an encoder on the visible subset and used a smaller decoder to reconstruct missing information. They found that masking about three quarters of the patches worked well in their setting. The fraction that makes a useful task depends on how much information neighboring elements share.
Learning what should stay the same #
SimCLR trained an encoder to bring representations of two transformed views of one image closer under a contrastive objective. Its experiments showed that the choice and combination of image transformations mattered. A crop and a change in color can preserve the identity of a dog. In an application identifying colored signal flags, treating color as irrelevant could discard the very property the user needs. The same transformation encodes a different assumption about the downstream task.
Checking what the representation retained #
One evaluation freezes the encoder and fits a small classifier using labeled examples. Another updates the full model for the downstream problem. These tests answer different questions about what is easily accessible and what can be adapted with further training. Reports should state the amount of labeled data and the comparison baseline. A large gain on a familiar image dataset is evidence about those images. Transfer to a different camera, language community or labeling convention needs its own test.
Speech before transcription #
The wav2vec 2.0 researchers worked with audio for which a transcript was unavailable. Their model masked intervals in an internal representation of the speech and learned to distinguish the correct quantized representation from alternatives. Fine-tuning then supplied the link between the learned acoustic representations and written text. This separates time spent recording speech from the more intensive work of accurately transcribing it.
In one LibriSpeech experiment the researchers combined about 53,000 hours of unlabeled audio with ten minutes of labeled speech. With a transformer language model in decoding, they reported word error rates of 4.8 percent on the clean test set and 8.2 percent on the other test set. Word error rate counts substitutions, insertions and deletions against a reference transcript. The low labeling requirement is striking in the context of the large collection of audio and the additional language model. A comparison using only the ten-minute figure would omit two important sources of information.
Sources
- Jacob Devlin and colleagues, BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (2019) aclanthology.org
- Ting Chen and colleagues, A Simple Framework for Contrastive Learning of Visual Representations (2020) proceedings.mlr.press
- Kaiming He and colleagues, Masked Autoencoders Are Scalable Vision Learners (2022) openaccess.thecvf.com
- Alexei Baevski and colleagues, wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations (2020) arxiv.orgCited in
- Ilia Shumailov and colleagues · AI models collapse when trained on recursively generated data (2024) nature.com