liveBook · Manning

Self-supervised learning

As explained in AI-Powered Search

Self-supervised learning is model training in which supervisory targets are derived from the input data itself rather than supplied as external labels.

Self-supervised learning trains a model by deriving supervisory targets from the input data instead of requiring manually labeled examples. In language modeling, the model creates its own prediction task from ordinary text. section 13.3.1

A Transformer can randomly mask 15% of the tokens in a sentence and predict the missing words from surrounding context. This masked language modeling task, also called a Cloze test, optimizes a loss function; repeated training produces embeddings that capture words and their contexts. section 13.3.1 section 15.1.2

Masked-token pretraining

Given a sentence such as “The cat sat on the mat,” the training process can hide tokens and require the model to predict them using the remaining words. The resulting representations support later language and search tasks. section 13.3.1

Figure 13.4 The Transformer encoder
figure

Trace the Transformer encoder pipeline used to turn tokenized text into contextual representations. section 13.3.1

How AI-Powered Search covers it

How deep it goes
Explains token masking, contextual prediction, loss optimization, and embedding formation without detailing complete Transformer internals.
Examples
Uses randomly masked sentence tokens and the Transformer encoder as concrete training examples.
What it assumes
Assumes basic familiarity with language models and embeddings while introducing masked prediction as the training objective.
What you can do after
Evaluate/understand how unlabeled text becomes contextual embeddings through masked-token prediction.
How it connects
Connects Transformers, BERT, masked language modeling, Cloze tests, embeddings, and fine-tuning.

Also explained in

Compare how 8 books explain self-supervised learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.