Contents
Supervised, Unsupervised, Semi- and Self-Supervised Learning/Chapter 12 of 12
12Summary
- One question. Where does the learning signal come from: human labels (supervised), the structure of the inputs (unsupervised), a few labels plus that structure (semi-supervised), or targets cut out of the inputs (self-supervised)?
- One recipe. All four minimize an empirical risk, \frac1n\sum L(\text{prediction},\text{target}); only the target changes (Table 1).
- Supervised. Cross-entropy is the negative log-likelihood; for logistic regression its gradient is \frac1n\sum_i(p_i-y_i)x_i, and gradient descent follows it downhill.
- Unsupervised. K-means minimizes \sum_i\|x_i-\mu_{c_i}\|^2 by alternating nearest-centre assignment and mean updates, and converges to a local minimum. PCA’s components are the eigenvectors of the covariance matrix; variance kept plus reconstruction error lost is constant, and \lambda_1/\sum_j\lambda_j is the fraction explained by the first component.
- Semi-supervised. Works only if p(x) informs p(y\mid x) (smoothness, low density, manifold). Label spreading F\leftarrow\alpha SF+(1-\alpha)Y converges to (1-\alpha)(I-\alpha S)^{-1}Y. Self-training, entropy minimization, consistency regularization and FixMatch’s thresholded pseudo-labels are the classic deep-learning versions.
- Self-supervised. Masked LM -\sum_{i\in M}\log p(x_i\mid x_{\setminus M}), next-token -\sum_t\log p(x_t\mid x_{<t}), and contrastive InfoNCE, a softmax cross-entropy over similarities divided by a temperature, with I\ge\log N-\mathcal{L}_N.
- Big picture. Pretrain with self-supervision on huge unlabeled data, then fine-tune with supervision on a small labeled set.