Ask what should change when the equation is manipulated, then let the visualization test that expectation.
Foundation Lab
Self-Supervised Learning: Labels from Structure
Foundation of modern NLP: BERT, GPT, LLaMA all use self-supervised pretraining
\mathcal{L} = -\mathbb{E}[\log p(x_{masked} | x_{visible})]Selected Foundation Object
Keep the equation fixed; move through the evidence.
The task (predict missing parts) forces the model to understand structure and semantics
\mathcal{L} = -\mathbb{E}[\log p(x_{masked} | x_{visible})]Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.
The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.
Use prerequisites, dependents, and semantic links to repair the next gap without leaving the object behind.
Why It Matters for Modern Models
- Foundation of modern NLP: BERT, GPT, LLaMA all use self-supervised pretraining
- Enables learning from internet-scale unlabeled data—the key to scaling laws
- Self-supervised vision (MAE, DINO) is closing the gap with supervised ImageNet pretraining
What Tutorials Skip
What is still poorly explained in textbooks and papers:
- The task (predict missing parts) forces the model to understand structure and semantics
- SSL works because predicting tokens/pixels requires modeling the full data distribution
- Transfer learning magic: SSL features generalize because the pretext task is so hard
Interactive Visualization
Core Math (Optional Deep Dive)
If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.
Self-supervised = create supervision from data itself:
Masked Language Modeling (BERT):
where is the set of masked positions.
Next Token Prediction (GPT):
Contrastive (SimCLR, CLIP):