Define supervised, unsupervised, and self-supervised learning. Where does each stage of modern LLM training fit?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Supervised: learn from (input, label) pairs where labels come from outside the data - human annotation, logged outcomes. Unsupervised: find structure with no labels at all - clustering, density estimation, dimensionality reduction. Self-supervised: manufacture the labels from the data itself via a pretext task, then learn with standard supervised machinery - no annotation cost, effectively unlimited data.
Full worked answer with diagram
Supervised: learn from (input, label) pairs where labels come from outside the data - human annotation, logged outcomes. Unsupervised: find structure with no labels at all - clustering, density estimation, dimensionality reduction. Self-supervised: manufacture the labels from the data itself via a pretext task, then learn with standard supervised machinery - no annotation cost, effectively unlimited data.
Mapping the modern LLM pipeline is the real point of the question:
- Pretraining - self-supervised. Next-token prediction turns raw text into trillions of (context, next-token) pairs; the "label" is just the following token. Masked-language modeling (BERT) is the same idea with a different pretext task.
- SFT / instruction tuning - plain supervised learning: curated (prompt, response) pairs, cross-entropy on the response tokens.
- RL post-training (RLHF on preferences, or GRPO-style RL on verifiable rewards) - reinforcement learning: the signal is a scalar reward (from a learned reward model, human preferences, or verifiable checkers for math/code), not per-token labels. DPO is the interesting edge case: it optimises a preference objective directly as a supervised-style loss on preference pairs, skipping the explicit RL loop.
- Embedding models / CLIP - self-supervised contrastive learning: positives are co-occurring pairs (text/image, query/passage), negatives come free from the batch.
- Genuinely unsupervised steps still exist around the edges: clustering user queries to discover intents, deduplicating pretraining corpora via near-duplicate detection.
The one-liner that lands well: self-supervision solved the labelling bottleneck - the reason LLMs work is that next-token prediction converts the entire internet into free supervised training data.
Worth sketching. Labelling the arrows rather than the boxes is what makes the taxonomy stick: the paradigm lives in how the supervision was obtained.
flowchart LR
A["Raw web text"] -->|"self-supervised:<br/>next token is the label"| B["Base model"]
B -->|"supervised:<br/>curated prompt and response"| C["SFT model"]
C -->|"RL on scalar reward,<br/>or DPO on preference pairs"| D["Aligned model"]
E["Co-occurring pairs"] -->|"self-supervised:<br/>contrastive"| F["Embedding model"]
G["Unlabelled queries"] -->|"unsupervised:<br/>clustering, dedup"| H["Discovered intents"]
What a good answer covers
- Supervised: learn from (input, label) pairs where labels come from outside the data - human annotation,…
- Unsupervised: find structure with no labels at all - clustering, density estimation, dimensionality reduction
- Self-supervised: manufacture the labels from the data itself via a pretext task, then learn with…
- Pretraining - self-supervised
- SFT / instruction tuning - plain supervised learning
Key terms: Supervised · Unsupervised · Self-supervised · Pretraining · SFT / instruction tuning · Embedding models / CLIP
In the glossary: Cross-entropy · RLHF · Verifiable reward · Reward model · DPO · CLIP
Interviewer follow-ups to expect
Is a reward model trained supervised or by RL?
Why is next-token prediction such a powerful pretext task compared to, say, autoencoding?
Where does RLAIF/constitutional-style feedback fit in this taxonomy?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep